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

[BUG] syntax highlighting doesn't properly parse dollar signs, $, in identifiers #517

Open
bsferrazza opened this issue Feb 26, 2025 · 0 comments
Labels

Comments

@bsferrazza
Copy link

bsferrazza commented 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):

  • 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.

@bsferrazza bsferrazza added the bug label Feb 26, 2025
@bsferrazza 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant