comparison runtime/syntax/asm.vim @ 10048:43efa4f5a8ea

commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 23:26:57 2016 +0200 Updated runtime files. Remove version checks for Vim older than 6.0.
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Aug 2016 23:30:09 +0200
parents 1dea14d4c738
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
5 " Kevin Dahlhausen <kdahlhaus@yahoo.com> 5 " Kevin Dahlhausen <kdahlhaus@yahoo.com>
6 " Last Change: 2014 Feb 04 6 " Last Change: 2014 Feb 04
7 7
8 " Thanks to Ori Avtalion for feedback on the comment markers! 8 " Thanks to Ori Avtalion for feedback on the comment markers!
9 9
10 " For version 5.x: Clear all syntax items 10 " quit when a syntax file was already loaded
11 " For version 6.0 and later: Quit when a syntax file was already loaded 11 if exists("b:current_syntax")
12 if version < 600
13 syntax clear
14 elseif exists("b:current_syntax")
15 finish 12 finish
16 endif 13 endif
17 14
18 let s:cpo_save = &cpo 15 let s:cpo_save = &cpo
19 set cpo&vim 16 set cpo&vim
101 98
102 99
103 syn case match 100 syn case match
104 101
105 " Define the default highlighting. 102 " Define the default highlighting.
106 " For version 5.7 and earlier: only when not done already 103 " Only when an item doesn't have highlighting yet
107 " For version 5.8 and later: only when an item doesn't have highlighting yet 104 command -nargs=+ HiLink hi def link <args>
108 if version >= 508 || !exists("did_asm_syntax_inits")
109 if version < 508
110 let did_asm_syntax_inits = 1
111 command -nargs=+ HiLink hi link <args>
112 else
113 command -nargs=+ HiLink hi def link <args>
114 endif
115 105
116 " The default methods for highlighting. Can be overridden later 106 " The default methods for highlighting. Can be overridden later
117 HiLink asmSection Special 107 HiLink asmSection Special
118 HiLink asmLabel Label 108 HiLink asmLabel Label
119 HiLink asmComment Comment 109 HiLink asmComment Comment
120 HiLink asmTodo Todo 110 HiLink asmTodo Todo
121 HiLink asmDirective Statement 111 HiLink asmDirective Statement
122 112
123 HiLink asmInclude Include 113 HiLink asmInclude Include
124 HiLink asmCond PreCondit 114 HiLink asmCond PreCondit
125 HiLink asmMacro Macro 115 HiLink asmMacro Macro
126 116
127 HiLink hexNumber Number 117 HiLink hexNumber Number
128 HiLink decNumber Number 118 HiLink decNumber Number
129 HiLink octNumber Number 119 HiLink octNumber Number
130 HiLink binNumber Number 120 HiLink binNumber Number
131 121
132 HiLink asmIdentifier Identifier 122 HiLink asmIdentifier Identifier
133 HiLink asmType Type 123 HiLink asmType Type
134 124
135 delcommand HiLink 125 delcommand HiLink
136 endif
137 126
138 let b:current_syntax = "asm" 127 let b:current_syntax = "asm"
139 128
140 let &cpo = s:cpo_save 129 let &cpo = s:cpo_save
141 unlet s:cpo_save 130 unlet s:cpo_save