| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
if version < 600 |
| 7 |
syntax clear |
| 8 |
elseif exists("b:current_syntax") |
| 9 |
finish |
| 10 |
endif |
| 11 |
|
| 12 |
|
| 13 |
syn case ignore |
| 14 |
|
| 15 |
syn match clushComment "#.*$" |
| 16 |
syn match clushComment ";.*$" |
| 17 |
syn match clushHeader "\[\w\+\]$" |
| 18 |
syn match clushHeaderMode "\[mode:\S\+\]$" |
| 19 |
syn match confDirGroup "^confdir\(:\|=\).*$" contains=confDirKeys,confDirVars |
| 20 |
syn match confDirVars "$CFGDIR" contained |
| 21 |
syn match confDirKeys "^\w\+\(:\|=\)"me=e-1 contained |
| 22 |
|
| 23 |
syn keyword clushKeys fanout command_timeout connect_timeout color fd_max history_size node_count maxrc verbosity |
| 24 |
syn keyword clushKeys ssh_user ssh_path ssh_options |
| 25 |
syn keyword clushKeys scp_user scp_path scp_options |
| 26 |
syn keyword clushKeys rsh_path rcp_path rcp_options |
| 27 |
syn keyword clushKeys command_prefix password_prompt |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
if version >= 508 || !exists("did_clushconf_syntax_inits") |
| 33 |
if version < 508 |
| 34 |
let did_clushconf_syntax_inits = 1 |
| 35 |
command -nargs=+ HiLink hi link <args> |
| 36 |
else |
| 37 |
command -nargs=+ HiLink hi def link <args> |
| 38 |
endif |
| 39 |
|
| 40 |
HiLink clushHeader Special |
| 41 |
HiLink clushHeaderMode Constant |
| 42 |
HiLink clushComment Comment |
| 43 |
HiLink clushLabel Type |
| 44 |
HiLink clushKeys Identifier |
| 45 |
HiLink confDirKeys Identifier |
| 46 |
HiLink confDirVars Keyword |
| 47 |
|
| 48 |
delcommand HiLink |
| 49 |
endif |
| 50 |
|
| 51 |
let b:current_syntax = "clushconf" |
| 52 |
|
| 53 |
|