diff options
author | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:03:25 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:03:25 +0200 |
commit | e573b3020c032400eed60b649a2cbf55266e6bb0 (patch) | |
tree | 8f572394ac8433529c7a8e70d160a2fbe8268b4e /vim/syntax/conffile.vim | |
parent | b8c667bd64b3edd38d56c63c5bd1db53a23b4499 (diff) | |
download | myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.gz myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.bz2 myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.zip |
Add current configurations from old repository
Diffstat (limited to 'vim/syntax/conffile.vim')
-rw-r--r-- | vim/syntax/conffile.vim | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/vim/syntax/conffile.vim b/vim/syntax/conffile.vim new file mode 100644 index 0000000..342d8b4 --- /dev/null +++ b/vim/syntax/conffile.vim @@ -0,0 +1,37 @@ +" Vim syntax file +" Language: C +" Maintainer: Bram Moolenaar <Bram@vim.org> +" Last Change: 2013 Jul 05 + +" Quit when a (custom) syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +left s:ft = matchstr(&ft, '^\([^.]\)\+') + +syn match sComment "#.*$" +syn keyword sKeywords typedef menu group endmenu endgroup type menu default menu visible nodefault +syn keyword sKWCondition dependency default +syn keyword sTypes int bool string hex float +syn region sString start=+\"+ skip=+\\.+ end=+\"+ + +syn keyword sKeywords output nextgroup=sOutput +syn region sOutput start="\w\+ \+{" end="}" contains=covariable,cocommand,coifcommand,CoNone +syn match sOutput "\w\+ \+\w\+" +syn match covariable "\$\w\+" contained +syn match cocommand "\$\(endif\|else\)" contained +syn region CoNone matchgroup=coifcommand start=+\$\(if\|elif\|ifdep\)(+ end=+)+ contains=covariable,sKWCondition contained + + +hi def link sComment Comment +hi def link sKeywords Precondit +hi def link sKWCondition sKeywords +hi def link sTypes Statement +hi def link sString String + +hi def link cocommand Macro +hi def link coifcommand Macro +hi def link covariable Identifier + +let b:current_syntax = "conffile" |