-
Notifications
You must be signed in to change notification settings - Fork 597
Closed
Labels
T: bugA bug in an existing language featureA bug in an existing language feature
Description
Wrong highlighting with SQL (build 3124)
Consider the following (PostgreSQL) SQL script:
CREATE TABLE tab
(
id bigserial,
data text
);
INSERT INTO tab(id, data) values (1, '_');
-- CORRECT: This line is grey
INSERT INTO tab(id, data) values (2, '\');
-- WRONG: This line is yellow, it should be *GREY*
Expected behaviour
The last line should be considered a comment an be grey.
Actual behaviour
The last line is yellow, since the SQL parser does not correctly close the '' string (it thinks the last single quote is escaped, which in SQL is not).
Steps to reproduce
- Open Sublime Text 3124 with standard settings
- Create a new file, paste the above content in it and save it as
bug.sql. - The last color is grey instead yellow
Environment
- Operating system and version:
- Mac OS X 10.11.6
- Sublime Text:
- Build 3124
keith-hall, lanrion, DependencyHell, mrmkowals2 and tjasko
Metadata
Metadata
Assignees
Labels
T: bugA bug in an existing language featureA bug in an existing language feature