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

Version Path
rearview-1.2.3-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.2.2.rc.2-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.2.2.rc.1-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.2.1-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.2.0-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.1.2-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.1.1-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.1.0-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.0.3.rc.4-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.0.3.rc.3-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.0.3.rc.2-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.0.3.rc.1-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.0.2-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.0.2.rc.4-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.0.2.rc.3-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.0.2.rc.2-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.0.2.rc.1-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.0.1-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.0.0-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js
rearview-1.0.0.rc5-jruby public/rearview/vendor/codemirror/mode/jinja2/jinja2.js