File: shell-fm-rc.vim

package info (click to toggle)
shell-fm 0.7%2Bgit20100414-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 444 kB
  • ctags: 305
  • sloc: ansic: 4,422; makefile: 135; python: 80; haskell: 76; sh: 67; perl: 19
file content (35 lines) | stat: -rw-r--r-- 1,091 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
" vim syntax for shell-fm

if exists("b:current_syntax")
    finish
endif

let b:current_syntax = "shell-fm-rc"

setlocal iskeyword+=-

syn region ShellFMKey start=/^\(\s*[^#]\)\@=/ end=/=\@=/ 
            \ contains=ShellFMKnownKey,ShellFMColorKey,ShellFMKeybindingKey

syn match ShellFMEquals /=/ skipwhite
            \ nextgroup=ShellFMValue

syn keyword ShellFMKnownKey contained
            \ username password default-radio np-file np-file-format np-cmd
            \ pp-cmd bind port extern proxy expiry device title-format minimum
            \ delay-change screen-format term-format download gap discovery
            \ preview-format screen-format term-format unix daemon

syn match ShellFMColorKey /\<[atldsSALTR]-color\>/ contained

syn match ShellFMKeybindingKey /key0x[0-9a-fA-F][0-9a-fA-F]/ contained

syn match ShellFMValue /.*$/ contained 

syn match ShellFMComment "#.*" contains=perlTodo

hi def link ShellFMKnownKey Keyword
hi def link ShellFMColorKey Keyword
hi def link ShellFMKeybindingKey Keyword
hi def link ShellFMValue Constant
hi def link ShellFMComment Comment