diff options
-rw-r--r-- | 3rd/vim/Makefile | 3 | ||||
-rw-r--r-- | 3rd/vim/ftdetect/fluxbox.vim | 1 | ||||
-rw-r--r-- | 3rd/vim/syntax/fluxstyle.vim | 41 |
3 files changed, 44 insertions, 1 deletions
diff --git a/3rd/vim/Makefile b/3rd/vim/Makefile index 832cc82..8d133ba 100644 --- a/3rd/vim/Makefile +++ b/3rd/vim/Makefile | |||
@@ -1,7 +1,8 @@ | |||
1 | PLUGIN = fluxbox | 1 | PLUGIN = fluxbox |
2 | SOURCE = syntax/fluxapps.vim \ | 2 | SOURCE = syntax/fluxapps.vim \ |
3 | syntax/fluxkeys.vim \ | 3 | syntax/fluxkeys.vim \ |
4 | syntax/fluxmenu.vim | 4 | syntax/fluxmenu.vim \ |
5 | syntax/fluxstyle.vim | ||
5 | 6 | ||
6 | ${PLUGIN}.vba: $(SOURCE) compile_vba.sh Makefile | 7 | ${PLUGIN}.vba: $(SOURCE) compile_vba.sh Makefile |
7 | sh ./compile_vba.sh $(SOURCE) > $@ | 8 | sh ./compile_vba.sh $(SOURCE) > $@ |
diff --git a/3rd/vim/ftdetect/fluxbox.vim b/3rd/vim/ftdetect/fluxbox.vim index 55a584d..2cdb8e9 100644 --- a/3rd/vim/ftdetect/fluxbox.vim +++ b/3rd/vim/ftdetect/fluxbox.vim | |||
@@ -3,4 +3,5 @@ if has("autocmd") | |||
3 | autocmd BufNewFile,BufRead */.fluxbox/apps setf fluxapps | 3 | autocmd BufNewFile,BufRead */.fluxbox/apps setf fluxapps |
4 | autocmd BufNewFile,BufRead */.fluxbox/keys setf fluxkeys | 4 | autocmd BufNewFile,BufRead */.fluxbox/keys setf fluxkeys |
5 | autocmd BufNewFile,BufRead */.fluxbox/menu setf fluxmenu | 5 | autocmd BufNewFile,BufRead */.fluxbox/menu setf fluxmenu |
6 | autocmd BufNewfile,BufRead */.fluxbox/styles/* setf fluxstyle | ||
6 | endif | 7 | endif |
diff --git a/3rd/vim/syntax/fluxstyle.vim b/3rd/vim/syntax/fluxstyle.vim new file mode 100644 index 0000000..29ac1ab --- /dev/null +++ b/3rd/vim/syntax/fluxstyle.vim | |||
@@ -0,0 +1,41 @@ | |||
1 | " File Name: fluxstyle.vim | ||
2 | " Maintainer: Jason Carpenter <argonaut.linux@gmail.com> | ||
3 | " Original Date: June 30, 2019 | ||
4 | " Last Update: June 30, 2019 | ||
5 | " Description: fluxbox style syntax file | ||
6 | |||
7 | " Quit when a syntax file was already loaded | ||
8 | if exists("b:current_syntax") | ||
9 | finish | ||
10 | endif | ||
11 | |||
12 | " turn case on | ||
13 | syn case match | ||
14 | |||
15 | syn match fbStyleLabel +^[^:]\{-}:+he=e-1 contains=fbStylePunct,fbStyleSpecial,fbStyleLineEnd | ||
16 | |||
17 | syn region fbStyleValue keepend start=+:+lc=1 skip=+\\+ end=+$+ contains=fbStyleSpecial,fbStyleLabel,fbStyleLineEnd | ||
18 | |||
19 | syn match fbStyleSpecial contained +#override+ | ||
20 | syn match fbStyleSpecial contained +#augment+ | ||
21 | syn match fbStylePunct contained +[.*:]+ | ||
22 | syn match fbStyleLineEnd contained +\\$+ | ||
23 | syn match fbStyleLineEnd contained +\\n\\$+ | ||
24 | syn match fbStyleLineEnd contained +\\n$+ | ||
25 | |||
26 | syn match fbStyleComment "^!.*$" contains=fbStyleTodo,@Spell | ||
27 | syn region fbStyleComment start="/\*" end="\*/" contains=fsStyleTodo,@Spell | ||
28 | |||
29 | syn keyword fbStyleTodo contained TODO FIXME XXX display | ||
30 | |||
31 | highlight link fbStyleLabel Type | ||
32 | highlight link fbStyleValue Constant | ||
33 | highlight link fbStyleComment Comment | ||
34 | highlight link fbStyleSpecial Statement | ||
35 | highlight link fbStylePunct Normal | ||
36 | highlight link fbStyleLineEnd Special | ||
37 | highlight link fbStyleTodo Todo | ||
38 | |||
39 | syntax sync fromstart | ||
40 | |||
41 | let b:current_syntax = 'fluxstyle' | ||