aboutsummaryrefslogtreecommitdiff
path: root/3rd/vim/syntax/fluxmenu.vim
diff options
context:
space:
mode:
Diffstat (limited to '3rd/vim/syntax/fluxmenu.vim')
-rw-r--r--3rd/vim/syntax/fluxmenu.vim34
1 files changed, 34 insertions, 0 deletions
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'