prql-vscode
prql-vscode copied to clipboard
Syntax highlighting is incorrect with # in an alias name
Creating an alias that contains a "#" gives an incorrect coloring in the VSCode Extension. The generated SQL is OK. Using the example below:
from albums
derive `foo#` = 5
In the Playground, the syntax coloring looks OK and the SQL is too.
In the VSCode Extension, the SQL is OK, but the highlighting shows the "#` = 5" to be grey and italicized.
Moved here from: https://github.com/PRQL/prql/issues/4725
This would be great to fix. It's probably not a trivial fix given the code grammar is in TextMate, but also not impossible — rust does manage:
what should it look like?
here's my VSCode extension to help with authoring TextMate grammars https://marketplace.visualstudio.com/items?itemName=RedCMD.tmlanguage-syntax-highlighter