Skip to content

Commit

Permalink
[javascript mode] don't detect backtick-enclosed fatarrows
Browse files Browse the repository at this point in the history
cf. codemirror#2993 and 27fe44c which fixed the analogous issue for single-quotes, double-quotes and regex literals.
  • Loading branch information
bryangingechen authored and cone56 committed Jan 6, 2020
1 parent 071e45a commit 07ab881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/javascript/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
++depth;
} else if (wordRE.test(ch)) {
sawSomething = true;
} else if (/["'\/]/.test(ch)) {
} else if (/["'\/`]/.test(ch)) {
for (;; --pos) {
if (pos == 0) return
var next = stream.string.charAt(pos - 1)
Expand Down

0 comments on commit 07ab881

Please sign in to comment.