You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the string starts it completely hands control over to the SQL highlighter. And then the SQL highlighter says "everything after the -- is a comment" before giving control back to the C++ highlighter. @ matter123 and I made a tool to help with this called "textmate-bailout", which is where we download a grammar (in this case the SQL grammar), then use the tool to inject code into every single pattern of the grammar (like the comment pattern) so that, instead of their original parsing, those patterns will "bailout" and immediately halt they see something like ".
Its as hacky as it sounds, and we would have to bundle an entire modified SQL grammar inside of the C++ grammar, but its possible. I probably won't be working on that anytime soon though
Checklist
"C_Cpp.enhancedColorization": "Disabled"
The code with a problem is:
It looks like (Default Light+):
It should look like:
The comment should end at the end of the string.
The text was updated successfully, but these errors were encountered: