databricks / sqltools-databricks-driver

SQLTools driver for Databricks SQL
Other
10 stars 3 forks source link

Syntax highlighting doesn't respect escape characters #78

Open ianepreston opened 6 months ago

ianepreston commented 6 months ago

I'm not sure if this makes more sense in this repo or the sqltools repo, please let me know if I should resubmit there. Spark sql uses / to escape. If I want to create a comment on a table with an apostrophe, I put /' so it doesn't close the comment. Syntax highlighting for this works fine in the databricks web sql editor. In VS code using this extension it doesn't and makes the syntax highlighting look off for everything below that point: In VS Code: image In Databricks: image