@@ -100,7 +100,7 @@ Syntax.extractMatches = function() {
100
100
}
101
101
102
102
if ( rule . debug ) {
103
- Syntax . log ( "extractMatches" , rule , index , match [ index ] , match ) ;
103
+ console . log ( "extractMatches" , rule , index , match [ index ] , match ) ;
104
104
}
105
105
106
106
if ( match [ index ] . length > 0 ) {
@@ -256,7 +256,7 @@ Syntax.Match.prototype.reduce = function (append, process) {
256
256
var child = this . children [ i ] , end = child . offset ;
257
257
258
258
if ( child . offset < this . offset ) {
259
- Syntax . log ( "Syntax Warning: Offset of child" , child , "is before offset of parent" , this ) ;
259
+ console . log ( "Syntax Warning: Offset of child" , child , "is before offset of parent" , this ) ;
260
260
}
261
261
262
262
var text = this . value . substr ( start - this . offset , end - start ) ;
@@ -272,7 +272,7 @@ Syntax.Match.prototype.reduce = function (append, process) {
272
272
} else if ( start < this . endOffset ) {
273
273
append ( this . value . substr ( start - this . offset , this . endOffset - start ) , container ) ;
274
274
} else if ( start > this . endOffset ) {
275
- Syntax . log ( "Syntax Warning: Start position " + start + " exceeds end of value " + this . endOffset ) ;
275
+ console . log ( "Syntax Warning: Start position " + start + " exceeds end of value " + this . endOffset ) ;
276
276
}
277
277
278
278
if ( process ) {
@@ -438,7 +438,7 @@ Syntax.Match.prototype._insertWhole = function(match) {
438
438
// This function also ensures that matches won't be broken up unless absolutely necessary.
439
439
Syntax . Match . prototype . insertAtEnd = function ( match ) {
440
440
if ( ! this . contains ( match ) ) {
441
- Syntax . log ( "Syntax Error: Child is not contained in parent node!" ) ;
441
+ console . log ( "Syntax Error: Child is not contained in parent node!" ) ;
442
442
return null ;
443
443
}
444
444
@@ -687,7 +687,7 @@ Syntax.Match.prototype.bisectAtOffsets = function(splits) {
687
687
}
688
688
689
689
if ( children . length ) {
690
- Syntax . log ( "Syntax Error: Children nodes not consumed" , children . length , " remaining!" ) ;
690
+ console . log ( "Syntax Error: Children nodes not consumed" , children . length , " remaining!" ) ;
691
691
}
692
692
693
693
return parts ;
@@ -860,7 +860,7 @@ Syntax.Brush.prototype.push = function () {
860
860
if ( rule . pattern && rule . pattern . global || typeof ( rule . pattern ) == 'undefined' ) {
861
861
this . rules . push ( jQuery . extend ( { owner : this } , rule ) ) ;
862
862
} else {
863
- Syntax . log ( "Syntax Error: Malformed rule: " , rule ) ;
863
+ console . log ( "Syntax Error: Malformed rule: " , rule ) ;
864
864
}
865
865
}
866
866
} ;
@@ -874,7 +874,7 @@ Syntax.Brush.prototype.getMatchesForRule = function (text, rule) {
874
874
}
875
875
876
876
if ( rule . debug ) {
877
- Syntax . log ( "Syntax matches:" , rule , text , matches ) ;
877
+ console . log ( "Syntax matches:" , rule , text , matches ) ;
878
878
}
879
879
880
880
return matches ;
0 commit comments