Skip to content

SQL - Backslash at end of string disrupts syntax highlighting #6315

@jlucktay

Description

@jlucktay

Could be related to #1520 / #1634 / #2830

  • VSCode Version: 1.1.0
  • OS Version: Windows 8.1 Pro

Steps to reproduce:

  1. Create new/edit existing SQL file.
  2. Enter a string with a backslash as the last character before the terminating single quote.
  3. Syntax highlighting thinks the terminating quote is escaped.

SSMS does not behave like this, and will parse the same script without this issue.

Also reproduces when starting VSCode with the --disable-extensions command line argument.

Sample screenshot:
image
The select statement on line 4 shouldn't be that colour, since it is not part of the string.

The same snippet in SSMS:
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions