vscode-verilog-hdl-support icon indicating copy to clipboard operation
vscode-verilog-hdl-support copied to clipboard

Module last parameter syntax highlight error

Open sheep94lion opened this issue 3 years ago • 3 comments

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

sheep94lion avatar Apr 04 '21 15:04 sheep94lion

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

alexisfrjp avatar May 09 '21 08:05 alexisfrjp

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

fishcrap avatar Jul 30 '21 17:07 fishcrap

@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;

DLehenbauer avatar Sep 02 '22 16:09 DLehenbauer