summaryrefslogtreecommitdiff
path: root/runtime/syntax/slrnrc.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax/slrnrc.vim')
-rw-r--r--runtime/syntax/slrnrc.vim75
1 files changed, 32 insertions, 43 deletions
diff --git a/runtime/syntax/slrnrc.vim b/runtime/syntax/slrnrc.vim
index 038b62e16..a55439a20 100644
--- a/runtime/syntax/slrnrc.vim
+++ b/runtime/syntax/slrnrc.vim
@@ -3,11 +3,8 @@
" Maintainer: Preben 'Peppe' Guldberg <peppe-vim@wielders.org>
" Last Change: 23 April 2006
-" 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
@@ -150,44 +147,36 @@ syn match slrnrcSetkey "^\s*setkey\>" skipwhite nextgroup=slrnrcSetkeyArt,slrn
syn match slrnrcUnsetkey '^\s*unsetkey\s\+\("\)\=\(article\|group\|readline\)\>\1' skipwhite nextgroup=slrnrcKey contains=slrnrcSetkeyObj\(Str\)\=
" 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_slrnrc_syntax_inits")
- if version < 508
- let did_slrnrc_syntax_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
-
- HiLink slrnrcTodo Todo
- HiLink slrnrcSpaceError Error
- HiLink slrnrcNumber Number
- HiLink slrnrcSpecKey SpecialChar
- HiLink slrnrcKey String
- HiLink slrnrcSpecChar SpecialChar
- HiLink slrnrcString String
- HiLink slrnSlangPreCondit Special
- HiLink slrnrcComment Comment
- HiLink slrnrcVarInt Identifier
- HiLink slrnrcVarStr Identifier
- HiLink slrnrcCmd slrnrcSet
- HiLink slrnrcSet Operator
- HiLink slrnrcColor Keyword
- HiLink slrnrcColorObj Identifier
- HiLink slrnrcColorVal String
- HiLink slrnrcMono Keyword
- HiLink slrnrcMonoObj Identifier
- HiLink slrnrcMonoVal String
- HiLink slrnrcFunArt Macro
- HiLink slrnrcFunGroup Macro
- HiLink slrnrcFunRead Macro
- HiLink slrnrcSetkeyObj Identifier
- HiLink slrnrcSetkey Keyword
- HiLink slrnrcUnsetkey slrnrcSetkey
-
- delcommand HiLink
-endif
+" Only when an item doesn't have highlighting yet
+command -nargs=+ HiLink hi def link <args>
+
+HiLink slrnrcTodo Todo
+HiLink slrnrcSpaceError Error
+HiLink slrnrcNumber Number
+HiLink slrnrcSpecKey SpecialChar
+HiLink slrnrcKey String
+HiLink slrnrcSpecChar SpecialChar
+HiLink slrnrcString String
+HiLink slrnSlangPreCondit Special
+HiLink slrnrcComment Comment
+HiLink slrnrcVarInt Identifier
+HiLink slrnrcVarStr Identifier
+HiLink slrnrcCmd slrnrcSet
+HiLink slrnrcSet Operator
+HiLink slrnrcColor Keyword
+HiLink slrnrcColorObj Identifier
+HiLink slrnrcColorVal String
+HiLink slrnrcMono Keyword
+HiLink slrnrcMonoObj Identifier
+HiLink slrnrcMonoVal String
+HiLink slrnrcFunArt Macro
+HiLink slrnrcFunGroup Macro
+HiLink slrnrcFunRead Macro
+HiLink slrnrcSetkeyObj Identifier
+HiLink slrnrcSetkey Keyword
+HiLink slrnrcUnsetkey slrnrcSetkey
+
+delcommand HiLink
let b:current_syntax = "slrnrc"