We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5adee36 commit 42f253aCopy full SHA for 42f253a
src/parser/cxx/preprocessor.cc
@@ -2691,6 +2691,8 @@ auto Preprocessor::Private::primaryExpression(TokList *&ts) -> long {
2691
2692
if (match(ts, TokenKind::T_INTEGER_LITERAL)) {
2693
return IntegerLiteral::Components::from(tk->text).value;
2694
+ } else if (match(ts, TokenKind::T_CHARACTER_LITERAL)) {
2695
+ return CharLiteral::Components::from(tk->text).value;
2696
} else if (match(ts, TokenKind::T_LPAREN)) {
2697
auto result = conditionalExpression(ts);
2698
expect(ts, TokenKind::T_RPAREN);
0 commit comments