Skip to content

Commit

Permalink
fix: variable scope use default token
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Sep 9, 2024
1 parent 5399903 commit b9f5846
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/mode/jinja_highlight_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,6 @@ var JinjaHighlightRules = function() {
"variable.other.jinja.test"
],
regex: /(\s*\b)(is)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)\b/
// }, {
// token: ["text", "keyword.control.jinja"],
// regex: /(?<=\{\%-|\{\%)(\s*\b)([a-zA-Z_][a-zA-Z0-9_]*)\b(?!\s*[,=])/
}, {
token: "keyword.control.jinja",
regex: /\b(?:and|else|if|in|import|not|or|recursive|with(?:out)?\s+context)\b/
Expand All @@ -200,9 +197,6 @@ var JinjaHighlightRules = function() {
"variable.other.jinja.attribute"
],
regex: /(\.)([a-zA-Z_][a-zA-Z0-9_]*)/
}, {
token: "variable.other.jinja",
regex: /[a-zA-Z_][a-zA-Z0-9_]*/
}, {
token: "punctuation.other.jinja",
regex: /\[/,
Expand Down

0 comments on commit b9f5846

Please sign in to comment.