Debian Codegraph @

doc/extras/vim/syntax/clushconf.vim

raw symbols SCIP
1
2 " Vim syntax file for clush.conf
3
4 " For version 5.x: Clear all syntax items
5 " For version 6.x: Quit when a syntax file was already loaded
6 if version < 600
7 syntax clear
8 elseif exists("b:current_syntax")
9 finish
10 endif
11
12 " shut case off
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 " Define the default highlighting.
30 " For version 5.7 and earlier: only when not done already
31 " For version 5.8 and later: only when an item doesn't have highlighting yet
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 " vim:ts=8