aboutsummaryrefslogtreecommitdiff
path: root/3rd/vim
diff options
context:
space:
mode:
authorboweevil <argonaut.linux@gmail.com>2019-07-01 02:27:19 (GMT)
committerMathias Gumz <mg@dwarf.bommels.local>2019-07-21 13:21:08 (GMT)
commit38307ebfd89e16a72cd9cbc917f457c993139e68 (patch)
tree09bc33610b43b3585aecb5c347a8b7e9bc4b65a8 /3rd/vim
parent368e2935e20b4148c91f4242bee39bb02cd296ae (diff)
downloadfluxbox-38307ebfd89e16a72cd9cbc917f457c993139e68.zip
fluxbox-38307ebfd89e16a72cd9cbc917f457c993139e68.tar.bz2
added 3rd/vim/syntax/fluxstyle.vim
Diffstat (limited to '3rd/vim')
-rw-r--r--3rd/vim/Makefile3
-rw-r--r--3rd/vim/ftdetect/fluxbox.vim1
-rw-r--r--3rd/vim/syntax/fluxstyle.vim41
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 @@
1PLUGIN = fluxbox 1PLUGIN = fluxbox
2SOURCE = syntax/fluxapps.vim \ 2SOURCE = 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
6endif 7endif
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'