forked from jasder/antlr
Merge pull request #718 from petrbel/master
TokenStreamRewriter indentation fix
This commit is contained in:
commit
61e23a2032
|
@ -58,4 +58,4 @@ YYYY/MM/DD, github id, Full name, email
|
|||
2014/03/18, aphyr, Kyle Kingsbury, aphyr@aphyr.com
|
||||
2014/06/07, ericvergnaud, Eric Vergnaud, eric.vergnaud@wanadoo.fr
|
||||
2014/07/04, jimidle, Jim Idle, jimi@Idle.ws
|
||||
|
||||
2014/09/27, petrbel, Petr Bělohlávek, antlr@petrbel.cz
|
||||
|
|
|
@ -526,8 +526,7 @@ public class TokenStreamRewriter {
|
|||
System.out.println("new rop "+rop);
|
||||
}
|
||||
else if ( !disjoint && !same ) {
|
||||
throw new IllegalArgumentException("replace op boundaries of "+rop+
|
||||
" overlap with previous "+prevRop);
|
||||
throw new IllegalArgumentException("replace op boundaries of "+rop+" overlap with previous "+prevRop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -558,8 +557,7 @@ public class TokenStreamRewriter {
|
|||
continue;
|
||||
}
|
||||
if ( iop.index >= rop.index && iop.index <= rop.lastIndex ) {
|
||||
throw new IllegalArgumentException("insert op "+iop+
|
||||
" within boundaries of previous "+rop);
|
||||
throw new IllegalArgumentException("insert op "+iop+" within boundaries of previous "+rop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -597,5 +595,4 @@ public class TokenStreamRewriter {
|
|||
}
|
||||
return ops;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue