From 17457466015551c7bf9292896baaa69e738f0d49 Mon Sep 17 00:00:00 2001 From: Bryan Gin-ge Chen Date: Thu, 11 Jul 2019 10:57:08 -0400 Subject: [PATCH] [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. --- mode/javascript/javascript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mode/javascript/javascript.js b/mode/javascript/javascript.js index 1276d8536c..76ee9a6fe0 100644 --- a/mode/javascript/javascript.js +++ b/mode/javascript/javascript.js @@ -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)