Skip to content

Commit

Permalink
fix(handlebars): escape curly braces in all regex
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Oct 14, 2019
1 parent d5a317e commit e7a68dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/languages/handlebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ function (hljs) {
};
}

var ESCAPE_MUSTACHE_WITH_PRECEEDING_BACKSLASH = {begin: /\\{{/, skip: true};
var PREVENT_ESCAPE_WITH_ANOTHER_PRECEEDING_BACKSLASH = {begin: /\\\\(?={{)/, skip: true};
var ESCAPE_MUSTACHE_WITH_PRECEEDING_BACKSLASH = {begin: /\\\{\{/, skip: true};
var PREVENT_ESCAPE_WITH_ANOTHER_PRECEEDING_BACKSLASH = {begin: /\\\\(?=\{\{)/, skip: true};

var OPEN_RAW_BLOCK = {
className: 'template-tag',
Expand Down

0 comments on commit e7a68dd

Please sign in to comment.