PRQL / prql-vscode

VS Code extension for PRQL lang
https://marketplace.visualstudio.com/items?itemName=PRQL-lang.prql-vscode
Apache License 2.0
24 stars 9 forks source link

Syntax highlighting is incorrect with # in an alias name #560

Open richb-hanover opened 1 month ago

richb-hanover commented 1 month ago

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.

image

Moved here from: https://github.com/PRQL/prql/issues/4725

max-sixty commented 1 month ago

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:

image