avoid StringLiteralLexer to skip content after quote if the quote is not the last one

This commit is contained in:
Maxim.Mossienko
2010-09-06 21:45:24 +04:00
parent 0500d52186
commit 9675f3382e
@@ -231,7 +231,7 @@ public class StringLiteralLexer extends LexerBase {
// return i;
//}
if (myState == AFTER_FIRST_QUOTE && myBuffer.charAt(i) == myQuoteChar) {
myState = AFTER_LAST_QUOTE;
if (i + 1 == myBufferEnd) myState = AFTER_LAST_QUOTE;
return i + 1;
}
i++;