jakebathman / mysql-syntax

VS Code syntax support for MySQL
11 stars 5 forks source link

Backticks not handled properly in AS clause with spaces #35

Open smgallo opened 3 years ago

smgallo commented 3 years ago

When using backticks to escape an AS clause containing spaces, the syntax hilighting is not handled properly. For example, with no spaces hilighting is as expected:

SELECT
    protocol_no AS `ProtocolNo`,
    principal_investigator AS `PrincipalInvestigator`,
    funding
FROM study;
Screen Shot 2021-06-02 at 1 07 31 PM

But when the escaped string contains a space it breaks the syntax hilighting:

SELECT
    protocol_no AS `Protocol No`,
    principal_investigator AS `Principal Investigator`,
    funding
FROM study;
Screen Shot 2021-06-02 at 1 07 45 PM
alex391 commented 3 years ago

Also fails on single quotes used to escape spaces

benhamel2 commented 2 years ago

It also breaks with backslash single quote image