aboutsummaryrefslogtreecommitdiff
path: root/3rd
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2011-01-23 21:22:44 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2011-01-23 21:22:44 (GMT)
commit8662da179070aef4b888395a791f08c242a911ad (patch)
tree067fd17b8bbf38f16148e07310c9d8bdfb2ebded /3rd
parente38994ae727a3bc7fa77f45d5bdbb97dffcbd1e5 (diff)
downloadfluxbox-8662da179070aef4b888395a791f08c242a911ad.zip
fluxbox-8662da179070aef4b888395a791f08c242a911ad.tar.bz2
added 3rd/ party stuff, vim related files for now
Diffstat (limited to '3rd')
-rw-r--r--3rd/vim/syntax/fluxapps.vim48
-rw-r--r--3rd/vim/syntax/fluxkeys.vim133
-rw-r--r--3rd/vim/syntax/fluxmenu.vim34
3 files changed, 215 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'
diff --git a/3rd/vim/syntax/fluxkeys.vim b/3rd/vim/syntax/fluxkeys.vim
new file mode 100644
index 0000000..3175b56
--- /dev/null
+++ b/3rd/vim/syntax/fluxkeys.vim
@@ -0,0 +1,133 @@
1" File Name: fluxkeys.vim
2" Maintainer: Mathias Gumz <akira at fluxbox dot org>
3" Original Date: 2004-01-27
4" Changelog:
5" * 2010-09-19 update from Segaja
6" * 2009-11-01 update to current fluxbox syntax (thanx to Harry Bullen)
7" * 2005-06-24
8" Description: fluxbox key syntax
9"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
10
11" quit when a syntax file was already loaded
12if exists("b:current_syntax")
13 finish
14endif
15
16syntax case ignore
17
18" COMMANDS
19
20" Mouse Commands
21syntax keyword fbActionNames StartMoving StartResizing StartTabbing contained
22
23" Window Commands
24syntax keyword fbActionNames Minimize MinimizeWindow Iconify contained
25syntax keyword fbActionNames Maximize MaximizeWindow MaximizeHorizontal MaximizeVertical Fullscreen contained
26syntax keyword fbActionNames Raise Lower RaiseLayer LowerLayer SetLayer contained
27syntax keyword fbActionNames Close Kill KillWindow contained
28syntax keyword fbActionNames Shade ShadeWindow ShadeOn ShadeOff contained
29syntax keyword fbActionNames Stick StickWindow contained
30syntax keyword fbActionNames SetDecor ToggleDecor contained
31syntax keyword fbActionNames NextTab PrevTab Tab MoveTabRight MoveTabLeft DetachClient contained
32syntax keyword fbActionNames ResizeTo Resize ResizeHorizontal ResizeVertical contained
33syntax keyword fbActionNames MoveTo Move MoveRight MoveLeft MoveUp MoveDown contained
34syntax keyword fbActionNames TakeToWorkspace SendToWorkspace contained
35syntax keyword fbActionNames TakeToNextWorkspace TakeToPrevWorkspace SendToNextWorkspace SendToPrevWorkspace contained
36syntax keyword fbActionNames SetAlpha contained
37syntax keyword fbActionNames SetHead SendToNexthead SendToPrevHead contained
38syntax keyword fbActionNames ActivateTab contained
39
40" Workspace Commands
41syntax keyword fbActionNames AddWorkspace RemoveLastWorkspace contained
42syntax keyword fbActionNames NextWorkspace PrevWorkspace RightWorkspace LeftWorkspace Workspace contained
43syntax keyword fbActionNames NextWindow PrevWindow Next\Group PrevGroup GotoWindow contained
44syntax keyword fbActionNames Activate Focus Attach FocusLeft FocusRight FocusUp FocusDown contained
45syntax keyword fbActionNames ArrangeWindows ShowDesktop Deiconify CloseAllWindows contained
46syntax keyword fbActionNames SetWorkspaceName SetWorkspaceNameDialog contained
47
48" Menu Commands
49syntax keyword fbActionNames RootMenu WorkspaceMenu WindowMenu ClientMenu CustomMenu HideMenus contained
50
51" Window Manager Commands
52syntax keyword fbActionNames Restart Quit Exit contained
53syntax keyword fbActionNames Reconfig Reconfigure contained
54syntax keyword fbActionNames SetStyle ReloadStyle contained
55syntax keyword fbActionNames ExecCommand Exec Execute CommandDialog contained
56syntax keyword fbActionNames SetEnv Export contained
57syntax keyword fbActionNames SetResourceValue SetResourceValueDialog contained
58
59" Special Commands
60syntax keyword fbActionNames MacroCmd Delay ToggleCmd contained
61syntax keyword fbActionNames BindKey KeyMode contained
62syntax keyword fbActionNames ForEach Map contained
63syntax keyword fbActionNames If Cond contained
64
65
66" MODIFIERS
67syntax keyword fbModifierNames Control Shift Double contained
68syntax keyword fbModifierNames Mod1 Mod2 Mod3 Mod4 Mod5 contained
69syntax keyword fbModifierNames None contained
70syntax keyword fbModifierNames OnDesktop OnToolbar OnTitlebar OnWindow OnWindowBorder OnLeftGrip OnRightGrip contained
71
72" reference corners
73syntax keyword fbParameterNames UpperLeft Upper UpperRight contained
74syntax keyword fbParameterNames Left Right contained
75syntax keyword fbParameterNames LowerLeft Lower LowerRight contained
76" deiconfiy
77syntax keyword fbParameterNames LastWorkspace Last All AllWorkspace OriginQuiet contained
78
79" parameter numbers
80syntax match fbParameterNumber /\([+-]\)*\d\+/ contained
81
82
83"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
84" match the right parts
85syntax match fbParameter /.*/ contained contains=fbParameterNames,fbParameterNumber
86
87" anything with an unknown ActionName is colored Error
88syntax match fbAction /\w\+/ contained contains=fbActionNames nextgroup=fbParameter
89syntax match fbExecAction /Exec\(ute\|Command\)*\s\+.*$/ contained contains=fbActionNames
90
91" stuff for macro and toggle magic
92syntax match fbMTParameter /.\{-\}}/ contained contains=fbParameterNames,fbParameterNumber
93syntax match fbMTAction /\w\+/ contained contains=fbActionNames nextgroup=fbMTParameter
94syntax region fbMTExecAction start=/{Exec\(ute\|Command\)*\s\+/hs=s+1 end=/.\{-}}/he=e-1 contained contains=fbActionNames oneline
95
96" macro magic
97syntax region fbMacro start=/{/ end=/.\{-}}/ contained contains=fbMTExecAction,fbMTAction oneline nextgroup=fbMacro skipwhite
98syntax match fbMacroStart /MacroCmd\s\+/ contained contains=fbActionNames nextgroup=fbMacro
99
100" toggle magic
101syntax match fbToggleError /.$/ contained skipwhite
102syntax match fbToggle2 /{.\{-}}/ contained contains=fbMTExecAction,fbMTAction nextgroup=fbToggleError skipwhite
103syntax match fbToggle1 /{.\{-}}/ contained contains=fbMTExecAction,fbMTAction nextgroup=fbToggle2 skipwhite
104syntax match fbToggleStart /ToggleCmd\s\+/ contained contains=fbActionNames nextgroup=fbToggle1
105
106" anything but a valid modifier is colored Error
107syntax match fbKeyStart /^\w\+/ contained contains=fbModifierNames
108
109" anything but a comment or a valid key line is colored Error
110syntax match fbNoKeyline /.\+$/ display skipwhite
111syntax region fbKeys start=/\w\+/ end=/.\{-}:/he=e-1 contains=fbKeyStart,fbModifierNames nextgroup=fbMacroStart,fbToggleStart,fbExecAction,fbAction oneline
112syntax match fbComment /[#!].*$/ display
113
114"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
115" coloring
116highlight link fbNoKeyline Error
117highlight link fbAction Error
118highlight link fbKeyStart Error
119highlight link fbToggleError Error
120
121highlight link fbComment Comment
122highlight link fbKeys Number
123highlight link fbExecAction String
124highlight link fbMTExecAction String
125highlight link fbActionNames Type
126highlight link fbModifierNames Macro
127highlight link fbParameter Number
128highlight link fbParameterNames Function
129highlight link fbParameterNumber Conditional
130
131syntax sync fromstart
132
133let b:current_syntax = 'fluxkeys'
diff --git a/3rd/vim/syntax/fluxmenu.vim b/3rd/vim/syntax/fluxmenu.vim
new file mode 100644
index 0000000..2cea192
--- /dev/null
+++ b/3rd/vim/syntax/fluxmenu.vim
@@ -0,0 +1,34 @@
1" File Name: fluxbox.vim
2" Maintainer: Moshe Kaminsky <kaminsky@math.huji.ac.il>
3" Original Date: May 23, 2002
4" Last Update: September 29, 2003
5" Description: fluxbox menu syntax file
6
7" Quit when a syntax file was already loaded
8if exists("b:current_syntax")
9 finish
10endif
11
12syntax keyword fluxboxMenu submenu end begin workspaces config stylesmenu separator contained
13syntax keyword fluxboxAction exec stylesdir exit restart reconfig nop style contained
14syntax keyword fluxboxPreProc include commanddialog contained
15syntax region fluxboxType matchgroup=fbSqBrackets start=/\[/ end=/\]/ contains=fluxboxAction,fluxboxMenu,fluxboxPreProc nextgroup=fluxboxHeader skipwhite oneline
16syntax region fluxboxHeader matchgroup=fbRdBrackets start=/(/ end=/)/ contained nextgroup=fluxboxCommand skipwhite oneline
17syntax region fluxboxCommand matchgroup=fbClBrackets start=/{/ end=/}/ contained oneline contains=fluxboxParam skipwhite nextgroup=fluxboxIcon
18syntax region fluxboxIcon matchgroup=fbIcBrackets start=/</ end=/>/ contained oneline
19syntax region fluxboxFold fold start=/\[submenu\]/ start=/\[begin\]/ end=/\[end\]/ contains=TOP keepend extend transparent
20syntax match fluxboxComment /#.*$/
21syntax match fluxboxParam / [^}]*/ contained display
22
23highlight link fluxboxMenu Special
24highlight link fluxboxAction Identifier
25highlight link fluxboxHeader Type
26highlight link fluxboxCommand Statement
27highlight link fluxboxPreProc PreProc
28highlight link fluxboxComment Comment
29highlight link fluxboxParam Constant
30highlight link fluxboxIcon Number
31setlocal foldmethod=syntax
32syntax sync fromstart
33
34let b:current_syntax = 'fluxmenu'