Skip to content

Commit 4d999b9

Browse files
authored
Merge pull request #49 from NicRiv/patch-1
Create vhdl.nanorc
2 parents bb94603 + 435a055 commit 4d999b9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

vhdl.nanorc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 "--.*"

0 commit comments

Comments
 (0)