Mercurial > vim
comparison runtime/syntax/verilogams.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 | 82b5078be2dd |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
7 " Added the metrix suffixes to the number matcher. | 7 " Added the metrix suffixes to the number matcher. |
8 " Version 1.2 Prasanna Tamhankar <pratam@gmail.com> | 8 " Version 1.2 Prasanna Tamhankar <pratam@gmail.com> |
9 " Minor reserved keyword updates. | 9 " Minor reserved keyword updates. |
10 " Last Update: Thursday September 15 15:36:03 CST 2005 | 10 " Last Update: Thursday September 15 15:36:03 CST 2005 |
11 | 11 |
12 " For version 5.x: Clear all syntax items | 12 " quit when a syntax file was already loaded |
13 " For version 6.x: Quit when a syntax file was already loaded | 13 if exists("b:current_syntax") |
14 if version < 600 | |
15 syntax clear | |
16 elseif exists("b:current_syntax") | |
17 finish | 14 finish |
18 endif | 15 endif |
19 | 16 |
20 " Set the local value of the 'iskeyword' option | 17 " Set the local value of the 'iskeyword' option |
21 if version >= 600 | 18 setlocal iskeyword=@,48-57,_,192-255 |
22 setlocal iskeyword=@,48-57,_,192-255 | |
23 else | |
24 set iskeyword=@,48-57,_,192-255 | |
25 endif | |
26 | 19 |
27 " Annex B.1 'All keywords' | 20 " Annex B.1 'All keywords' |
28 syn keyword verilogamsStatement above abs absdelay acos acosh ac_stim | 21 syn keyword verilogamsStatement above abs absdelay acos acosh ac_stim |
29 syn keyword verilogamsStatement always analog analysis and asin | 22 syn keyword verilogamsStatement always analog analysis and asin |
30 syn keyword verilogamsStatement asinh assign atan atan2 atanh | 23 syn keyword verilogamsStatement asinh assign atan atan2 atanh |
111 "Modify the following as needed. The trade-off is performance versus | 104 "Modify the following as needed. The trade-off is performance versus |
112 "functionality. | 105 "functionality. |
113 syn sync lines=50 | 106 syn sync lines=50 |
114 | 107 |
115 " Define the default highlighting. | 108 " Define the default highlighting. |
116 " For version 5.7 and earlier: only when not done already | 109 " Only when an item doesn't have highlighting yet |
117 " For version 5.8 and later: only when an item doesn't have highlighting yet | 110 command -nargs=+ HiLink hi def link <args> |
118 if version >= 508 || !exists("did_verilogams_syn_inits") | |
119 if version < 508 | |
120 let did_verilogams_syn_inits = 1 | |
121 command -nargs=+ HiLink hi link <args> | |
122 else | |
123 command -nargs=+ HiLink hi def link <args> | |
124 endif | |
125 | 111 |
126 " The default highlighting. | 112 " The default highlighting. |
127 HiLink verilogamsCharacter Character | 113 HiLink verilogamsCharacter Character |
128 HiLink verilogamsConditional Conditional | 114 HiLink verilogamsConditional Conditional |
129 HiLink verilogamsRepeat Repeat | 115 HiLink verilogamsRepeat Repeat |
130 HiLink verilogamsString String | 116 HiLink verilogamsString String |
131 HiLink verilogamsTodo Todo | 117 HiLink verilogamsTodo Todo |
132 HiLink verilogamsComment Comment | 118 HiLink verilogamsComment Comment |
133 HiLink verilogamsConstant Constant | 119 HiLink verilogamsConstant Constant |
134 HiLink verilogamsLabel Label | 120 HiLink verilogamsLabel Label |
135 HiLink verilogamsNumber Number | 121 HiLink verilogamsNumber Number |
136 HiLink verilogamsOperator Special | 122 HiLink verilogamsOperator Special |
137 HiLink verilogamsStatement Statement | 123 HiLink verilogamsStatement Statement |
138 HiLink verilogamsGlobal Define | 124 HiLink verilogamsGlobal Define |
139 HiLink verilogamsDirective SpecialComment | 125 HiLink verilogamsDirective SpecialComment |
140 HiLink verilogamsEscape Special | 126 HiLink verilogamsEscape Special |
141 HiLink verilogamsType Type | 127 HiLink verilogamsType Type |
142 HiLink verilogamsSystask Function | 128 HiLink verilogamsSystask Function |
143 | 129 |
144 delcommand HiLink | 130 delcommand HiLink |
145 endif | |
146 | 131 |
147 let b:current_syntax = "verilogams" | 132 let b:current_syntax = "verilogams" |
148 | 133 |
149 " vim: ts=8 | 134 " vim: ts=8 |