Skip to content

Commit 1745746

Browse files
bryangingechenmarijnh
authored andcommitted
[javascript mode] don't detect backtick-enclosed fatarrows
cf. #2993 and 27fe44c which fixed the analogous issue for single-quotes, double-quotes and regex literals.
1 parent 632a943 commit 1745746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/javascript/javascript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
195195
++depth;
196196
} else if (wordRE.test(ch)) {
197197
sawSomething = true;
198-
} else if (/["'\/]/.test(ch)) {
198+
} else if (/["'\/`]/.test(ch)) {
199199
for (;; --pos) {
200200
if (pos == 0) return
201201
var next = stream.string.charAt(pos - 1)

0 commit comments

Comments
 (0)