comparison runtime/syntax/sed.vim @ 10051:46763b01cd9a

commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 31 22:22:10 2016 +0200 Updated runtime files. Remove HiLink commands.
author Christian Brabandt <cb@256bit.org>
date Wed, 31 Aug 2016 22:30:08 +0200
parents 43efa4f5a8ea
children 3295247d97a5
comparison
equal deleted inserted replaced
10050:b702edc4b2b8 10051:46763b01cd9a
70 " syntax for the transform command, I use the same pattern matching 70 " syntax for the transform command, I use the same pattern matching
71 " for both commands. There is one problem -- the transform command 71 " for both commands. There is one problem -- the transform command
72 " (y) does not allow any flags. To save memory, I ignore this problem. 72 " (y) does not allow any flags. To save memory, I ignore this problem.
73 syn match sedST "[sy]" nextgroup=sedRegexp\d\+ 73 syn match sedST "[sy]" nextgroup=sedRegexp\d\+
74 74
75 command -nargs=+ HiLink hi def link <args>
76 75
77 HiLink sedAddress Macro 76 hi def link sedAddress Macro
78 HiLink sedACI NONE 77 hi def link sedACI NONE
79 HiLink sedBranch Label 78 hi def link sedBranch Label
80 HiLink sedComment Comment 79 hi def link sedComment Comment
81 HiLink sedDelete Function 80 hi def link sedDelete Function
82 HiLink sedError Error 81 hi def link sedError Error
83 HiLink sedFlag Type 82 hi def link sedFlag Type
84 HiLink sedFlagwrite Constant 83 hi def link sedFlagwrite Constant
85 HiLink sedFunction Function 84 hi def link sedFunction Function
86 HiLink sedLabel Label 85 hi def link sedLabel Label
87 HiLink sedLineCont Special 86 hi def link sedLineCont Special
88 HiLink sedPutHoldspc Function 87 hi def link sedPutHoldspc Function
89 HiLink sedReplaceMeta Special 88 hi def link sedReplaceMeta Special
90 HiLink sedRegexpMeta Special 89 hi def link sedRegexpMeta Special
91 HiLink sedRW Constant 90 hi def link sedRW Constant
92 HiLink sedSemicolon Special 91 hi def link sedSemicolon Special
93 HiLink sedST Function 92 hi def link sedST Function
94 HiLink sedSpecial Special 93 hi def link sedSpecial Special
95 HiLink sedWhitespace NONE 94 hi def link sedWhitespace NONE
96 if exists("highlight_sedtabs") 95 if exists("highlight_sedtabs")
97 HiLink sedTab Todo 96 hi def link sedTab Todo
98 endif 97 endif
99 let __sed_i = char2nr(" ") " ASCII: 32, EBCDIC: 64 98 let __sed_i = char2nr(" ") " ASCII: 32, EBCDIC: 64
100 while __sed_i <= __sed_last 99 while __sed_i <= __sed_last
101 exe "HiLink sedRegexp".__sed_i "Macro" 100 exe "hi def link sedRegexp".__sed_i "Macro"
102 exe "HiLink sedReplacement".__sed_i "NONE" 101 exe "hi def link sedReplacement".__sed_i "NONE"
103 let __sed_i = __sed_i + 1 102 let __sed_i = __sed_i + 1
104 endwhile 103 endwhile
105 104
106 delcommand HiLink
107 105
108 unlet __sed_i __sed_last __sed_delimiter __sed_metacharacters 106 unlet __sed_i __sed_last __sed_delimiter __sed_metacharacters
109 107
110 let b:current_syntax = "sed" 108 let b:current_syntax = "sed"
111 109