aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-05-09 16:21:31 +0100
committerGinger Bill <bill@gingerbill.org>2017-05-09 16:21:31 +0100
commitc6d531df9597253ee95593c56e61039fe4e40ba2 (patch)
tree8469ee00657577f4909891e8773231351f54b3cd /src/parser.c
parent8677c81da7ca8af37c49a203a18fd7beab74f023 (diff)
Add %% operator (divisor modulo)
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.c b/src/parser.c
index 7054adfa0..fb8d5d91b 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -2136,6 +2136,7 @@ i32 token_precedence(AstFile *f, TokenKind t) {
case Token_Mul:
case Token_Quo:
case Token_Mod:
+ case Token_ModMod:
case Token_And:
case Token_AndNot:
case Token_Shl:
@@ -2305,6 +2306,7 @@ AstNode *parse_simple_stmt(AstFile *f, bool in_stmt_ok) {
case Token_MulEq:
case Token_QuoEq:
case Token_ModEq:
+ case Token_ModModEq:
case Token_AndEq:
case Token_OrEq:
case Token_XorEq: