Skip to content

Commit

Permalink
fix(js/ts) regex inside SUBST is no longer highlighted (#3320)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Sep 3, 2021
1 parent bb4fb22 commit 2ad69e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -6,6 +6,7 @@ Parser:

Grammars:

- fix(js/ts) regex inside `SUBST` is no longer highlighted [Josh Goebel][]
- fix(python) added support for unicode identifiers (#3280) [Austin Schick][]
- enh(css/less/stylus/scss) improve consistency of function dispatch (#3301) [Josh Goebel][]
- enh(css/less/stylus/scss) detect block comments more fully (#3301) [Josh Goebel][]
Expand Down
4 changes: 3 additions & 1 deletion src/languages/javascript.js
Expand Up @@ -189,7 +189,9 @@ export default function(hljs) {
CSS_TEMPLATE,
TEMPLATE_STRING,
NUMBER,
hljs.REGEXP_MODE
// This is intentional:
// See https://github.com/highlightjs/highlight.js/issues/3288
// hljs.REGEXP_MODE
];
SUBST.contains = SUBST_INTERNALS
.concat({
Expand Down

0 comments on commit 2ad69e8

Please sign in to comment.