Sha256: 1fc7271705cd07ffaefafdc96ad5a45bf5f54f2de8a95f7f1cc6c8a8cff16c5f
Contents?: true
Size: 1.23 KB
Versions: 25
Compression:
Stored size: 1.23 KB
Contents
var HTMLMixedParser=Editor.Parser=function(){function p(){var a=["XMLParser"],g;for(g in j)a.push(j[g]);for(var k in a)if(!window[a[k]])throw Error(a[k]+" parser must be loaded for HTML mixed mode to work.");XMLParser.configure({useHTMLKludges:true})}var j={script:"JSParser",style:"CSSParser"};return{make:function(a){function g(){var d=l.next();if(d.content=="<")e=true;else if(d.style=="xml-tagname"&&e===true)e=d.content.toLowerCase();else if(d.content==">"){if(j[e])h.next=k(window[j[e]],"</"+e); e=false}return d}function k(d,f){var m=l.indentation();i=d.make(a,m+indentUnit);return function(){if(a.lookAhead(f,false,false,true)){i=null;h.next=g;return g()}var b=i.next(),c=b.value.lastIndexOf("<"),n=Math.min(b.value.length-c,f.length);if(c!=-1&&b.value.slice(c,c+n).toLowerCase()==f.slice(0,n)&&a.lookAhead(f.slice(n),false,false,true)){a.push(b.value.slice(c));b.value=b.value.slice(0,c)}if(b.indentation){var q=b.indentation;b.indentation=function(o){return o=="</"?m:q(o)}}return b}}p();var l= XMLParser.make(a),i=null,e=false,h={next:g,copy:function(){var d=l.copy(),f=i&&i.copy(),m=h.next,b=e;return function(c){a=c;l=d(c);i=f&&f(c);h.next=m;e=b;return h}}};return h},electricChars:"{}/:",configure:function(a){if(a.triggers)j=a.triggers}}}();
Version data entries
25 entries across 25 versions & 2 rubygems