You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Most people seem unware of this, but $ are legal characters in Verilog (as long as they are not the first character) for identifiers (ports, nets, parameters, modules, instances, etc). This has been the case since the inception of the language over 30 years ago. They are nice to use as another way to delimit text besides an underscore.
Environment (please complete the following information):
OS: Applies to All
VS Code version [e.g. 1.0.0] All versions
Extension version [e.g. 1.0.1] All versions
color themes, lint tools, etc. N/A
Steps to reproduce
Simply use identifiers with $
assign r$some_reg$d = w$some_net$b;
Expected behavior
I expect it to properly parse $ in identifiers and keep consistent colors based on the identifier type and context.
Actual behavior
The coloring is inconsistent and disjointed with colors changing mid-identifier.
The text was updated successfully, but these errors were encountered:
bsferrazza
changed the title
[BUG] syntax highlighting doesn't properly parse $ in identifiers
[BUG] syntax highlighting doesn't properly parse dollar signs, $, in identifiers
Feb 26, 2025
Describe the bug
Most people seem unware of this, but $ are legal characters in Verilog (as long as they are not the first character) for identifiers (ports, nets, parameters, modules, instances, etc). This has been the case since the inception of the language over 30 years ago. They are nice to use as another way to delimit text besides an underscore.
Environment (please complete the following information):
Steps to reproduce
Simply use identifiers with $
assign r$some_reg$d = w$some_net$b;
Expected behavior
I expect it to properly parse $ in identifiers and keep consistent colors based on the identifier type and context.
Actual behavior
The coloring is inconsistent and disjointed with colors changing mid-identifier.
The text was updated successfully, but these errors were encountered: