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

Module last parameter syntax highlight error #147

Open
sheep94lion opened this issue Apr 4, 2021 · 3 comments
Open

Module last parameter syntax highlight error #147

sheep94lion opened this issue Apr 4, 2021 · 3 comments

Comments

@sheep94lion
Copy link

The last parameter of a module in Verilog is shown in incorrect color:
image

@alexisfrjp
Copy link

You should provide the file to reproduce the error. I've never seen this error.

@fishcrap
Copy link

I do encounter the same problem. If keyword wire is omitted in the last line of a module definition, the parameter will be in wrong color.
image

@DLehenbauer
Copy link

@alexisfrjp - The key to reproducing this bug is to put the closing ')' on the next line.

As you can see, this causes the last variable to be incorrectly highlighted as a keyword:

image

If you move the closing ')' to the same line as the last variable the highlighting is correct:

image

To reproduce, simply create an 'empty.v' file and paste the following:

module repro(
    input white,
    input blue
);
endmodule;

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

4 participants