VHDL Support for Syntax Highlighting #114072
-
Select Topic AreaProduct Feedback BodyFor context, VHDL (VHSIC Hardware Description Language) is a hardware-descriptive language ("HDL"), first designed by the U.S. DoD in the 1980s, which has since been standardized by as IEEE-1076; alongside Verilog, it is one of the "two main" HDLs in FPGA and ASIC designs. Currently, GitHub's syntax highlighter does not seem to properly highlight VHDL's syntax; it seems to treat VHDL, which has a syntax similar to Ada and Pascal, as purely Ada. For instance, notice how this sample VHDL code seems to show red "syntax errors" despite consisting of entirely valid VHDL; this is because of VHDL's custom extensions to the Ada language. Also, many other keywords and C-style block comments Additionally, within -- ```ada
prescaler : entity work.srl_prescaler
generic map (100e6, 1)
port map (clk_in_100mhz, ce_out_1hz);
-- ``` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks for the suggestion. I passed this feedback along to the team. For your reference, the current syntax highlighting is powered by this TextMate grammar. My teammate verified the bug you note exists there. It could be fixed but that repository hasn't been changed in 7 years. 😅 The other option would be to switch our syntax highlighting to use the tree-sitter grammar. |
Beta Was this translation helpful? Give feedback.
Thanks for the suggestion. I passed this feedback along to the team.
For your reference, the current syntax highlighting is powered by this TextMate grammar. My teammate verified the bug you note exists there. It could be fixed but that repository hasn't been changed in 7 years. 😅
The other option would be to switch our syntax highlighting to use the tree-sitter grammar.