diff options
Diffstat (limited to '3rd/vim/syntax')
-rw-r--r-- | 3rd/vim/syntax/fluxstyle.vim | 41 |
1 files changed, 41 insertions, 0 deletions
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' | ||