comparison runtime/syntax/asmh8300.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
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Hitachi H-8300h specific syntax for GNU Assembler 2 " Language: Hitachi H-8300h specific syntax for GNU Assembler
3 " Maintainer: Kevin Dahlhausen <kdahlhaus@yahoo.com> 3 " Maintainer: Kevin Dahlhausen <kdahlhaus@yahoo.com>
4 " Last Change: 2002 Sep 19 4 " Last Change: 2002 Sep 19
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 syn case ignore 11 syn case ignore
15 12
50 47
51 syn case match 48 syn case match
52 49
53 50
54 " Read the general asm syntax 51 " Read the general asm syntax
55 if version < 600 52 runtime! syntax/asm.vim
56 source <sfile>:p:h/asm.vim
57 else
58 runtime! syntax/asm.vim
59 endif
60 53
61 54
62 " Define the default highlighting. 55 " Define the default highlighting.
63 " For version 5.7 and earlier: only when not done already 56 " Only when an item doesn't have highlighting yet
64 " For version 5.8 and later: only when an item doesn't have highlighting yet 57 command -nargs=+ HiLink hi def link <args>
65 if version >= 508 || !exists("did_hitachi_syntax_inits")
66 if version < 508
67 let did_hitachi_syntax_inits = 1
68 command -nargs=+ HiLink hi link <args>
69 else
70 command -nargs=+ HiLink hi def link <args>
71 endif
72 58
73 HiLink asmOpcode Statement 59 HiLink asmOpcode Statement
74 HiLink asmRegister Identifier 60 HiLink asmRegister Identifier
75 61
76 " My default-color overrides: 62 " My default-color overrides:
77 "hi asmOpcode ctermfg=yellow 63 "hi asmOpcode ctermfg=yellow
78 "hi asmReg ctermfg=lightmagenta 64 "hi asmReg ctermfg=lightmagenta
79 65
80 delcommand HiLink 66 delcommand HiLink
81 endif
82 67
83 let b:current_syntax = "asmh8300" 68 let b:current_syntax = "asmh8300"
84 69
85 " vim: ts=8 70 " vim: ts=8