Skip to content

Commit a63acb5

Browse files
fix: correct plus operator handling logic
1 parent 9978d31 commit a63acb5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

wheel_lexer/include/wheel_lexer/handlers.hxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ WHEEL_LEXER_NAMESPACE
127127
_WHEEL_HANDLERS(if_plus) {
128128
cursor.bump();
129129

130-
auto next = cursor.bump();
130+
auto next = cursor.first();
131131
if(next == '+') {
132+
cursor.bump();
133+
132134
DEBUG_PRINT(FORMAT("'if_plus': {}", next));
133135
_WHEEL_MAKE_TOKEN(Kind::PLUS_PLUS, _SOURCE_TEXT(cursor, start));
134136
}

0 commit comments

Comments
 (0)