From 9675f3382e611e9e667f7e745e48ed2808d3a6b7 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Mon, 6 Sep 2010 21:45:24 +0400 Subject: [PATCH] avoid StringLiteralLexer to skip content after quote if the quote is not the last one --- .../lang-api/src/com/intellij/lexer/StringLiteralLexer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-api/src/com/intellij/lexer/StringLiteralLexer.java b/platform/lang-api/src/com/intellij/lexer/StringLiteralLexer.java index 55cf3fd9d517..fb97d6a79360 100644 --- a/platform/lang-api/src/com/intellij/lexer/StringLiteralLexer.java +++ b/platform/lang-api/src/com/intellij/lexer/StringLiteralLexer.java @@ -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++;