mshr-h / vscode-systemverilog-support

[deprecated]use mshr-h/vscode-verilog-hdl-support
https://github.com/mshr-h/vscode-verilog-hdl-support
MIT License
23 stars 12 forks source link

Unbased unsized literal highlighting #2

Closed albertyak closed 8 years ago

albertyak commented 8 years ago

Steps to reproduce the problem:

  1. Type an unbased unsized literal constant ('0, '1, 'z or 'x).
  2. Ensure that any following text isn't properly highlighted and a highlighting of an unbased unsized literal constant doesn't work.

What is the expected behavior? Unbased unsized literal constants are highlighted like based literal constants. A following text is highlighted properly.

Did this work before? No

Looks like something wrong with unbased unsized literals parsing.

albertyak commented 8 years ago

Same problem appears upon static casting.

mshr-h commented 8 years ago

Fixed.

albertyak commented 8 years ago

mshr-h, now unbased unsized literal constants and following text are highlighted properly, thanks, but:

Same problem appears upon static casting.

Steps to reproduce the problem (example 1):

  1. Create new *.sv file.
  2. Type "void'(some_function()); a=5;"
  3. Ensure that string "(some_function()); a=5;" isn't properly highlighted. Did this work before? No

Steps to reproduce the problem (example 2):

  1. Create new *.sv file.
  2. Type "a=int'(b); b=c;"
  3. Ensure that string "(b); b=c;" isn't properly highlighted. Did this work before? No
mshr-h commented 8 years ago

Fixed.