| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
'indent-closing-brace-with-first-line-comment-fix' into oni
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The ‘nginx-indent-block’ function would get confused by braces in comments. Here
is an example of how indentation could go wrong:
server {
# some comment with {
# ...
}
After this change the example is correctly indented:
server {
# some comment with {
# ...
}
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Specifically this fixes an indentation issue with this:
if ($host = example.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
Before this change this would have been indented as:
if ($host = example.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
Because the regular expression was looking for a ‘}’ with nothing following it,
but comments can follow this construct just fine.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
magic-fallback-mode-alist.
As mentioned in issue #6, Nginx configuration today is often edited
indirectly as part of a CMS, and the files are often fragments rather
than a single nginx.conf.
By adding the common top-level blocks to a magic mode alist, we can
still automatically detect these files. By choosing the fallback
alist, we still allow other major modes to make a stronger claim based
on extension or literal content / interpreter match.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hi.
When using `define-derived-mode` one doesn't need (and shouldn't) use `run-hook` because the macro adds the form `run-mode-hook` itself when expanded (use macroexpand to check!).
This results in the hook being called twice, see
```elisp
(defun my-nginx-mode-init ()
(message "Hello"))
(add-hook 'nginx-mode-hook 'my-nginx-mode-init)
```
In messages I have
Hello [2 times]
Simply removing the form and using the one provided by the macro is enough to fix this.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
apache-mode autoloads)
|
| |
|
| |
|
|\
| |
| | |
Set auto-mode-alist at top-level and Add autoload cookie
|
| | |
|
|/ |
|
| |
|
|
|
|
| |
anything else to highlight semicolons with, and really, it doesn't matter that much anyway. Fixes #5.
|
|
|
|
| |
@mbunkus - fixes #3.
|
| |
|
|
|
|
| |
https://github.com/ajc/nginx-mode/issues/#issue/1
|
|
|
|
|
|
| |
handy README.md file
(see http://jugglingbits.wordpress.com/2009/11/14/announcing-md-readme/ )
|
|
|
|
| |
such a good idea (my eyes!)
|
| |
|
| |
|
|
|