Update vim file
This commit is contained in:
parent
f5c54c662a
commit
d1e92bf535
|
@ -23,8 +23,10 @@ syn match bipEndError contained /\(#.*\)\@<![^;{]$/
|
||||||
syn region bipString contained start=+"+ end=+"+
|
syn region bipString contained start=+"+ end=+"+
|
||||||
syn keyword bipBool contained true false
|
syn keyword bipBool contained true false
|
||||||
syn match bipNumeric contained /\d\d*/
|
syn match bipNumeric contained /\d\d*/
|
||||||
syn region bipIP contained start=+"+ end=+"+ contains=bipAddrTk,bipDot
|
syn region bipIP contained start=+"+ end=+"+
|
||||||
syn region bipNetmask contained start=+"+ end=+"+ contains=bipAddrTk,bipDot,bipSlash,bipMask
|
\ contains=bipAddrTk,bipDot
|
||||||
|
syn region bipNetmask contained start=+"+ end=+"+
|
||||||
|
\ contains=bipAddrTk,bipDot,bipSlash,bipMask
|
||||||
syn match bipAddrTk contained #\d\{1,3}#
|
syn match bipAddrTk contained #\d\{1,3}#
|
||||||
syn match bipDot contained #\.#
|
syn match bipDot contained #\.#
|
||||||
syn match bipSlash contained #/#
|
syn match bipSlash contained #/#
|
||||||
|
@ -34,57 +36,75 @@ syn match bipWhite contained +#\@!\s*+
|
||||||
" syn match bipWhite contained +^\s*\ze[^#]*+
|
" syn match bipWhite contained +^\s*\ze[^#]*+
|
||||||
|
|
||||||
" Values syntax
|
" Values syntax
|
||||||
syn region bipStringV contained matchgroup=Delimiter start=/\s*=\s*/ end=/\s*;\s*/ contains=bipString
|
syn region bipStringV contained matchgroup=Delimiter start=/\s*=\s*/
|
||||||
syn region bipBoolV contained matchgroup=Delimiter start=/\s*=\s*/ end=/\s*;\s*/ contains=bipBool
|
\ end=/\s*;\s*/ contains=bipString
|
||||||
syn region bipNumericV contained matchgroup=Delimiter start=/\s*=\s*/ end=/\s*;\s*/ contains=bipNumeric
|
syn region bipBoolV contained matchgroup=Delimiter start=/\s*=\s*/
|
||||||
syn region bipIPV contained matchgroup=Delimiter start=/\s*=\s*/ end=/\s*;\s*/ contains=bipIP
|
\ end=/\s*;\s*/ contains=bipBool
|
||||||
syn region bipNetmaskV contained matchgroup=Delimiter start=/\s*=\s*/ end=/\s*;\s*/ contains=bipNetmask
|
syn region bipNumericV contained matchgroup=Delimiter start=/\s*=\s*/
|
||||||
|
\ end=/\s*;\s*/ contains=bipNumeric
|
||||||
|
syn region bipIPV contained matchgroup=Delimiter start=/\s*=\s*/
|
||||||
|
\ end=/\s*;\s*/ contains=bipIP
|
||||||
|
syn region bipNetmaskV contained matchgroup=Delimiter start=/\s*=\s*/
|
||||||
|
\ end=/\s*;\s*/ contains=bipNetmask
|
||||||
|
|
||||||
syn region bipMain start=/\%^/ end=/\%$/ contains=bipKeyword,bipNetwork,bipUser,bipComment,bipEndError
|
|
||||||
|
syn region bipMain start=/\%^/ end=/\%$/
|
||||||
|
\ contains=bipKeyword,bipNetwork,bipUser,bipComment,bipEndError
|
||||||
|
|
||||||
" Top level elements
|
" Top level elements
|
||||||
syn keyword bipKeyword contained nextgroup=bipBoolV client_side_ssl no_backlog always_backlog
|
syn keyword bipKeyword contained nextgroup=bipBoolV client_side_ssl
|
||||||
syn keyword bipKeyword contained nextgroup=bipStringV log_root log_format pid_file
|
\ no_backlog always_backlog
|
||||||
syn keyword bipKeyword contained nextgroup=bipNumericV port log_level backlog_lines log_sync_interval
|
syn keyword bipKeyword contained nextgroup=bipStringV log_root
|
||||||
|
\ log_format pid_file
|
||||||
|
syn keyword bipKeyword contained nextgroup=bipNumericV port log_level
|
||||||
|
\ backlog_lines log_sync_interval
|
||||||
syn keyword bipKeyword contained nextgroup=bipIPV ip
|
syn keyword bipKeyword contained nextgroup=bipIPV ip
|
||||||
|
|
||||||
" Network block (level 1)
|
" Network block (level 1)
|
||||||
syn region bipNetwork contained matchgroup=Macro start=/network\s*{\s*/ end=/};/
|
syn region bipNetwork contained matchgroup=Macro
|
||||||
\ contains=bipNKeyword,bipServer,bipComment,bipEndError,bipWhite
|
\ start=/network\s*{\s*/ end=/};/
|
||||||
|
\ contains=bipNKeyword,bipServer,bipComment,bipEndError,bipWhite
|
||||||
syn keyword bipNKeyword contained nextgroup=bipStringV name
|
syn keyword bipNKeyword contained nextgroup=bipStringV name
|
||||||
syn keyword bipNKeyword contained nextgroup=bipBoolV ssl
|
syn keyword bipNKeyword contained nextgroup=bipBoolV ssl
|
||||||
|
|
||||||
" User block (level 1)
|
" User block (level 1)
|
||||||
syn region bipUser contained matchgroup=Macro start=/user\s*{\s*/ end=/};/
|
syn region bipUser contained matchgroup=Macro start=/user\s*{\s*/
|
||||||
\ contains=bipUKeyword,bipConnection,bipComment,bipEndError,bipWhite
|
\ end=/};/
|
||||||
syn keyword bipUKeyword contained nextgroup=bipStringV nick user realname password username name
|
\ contains=bipUKeyword,bipConnection,bipComment,bipEndError,bipWhite
|
||||||
|
syn keyword bipUKeyword contained nextgroup=bipStringV password name
|
||||||
|
|
||||||
" Connection block (level 2)
|
" Connection block (level 2)
|
||||||
syn region bipConnection contained matchgroup=Macro start=/connection\s*{\s*/ end=/};/
|
syn region bipConnection contained matchgroup=Macro
|
||||||
\ contains=bipCoKeyword,bipChannel,bipComment,bipEndError,bipWhite
|
\ start=/connection\s*{\s*/ end=/};/
|
||||||
syn keyword bipCoKeyword contained nextgroup=bipBoolV ssl follow_nick ignore_first_nick
|
\ contains=bipCoKeyword,bipChannel,bipComment,bipEndError,bipWhite
|
||||||
syn keyword bipCoKeyword contained nextgroup=bipStringV name user network password vhost away_nick on_connect_send
|
syn keyword bipCoKeyword contained nextgroup=bipBoolV ssl follow_nick
|
||||||
|
\ ignore_first_nick
|
||||||
|
syn keyword bipCoKeyword contained nextgroup=bipStringV name user nick
|
||||||
|
\ network password vhost away_nick on_connect_send login realname
|
||||||
syn keyword bipCoKeyword contained nextgroup=bipNumericV source_port
|
syn keyword bipCoKeyword contained nextgroup=bipNumericV source_port
|
||||||
|
|
||||||
" Channel elements (lvl 2)
|
" Channel elements (lvl 2)
|
||||||
syn region bipChannel contained matchgroup=Macro start=/channel\s*{\s*/ end=/};/
|
syn region bipChannel contained matchgroup=Macro
|
||||||
\ contains=bipCKeyword,bipComment,bipEndError,bipWhite
|
\ start=/channel\s*{\s*/ end=/};/
|
||||||
|
\ contains=bipCKeyword,bipComment,bipEndError,bipWhite
|
||||||
syn keyword bipCKeyword contained nextgroup=bipStringV name key
|
syn keyword bipCKeyword contained nextgroup=bipStringV name key
|
||||||
|
|
||||||
" Server elements (lvl 2)
|
" Server elements (lvl 2)
|
||||||
syn region bipServer contained matchgroup=Macro start=/server\s*{\s*/ end=/};/
|
syn region bipServer contained matchgroup=Macro
|
||||||
\ contains=bipSKeyword,bipComment,bipEndError,bipWhite
|
\ start=/server\s*{\s*/ end=/};/
|
||||||
|
\ contains=bipSKeyword,bipComment,bipEndError,bipWhite
|
||||||
syn keyword bipSKeyword contained nextgroup=bipStringV host
|
syn keyword bipSKeyword contained nextgroup=bipStringV host
|
||||||
syn keyword bipSKeyword contained nextgroup=bipNumericV port
|
syn keyword bipSKeyword contained nextgroup=bipNumericV port
|
||||||
|
|
||||||
" Client elements (lvl 2)
|
" Client elements (lvl 2)
|
||||||
syn region bipClient contained matchgroup=Macro start=/client\s*{\s*/ end=/};/
|
"syn region bipClient contained matchgroup=Macro
|
||||||
\ contains=bipCLKeyword,bipComment,bipEndError,bipWhite
|
" \ start=/client\s*{\s*/ end=/};/
|
||||||
syn keyword bipCLKeyword contained nextgroup=bipStringV user password
|
" \ contains=bipCLKeyword,bipComment,bipEndError,bipWhite
|
||||||
|
"syn keyword bipCLKeyword contained nextgroup=bipStringV user password
|
||||||
|
|
||||||
" Synchronization
|
" Synchronization
|
||||||
syn sync match bipSyncNet grouphere bipNetwork /\_.\s*\(network\s*{\)\@=+/
|
syn sync match bipSyncNet grouphere bipNetwork /\_.\s*\(network\s*{\)\@=+/
|
||||||
syn sync match bipSyncUser grouphere bipUser /\_.\s*\(user\s*{\)\@=+/
|
syn sync match bipSyncUser grouphere bipUser /\_.\s*\(user\s*{\)\@=+/
|
||||||
|
|
||||||
" Define the default highlighting.
|
" Define the default highlighting.
|
||||||
" For version 5.7 and earlier: only when not done already
|
" For version 5.7 and earlier: only when not done already
|
||||||
|
@ -100,6 +120,7 @@ HiLink bipNetwork Error
|
||||||
HiLink bipChannel Error
|
HiLink bipChannel Error
|
||||||
HiLink bipServer Error
|
HiLink bipServer Error
|
||||||
HiLink bipUser Error
|
HiLink bipUser Error
|
||||||
|
HiLink bipConnection Error
|
||||||
|
|
||||||
" We do not HiLink bipWhite, siec we only want to ignore it.
|
" We do not HiLink bipWhite, siec we only want to ignore it.
|
||||||
HiLink bipKeyword Keyword
|
HiLink bipKeyword Keyword
|
||||||
|
|
Loading…
Reference in New Issue