Changeset 6918:00903b2132ed in nginx for contrib

02/22/17 04:26:41 (13 months ago)
othree <othree@…>

Contrib: vim syntax, listen option and SSL/Mail protocol keywords.

1 edited


  • contrib/vim/syntax/nginx.vim

    r6504 r6918  
    1414syn match ngxVariableString '\$\(\w\+\|{\w\+}\)' contained
    1515syn region ngxBlock start=+^+ end=+{+ skip=+\${+ contains=ngxComment,ngxDirectiveBlock,ngxVariableBlock,ngxString oneline
    16 syn region ngxString start=+\z(["']\)+ end=+\z1+ skip=+\\\\\|\\\z1+ contains=ngxVariableString
     16syn region ngxString start=+[^:a-zA-Z>!\\@]\z(["']\)+lc=1 end=+\z1+ skip=+\\\\\|\\\z1+ contains=ngxVariableString
    1717syn match ngxComment ' *#.*$'
    3838syn keyword ngxDirectiveImportant server
    3939syn keyword ngxDirectiveImportant server_name
    40 syn keyword ngxDirectiveImportant listen
     40syn keyword ngxDirectiveImportant listen contained
     41syn region  ngxDirectiveImportantListen matchgroup=ngxDirectiveImportant start=+listen+ skip=+\\\\\|\\\;+ end=+;+he=e-1 contains=ngxListenOptions,ngxString
    4142syn keyword ngxDirectiveImportant internal
    4243syn keyword ngxDirectiveImportant proxy_pass
    4647syn keyword ngxDirectiveImportant uwsgi_pass
    4748syn keyword ngxDirectiveImportant try_files
     50syn keyword ngxListenOptions default_server contained
     51syn keyword ngxListenOptions ssl            contained
     52syn keyword ngxListenOptions http2          contained
     53syn keyword ngxListenOptions spdy           contained
     54syn keyword ngxListenOptions proxy_protocol contained
     55syn keyword ngxListenOptions setfib         contained
     56syn keyword ngxListenOptions fastopen       contained
     57syn keyword ngxListenOptions backlog        contained
     58syn keyword ngxListenOptions rcvbuf         contained
     59syn keyword ngxListenOptions sndbuf         contained
     60syn keyword ngxListenOptions accept_filter  contained
     61syn keyword ngxListenOptions deferred       contained
     62syn keyword ngxListenOptions bind           contained
     63syn keyword ngxListenOptions ipv6only       contained
     64syn keyword ngxListenOptions reuseport      contained
     65syn keyword ngxListenOptions so_keepalive   contained
     66syn keyword ngxListenOptions keepidle       contained
    4968syn keyword ngxDirectiveControl break
    268287syn keyword ngxDirective postpone_gzipping
    269288syn keyword ngxDirective postpone_output
    270 syn keyword ngxDirective protocol
     289syn keyword ngxDirective protocol nextgroup=ngxMailProtocol skipwhite
     290syn keyword ngxMailProtocol imap pop3 smtp contained
    271291syn keyword ngxDirective proxy
    272292syn keyword ngxDirective proxy_bind
    317337syn keyword ngxDirective proxy_ssl_crl
    318338syn keyword ngxDirective proxy_ssl_name
    319 syn keyword ngxDirective proxy_ssl_protocols
     339syn keyword ngxDirective proxy_ssl_protocols nextgroup=ngxSSLProtocol skipwhite
    320340syn keyword ngxDirective proxy_ssl_server_name
    321341syn keyword ngxDirective proxy_ssl_session_reuse
    426446syn keyword ngxDirective ssl_password_file
    427447syn keyword ngxDirective ssl_prefer_server_ciphers
    428 syn keyword ngxDirective ssl_protocols
     448syn keyword ngxDirective ssl_protocols nextgroup=ngxSSLProtocol skipwhite
     449syn keyword ngxSSLProtocol SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2 contained nextgroup=ngxSSLProtocol skipwhite
    429450syn keyword ngxDirective ssl_session_cache
    430451syn keyword ngxDirective ssl_session_ticket_key
    501522syn keyword ngxDirective uwsgi_ssl_crl
    502523syn keyword ngxDirective uwsgi_ssl_name
    503 syn keyword ngxDirective uwsgi_ssl_protocols
     524syn keyword ngxDirective uwsgi_ssl_protocols nextgroup=ngxSSLProtocol skipwhite
    504525syn keyword ngxDirective uwsgi_ssl_server_name
    505526syn keyword ngxDirective uwsgi_ssl_session_reuse
    834855hi link ngxDirectiveThirdParty Special
     857hi link ngxListenOptions Keyword
     858hi link ngxMailProtocol Keyword
     859hi link ngxSSLProtocol Keyword
    836861let b:current_syntax = "nginx"
Note: See TracChangeset for help on using the changeset viewer.