diff options
| author | gingerBill <bill@gingerbill.org> | 2025-03-31 16:32:55 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-03-31 16:32:55 +0100 |
| commit | c1333d75ef9886fb4f1e89fc5dec6ad1a7bb523e (patch) | |
| tree | 1d97393d67163bbd64b3cdcab8df4fb8981d586c /src/parser.cpp | |
| parent | 70ddb74e402fe5c2c1b139c3e7a66a9eaf566930 (diff) | |
Add `##` and `##=` operators
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index f38f79607..a38351220 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -3490,6 +3490,7 @@ gb_internal i32 token_precedence(AstFile *f, TokenKind t) { case Token_AndNot: case Token_Shl: case Token_Shr: + case Token_Concat: return 7; } return 0; @@ -3778,6 +3779,7 @@ gb_internal Ast *parse_simple_stmt(AstFile *f, u32 flags) { case Token_AndNotEq: case Token_CmpAndEq: case Token_CmpOrEq: + case Token_ConcatEq: { if (f->curr_proc == nullptr) { syntax_error(f->curr_token, "You cannot use a simple statement in the file scope"); |