summaryrefslogtreecommitdiffstats
path: root/misc/syntax/vhdl.syntax
blob: b5f8baa6959a062fb990ca19f13eba92c6ab1ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# Adam Pribyl, based on ADA
# modified: Andrew Borodin
# missing
# literal, on,  (something else)

caseinsensitive

context default

#wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_

    keyword whole with yellow
    keyword whole select yellow
    keyword whole use yellow
    keyword whole is yellow
    keyword whole of yellow
    keyword whole length yellow
    keyword whole range yellow
    keyword whole left yellow
    keyword whole right yellow
    keyword whole delta yellow
    keyword whole return yellow
    keyword whole next yellow
    keyword whole null yellow
    keyword whole array yellow
    keyword whole downto yellow
    keyword whole to yellow
    keyword whole foreign yellow

# comment
    keyword -- magenta

# expressions
    keyword := brightgreen
    keyword . brightgreen
    keyword ; brightgreen
    keyword : brightgreen
    keyword , brightgreen
    keyword ' brightgreen
    keyword | brightgreen
    keyword ( brightgreen
    keyword ) brightgreen
    keyword [ brightgreen
    keyword ] brightgreen
    keyword \+ brightgreen
    keyword - brightgreen
    keyword / brightgreen
    keyword \* brightgreen
    keyword \*\* brightgreen
    keyword # brightgreen
    keyword & brightgreen
    keyword => brightgreen
    keyword < brightgreen
    keyword > brightgreen
    keyword <= brightgreen
    keyword >= brightgreen
    keyword = brightgreen
    keyword /= brightgreen

# operators and functions
    keyword whole sll green
    keyword whole srl green
    keyword whole sla green
    keyword whole sra green
    keyword whole rol green
    keyword whole ror green
    keyword whole rem green
    keyword whole mod green
    keyword whole not green
    keyword whole and green
    keyword whole nand green
    keyword whole or green
    keyword whole xor green
    keyword whole nor green
    keyword whole xnor green
    keyword whole abs green
    keyword whole new green

    keyword whole begin yellow
    keyword whole end yellow
    keyword whole exit yellow
    keyword whole for yellow
    keyword whole while yellow
    keyword whole if yellow
    keyword whole then yellow
    keyword whole else yellow
    keyword whole elsif yellow
    keyword whole case yellow
    keyword whole when yellow
    keyword whole with yellow
    keyword whole select yellow
    keyword whole assert yellow
    keyword    whole wait yellow
    keyword    whole open yellow
    keyword whole loop yellow
    keyword whole until yellow
    keyword whole others yellow
    keyword whole all yellow
    keyword whole block yellow
    keyword whole guarded yellow
    keyword whole after yellow
    keyword whole transport yellow
    keyword whole inertial yellow
    keyword whole reject yellow
    keyword whole unaffected yellow
    keyword whole disconnect yellow

# types and related stuff
    keyword whole integer cyan
    keyword whole natural cyan
    keyword whole positive cyan
    keyword whole string cyan
    keyword whole character cyan
    keyword whole boolean cyan
    keyword whole real cyan
    keyword whole bit cyan
    keyword whole bit_vector cyan
    keyword whole time cyan
    keyword whole units cyan
    keyword whole std_logic cyan
    keyword whole std_logic_vector cyan
    keyword whole severity_level cyan

# boolean values
    keyword whole true brightred
    keyword whole false brightred
# time values
    keyword whole fs brightred
    keyword whole ps brightred
    keyword whole ns brightred
    keyword whole us brightred
    keyword whole ms brightred
    keyword whole sec brightred
    keyword whole min brightred
    keyword whole hr brightred

# declarations
    keyword whole type brightcyan
    keyword whole subtype brightcyan

    keyword whole variable yellow
    keyword whole shared yellow
    keyword whole signal yellow
    keyword whole constant yellow
    keyword whole group yellow
    keyword whole file yellow
    keyword whole register yellow

    keyword whole port yellow
    keyword whole map yellow
    keyword whole label yellow
    keyword whole record yellow
    keyword whole generic yellow
    keyword whole alias yellow
    keyword whole attribute yellow

# ports
    keyword whole in white
    keyword whole out white
    keyword whole inout white
    keyword whole buffer white
    keyword whole linkage white
    keyword whole bus white

# library units
    keyword whole library yellow
    keyword whole entity yellow
    keyword whole architecture yellow
    keyword whole package yellow
    keyword whole body yellow
    keyword whole procedure yellow
    keyword whole function yellow
    keyword whole pure yellow
    keyword whole impure yellow
    keyword whole configuration yellow
    keyword whole component yellow
    keyword whole generic yellow
    keyword whole process yellow
    keyword whole postponded yellow
    keyword whole generate yellow

# reports
    keyword whole report red
    keyword whole severity red
    keyword whole note red
    keyword whole warning red
    keyword whole error red
    keyword whole failure red

# comment
context exclusive -- \n        magenta

context " " green