Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jlucktay opened this issue May 12, 2016 · 2 comments
Closed

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

jlucktay opened this issue May 12, 2016 · 2 comments
Assignees

Comments

@jlucktay
Copy link

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

@jlucktay jlucktay changed the title Backslash at end of string disrupts syntax highlighting SQL - Backslash at end of string disrupts syntax highlighting May 12, 2016
@aharpervc
Copy link

Related: #5223, atom/language-sql#13

@aeschli
Copy link
Contributor

aeschli commented May 13, 2016

duplicate of #5223

@aeschli aeschli closed this as completed May 13, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants