imc-trading / svlangserver

MIT License
95 stars 13 forks source link

Wrong syntax highlighting #23

Open hankhsu1996 opened 2 years ago

hankhsu1996 commented 2 years ago

In the following logic declaration:

logic [$clog2(MY_PARAM)-1:0] my_var;

The $clog2 should be in scope support.function.systemverilog but it's actually tokenized into $ and clog2 and results in wrong colorization.

kkanhere commented 2 years ago

Ack. The whole syntax json needs a re-look. So pull requests welcome. I will also take a look.