Skip to content

Commit f6ee5ee

Browse files
authored
[JavaScript] Fix for line continuation (#3805)
1 parent a6ff9d3 commit f6ee5ee

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

javascript/javascript/JavaScriptLexer.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ fragment EscapeCharacter
267267
;
268268
269269
fragment LineContinuation
270-
: '\\' [\r\n\u2028\u2029]
270+
: '\\' [\r\n\u2028\u2029]+
271271
;
272272
273273
fragment HexDigit
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var sql = "line 1 \
2+
some other line \
3+
the last line"

0 commit comments

Comments
 (0)