aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGena Makhomed <gmm@csdoc.com>2017-12-25 18:30:01 +0200
committerGena Makhomed <gmm@csdoc.com>2017-12-25 18:30:01 +0200
commit44c16b2e7026657c099e01436b680c07b28eae71 (patch)
tree81650cf649ff0a6362bdb5167b0609a0b138a105 /contrib
parent6e0d2f898d0b6abf720ebc133495ffebe8d6b2a0 (diff)
downloadnginx-44c16b2e7026657c099e01436b680c07b28eae71.tar.gz
nginx-44c16b2e7026657c099e01436b680c07b28eae71.zip
Contrib: vim syntax, listen options.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vim/syntax/nginx.vim10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/vim/syntax/nginx.vim b/contrib/vim/syntax/nginx.vim
index 1c562dc14..3615e22ea 100644
--- a/contrib/vim/syntax/nginx.vim
+++ b/contrib/vim/syntax/nginx.vim
@@ -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"