New c vim syntax file.

This commit is contained in:
2014-02-02 17:23:12 -05:00
parent 9d9a22df7b
commit a888047293

23
vim/after/syntax/c.vim Normal file
View File

@ -0,0 +1,23 @@
" ADAM C vim syntax after extensions
syn match cNamedConstant "\<[A-Z_][A-Z_0-9]*\>"
syn match cDebug "\<DEBUG[_0-9A-Z]*\>"
syn keyword cDebug SKIP DOIT
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_c_syn_inits")
if version < 508
let did_c_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink cNamedConstant NamedConstant
HiLink cDebug Debug
delcommand HiLink
endif