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

No virtual class support in systemverilog.tmLanguage #48

Open ktmills opened 5 years ago

ktmills commented 5 years ago

Processing of a class declaration only allow spaces prior to the keyword 'class'. This doesn't allow for detection of virtual classes. Consider changing the following regex

^\s*(module|function|primitive|class|package|constraint...

To

^\s*(?:virtual\s+(?=class))? (module|function|primitive|class|package|constraint...

This will make sure you capture groups remain the same.