summaryrefslogtreecommitdiff
path: root/runtime/syntax/sed.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-30 23:26:57 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-30 23:26:57 +0200
commit89bcfda6834aba724d12554a34b9ed49f5789fd5 (patch)
tree2ffddcadaae9d061e38e17a09b2635ec199eb1dd /runtime/syntax/sed.vim
parent4792255eff03760dca0fd014616532e6d47db364 (diff)
downloadvim-git-89bcfda6834aba724d12554a34b9ed49f5789fd5.tar.gz
Updated runtime files. Remove version checks for Vim older than 6.0.
Diffstat (limited to 'runtime/syntax/sed.vim')
-rw-r--r--runtime/syntax/sed.vim74
1 files changed, 32 insertions, 42 deletions
diff --git a/runtime/syntax/sed.vim b/runtime/syntax/sed.vim
index 42ad6d8e6..13e0165df 100644
--- a/runtime/syntax/sed.vim
+++ b/runtime/syntax/sed.vim
@@ -4,11 +4,8 @@
" URL: http://folk.uio.no/hakonrk/vim/syntax/sed.vim
" Last Change: 2010 May 29
-" For version 5.x: Clear all syntax items
-" For version 6.x: Quit when a syntax file was already loaded
-if version < 600
- syn clear
-elseif exists("b:current_syntax")
+" quit when a syntax file was already loaded
+if exists("b:current_syntax")
finish
endif
@@ -75,45 +72,38 @@ syn region sedReplacement64 matchgroup=Special start=+@\(\\\\\|\\@\)*+ skip=+[^\
" (y) does not allow any flags. To save memory, I ignore this problem.
syn match sedST "[sy]" nextgroup=sedRegexp\d\+
-if version >= 508 || !exists("did_sed_syntax_inits")
- if version < 508
- let did_sed_syntax_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
+command -nargs=+ HiLink hi def link <args>
- HiLink sedAddress Macro
- HiLink sedACI NONE
- HiLink sedBranch Label
- HiLink sedComment Comment
- HiLink sedDelete Function
- HiLink sedError Error
- HiLink sedFlag Type
- HiLink sedFlagwrite Constant
- HiLink sedFunction Function
- HiLink sedLabel Label
- HiLink sedLineCont Special
- HiLink sedPutHoldspc Function
- HiLink sedReplaceMeta Special
- HiLink sedRegexpMeta Special
- HiLink sedRW Constant
- HiLink sedSemicolon Special
- HiLink sedST Function
- HiLink sedSpecial Special
- HiLink sedWhitespace NONE
- if exists("highlight_sedtabs")
- HiLink sedTab Todo
- endif
- let __sed_i = char2nr(" ") " ASCII: 32, EBCDIC: 64
- while __sed_i <= __sed_last
- exe "HiLink sedRegexp".__sed_i "Macro"
- exe "HiLink sedReplacement".__sed_i "NONE"
- let __sed_i = __sed_i + 1
- endwhile
-
- delcommand HiLink
+HiLink sedAddress Macro
+HiLink sedACI NONE
+HiLink sedBranch Label
+HiLink sedComment Comment
+HiLink sedDelete Function
+HiLink sedError Error
+HiLink sedFlag Type
+HiLink sedFlagwrite Constant
+HiLink sedFunction Function
+HiLink sedLabel Label
+HiLink sedLineCont Special
+HiLink sedPutHoldspc Function
+HiLink sedReplaceMeta Special
+HiLink sedRegexpMeta Special
+HiLink sedRW Constant
+HiLink sedSemicolon Special
+HiLink sedST Function
+HiLink sedSpecial Special
+HiLink sedWhitespace NONE
+if exists("highlight_sedtabs")
+HiLink sedTab Todo
endif
+let __sed_i = char2nr(" ") " ASCII: 32, EBCDIC: 64
+while __sed_i <= __sed_last
+exe "HiLink sedRegexp".__sed_i "Macro"
+exe "HiLink sedReplacement".__sed_i "NONE"
+let __sed_i = __sed_i + 1
+endwhile
+
+delcommand HiLink
unlet __sed_i __sed_last __sed_delimiter __sed_metacharacters