comparison runtime/syntax/asm68k.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 3fc0f57ecb91
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
6 " This is incomplete. In particular, support for 68020 and 6 " This is incomplete. In particular, support for 68020 and
7 " up and 68851/68881 co-processors is partial or non-existant. 7 " up and 68851/68881 co-processors is partial or non-existant.
8 " Feel free to contribute... 8 " Feel free to contribute...
9 " 9 "
10 10
11 " For version 5.x: Clear all syntax items 11 " quit when a syntax file was already loaded
12 " For version 6.x: Quit when a syntax file was already loaded 12 if exists("b:current_syntax")
13 if version < 600
14 syntax clear
15 elseif exists("b:current_syntax")
16 finish 13 finish
17 endif 14 endif
18 15
19 syn case ignore 16 syn case ignore
20 17
326 syn match asm68kDirective "\<XREF\(\.S\)\=\s" 323 syn match asm68kDirective "\<XREF\(\.S\)\=\s"
327 324
328 syn case match 325 syn case match
329 326
330 " Define the default highlighting. 327 " Define the default highlighting.
331 " For version 5.7 and earlier: only when not done already 328 " Only when an item doesn't have highlighting yet
332 " For version 5.8 and later: only when an item doesn't have highlighting yet 329 command -nargs=+ HiLink hi def link <args>
333 if version >= 508 || !exists("did_asm68k_syntax_inits") 330
334 if version < 508 331 " The default methods for highlighting. Can be overridden later
335 let did_asm68k_syntax_inits = 1 332 " Comment Constant Error Identifier PreProc Special Statement Todo Type
336 command -nargs=+ HiLink hi link <args> 333 "
337 else 334 " Constant Boolean Character Number String
338 command -nargs=+ HiLink hi def link <args> 335 " Identifier Function
339 endif 336 " PreProc Define Include Macro PreCondit
340 337 " Special Debug Delimiter SpecialChar SpecialComment Tag
341 " The default methods for highlighting. Can be overridden later 338 " Statement Conditional Exception Keyword Label Operator Repeat
342 " Comment Constant Error Identifier PreProc Special Statement Todo Type 339 " Type StorageClass Structure Typedef
343 " 340
344 " Constant Boolean Character Number String 341 HiLink asm68kComment Comment
345 " Identifier Function 342 HiLink asm68kTodo Todo
346 " PreProc Define Include Macro PreCondit 343
347 " Special Debug Delimiter SpecialChar SpecialComment Tag 344 HiLink hexNumber Number " Constant
348 " Statement Conditional Exception Keyword Label Operator Repeat 345 HiLink octNumber Number " Constant
349 " Type StorageClass Structure Typedef 346 HiLink binNumber Number " Constant
350 347 HiLink decNumber Number " Constant
351 HiLink asm68kComment Comment 348 HiLink floatNumber Number " Constant
352 HiLink asm68kTodo Todo 349 HiLink floatExponent Number " Constant
353 350 HiLink floatE SpecialChar " Statement
354 HiLink hexNumber Number " Constant 351 "HiLink floatE Number " Constant
355 HiLink octNumber Number " Constant 352
356 HiLink binNumber Number " Constant 353 HiLink asm68kImmediate SpecialChar " Statement
357 HiLink decNumber Number " Constant 354 "HiLink asm68kSymbol Constant
358 HiLink floatNumber Number " Constant 355
359 HiLink floatExponent Number " Constant 356 HiLink asm68kString String " Constant
360 HiLink floatE SpecialChar " Statement 357 HiLink asm68kCharError Error
361 "HiLink floatE Number " Constant 358 HiLink asm68kStringError Error
362 359
363 HiLink asm68kImmediate SpecialChar " Statement 360 HiLink asm68kReg Identifier
364 "HiLink asm68kSymbol Constant 361 HiLink asm68kOperator Identifier
365 362
366 HiLink asm68kString String " Constant 363 HiLink asm68kInclude Include " PreProc
367 HiLink asm68kCharError Error 364 HiLink asm68kMacro Macro " PreProc
368 HiLink asm68kStringError Error 365 HiLink asm68kMacroParam Keyword " Statement
369 366
370 HiLink asm68kReg Identifier 367 HiLink asm68kDirective Special
371 HiLink asm68kOperator Identifier 368 HiLink asm68kPreCond Special
372 369
373 HiLink asm68kInclude Include " PreProc 370
374 HiLink asm68kMacro Macro " PreProc 371 HiLink asm68kOpcode Statement
375 HiLink asm68kMacroParam Keyword " Statement 372 HiLink asm68kCond Conditional " Statement
376 373 HiLink asm68kRepeat Repeat " Statement
377 HiLink asm68kDirective Special 374
378 HiLink asm68kPreCond Special 375 HiLink asm68kLabel Type
379 376 delcommand HiLink
380
381 HiLink asm68kOpcode Statement
382 HiLink asm68kCond Conditional " Statement
383 HiLink asm68kRepeat Repeat " Statement
384
385 HiLink asm68kLabel Type
386 delcommand HiLink
387 endif
388 377
389 let b:current_syntax = "asm68k" 378 let b:current_syntax = "asm68k"
390 379
391 " vim: ts=8 sw=2 380 " vim: ts=8 sw=2