better-cpp-syntax icon indicating copy to clipboard operation
better-cpp-syntax copied to clipboard

Another conversion bug `$reference(directive)`

Open RedCMD opened this issue 2 years ago • 1 comments

I assume $reference(directive) should be $7 "name":"meta.preprocessor.diagnostic.$reference(directive).cpp"

at char 61500 under "diagnostic" https://github.com/jeff-hykin/better-cpp-syntax/blob/master/autogenerated/cpp.embedded.macro.tmLanguage.json

image

would it be because "name" is referencing a "begin" rather than a "match"?

EDIT: also same in cpp https://github.com/jeff-hykin/better-cpp-syntax/blob/db4a681695f3d9c825baaec0e5d699baa7d33b96/autogenerated/cpp.tmLanguage.json#L3284

RedCMD avatar Nov 20 '23 05:11 RedCMD

would it be because "name" is referencing a "begin" rather than a "match"?

Probably. But it's weird the grammar generator doesn't throw an error when it sees a $reference that it can't resolve. I'll have to look into that some time

jeff-hykin avatar Nov 30 '23 16:11 jeff-hykin