aboutsummaryrefslogtreecommitdiff
path: root/3rd/vim/syntax/fluxapps.vim
diff options
context:
space:
mode:
Diffstat (limited to '3rd/vim/syntax/fluxapps.vim')
-rw-r--r--3rd/vim/syntax/fluxapps.vim48
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
8if exists("b:current_syntax")
9 finish
10endif
11
12syntax case ignore
13
14syntax keyword fbStartTag app startup transient group contained
15syntax keyword fbEndTag end contained
16
17syntax keyword fbRemember Workspace Jump Head Layer Dimensions
18syntax keyword fbRemember Position Deco Shaded Tab
19syntax keyword fbRemember FocusHidden IconHidden Hidden
20syntax keyword fbRemember Sticky Minimized Maximized Fullscreen
21syntax keyword fbRemember Close Alpha
22
23syntax keyword fbValue UPPERRIGHT UPPERLEFT LOWERRIGHT LOWERLEFT WINCENTER CENTER
24
25syntax keyword fbPropertyName Name Class Title Role Transient Maximize Minimize contained
26syntax keyword fbPropertyName Shaded Stuck FocusHidden IconHidden Urgent contained
27syntax keyword fbPropertyName Workspace WorkspaceName Head Layer contained
28
29syntax match fbRegexp /[-0-9A-Za-z_\.]\+/ contained
30syntax match fbSeparator /\>!\?=\</ contained
31syntax match fbClientPattern /(\w\{-}.\{1,2}[-0-9A-Za-z_\.]\{-})/hs=s+1,he=e-1 contained contains=fbPropertyName,fbSeparator,fbRegexp skipwhite nextgroup=fbClientPattern
32syntax match fbAppStart /\[\w\+\]/ contains=fbStartTag,fbRemember skipwhite nextgroup=fbClientPattern
33syntax match fbAppEnd /\[\w\+\]$/ contains=fbEndTag
34syntax match fbValue /{.*}/hs=s+1,he=e-1
35syntax match fbComment /[#].*$/
36
37highlight link fbStartTag Type
38highlight link fbEndTag Type
39highlight link fbRemember Macro
40highlight link fbComment Comment
41highlight link fbValue String
42highlight link fbPropertyName Number
43highlight link fbSeparator Function
44highlight link fbRegexp Constant
45highlight link fbClientPattern Error
46syntax sync fromstart
47
48let b:current_syntax = 'fluxapps'