Strings ending in "\\" break syntax highlighting
The following is syntactically correct code, but it breaks syntax highlighting.
let myVar = "a\\";
let myOtherVar = "whatever";

Thanks for the report. I'll try to take a look at some point. If any other contributors want to take a stab at this, it should be some regex change in the tmlanguage file.
Looks like the Escapes section of the tmLanguage.yml needs to be updated to allow for other escape sequences. Currently it suports escaping single and double quotes. Needs \t, \n, \\. We can add a test case in kusto-syntax-highlighting\test\snapshots\data-types\strings.kql to cover this by putting a \\ at the end of the string on line 22.
tmLanguage.yml, currently:
Escapes:
patterns:
- match: \\['"]
name: constant.character.escape.kusto
Proposed fix:
Escapes:
patterns:
- match: \\['"tn\\]
name: constant.character.escape.kusto
and then
-
npm run convertto convert the yml to json -
npm run testto check that the tests look right -
npm run test:update-snapshotto update the snapshots