Mercurial > vim
comparison runtime/syntax/tasm.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 | b7811ab264bf |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: TASM: turbo assembler by Borland | 2 " Language: TASM: turbo assembler by Borland |
3 " Maintaner: FooLman of United Force <foolman@bigfoot.com> | 3 " Maintaner: FooLman of United Force <foolman@bigfoot.com> |
4 " Last Change: 2012 Feb 03 by Thilo Six | 4 " Last Change: 2012 Feb 03 by Thilo Six |
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 |
93 syn match tasmHex "\<[0-9][0-9A-F]*H\>" | 90 syn match tasmHex "\<[0-9][0-9A-F]*H\>" |
94 syn match tasmOct "\<[0-7]\+O\>" | 91 syn match tasmOct "\<[0-7]\+O\>" |
95 syn match tasmBin "\<[01]\+B\>" | 92 syn match tasmBin "\<[01]\+B\>" |
96 | 93 |
97 " Define the default highlighting. | 94 " Define the default highlighting. |
98 " For version 5.7 and earlier: only when not done already | 95 " Only when an item doesn't have highlighting yet |
99 " For version 5.8 and later: only when an item doesn't have highlighting yet | 96 command -nargs=+ HiLink hi def link <args> |
100 if version >= 508 || !exists("did_tasm_syntax_inits") | |
101 if version < 508 | |
102 let did_tasm_syntax_inits = 1 | |
103 command -nargs=+ HiLink hi link <args> | |
104 else | |
105 command -nargs=+ HiLink hi def link <args> | |
106 endif | |
107 | 97 |
108 HiLink tasmString String | 98 HiLink tasmString String |
109 HiLink tasmDec Number | 99 HiLink tasmDec Number |
110 HiLink tasmHex Number | 100 HiLink tasmHex Number |
111 HiLink tasmOct Number | 101 HiLink tasmOct Number |
112 HiLink tasmBin Number | 102 HiLink tasmBin Number |
113 HiLink tasmInstruction Keyword | 103 HiLink tasmInstruction Keyword |
114 HiLink tasmCoprocInstr Keyword | 104 HiLink tasmCoprocInstr Keyword |
115 HiLink tasmMMXInst Keyword | 105 HiLink tasmMMXInst Keyword |
116 HiLink tasmDirective PreProc | 106 HiLink tasmDirective PreProc |
117 HiLink tasmRegister Identifier | 107 HiLink tasmRegister Identifier |
118 HiLink tasmProctype PreProc | 108 HiLink tasmProctype PreProc |
119 HiLink tasmComment Comment | 109 HiLink tasmComment Comment |
120 HiLink tasmLabel Label | 110 HiLink tasmLabel Label |
121 | 111 |
122 delcommand HiLink | 112 delcommand HiLink |
123 endif | |
124 | 113 |
125 let b:curret_syntax = "tasm" | 114 let b:curret_syntax = "tasm" |
126 | 115 |
127 let &cpo = s:cpo_save | 116 let &cpo = s:cpo_save |
128 unlet s:cpo_save | 117 unlet s:cpo_save |