aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/splint.vim
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-12-03 16:49:30 +0300
committerZyX <kp-pav@yandex.ru>2017-12-03 16:49:30 +0300
commitc49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57 (patch)
treeb7e59c416d1435725c65f8952b6e55c70544d97e /runtime/syntax/splint.vim
parent62108c3b0be46936c83f6d4c98b44ceb5e6f77fd (diff)
parent27a577586eace687c47e7398845178208cae524a (diff)
downloadrneovim-c49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57.tar.gz
rneovim-c49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57.tar.bz2
rneovim-c49e22d3964d6c7ae1c24e8ad01b5fec4ca40b57.zip
Merge branch 'master' into s-dash-stdin
Diffstat (limited to 'runtime/syntax/splint.vim')
-rw-r--r--runtime/syntax/splint.vim111
1 files changed, 47 insertions, 64 deletions
diff --git a/runtime/syntax/splint.vim b/runtime/syntax/splint.vim
index dc09d8b9d6..8eba57d288 100644
--- a/runtime/syntax/splint.vim
+++ b/runtime/syntax/splint.vim
@@ -15,20 +15,13 @@
" in your vimrc file or filetype.vim
-" For version 5.x: Clear all syntax items
-" For version 6.x: Quit when a syntax file was already loaded
-if version < 600
- syntax clear
-elseif exists("b:current_syntax")
+" quit when a syntax file was already loaded
+if exists("b:current_syntax")
finish
endif
" Read the C syntax to start with
-if version < 600
- so <sfile>:p:h/c.vim
-else
- runtime! syntax/c.vim
-endif
+runtime! syntax/c.vim
" FIXME: uses and changes several clusters defined in c.vim
@@ -199,61 +192,51 @@ syn cluster cPreProcGroup add=@splintAllStuff
syn cluster cMultiGroup add=@splintAllStuff
" 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_splint_syntax_inits")
- if version < 508
- let did_splint_syntax_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
-
- HiLink splintShortAnn splintAnnotation
- HiLink splintAnnotation Comment
- HiLink splintAnnError splintError
- HiLink splintAnnError2 splintError
- HiLink splintFlag SpecialComment
- HiLink splintGlobalFlag splintError
- HiLink splintSpecialAnnot splintAnnKey
- HiLink splintStateAnnot splintAnnKey
- HiLink splintSpecTag splintAnnKey
- HiLink splintModifies splintAnnKey
- HiLink splintRequires splintAnnKey
- HiLink splintGlobals splintAnnKey
- HiLink splintGlobitem Constant
- HiLink splintGlobannot splintAnnKey
- HiLink splintWarning splintAnnKey
- HiLink splintModitem Constant
- HiLink splintIter splintAnnKey
- HiLink splintConst splintAnnKey
- HiLink splintAlt splintAnnKey
- HiLink splintType splintAnnKey
- HiLink splintGlobalType splintAnnKey
- HiLink splintMemMgm splintAnnKey
- HiLink splintAlias splintAnnKey
- HiLink splintExposure splintAnnKey
- HiLink splintDefState splintAnnKey
- HiLink splintGlobState splintAnnKey
- HiLink splintNullState splintAnnKey
- HiLink splintNullPred splintAnnKey
- HiLink splintExit splintAnnKey
- HiLink splintExec splintAnnKey
- HiLink splintSef splintAnnKey
- HiLink splintDecl splintAnnKey
- HiLink splintCase splintAnnKey
- HiLink splintBreak splintAnnKey
- HiLink splintUnreach splintAnnKey
- HiLink splintSpecFunc splintAnnKey
- HiLink splintErrSupp splintAnnKey
- HiLink splintTypeAcc splintAnnKey
- HiLink splintMacro splintAnnKey
- HiLink splintSpecType splintAnnKey
- HiLink splintAnnKey Type
- HiLink splintError Error
+" Only when an item doesn't have highlighting yet
+
+hi def link splintShortAnn splintAnnotation
+hi def link splintAnnotation Comment
+hi def link splintAnnError splintError
+hi def link splintAnnError2 splintError
+hi def link splintFlag SpecialComment
+hi def link splintGlobalFlag splintError
+hi def link splintSpecialAnnot splintAnnKey
+hi def link splintStateAnnot splintAnnKey
+hi def link splintSpecTag splintAnnKey
+hi def link splintModifies splintAnnKey
+hi def link splintRequires splintAnnKey
+hi def link splintGlobals splintAnnKey
+hi def link splintGlobitem Constant
+hi def link splintGlobannot splintAnnKey
+hi def link splintWarning splintAnnKey
+hi def link splintModitem Constant
+hi def link splintIter splintAnnKey
+hi def link splintConst splintAnnKey
+hi def link splintAlt splintAnnKey
+hi def link splintType splintAnnKey
+hi def link splintGlobalType splintAnnKey
+hi def link splintMemMgm splintAnnKey
+hi def link splintAlias splintAnnKey
+hi def link splintExposure splintAnnKey
+hi def link splintDefState splintAnnKey
+hi def link splintGlobState splintAnnKey
+hi def link splintNullState splintAnnKey
+hi def link splintNullPred splintAnnKey
+hi def link splintExit splintAnnKey
+hi def link splintExec splintAnnKey
+hi def link splintSef splintAnnKey
+hi def link splintDecl splintAnnKey
+hi def link splintCase splintAnnKey
+hi def link splintBreak splintAnnKey
+hi def link splintUnreach splintAnnKey
+hi def link splintSpecFunc splintAnnKey
+hi def link splintErrSupp splintAnnKey
+hi def link splintTypeAcc splintAnnKey
+hi def link splintMacro splintAnnKey
+hi def link splintSpecType splintAnnKey
+hi def link splintAnnKey Type
+hi def link splintError Error
- delcommand HiLink
-endif
let b:current_syntax = "splint"