Sha256: 72e80675ce20699a0d23dee796fb233dff335a244aeb173dd43af1538d08314a
Contents?: true
Size: 920 Bytes
Versions: 31
Compression:
Stored size: 920 Bytes
Contents
Fuel.html=new Class({Extends:Fuel,language:"html",initialize:function(g,d){d.matchType="lazy";this.patterns=new Hash({comments:{pattern:/(?:\<|<)!--[\s\S]*?--(?:\>|>)/gim,alias:"co1"},cdata:{pattern:/(?:\<|<)!\[CDATA\[[\s\S]*?\]\](?:\>|>)/gim,alias:"st1"},closingTags:{pattern:/(?:\<|<)\/[A-Z][A-Z0-9]*?(?:\>|>)/gi,alias:"kw1"},doctype:{pattern:/(?:\<|<)!DOCTYPE[\s\S]+?(?:\>|>)/gim,alias:"st2"}});var e=/((?:\<|<)[A-Z][A-Z0-9]*)(.*?)(\/?(?:\>|>))/gi,f=/\b([\w-]+)([ \t]*)(=)([ \t]*)(['"][^'"]+['"]|[^'" \t]+)/gi,h=[],c=null,a=null,b=0;while((c=e.exec(g))!=null){h.push(new Wick(c[1],"kw1",c.index));while((a=f.exec(c[2]))!=null){b=c.index+c[1].length+a.index;h.push(new Wick(a[1],"kw2",b));b+=a[1].length+a[2].length;h.push(new Wick(a[3],"kw1",b));b+=a[3].length+a[4].length;h.push(new Wick(a[5],"kw3",b))}h.push(new Wick(c[3],"kw1",c.index+c[1].length+c[2].length))}this.parent(g,d,h)}});
Version data entries
31 entries across 16 versions & 1 rubygems