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

Hihgliting issue on systemverilog file with tree-sitter-verilog on neovim #59

Open
simoneruffini opened this issue Jan 29, 2023 · 3 comments

Comments

@simoneruffini
Copy link

Hi I have a highliting issue on a system-verilog file while using tree-sitter on neovim.
These are my system-verilog lines of code:
image
There is some highliting problem because the blue color is used for all the lines after the "" empty string on top.
The correct output (by disabling tree-sitter) is the following one:
image

I hope that this is not too much out of the scope for this repo but I was suggested to post the issue here because it probably relates to this project.

@Idaben
Copy link

Idaben commented Jan 15, 2024

I'm also encountering this issue, I think it is because of the way UVM macros use the ` character at the start. Did you manage to find a workaround for this?

@ljjb97
Copy link

ljjb97 commented Feb 8, 2024

I took a quick look into fixing this issue as I'm seeing it as well. I wasn't able to get a fix working as when I tried to make it optional to have anything in between a string open and close tree-sitter threw an error saying it won't allow tokens that match an empty string. I believe that is a way to prevent this issue with treesitter.

@simoneruffini
Copy link
Author

I'm also encountering this issue, I think it is because of the way UVM macros use the ` character at the start. Did you manage to find a workaround for this?

but the 'macro sintax is a valid system-verilog syntax, not just for uvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants