Klaus Demo nginx / 9bc0ced
Contrib: updated vim syntax rules for variables. Non-quoted parameters are allowed to contain variables in curly brackets (see d91a8c4ac6bb), so vim syntax rules were adjusted accordingly. Maxim Dounin 2 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1414 syn match ngxName '\([^;{} \t\\]\|\\.\)\+'
1515 \ contains=@ngxDirectives
1616 \ nextgroup=@ngxParams skipwhite skipempty
17 syn match ngxParam '\([^;{ \t\\]\|\\.\)\+'
17 syn match ngxParam '\(\${\|[^;{ \t\\]\|\\.\)\+'
1818 \ contained
1919 \ contains=ngxVariable
2020 \ nextgroup=@ngxParams skipwhite skipempty
2828 \ contains=@ngxTopLevel
2929 syn match ngxComment '#.*$'
3030
31 syn match ngxVariable '\$\w\+' contained
31 syn match ngxVariable '\$\(\w\+\|{\w\+}\)' contained
3232 syn match ngxVariableString '\$\(\w\+\|{\w\+}\)' contained
3333
3434 syn cluster ngxTopLevel
5151 syn cluster ngxTopLevel add=ngxDirectiveListen
5252 syn keyword ngxDirectiveListen listen
5353 \ nextgroup=@ngxListenParams skipwhite skipempty
54 syn match ngxListenParam '\([^;{ \t\\]\|\\.\)\+'
54 syn match ngxListenParam '\(\${\|[^;{ \t\\]\|\\.\)\+'
5555 \ contained
5656 \ nextgroup=@ngxListenParams skipwhite skipempty
5757 syn region ngxListenString start=+\z(["']\)+ end=+\z1+ skip=+\\\\\|\\\z1+