Skip to content

Commit c94df5f

Browse files
committed
Parse string literal operator definition,
but it isn't handled specially for now
1 parent cd218f0 commit c94df5f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

generator/parser/parser.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,15 @@ bool Parser::parseOperator(OperatorAST *&node)
10551055
ast->close = token_stream.cursor();
10561056
nextToken();
10571057
}
1058+
else if (token_stream.lookAhead() == Token_string_literal
1059+
&& token_stream.lookAhead(1) == Token_identifier)
1060+
{
1061+
// string literal operator
1062+
ast->op = token_stream.cursor();
1063+
nextToken();
1064+
// skip string literal suffix for now
1065+
nextToken();
1066+
}
10581067
else
10591068
{
10601069
return false;

0 commit comments

Comments
 (0)