Lines Matching refs:Match

11 …lem.nodeType===1){var text=Syntax.innerText(elem);matches.push(new Syntax.Match(offset,text.length…
22 …expression=jQuery.extend({owner:expr.owner},rule);matches.push(new Syntax.Match(RegExp.indexOf(mat…
26Match=function(offset,length,expression,value){this.offset=offset;this.endOffset=offset+length;thi… class in Syntax
27Match.sort=function(a,b){return(a.offset-b.offset)||(b.length-a.length);};Syntax.Match.prototype.c…
28 …ntax.Match.prototype.reduce=function(append,process){var start=this.offset;var container=document.…
34 return container;};Syntax.Match.prototype.canContain=function(match){if(match.expression.force){ret…
41 return false;};Syntax.Match.prototype.canHaveChild=function(match){var only=match.expression.only;i…
44 return true;};Syntax.Match.prototype._splice=function(i,match){if(this.canHaveChild(match)){this.ch…
45 return this;}else{return null;}};Syntax.Match.prototype.insert=function(match,whole){if(!this.conta…
48 Syntax.Match.prototype._insertWhole=function(match){var parts=this.bisectAtOffsets([match.offset,ma…
55 Syntax.Match.prototype.insertAtEnd=function(match){if(!this.contains(match)){Syntax.log("Syntax Err…
58 return null;}else{return this._splice(0,match);}};Syntax.Match.prototype._insert=function(match){if…
66 Syntax.Match.prototype.bisectAtOffsets=function(splits){var parts=[],start=this.offset,prev=null,ch…
69 start=this.offset;var match=new Syntax.Match(start,offset-start,this.expression);match.value=this.v…
77 return parts;};Syntax.Match.prototype.split=function(pattern){var splits=[],match;while((match=patt…
86 …Brush.buildTree(rule,match[0],match.index));}else{matches.push(new Syntax.Match(match.index,match[…
99 var top=new Syntax.Match(offset,text.length,{klass:this.allKlasses().join(" "),allow:'*',owner:this…