comparison runtime/syntax/verilog.vim @ 316:96789bc4346a

updated for version 7.0083
author vimboss
date Wed, 08 Jun 2005 21:56:31 +0000
parents 3fc0f57ecb91
children e6db096b07a1
comparison
equal deleted inserted replaced
315:a0451524244d 316:96789bc4346a
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Verilog 2 " Language: Verilog
3 " Maintainer: Mun Johl <mun_johl@sierralogic.com> 3 " Maintainer: Mun Johl <mun_johl@sierralogic.com>
4 " Last Update: Tue Nov 4 09:39:40 PST 2003 4 " Last Update: Tue Jun 7 14:27:10 PDT 2005
5 5
6 " For version 5.x: Clear all syntax items 6 " For version 5.x: Clear all syntax items
7 " For version 6.x: Quit when a syntax file was already loaded 7 " For version 6.x: Quit when a syntax file was already loaded
8 if version < 600 8 if version < 600
9 syntax clear 9 syntax clear
50 50
51 syn keyword verilogTodo contained TODO 51 syn keyword verilogTodo contained TODO
52 52
53 syn match verilogOperator "[&|~><!)(*#%@+/=?:;}{,.\^\-\[\]]" 53 syn match verilogOperator "[&|~><!)(*#%@+/=?:;}{,.\^\-\[\]]"
54 54
55 syn region verilogComment start="/\*" end="\*/" contains=verilogTodo 55 syn region verilogComment start="/\*" end="\*/" contains=verilogTodo,@Spell
56 syn match verilogComment "//.*" contains=verilogTodo 56 syn match verilogComment "//.*" contains=verilogTodo,@Spell
57 57
58 "syn match verilogGlobal "`[a-zA-Z0-9_]\+\>" 58 "syn match verilogGlobal "`[a-zA-Z0-9_]\+\>"
59 syn match verilogGlobal "`celldefine" 59 syn match verilogGlobal "`celldefine"
60 syn match verilogGlobal "`default_nettype" 60 syn match verilogGlobal "`default_nettype"
61 syn match verilogGlobal "`define" 61 syn match verilogGlobal "`define"
80 syn match verilogNumber "\(\<\d\+\|\)'[oO]\s*[0-7_xXzZ?]\+\>" 80 syn match verilogNumber "\(\<\d\+\|\)'[oO]\s*[0-7_xXzZ?]\+\>"
81 syn match verilogNumber "\(\<\d\+\|\)'[dD]\s*[0-9_xXzZ?]\+\>" 81 syn match verilogNumber "\(\<\d\+\|\)'[dD]\s*[0-9_xXzZ?]\+\>"
82 syn match verilogNumber "\(\<\d\+\|\)'[hH]\s*[0-9a-fA-F_xXzZ?]\+\>" 82 syn match verilogNumber "\(\<\d\+\|\)'[hH]\s*[0-9a-fA-F_xXzZ?]\+\>"
83 syn match verilogNumber "\<[+-]\=[0-9_]\+\(\.[0-9_]*\|\)\(e[0-9_]*\|\)\>" 83 syn match verilogNumber "\<[+-]\=[0-9_]\+\(\.[0-9_]*\|\)\(e[0-9_]*\|\)\>"
84 84
85 syn region verilogString start=+"+ skip=+\\"+ end=+"+ contains=verilogEscape 85 syn region verilogString start=+"+ skip=+\\"+ end=+"+ contains=verilogEscape,@Spell
86 syn match verilogEscape +\\[nt"\\]+ contained 86 syn match verilogEscape +\\[nt"\\]+ contained
87 syn match verilogEscape "\\\o\o\=\o\=" contained 87 syn match verilogEscape "\\\o\o\=\o\=" contained
88 88
89 " Directives 89 " Directives
90 syn match verilogDirective "//\s*synopsys\>.*$" 90 syn match verilogDirective "//\s*synopsys\>.*$"
95 syn region verilogDirective start="/\*\s*\$s\>" end="\*/" 95 syn region verilogDirective start="/\*\s*\$s\>" end="\*/"
96 syn region verilogDirective start="//\s*\$s dc_script_begin\>" end="//\s*\$s dc_script_end\>" 96 syn region verilogDirective start="//\s*\$s dc_script_begin\>" end="//\s*\$s dc_script_end\>"
97 97
98 "Modify the following as needed. The trade-off is performance versus 98 "Modify the following as needed. The trade-off is performance versus
99 "functionality. 99 "functionality.
100 syn sync lines=50 100 syn sync minlines=50
101 101
102 " Define the default highlighting. 102 " Define the default highlighting.
103 " For version 5.7 and earlier: only when not done already 103 " For version 5.7 and earlier: only when not done already
104 " For version 5.8 and later: only when an item doesn't have highlighting yet 104 " For version 5.8 and later: only when an item doesn't have highlighting yet
105 if version >= 508 || !exists("did_verilog_syn_inits") 105 if version >= 508 || !exists("did_verilog_syn_inits")