[PATCH 1 of 4] Contrib: vim syntax, allow multiline config by skipempty

othree othree at gmail.com
Fri Mar 3 10:56:56 UTC 2017


# HG changeset patch
# User othree <othree at gmail.com>
# Date 1488526499 -28800
#      Fri Mar 03 15:34:59 2017 +0800
# Node ID d91e05e761d148d7299017b62d581c6a1429bbd4
# Parent  a72886067bbbfe854617976839434df76f0565b6
Contrib: vim syntax, allow multiline config by skipempty.

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
@@ -328,17 +328,17 @@ syn keyword ngxDirective pid
 syn keyword ngxDirective pop3_auth
 syn keyword ngxDirective pop3_capabilities
 syn keyword ngxDirective port_in_redirect
 syn keyword ngxDirective post_acceptex
 syn keyword ngxDirective postpone_gzipping
 syn keyword ngxDirective postpone_output
 syn keyword ngxDirective preread_buffer_size
 syn keyword ngxDirective preread_timeout
-syn keyword ngxDirective protocol nextgroup=ngxMailProtocol skipwhite
+syn keyword ngxDirective protocol nextgroup=ngxMailProtocol skipwhite skipempty
 syn keyword ngxMailProtocol imap pop3 smtp contained
 syn keyword ngxDirective proxy
 syn keyword ngxDirective proxy_bind
 syn keyword ngxDirective proxy_buffer
 syn keyword ngxDirective proxy_buffer_size
 syn keyword ngxDirective proxy_buffering
 syn keyword ngxDirective proxy_buffers
 syn keyword ngxDirective proxy_busy_buffers_size
@@ -391,17 +391,17 @@ syn keyword ngxDirective proxy_send_time
 syn keyword ngxDirective proxy_set_body
 syn keyword ngxDirective proxy_set_header
 syn keyword ngxDirective proxy_ssl_certificate
 syn keyword ngxDirective proxy_ssl_certificate_key
 syn keyword ngxDirective proxy_ssl_ciphers
 syn keyword ngxDirective proxy_ssl_crl
 syn keyword ngxDirective proxy_ssl_name
 syn keyword ngxDirective proxy_ssl_password_file
-syn keyword ngxDirective proxy_ssl_protocols nextgroup=ngxSSLProtocol skipwhite
+syn keyword ngxDirective proxy_ssl_protocols nextgroup=ngxSSLProtocol skipwhite skipempty
 syn keyword ngxDirective proxy_ssl_server_name
 syn keyword ngxDirective proxy_ssl_session_reuse
 syn keyword ngxDirective proxy_ssl_trusted_certificate
 syn keyword ngxDirective proxy_ssl_verify
 syn keyword ngxDirective proxy_ssl_verify_depth
 syn keyword ngxDirective proxy_store
 syn keyword ngxDirective proxy_store_access
 syn keyword ngxDirective proxy_temp_file_write_size
@@ -513,18 +513,18 @@ syn keyword ngxDirective ssl_client_cert
 syn keyword ngxDirective ssl_crl
 syn keyword ngxDirective ssl_dhparam
 syn keyword ngxDirective ssl_ecdh_curve
 syn keyword ngxDirective ssl_engine
 syn keyword ngxDirective ssl_handshake_timeout
 syn keyword ngxDirective ssl_password_file
 syn keyword ngxDirective ssl_prefer_server_ciphers
 syn keyword ngxDirective ssl_preread
-syn keyword ngxDirective ssl_protocols nextgroup=ngxSSLProtocol skipwhite
-syn keyword ngxSSLProtocol SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2 contained nextgroup=ngxSSLProtocol skipwhite
+syn keyword ngxDirective ssl_protocols nextgroup=ngxSSLProtocol skipwhite skipempty
+syn keyword ngxSSLProtocol SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2 contained nextgroup=ngxSSLProtocol skipwhite skipempty
 syn keyword ngxDirective ssl_session_cache
 syn keyword ngxDirective ssl_session_ticket_key
 syn keyword ngxDirective ssl_session_tickets
 syn keyword ngxDirective ssl_session_timeout
 syn keyword ngxDirective ssl_stapling
 syn keyword ngxDirective ssl_stapling_file
 syn keyword ngxDirective ssl_stapling_responder
 syn keyword ngxDirective ssl_stapling_verify
@@ -605,17 +605,17 @@ syn keyword ngxDirective uwsgi_read_time
 syn keyword ngxDirective uwsgi_request_buffering
 syn keyword ngxDirective uwsgi_send_timeout
 syn keyword ngxDirective uwsgi_ssl_certificate
 syn keyword ngxDirective uwsgi_ssl_certificate_key
 syn keyword ngxDirective uwsgi_ssl_ciphers
 syn keyword ngxDirective uwsgi_ssl_crl
 syn keyword ngxDirective uwsgi_ssl_name
 syn keyword ngxDirective uwsgi_ssl_password_file
-syn keyword ngxDirective uwsgi_ssl_protocols nextgroup=ngxSSLProtocol skipwhite
+syn keyword ngxDirective uwsgi_ssl_protocols nextgroup=ngxSSLProtocol skipwhite skipempty
 syn keyword ngxDirective uwsgi_ssl_server_name
 syn keyword ngxDirective uwsgi_ssl_session_reuse
 syn keyword ngxDirective uwsgi_ssl_trusted_certificate
 syn keyword ngxDirective uwsgi_ssl_verify
 syn keyword ngxDirective uwsgi_ssl_verify_depth
 syn keyword ngxDirective uwsgi_store
 syn keyword ngxDirective uwsgi_store_access
 syn keyword ngxDirective uwsgi_string


More information about the nginx-devel mailing list