Mercurial > vim
comparison runtime/syntax/acedb.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 |
---|---|
5 " URL: http://www.ed.ac.uk/~swmorris/vim/acedb.vim | 5 " URL: http://www.ed.ac.uk/~swmorris/vim/acedb.vim |
6 | 6 |
7 " Syntax file to handle all $ACEDB/wspec/*.wrm files, primarily models.wrm | 7 " Syntax file to handle all $ACEDB/wspec/*.wrm files, primarily models.wrm |
8 " AceDB software is available from http://www.acedb.org | 8 " AceDB software is available from http://www.acedb.org |
9 | 9 |
10 " For version 5.x: Clear all syntax items | 10 " quit when a syntax file was already loaded |
11 " For version 6.x: Quit when a syntax file was already loaded | 11 if exists("b:current_syntax") |
12 if version < 600 | |
13 syntax clear | |
14 elseif exists("b:current_syntax") | |
15 finish | 12 finish |
16 endif | 13 endif |
17 | 14 |
18 syn keyword acedbXref XREF | 15 syn keyword acedbXref XREF |
19 syn keyword acedbModifier UNIQUE REPEAT | 16 syn keyword acedbModifier UNIQUE REPEAT |
84 syn region acedbString start=/"/ end=/"/ skip=/\\"/ oneline | 81 syn region acedbString start=/"/ end=/"/ skip=/\\"/ oneline |
85 | 82 |
86 " Rest of syntax highlighting rules start here | 83 " Rest of syntax highlighting rules start here |
87 | 84 |
88 " Define the default highlighting. | 85 " Define the default highlighting. |
89 " For version 5.7 and earlier: only when not done already | 86 " Only when an item doesn't have highlighting yet |
90 " For version 5.8 and later: only when an item doesn't have highlighting yet | 87 command -nargs=+ HiLink hi def link <args> |
91 if version >= 508 || !exists("did_acedb_syn_inits") | |
92 if version < 508 | |
93 let did_acedb_syn_inits = 1 | |
94 command -nargs=+ HiLink hi link <args> | |
95 else | |
96 command -nargs=+ HiLink hi def link <args> | |
97 endif | |
98 | 88 |
99 HiLink acedbMagic Special | 89 HiLink acedbMagic Special |
100 HiLink acedbHyb Special | 90 HiLink acedbHyb Special |
101 HiLink acedbType Type | 91 HiLink acedbType Type |
102 HiLink acedbOption Type | 92 HiLink acedbOption Type |
103 HiLink acedbSubclass Type | 93 HiLink acedbSubclass Type |
104 HiLink acedbSubtag Include | 94 HiLink acedbSubtag Include |
105 HiLink acedbFlag Include | 95 HiLink acedbFlag Include |
106 HiLink acedbTag Include | 96 HiLink acedbTag Include |
107 HiLink acedbClass Todo | 97 HiLink acedbClass Todo |
108 HiLink acedbHelp Todo | 98 HiLink acedbHelp Todo |
109 HiLink acedbXref Identifier | 99 HiLink acedbXref Identifier |
110 HiLink acedbModifier Label | 100 HiLink acedbModifier Label |
111 HiLink acedbComment Comment | 101 HiLink acedbComment Comment |
112 HiLink acedbBlock ModeMsg | 102 HiLink acedbBlock ModeMsg |
113 HiLink acedbNumber Number | 103 HiLink acedbNumber Number |
114 HiLink acedbString String | 104 HiLink acedbString String |
115 | 105 |
116 delcommand HiLink | 106 delcommand HiLink |
117 endif | |
118 | 107 |
119 let b:current_syntax = "acedb" | 108 let b:current_syntax = "acedb" |
120 | 109 |
121 " The structure of the model.wrm file is sensitive to mixed tab and space | 110 " The structure of the model.wrm file is sensitive to mixed tab and space |
122 " indentation and assumes tabs are 8 so... | 111 " indentation and assumes tabs are 8 so... |