Initial shell-fm.rc vim syntax files.
[shell-fm.git] / scripts / vim / syntax / shell-fm-rc.vim
blob94f06dc26812c700f9b5ccc20e46c222c135af78
1 " vim syntax for shell-fm
3 if exists("b:current_syntax")
4     finish
5 endif
7 let b:current_syntax = "shell-fm-rc"
9 setlocal iskeyword+=-
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