quarto-dev / quarto

Quarto open-source scientific and technical publishing system
https://quarto.org
GNU Affero General Public License v3.0
315 stars 26 forks source link

Enable SQL Syntax Highlighting in String Literals in VS Code #391

Open tosh opened 7 months ago

tosh commented 7 months ago

It is common to have SQL in string literals (e.g. in Python strings) which are then passed to a library to query a database.

Currently SQL within string literals are treated the same as other strings. It would be great if they would be recognized and receive special treatment.

There are existing VS Code extensions that highlight the SQL in string literals but afaiu they only work with files set to Python mode whereas Quarto has its own "Quarto" mode.