Skip to content

Commit

Permalink
Fix Jinja syntax highlighting for when the Jinja syntax is within a t…
Browse files Browse the repository at this point in the history
…ag attribute value.
  • Loading branch information
joelgardner committed Apr 28, 2020
1 parent 78c89b5 commit 46e39a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mode/django.js
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,9 @@ var DjangoHtmlHighlightRules = function() {
}, {
token: "constant.language",
regex: "\\}\\}",
next: "start"
next: function(currentState, stack) {
return (stack && stack[0]) || "start"
}
}]);
}
};
Expand Down

0 comments on commit 46e39a1

Please sign in to comment.