diff options
Diffstat (limited to '3rd/vim/syntax/fluxapps.vim')
-rw-r--r-- | 3rd/vim/syntax/fluxapps.vim | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/3rd/vim/syntax/fluxapps.vim b/3rd/vim/syntax/fluxapps.vim new file mode 100644 index 0000000..bdada44 --- /dev/null +++ b/3rd/vim/syntax/fluxapps.vim | |||
@@ -0,0 +1,48 @@ | |||
1 | " File Name: fluxapps.vim | ||
2 | " Maintainer: M.Gumz aka ak|ra (#fluxbox on freenode) <akira at fluxbox.org> | ||
3 | " Original Date: 2004-02-06 | ||
4 | " Last Update: 2011-01-23 | ||
5 | " Description: fluxbox apps-file syntax | ||
6 | |||
7 | " quit when a syntax file was already loaded | ||
8 | if exists("b:current_syntax") | ||
9 | finish | ||
10 | endif | ||
11 | |||
12 | syntax case ignore | ||
13 | |||
14 | syntax keyword fbStartTag app startup transient group contained | ||
15 | syntax keyword fbEndTag end contained | ||
16 | |||
17 | syntax keyword fbRemember Workspace Jump Head Layer Dimensions | ||
18 | syntax keyword fbRemember Position Deco Shaded Tab | ||
19 | syntax keyword fbRemember FocusHidden IconHidden Hidden | ||
20 | syntax keyword fbRemember Sticky Minimized Maximized Fullscreen | ||
21 | syntax keyword fbRemember Close Alpha | ||
22 | |||
23 | syntax keyword fbValue UPPERRIGHT UPPERLEFT LOWERRIGHT LOWERLEFT WINCENTER CENTER | ||
24 | |||
25 | syntax keyword fbPropertyName Name Class Title Role Transient Maximize Minimize contained | ||
26 | syntax keyword fbPropertyName Shaded Stuck FocusHidden IconHidden Urgent contained | ||
27 | syntax keyword fbPropertyName Workspace WorkspaceName Head Layer contained | ||
28 | |||
29 | syntax match fbRegexp /[-0-9A-Za-z_\.]\+/ contained | ||
30 | syntax match fbSeparator /\>!\?=\</ contained | ||
31 | syntax match fbClientPattern /(\w\{-}.\{1,2}[-0-9A-Za-z_\.]\{-})/hs=s+1,he=e-1 contained contains=fbPropertyName,fbSeparator,fbRegexp skipwhite nextgroup=fbClientPattern | ||
32 | syntax match fbAppStart /\[\w\+\]/ contains=fbStartTag,fbRemember skipwhite nextgroup=fbClientPattern | ||
33 | syntax match fbAppEnd /\[\w\+\]$/ contains=fbEndTag | ||
34 | syntax match fbValue /{.*}/hs=s+1,he=e-1 | ||
35 | syntax match fbComment /[#].*$/ | ||
36 | |||
37 | highlight link fbStartTag Type | ||
38 | highlight link fbEndTag Type | ||
39 | highlight link fbRemember Macro | ||
40 | highlight link fbComment Comment | ||
41 | highlight link fbValue String | ||
42 | highlight link fbPropertyName Number | ||
43 | highlight link fbSeparator Function | ||
44 | highlight link fbRegexp Constant | ||
45 | highlight link fbClientPattern Error | ||
46 | syntax sync fromstart | ||
47 | |||
48 | let b:current_syntax = 'fluxapps' | ||