Comments, bugs, improvements to syntax script nginx.vim
Patch to 0.3.1 fixes comment detection
This patch fixes comment detection. Instead of just looking at space characters, it considers all whitespace before a # character. (You can probably edit the one-character change easier than you could apply the patch file.)
--- nginx.vim +++ nginx.vim @@ -15,7 +15,7 @@ syn region ngxBlock start=+^+ end=+{+ contains=ngxDirectiveBlock,ngxVariableBlock,ngxString oneline syn region ngxString start=+"+ end=+"+ skip=+\\\\\|\\"+ contains=ngxVariableString oneline syn region ngxString start=+'+ end=+'+ skip=+\\\\\|\\'+ contains=ngxVariableString oneline -syn match ngxComment ' *#.*$' +syn match ngxComment '\W*#.*$' syn keyword ngxBoolean on syn keyword ngxBoolean off