mshr-h / vscode-systemverilog-support

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

Missing Highlight Systemverilog Functions #29

Open pnmorais opened 6 years ago

pnmorais commented 6 years ago

Hi,

I started used your extension for systemverilog code and for what I could observed some functions on systemverilog are not highlight. I hope you can add these functions to your highlight list. The systemverilog functions are:

-> "class", endclass is highlight but class not; -> Missing the defines function as "define", "ifdef", "else", "endif", "undef", "ifndef"; -> "length";

For now was what I could observed. Another suggestion is you could put the brackets("(",")","{","}") highlight too.

Thanks, Pedro Morais.

mshr-h commented 6 years ago

Can you show me some example code? I'll fix it if possible.

bjaminn commented 6 years ago

There seem to be several issues in here and from what I can tell the second item is an issue that `define is not properly labeled by the tmLanguage. I believe it should be meta.preprocessor or a derived scope.

image

As for the other issues, I agree good examples would help understanding.

As a side note i just learned if you need to use a back tick in a code section the proper way to do it is to wrap the quoted code is more back ticks for example `` `define``

pnmorais commented 6 years ago

Hi mshr-h,

Here are some examples of what I'm trying to say: image

I putted another code editor to you see the difference.

Thanks for your help.