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