comparison runtime/syntax/vhdl.vim @ 6823:0303182665d5

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Tue, 09 Jun 2015 19:44:55 +0200
parents ab1508486b12
children 30042ddff503
comparison
equal deleted inserted replaced
6822:856ac8b406e6 6823:0303182665d5
1 " Vim syntax file 1 " Vim syntax file
2 " Language: VHDL 2 " Language: VHDL
3 " Maintainer: Daniel Kho <daniel.kho@tauhop.com> 3 " Maintainer: Daniel Kho <daniel.kho@tauhop.com>
4 " Previous Maintainer: Czo <Olivier.Sirol@lip6.fr> 4 " Previous Maintainer: Czo <Olivier.Sirol@lip6.fr>
5 " Credits: Stephan Hegel <stephan.hegel@snc.siemens.com.cn> 5 " Credits: Stephan Hegel <stephan.hegel@snc.siemens.com.cn>
6 " Last Changed: 2012 Feb 03 by Thilo Six 6 " Last Changed: 2015 Apr 25 by Daniel Kho
7 " $Id: vhdl.vim,v 1.1 2004/06/13 15:34:56 vimboss Exp $ 7 " $Id: vhdl.vim,v 1.1 2004/06/13 15:34:56 vimboss Exp $
8 8
9 " VHSIC (Very High Speed Integrated Circuit) Hardware Description Language 9 " VHSIC (Very High Speed Integrated Circuit) Hardware Description Language
10 10
11 " For version 5.x: Clear all syntax items 11 " For version 5.x: Clear all syntax items
158 syn match vhdlSpecial "[().,;]" 158 syn match vhdlSpecial "[().,;]"
159 " time 159 " time
160 syn match vhdlTime "\<\d\+\s\+\(\([fpnum]s\)\|\(sec\)\|\(min\)\|\(hr\)\)\>" 160 syn match vhdlTime "\<\d\+\s\+\(\([fpnum]s\)\|\(sec\)\|\(min\)\|\(hr\)\)\>"
161 syn match vhdlTime "\<\d\+\.\d\+\s\+\(\([fpnum]s\)\|\(sec\)\|\(min\)\|\(hr\)\)\>" 161 syn match vhdlTime "\<\d\+\.\d\+\s\+\(\([fpnum]s\)\|\(sec\)\|\(min\)\|\(hr\)\)\>"
162 162
163 syn keyword vhdlTodo contained TODO FIXME 163 syn keyword vhdlTodo contained TODO NOTE
164 164 syn keyword vhdlFixme contained FIXME
165 syn region vhdlComment start="/\*" end="\*/" contains=vhdlTodo,@Spell 165
166 syn match vhdlComment "--.*" contains=vhdlTodo,@Spell 166 " Regex for space is '\s'
167 " Any number of spaces: \s*
168 " At least one space: \s+
169 syn region vhdlComment start="/\*" end="\*/" contains=vhdlTodo,vhdlFixme,@Spell
170 syn match vhdlComment "--.*" contains=vhdlTodo,vhdlFixme,@Spell
171 syn match vhdlPreProc "/\* synthesis .* \*/"
172 syn match vhdlPreProc "/\* pragma .* \*/"
173 syn match vhdlPreProc "/\* synopsys .* \*/"
174 syn match vhdlPreProc "--\s*synthesis .*"
175 syn match vhdlPreProc "--\s*pragma .*"
176 syn match vhdlPreProc "--\s*synopsys .*"
167 " syn match vhdlGlobal "[\'$#~!%@?\^\[\]{}\\]" 177 " syn match vhdlGlobal "[\'$#~!%@?\^\[\]{}\\]"
168 178
169 "Modify the following as needed. The trade-off is performance versus functionality. 179 "Modify the following as needed. The trade-off is performance versus functionality.
170 syn sync minlines=200 180 syn sync minlines=200
171 181
178 command -nargs=+ HiLink hi link <args> 188 command -nargs=+ HiLink hi link <args>
179 else 189 else
180 command -nargs=+ HiLink hi def link <args> 190 command -nargs=+ HiLink hi def link <args>
181 endif 191 endif
182 192
183 " HiLink cDefine PreProc 193 HiLink vhdlSpecial Special
184 HiLink vhdlSpecial Special 194 HiLink vhdlStatement Statement
185 HiLink vhdlStatement Statement 195 HiLink vhdlCharacter Character
186 HiLink vhdlCharacter Character 196 HiLink vhdlString String
187 HiLink vhdlString String 197 HiLink vhdlVector Number
188 HiLink vhdlVector Number 198 HiLink vhdlBoolean Number
189 HiLink vhdlBoolean Number 199 HiLink vhdlTodo Todo
190 HiLink vhdlTodo Todo 200 HiLink vhdlFixme Fixme
191 HiLink vhdlComment Comment 201 HiLink vhdlComment Comment
192 HiLink vhdlNumber Number 202 HiLink vhdlNumber Number
193 HiLink vhdlTime Number 203 HiLink vhdlTime Number
194 HiLink vhdlType Type 204 HiLink vhdlType Type
195 HiLink vhdlOperator Special 205 HiLink vhdlOperator Operator
196 " HiLink vhdlGlobal Error 206 " HiLink vhdlGlobal Error
197 HiLink vhdlAttribute Type 207 HiLink vhdlAttribute Special
208 HiLink vhdlPreProc PreProc
198 209
199 delcommand HiLink 210 delcommand HiLink
200 endif 211 endif
201 212
202 let b:current_syntax = "vhdl" 213 let b:current_syntax = "vhdl"