annotate runtime/syntax/verilogams.vim @ 30180:b01eaf122e5a v9.0.0426

patch 9.0.0426: failed flaky tests reports only start time Commit: https://github.com/vim/vim/commit/65258d36ddfab371c7982343efc9b2533ba39075 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 9 15:09:59 2022 +0100 patch 9.0.0426: failed flaky tests reports only start time Problem: Failed flaky tests reports only start time. Solution: Also report the end time.
author Bram Moolenaar <Bram@vim.org>
date Fri, 09 Sep 2022 16:15:03 +0200
parents 46763b01cd9a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
1 " Vim syntax file
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
2 " Language: Verilog-AMS
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
3 " Maintainer: S. Myles Prather <smprather@gmail.com>
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
4 "
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
5 " Version 1.1 S. Myles Prather <smprather@gmail.com>
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
6 " Moved some keywords to the type category.
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
7 " Added the metrix suffixes to the number matcher.
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
8 " Version 1.2 Prasanna Tamhankar <pratam@gmail.com>
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
9 " Minor reserved keyword updates.
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
10 " Last Update: Thursday September 15 15:36:03 CST 2005
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
11
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1621
diff changeset
12 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1621
diff changeset
13 if exists("b:current_syntax")
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
14 finish
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
15 endif
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
16
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
17 " Set the local value of the 'iskeyword' option
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1621
diff changeset
18 setlocal iskeyword=@,48-57,_,192-255
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
19
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
20 " Annex B.1 'All keywords'
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
21 syn keyword verilogamsStatement above abs absdelay acos acosh ac_stim
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
22 syn keyword verilogamsStatement always analog analysis and asin
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
23 syn keyword verilogamsStatement asinh assign atan atan2 atanh
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
24 syn keyword verilogamsStatement buf bufif0 bufif1 ceil cmos connectmodule
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
25 syn keyword verilogamsStatement connectrules cos cosh cross ddt ddx deassign
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
26 syn keyword verilogamsStatement defparam disable discipline
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
27 syn keyword verilogamsStatement driver_update edge enddiscipline
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
28 syn keyword verilogamsStatement endconnectrules endmodule endfunction endgenerate
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
29 syn keyword verilogamsStatement endnature endparamset endprimitive endspecify
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
30 syn keyword verilogamsStatement endtable endtask event exp final_step
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
31 syn keyword verilogamsStatement flicker_noise floor flow force fork
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
32 syn keyword verilogamsStatement function generate highz0
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
33 syn keyword verilogamsStatement highz1 hypot idt idtmod if ifnone inf initial
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
34 syn keyword verilogamsStatement initial_step inout input join
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
35 syn keyword verilogamsStatement laplace_nd laplace_np laplace_zd laplace_zp
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
36 syn keyword verilogamsStatement large last_crossing limexp ln localparam log
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
37 syn keyword verilogamsStatement macromodule max medium min module nand nature
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
38 syn keyword verilogamsStatement negedge net_resolution nmos noise_table nor not
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
39 syn keyword verilogamsStatement notif0 notif1 or output paramset pmos
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
40 syn keyword verilogamsType parameter real integer electrical input output
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
41 syn keyword verilogamsType inout reg tri tri0 tri1 triand trior trireg
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
42 syn keyword verilogamsType string from exclude aliasparam ground genvar
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
43 syn keyword verilogamsType branch time realtime
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
44 syn keyword verilogamsStatement posedge potential pow primitive pull0 pull1
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
45 syn keyword verilogamsStatement pullup pulldown rcmos release
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
46 syn keyword verilogamsStatement rnmos rpmos rtran rtranif0 rtranif1
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
47 syn keyword verilogamsStatement scalared sin sinh slew small specify specparam
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
48 syn keyword verilogamsStatement sqrt strong0 strong1 supply0 supply1
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
49 syn keyword verilogamsStatement table tan tanh task timer tran tranif0
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
50 syn keyword verilogamsStatement tranif1 transition
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
51 syn keyword verilogamsStatement vectored wait wand weak0 weak1
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
52 syn keyword verilogamsStatement white_noise wire wor wreal xnor xor zi_nd
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
53 syn keyword verilogamsStatement zi_np zi_zd zi_zp
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
54 syn keyword verilogamsRepeat forever repeat while for
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
55 syn keyword verilogamsLabel begin end
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
56 syn keyword verilogamsConditional if else case casex casez default endcase
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
57 syn match verilogamsConstant ":inf"lc=1
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
58 syn match verilogamsConstant "-inf"lc=1
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
59 " Annex B.2 Discipline/nature
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
60 syn keyword verilogamsStatement abstol access continuous ddt_nature discrete
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
61 syn keyword verilogamsStatement domain idt_nature units
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
62 " Annex B.3 Connect Rules
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
63 syn keyword verilogamsStatement connect merged resolveto split
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
64
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
65 syn match verilogamsOperator "[&|~><!)(*#%@+/=?:;}{,.\^\-\[\]]"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
66 syn match verilogamsOperator "<+"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
67 syn match verilogamsStatement "[vV]("me=e-1
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
68 syn match verilogamsStatement "[iI]("me=e-1
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
69
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
70 syn keyword verilogamsTodo contained TODO
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
71 syn region verilogamsComment start="/\*" end="\*/" contains=verilogamsTodo
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
72 syn match verilogamsComment "//.*" contains=verilogamsTodo
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
73
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
74 syn match verilogamsGlobal "`celldefine"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
75 syn match verilogamsGlobal "`default_nettype"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
76 syn match verilogamsGlobal "`define"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
77 syn match verilogamsGlobal "`else"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
78 syn match verilogamsGlobal "`elsif"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
79 syn match verilogamsGlobal "`endcelldefine"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
80 syn match verilogamsGlobal "`endif"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
81 syn match verilogamsGlobal "`ifdef"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
82 syn match verilogamsGlobal "`ifndef"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
83 syn match verilogamsGlobal "`include"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
84 syn match verilogamsGlobal "`line"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
85 syn match verilogamsGlobal "`nounconnected_drive"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
86 syn match verilogamsGlobal "`resetall"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
87 syn match verilogamsGlobal "`timescale"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
88 syn match verilogamsGlobal "`unconnected_drive"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
89 syn match verilogamsGlobal "`undef"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
90 syn match verilogamsSystask "$[a-zA-Z0-9_]\+\>"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
91
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
92 syn match verilogamsConstant "\<[A-Z][A-Z0-9_]\+\>"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
93
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
94 syn match verilogamsNumber "\(\<\d\+\|\)'[bB]\s*[0-1_xXzZ?]\+\>"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
95 syn match verilogamsNumber "\(\<\d\+\|\)'[oO]\s*[0-7_xXzZ?]\+\>"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
96 syn match verilogamsNumber "\(\<\d\+\|\)'[dD]\s*[0-9_xXzZ?]\+\>"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
97 syn match verilogamsNumber "\(\<\d\+\|\)'[hH]\s*[0-9a-fA-F_xXzZ?]\+\>"
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 481
diff changeset
98 syn match verilogamsNumber "\<[+-]\=[0-9_]\+\(\.[0-9_]*\|\)\(e[0-9_]*\|\)[TGMKkmunpfa]\=\>"
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
99
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
100 syn region verilogamsString start=+"+ skip=+\\"+ end=+"+ contains=verilogamsEscape
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
101 syn match verilogamsEscape +\\[nt"\\]+ contained
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
102 syn match verilogamsEscape "\\\o\o\=\o\=" contained
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
103
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
104 "Modify the following as needed. The trade-off is performance versus
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
105 "functionality.
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
106 syn sync lines=50
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
107
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
108 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1621
diff changeset
109 " Only when an item doesn't have highlighting yet
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
110
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1621
diff changeset
111 " The default highlighting.
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
112 hi def link verilogamsCharacter Character
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
113 hi def link verilogamsConditional Conditional
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
114 hi def link verilogamsRepeat Repeat
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
115 hi def link verilogamsString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
116 hi def link verilogamsTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
117 hi def link verilogamsComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
118 hi def link verilogamsConstant Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
119 hi def link verilogamsLabel Label
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
120 hi def link verilogamsNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
121 hi def link verilogamsOperator Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
122 hi def link verilogamsStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
123 hi def link verilogamsGlobal Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
124 hi def link verilogamsDirective SpecialComment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
125 hi def link verilogamsEscape Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
126 hi def link verilogamsType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
127 hi def link verilogamsSystask Function
481
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
128
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
129
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
130 let b:current_syntax = "verilogams"
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
131
66080ac5dab7 updated for version 7.0130
vimboss
parents:
diff changeset
132 " vim: ts=8