Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vhdl.nanorc file created #433

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions vhdl.nanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## Syntax highlighting for VHDL.

syntax vhdl "\.vhd$"
header "library IEEE;"
magic "VHDL"
comment "--"

# formatter
# linter

# Types.
color cyan "\<(bit|bit_vector|character|boolean|integer|real|time|string)\>"
color cyan "\<(severity_level|positive|natural|signed|unsigned|line|text)\>"
color cyan "\<(std_logic|std_logic_vector|std_ulogic|std_ulogic_vector)\>"
color cyan "\<(qsim_state|qsim_state_vector|qsim_12state|qsim_12state_vector|qsim_strength)\>"
color cyan "\<(mux_bit|mux_vectory|reg_bit|reg_vector|wor_bit|wor_vector)\>"

# Keywords.
color orange "\<(access|after|alias|all|architecture|array|assert|attribute|begin|block|body)\>"
color orange "\<(buffer|bus|case|component|configuration|constant|disconnect|downto)\>"
color orange "\<(else|elsif|end|entity|exit|file|for|function|generate|generic|group)\>"
color orange "\<(guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal)\>"
color orange "\<(loop|map|new|next|null|of|on|open|others|out|package|port|postponed)\>"
color orange "\<(procedure|process|pure|range|record|register|reject|report|return)\>"
color orange "\<(select|severity|signal|shared|subtype|then|to|transport|type|unaffected)\>"
color orange "\<(units|until|use|variable|wait|when|while|with|note|warning|error|failure)\>"
color orange "\<(and|nand|or|nor|xor|xnor|rol|ror|sla|sll|sra|srl|mod|rem|abs|not)\>"

# Booleans.
color red "\<(true|false)\>"

# Strings
color green ""([^"\]|\\.)*""

# Comments.
color yellow "--.*"