1 " vim syntax for shell-fm
3 if exists("b:current_syntax")
7 let b:current_syntax = "shell-fm-rc"
11 syn region ShellFMKey start=/^\(\s*[^#]\)\@=/ end=/=\@=/
12 \ contains=ShellFMKnownKey,ShellFMColorKey,ShellFMKeybindingKey
14 syn match ShellFMEquals /=/ skipwhite
15 \ nextgroup=ShellFMValue
17 syn keyword ShellFMKnownKey contained
18 \ username password default-radio np-file np-file-format np-cmd bind port extern
19 \ proxy expiry device title-format minimum delay-change screen-format
20 \ term-format download gap
22 syn match ShellFMColorKey /\<[atldsSALTR]-color\>/ contained
24 syn match ShellFMKeybindingKey /key0x[0-9a-fA-F][0-9a-fA-F]/ contained
26 syn match ShellFMValue /.*$/ contained
28 hi def link ShellFMKnownKey Keyword
29 hi def link ShellFMColorKey Keyword
30 hi def link ShellFMKeybindingKey Keyword
31 hi def link ShellFMValue Constant