File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ # # Syntax highlighting for VHDL.
2
+
3
+ syntax vhdl " \. vhd$ "
4
+ header " library IEEE;"
5
+ magic " VHDL"
6
+ comment " --"
7
+
8
+ # formatter
9
+ # linter
10
+
11
+ # Types.
12
+ color cyan " \< (bit| bit_vector| character| boolean| integer| real| time| string)\> "
13
+ color cyan " \< (severity_level| positive| natural| signed| unsigned| line| text)\> "
14
+ color cyan " \< (std_logic| std_logic_vector| std_ulogic| std_ulogic_vector)\> "
15
+ color cyan " \< (qsim_state| qsim_state_vector| qsim_12state| qsim_12state_vector| qsim_strength)\> "
16
+ color cyan " \< (mux_bit| mux_vectory| reg_bit| reg_vector| wor_bit| wor_vector)\> "
17
+
18
+ # Keywords.
19
+ color orange " \< (access| after| alias| all| architecture| array| assert| attribute| begin| block| body)\> "
20
+ color orange " \< (buffer| bus| case| component| configuration| constant| disconnect| downto)\> "
21
+ color orange " \< (else| elsif| end| entity| exit| file| for| function| generate| generic| group)\> "
22
+ color orange " \< (guarded| if| impure| in| inertial| inout| is| label| library| linkage| literal)\> "
23
+ color orange " \< (loop| map| new| next| null| of| on| open| others| out| package| port| postponed)\> "
24
+ color orange " \< (procedure| process| pure| range| record| register| reject| report| return)\> "
25
+ color orange " \< (select| severity| signal| shared| subtype| then| to| transport| type| unaffected)\> "
26
+ color orange " \< (units| until| use| variable| wait| when| while| with| note| warning| error| failure)\> "
27
+ color orange " \< (and| nand| or| nor| xor| xnor| rol| ror| sla| sll| sra| srl| mod| rem| abs| not)\> "
28
+
29
+ # Booleans.
30
+ color red " \< (true| false)\> "
31
+
32
+ # Strings
33
+ color green " "([^ " \] | \\ . )* ""
34
+
35
+ # Comments .
36
+ color yellow " --. * "
You can’t perform that action at this time.
0 commit comments