From 38307ebfd89e16a72cd9cbc917f457c993139e68 Mon Sep 17 00:00:00 2001 From: boweevil Date: Sun, 30 Jun 2019 22:27:19 -0400 Subject: added 3rd/vim/syntax/fluxstyle.vim --- 3rd/vim/Makefile | 3 ++- 3rd/vim/ftdetect/fluxbox.vim | 1 + 3rd/vim/syntax/fluxstyle.vim | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 3rd/vim/syntax/fluxstyle.vim 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 @@ PLUGIN = fluxbox SOURCE = syntax/fluxapps.vim \ syntax/fluxkeys.vim \ - syntax/fluxmenu.vim + syntax/fluxmenu.vim \ + syntax/fluxstyle.vim ${PLUGIN}.vba: $(SOURCE) compile_vba.sh Makefile 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") autocmd BufNewFile,BufRead */.fluxbox/apps setf fluxapps autocmd BufNewFile,BufRead */.fluxbox/keys setf fluxkeys autocmd BufNewFile,BufRead */.fluxbox/menu setf fluxmenu + autocmd BufNewfile,BufRead */.fluxbox/styles/* setf fluxstyle 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 @@ +" File Name: fluxstyle.vim +" Maintainer: Jason Carpenter +" Original Date: June 30, 2019 +" Last Update: June 30, 2019 +" Description: fluxbox style syntax file + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" turn case on +syn case match + +syn match fbStyleLabel +^[^:]\{-}:+he=e-1 contains=fbStylePunct,fbStyleSpecial,fbStyleLineEnd + +syn region fbStyleValue keepend start=+:+lc=1 skip=+\\+ end=+$+ contains=fbStyleSpecial,fbStyleLabel,fbStyleLineEnd + +syn match fbStyleSpecial contained +#override+ +syn match fbStyleSpecial contained +#augment+ +syn match fbStylePunct contained +[.*:]+ +syn match fbStyleLineEnd contained +\\$+ +syn match fbStyleLineEnd contained +\\n\\$+ +syn match fbStyleLineEnd contained +\\n$+ + +syn match fbStyleComment "^!.*$" contains=fbStyleTodo,@Spell +syn region fbStyleComment start="/\*" end="\*/" contains=fsStyleTodo,@Spell + +syn keyword fbStyleTodo contained TODO FIXME XXX display + +highlight link fbStyleLabel Type +highlight link fbStyleValue Constant +highlight link fbStyleComment Comment +highlight link fbStyleSpecial Statement +highlight link fbStylePunct Normal +highlight link fbStyleLineEnd Special +highlight link fbStyleTodo Todo + +syntax sync fromstart + +let b:current_syntax = 'fluxstyle' -- cgit v0.11.2