comparison runtime/syntax/abap.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 78c318784090
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
3 " Revision: 2.1 3 " Revision: 2.1
4 " Maintainer: Marius Piedallu van Wyk <lailoken@gmail.com> 4 " Maintainer: Marius Piedallu van Wyk <lailoken@gmail.com>
5 " Last Change: 2013 Jun 13 5 " Last Change: 2013 Jun 13
6 " Comment: Thanks to EPI-USE Labs for all your assistance. :) 6 " Comment: Thanks to EPI-USE Labs for all your assistance. :)
7 7
8 " For version < 6.0: Clear all syntax items 8 " quit when a syntax file was already loaded
9 " For version >= 6.0: Quit when a syntax file was already loaded 9 if exists("b:current_syntax")
10 if version < 600
11 syntax clear
12 elseif exists("b:current_syntax")
13 finish 10 finish
14 endif 11 endif
15 12
16 " Always ignore case 13 " Always ignore case
17 syn case ignore 14 syn case ignore
41 syn match abapStringEscape contained "``" 38 syn match abapStringEscape contained "``"
42 39
43 syn match abapNumber "\-\=\<\d\+\>" 40 syn match abapNumber "\-\=\<\d\+\>"
44 syn region abapHex matchgroup=abapHex start="X'" end="'" 41 syn region abapHex matchgroup=abapHex start="X'" end="'"
45 42
46 if version >= 600 43 setlocal iskeyword=48-57,_,A-Z,a-z,/
47 setlocal iskeyword=48-57,_,A-Z,a-z,/
48 else
49 set iskeyword=48-57,_,A-Z,a-z,/
50 endif
51 44
52 syn match abapNamespace "\</\w\+/" 45 syn match abapNamespace "\</\w\+/"
53 46
54 " multi-word statements 47 " multi-word statements
55 syn match abapComplexStatement "\<\(WITH\W\+\(HEADER\W\+LINE\|FRAME\|KEY\)\|WITH\)\>" 48 syn match abapComplexStatement "\<\(WITH\W\+\(HEADER\W\+LINE\|FRAME\|KEY\)\|WITH\)\>"
173 syn match abapComment "\".*" contains=abapTodo 166 syn match abapComment "\".*" contains=abapTodo
174 syn keyword abapTodo contained TODO NOTE 167 syn keyword abapTodo contained TODO NOTE
175 syn match abapTodo "\#EC\W\+\w\+" 168 syn match abapTodo "\#EC\W\+\w\+"
176 169
177 " Define the default highlighting. 170 " Define the default highlighting.
178 " For version 5.7 and earlier: only when not done already 171 " Only when an item doesn't have highlighting yet
179 " For version 5.8 and later: only when an item doesn't have highlighting yet 172 command -nargs=+ HiLink hi def link <args>
180 if version >= 508 || !exists("did_abap_syntax_inits")
181 if version < 508
182 let did_abap_syntax_inits = 1
183 command -nargs=+ HiLink hi link <args>
184 else
185 command -nargs=+ HiLink hi def link <args>
186 endif
187 173
188 HiLink abapError Error 174 HiLink abapError Error
189 HiLink abapComment Comment 175 HiLink abapComment Comment
190 HiLink abapInclude Include 176 HiLink abapInclude Include
191 HiLink abapStatement Statement 177 HiLink abapStatement Statement
192 HiLink abapComplexStatement Statement 178 HiLink abapComplexStatement Statement
193 HiLink abapSpecial Special 179 HiLink abapSpecial Special
194 HiLink abapNamespace Special 180 HiLink abapNamespace Special
195 HiLink abapSpecialTables Special 181 HiLink abapSpecialTables Special
196 HiLink abapSymbolOperator abapOperator 182 HiLink abapSymbolOperator abapOperator
197 HiLink abapOperator Operator 183 HiLink abapOperator Operator
198 HiLink abapCharString String 184 HiLink abapCharString String
199 HiLink abapString String 185 HiLink abapString String
200 HiLink abapFloat Float 186 HiLink abapFloat Float
201 HiLink abapTypes Type 187 HiLink abapTypes Type
202 HiLink abapSymbol Structure 188 HiLink abapSymbol Structure
203 HiLink abapStructure Structure 189 HiLink abapStructure Structure
204 HiLink abapField Variable 190 HiLink abapField Variable
205 HiLink abapNumber Number 191 HiLink abapNumber Number
206 HiLink abapHex Number 192 HiLink abapHex Number
207 193
208 delcommand HiLink 194 delcommand HiLink
209 endif
210 195
211 let b:current_syntax = "abap" 196 let b:current_syntax = "abap"
212 197
213 " vim: ts=8 sw=2 198 " vim: ts=8 sw=2
214 199