volkerdobler / gessQ

gessQ language support in vscode
4 stars 3 forks source link

syntax highlighting in entity.other.attribute-name #2

Closed dietzste closed 2 years ago

dietzste commented 2 years ago

Dear @volkerdobler ,

since the update to 0.3.2 there seem to some tiny problems with certain syntax highlighting.

include and #includeexists are not recognized

#include "somefile.q";
#includeifexists "";

#macro somemacro $1
    text = "@insert(somevalue)" some code
#endmacro
#domacro somemacro $1

#define testmode

#ifdef testmode
#else
#endif

image

I checked with version 0.3.1: #include was recognized, but not part as entity other:

image

I tried without #includeifexists in <string>(?i:(@insert|#define|#domacro|#ifdef|#ifndef|#include|#macro))\s+[\w_]+</string> but it does not seem to recognize #include either way.

volkerdobler commented 2 years ago

Dear @dietzste,

thanks for the feedback. I had a copy&paste error in the syntax file. Fixed in 0.3.3

Regards, Volker