From 4ec376b67d605910cb7757dc2e15a28a942f59ca Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 28 May 2026 04:24:51 +0200 Subject: Correct type modifier combinations and grouping Signed-off-by: Mel --- boot/lex.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'boot/lex.c') diff --git a/boot/lex.c b/boot/lex.c index 6c3e86f..29b5294 100644 --- a/boot/lex.c +++ b/boot/lex.c @@ -335,7 +335,7 @@ bool token_ends_statement(const struct Token* t) { return token_is(t, TOKEN_END_OF_FILE) || token_is(t, TOKEN_NEWLINE) - || token_is(t, TOKEN_SEMICOLON); + || token_is(t, TOKEN_SEMICOLON); } bool @@ -358,6 +358,7 @@ token_can_begin_type(const struct Token* t) // references case TOKEN_AMPERSAND: + case TOKEN_AND: // `&&` counts as a double-reference! return true; default: return false; @@ -877,4 +878,4 @@ lexer_next(struct Lexer* l) union Token_Value value = (union Token_Value){ .unknown_character = c.character }; return token_new(TOKEN_SOMETHING, span_width(position, 1), cursor, value); -} \ No newline at end of file +} -- cgit 1.4.1