diff options
Diffstat (limited to '3rd/vim/syntax/fluxmenu.vim')
-rw-r--r-- | 3rd/vim/syntax/fluxmenu.vim | 34 |
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 | ||
8 | if exists("b:current_syntax") | ||
9 | finish | ||
10 | endif | ||
11 | |||
12 | syntax keyword fluxboxMenu submenu end begin workspaces config stylesmenu separator contained | ||
13 | syntax keyword fluxboxAction exec stylesdir exit restart reconfig nop style contained | ||
14 | syntax keyword fluxboxPreProc include commanddialog contained | ||
15 | syntax region fluxboxType matchgroup=fbSqBrackets start=/\[/ end=/\]/ contains=fluxboxAction,fluxboxMenu,fluxboxPreProc nextgroup=fluxboxHeader skipwhite oneline | ||
16 | syntax region fluxboxHeader matchgroup=fbRdBrackets start=/(/ end=/)/ contained nextgroup=fluxboxCommand skipwhite oneline | ||
17 | syntax region fluxboxCommand matchgroup=fbClBrackets start=/{/ end=/}/ contained oneline contains=fluxboxParam skipwhite nextgroup=fluxboxIcon | ||
18 | syntax region fluxboxIcon matchgroup=fbIcBrackets start=/</ end=/>/ contained oneline | ||
19 | syntax region fluxboxFold fold start=/\[submenu\]/ start=/\[begin\]/ end=/\[end\]/ contains=TOP keepend extend transparent | ||
20 | syntax match fluxboxComment /#.*$/ | ||
21 | syntax match fluxboxParam / [^}]*/ contained display | ||
22 | |||
23 | highlight link fluxboxMenu Special | ||
24 | highlight link fluxboxAction Identifier | ||
25 | highlight link fluxboxHeader Type | ||
26 | highlight link fluxboxCommand Statement | ||
27 | highlight link fluxboxPreProc PreProc | ||
28 | highlight link fluxboxComment Comment | ||
29 | highlight link fluxboxParam Constant | ||
30 | highlight link fluxboxIcon Number | ||
31 | setlocal foldmethod=syntax | ||
32 | syntax sync fromstart | ||
33 | |||
34 | let b:current_syntax = 'fluxmenu' | ||