X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/test/SimpleCharStream.java b/net.sourceforge.phpeclipse/src/test/SimpleCharStream.java index 1187798..011f1f2 100644 --- a/net.sourceforge.phpeclipse/src/test/SimpleCharStream.java +++ b/net.sourceforge.phpeclipse/src/test/SimpleCharStream.java @@ -27,6 +27,7 @@ public class SimpleCharStream static protected boolean prevCharIsLF = false; static protected java.io.Reader inputStream; + static protected StringBuffer currentBuffer = new StringBuffer(); static protected char[] buffer; static protected int maxNextCharInd = 0; @@ -119,6 +120,7 @@ public class SimpleCharStream else { maxNextCharInd += i; } + currentBuffer.append(buffer); return; } catch(java.io.IOException e) { @@ -252,6 +254,7 @@ public class SimpleCharStream " either use ReInit() or set the JavaCC option STATIC to false\n" + " during the generation of this class."); inputStream = dstream; + currentBuffer = new StringBuffer(); line = startline; column = startcolumn - 1; @@ -275,6 +278,7 @@ public class SimpleCharStream int startcolumn, int buffersize) { inputStream = dstream; + currentBuffer = new StringBuffer(); line = startline; column = startcolumn - 1;