aboutsummaryrefslogtreecommitdiff
path: root/3rd/vim/syntax
diff options
context:
space:
mode:
Diffstat (limited to '3rd/vim/syntax')
-rw-r--r--3rd/vim/syntax/fluxstyle.vim41
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
8if exists("b:current_syntax")
9 finish
10endif
11
12" turn case on
13syn case match
14
15syn match fbStyleLabel +^[^:]\{-}:+he=e-1 contains=fbStylePunct,fbStyleSpecial,fbStyleLineEnd
16
17syn region fbStyleValue keepend start=+:+lc=1 skip=+\\+ end=+$+ contains=fbStyleSpecial,fbStyleLabel,fbStyleLineEnd
18
19syn match fbStyleSpecial contained +#override+
20syn match fbStyleSpecial contained +#augment+
21syn match fbStylePunct contained +[.*:]+
22syn match fbStyleLineEnd contained +\\$+
23syn match fbStyleLineEnd contained +\\n\\$+
24syn match fbStyleLineEnd contained +\\n$+
25
26syn match fbStyleComment "^!.*$" contains=fbStyleTodo,@Spell
27syn region fbStyleComment start="/\*" end="\*/" contains=fsStyleTodo,@Spell
28
29syn keyword fbStyleTodo contained TODO FIXME XXX display
30
31highlight link fbStyleLabel Type
32highlight link fbStyleValue Constant
33highlight link fbStyleComment Comment
34highlight link fbStyleSpecial Statement
35highlight link fbStylePunct Normal
36highlight link fbStyleLineEnd Special
37highlight link fbStyleTodo Todo
38
39syntax sync fromstart
40
41let b:current_syntax = 'fluxstyle'