Lines Matching refs:res
61 function render(){var i=0,j,k,res,re=/<script type="text\/vnd.abc"|<[^>]* class="abc"|%abc-\d|X:\d/g,re_stop=/\n<|\n%.begin[^\s]+/g
73 for(;;){res=re.exec(page)
74 if(!res){src+=page.slice(i).replace(/\n%%/g,"\n%%%%")+"\n%%endml\n"
76 j=re.lastIndex-res[0].length;src+=page.slice(i,j).replace(/\n%%/g,"\n%%%%")
77 switch(res[0][0]){default:res=res[0].match(/<([^\s]*)/)[1]
78 if(res=='script'){j=page.indexOf('>',j)+2
79 i=page.indexOf('</'+res,j)
85 j=page.indexOf('</'+res,i)
89 case'%':case'X':if(j!=0&&page[j-1]!='\n'){src+=res[0]
93 while(1){res=re_stop.exec(page)
94 if(!res||res[0]=="\n<")
96 k=page.indexOf(res[0].replace("begin","end"),re_stop.lastIndex)
100 if(!res||k<0)