Skip to content

Commit def1451

Browse files
authored
Update FormatTokenLexer.cpp
1 parent d32d17a commit def1451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Format/FormatTokenLexer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,8 +1356,8 @@ FormatToken *FormatTokenLexer::getNextToken() {
13561356
FormatTok->TokenText = FormatTok->TokenText.substr(0, 1);
13571357
++Column;
13581358
StateStack.push(LexerState::TOKEN_STASHED);
1359-
} else if (Style.isJava() && FormatTok->is(tok::string_literal)) {
1360-
tryParseJavaTextBlock();
1359+
} else if (Style.Language == FormatStyle::LK_Java &&
1360+
FormatTok->is(tok::string_literal)) {
13611361
}
13621362

13631363
if (Style.isVerilog() && Tokens.size() > 0 &&

0 commit comments

Comments
 (0)