Mercurial > vim
comparison runtime/syntax/abel.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 | 91e53bcb7946 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: ABEL | 2 " Language: ABEL |
3 " Maintainer: John Cook <johncook3@gmail.com> | 3 " Maintainer: John Cook <johncook3@gmail.com> |
4 " Last Change: 2011 Dec 27 | 4 " Last Change: 2011 Dec 27 |
5 | 5 |
6 " For version 5.x: Clear all syntax items | 6 " quit when a syntax file was already loaded |
7 " For version 6.x: Quit when a syntax file was already loaded | 7 if exists("b:current_syntax") |
8 if version < 600 | |
9 syntax clear | |
10 elseif exists("b:current_syntax") | |
11 finish | 8 finish |
12 endif | 9 endif |
13 | 10 |
14 let s:cpo_save = &cpo | 11 let s:cpo_save = &cpo |
15 set cpo&vim | 12 set cpo&vim |
121 endif | 118 endif |
122 | 119 |
123 syn sync minlines=1 | 120 syn sync minlines=1 |
124 | 121 |
125 " Define the default highlighting. | 122 " Define the default highlighting. |
126 " For version 5.7 and earlier: only when not done already | 123 " Only when an item doesn't have highlighting yet |
127 " For version 5.8 and later: only when an item doesn't have highlighting yet | 124 command -nargs=+ HiLink hi def link <args> |
128 if version >= 508 || !exists("did_abel_syn_inits") | |
129 if version < 508 | |
130 let did_abel_syn_inits = 1 | |
131 command -nargs=+ HiLink hi link <args> | |
132 else | |
133 command -nargs=+ HiLink hi def link <args> | |
134 endif | |
135 | 125 |
136 " The default highlighting. | 126 " The default highlighting. |
137 HiLink abelHeader abelStatement | 127 HiLink abelHeader abelStatement |
138 HiLink abelSection abelStatement | 128 HiLink abelSection abelStatement |
139 HiLink abelDeclaration abelStatement | 129 HiLink abelDeclaration abelStatement |
140 HiLink abelLogicalOperator abelOperator | 130 HiLink abelLogicalOperator abelOperator |
141 HiLink abelRangeOperator abelOperator | 131 HiLink abelRangeOperator abelOperator |
142 HiLink abelAlternateOperator abelOperator | 132 HiLink abelAlternateOperator abelOperator |
143 HiLink abelArithmeticOperator abelOperator | 133 HiLink abelArithmeticOperator abelOperator |
144 HiLink abelRelationalOperator abelOperator | 134 HiLink abelRelationalOperator abelOperator |
145 HiLink abelAssignmentOperator abelOperator | 135 HiLink abelAssignmentOperator abelOperator |
146 HiLink abelTruthTableOperator abelOperator | 136 HiLink abelTruthTableOperator abelOperator |
147 HiLink abelSpecifier abelStatement | 137 HiLink abelSpecifier abelStatement |
148 HiLink abelOperator abelStatement | 138 HiLink abelOperator abelStatement |
149 HiLink abelStatement Statement | 139 HiLink abelStatement Statement |
150 HiLink abelIdentifier Identifier | 140 HiLink abelIdentifier Identifier |
151 HiLink abelTypeId abelType | 141 HiLink abelTypeId abelType |
152 HiLink abelTypeIdChar abelType | 142 HiLink abelTypeIdChar abelType |
153 HiLink abelType Type | 143 HiLink abelType Type |
154 HiLink abelNumber abelString | 144 HiLink abelNumber abelString |
155 HiLink abelString String | 145 HiLink abelString String |
156 HiLink abelConstant Constant | 146 HiLink abelConstant Constant |
157 HiLink abelComment Comment | 147 HiLink abelComment Comment |
158 HiLink abelExtension abelSpecial | 148 HiLink abelExtension abelSpecial |
159 HiLink abelSpecialChar abelSpecial | 149 HiLink abelSpecialChar abelSpecial |
160 HiLink abelTypeIdEnd abelSpecial | 150 HiLink abelTypeIdEnd abelSpecial |
161 HiLink abelSpecial Special | 151 HiLink abelSpecial Special |
162 HiLink abelDirective PreProc | 152 HiLink abelDirective PreProc |
163 HiLink abelTodo Todo | 153 HiLink abelTodo Todo |
164 HiLink abelError Error | 154 HiLink abelError Error |
165 | 155 |
166 delcommand HiLink | 156 delcommand HiLink |
167 endif | |
168 | 157 |
169 let b:current_syntax = "abel" | 158 let b:current_syntax = "abel" |
170 | 159 |
171 let &cpo = s:cpo_save | 160 let &cpo = s:cpo_save |
172 unlet s:cpo_save | 161 unlet s:cpo_save |