Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added missing keywords in jinja2 mode

  • Loading branch information...
commit 6b131f19e89f3656079c98ebcce67148c4244fce 1 parent 4841f63
@emnoor emnoor authored marijnh committed
Showing with 13 additions and 3 deletions.
  1. +13 −3 mode/jinja2/jinja2.js
View
16 mode/jinja2/jinja2.js
@@ -1,7 +1,17 @@
CodeMirror.defineMode("jinja2", function() {
- var keywords = ["block", "endblock", "for", "endfor", "in", "true", "false",
- "loop", "none", "self", "super", "if", "as", "not", "and",
- "else", "import", "with", "without", "context"];
+ var keywords = ["and", "as", "block", "endblock", "by", "cycle", "debug", "else", "elif",
+ "extends", "filter", "endfilter", "firstof", "for",
+ "endfor", "if", "endif", "ifchanged", "endifchanged",
+ "ifequal", "endifequal", "ifnotequal",
+ "endifnotequal", "in", "include", "load", "not", "now", "or",
+ "parsed", "regroup", "reversed", "spaceless",
+ "endspaceless", "ssi", "templatetag", "openblock",
+ "closeblock", "openvariable", "closevariable",
+ "openbrace", "closebrace", "opencomment",
+ "closecomment", "widthratio", "url", "with", "endwith",
+ "get_current_language", "trans", "noop", "blocktrans",
+ "endblocktrans", "get_available_languages",
+ "get_current_language_bidi", "plural"];
keywords = new RegExp("^((" + keywords.join(")|(") + "))\\b");
function tokenBase (stream, state) {
Please sign in to comment.
Something went wrong with that request. Please try again.