[PATCH] Contrib: vim syntax, listen option and SSL/Mail protocol keywords

Maxim Dounin mdounin at mdounin.ru
Wed Feb 22 16:38:20 UTC 2017


Hello!

On Wed, Feb 22, 2017 at 02:16:59PM +0800, othree wrote:

> # HG changeset patch
> # User othree <othree at gmail.com>
> # Date 1487737601 -28800
> #      Wed Feb 22 12:26:41 2017 +0800
> # Node ID 00903b2132edb863e8aed2e84e216817fcc07c90
> # Parent  87cf6ddb41c216876d13cffa5e637a61b159362c
> Contrib: vim syntax, listen option and SSL/Mail protocol keywords.
> 
> diff --git a/contrib/vim/syntax/nginx.vim b/contrib/vim/syntax/nginx.vim
> --- a/contrib/vim/syntax/nginx.vim
> +++ b/contrib/vim/syntax/nginx.vim
> @@ -8,17 +8,17 @@ end
>  setlocal iskeyword+=.
>  setlocal iskeyword+=/
>  setlocal iskeyword+=:
>  
>  syn match ngxVariable '\$\(\w\+\|{\w\+}\)'
>  syn match ngxVariableBlock '\$\(\w\+\|{\w\+}\)' contained
>  syn match ngxVariableString '\$\(\w\+\|{\w\+}\)' contained
>  syn region ngxBlock start=+^+ end=+{+ skip=+\${+ contains=ngxComment,ngxDirectiveBlock,ngxVariableBlock,ngxString oneline
> -syn region ngxString start=+\z(["']\)+ end=+\z1+ skip=+\\\\\|\\\z1+ contains=ngxVariableString
> +syn region ngxString start=+[^:a-zA-Z>!\\@]\z(["']\)+lc=1 end=+\z1+ skip=+\\\\\|\\\z1+ contains=ngxVariableString
>  syn match ngxComment ' *#.*$'

[...]

Committed, thanks.

-- 
Maxim Dounin
http://nginx.org/


More information about the nginx-devel mailing list