quarto-dev / quarto

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

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

Open tosh opened 8 months ago

tosh commented 8 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.