]> git.kaiwu.me - nginx.git/commitdiff
Contrib: vim syntax, listen options.
authorGena Makhomed <gmm@csdoc.com>
Mon, 25 Dec 2017 16:30:01 +0000 (18:30 +0200)
committerGena Makhomed <gmm@csdoc.com>
Mon, 25 Dec 2017 16:30:01 +0000 (18:30 +0200)
contrib/vim/syntax/nginx.vim

index 1c562dc1413d3f4fdec66a03cb6b744241fa5d1b..3615e22eaf1fa08488fac663ca44b00846a6da58 100644 (file)
@@ -62,13 +62,16 @@ syn match ngxListenComment '#.*$'
     \ contained
     \ nextgroup=@ngxListenParams skipwhite skipempty
 syn keyword ngxListenOptions contained
-    \ default_server ssl http2 spdy proxy_protocol
+    \ default_server ssl http2 proxy_protocol
     \ setfib fastopen backlog rcvbuf sndbuf accept_filter deferred bind
-    \ ipv6only reuseport so_keepalive keepidle
+    \ ipv6only reuseport so_keepalive
+    \ nextgroup=@ngxListenParams skipwhite skipempty
+syn keyword ngxListenOptionsDeprecated contained
+    \ spdy
     \ nextgroup=@ngxListenParams skipwhite skipempty
 syn cluster ngxListenParams
     \ contains=ngxListenParam,ngxListenString,ngxListenComment
-    \ add=ngxListenOptions
+    \ add=ngxListenOptions,ngxListenOptionsDeprecated
 
 syn keyword ngxDirectiveBlock contained http
 syn keyword ngxDirectiveBlock contained stream
@@ -2177,5 +2180,6 @@ hi link ngxDirective Identifier
 hi link ngxDirectiveThirdParty Special
 
 hi link ngxListenOptions Keyword
+hi link ngxListenOptionsDeprecated Error
 
 let b:current_syntax = "nginx"