Sha256: cd82c46b218df902bba328b7ae0baa4a004fed858cc64c391082492bf3f31578
Contents?: true
Size: 621 Bytes
Versions: 23
Compression:
Stored size: 621 Bytes
Contents
CodeMirror.defineMode("jinja2",function(){function e(e,n){var o=e.next();return"{"==o&&(o=e.eat(/\{|%|#/))?(e.eat("-"),n.tokenize=t(o),"tag"):void 0}function t(t){return"{"==t&&(t="}"),function(o,r){var i=o.next();return(i==t||"-"==i&&o.eat(t))&&o.eat("}")?(r.tokenize=e,"tag"):o.match(n)?"keyword":"#"==t?"comment":"string"}}var n=["block","endblock","for","endfor","in","true","false","loop","none","self","super","if","as","not","and","else","import","with","without","context"];return n=new RegExp("^(("+n.join(")|(")+"))\\b"),{startState:function(){return{tokenize:e}},token:function(e,t){return t.tokenize(e,t)}}});
Version data entries
23 entries across 23 versions & 1 rubygems