From a8ee994ae0fc986056b4d32c5797ab448ae5a812 Mon Sep 17 00:00:00 2001 From: Jean Mertz Date: Sat, 16 Mar 2019 22:08:50 +0100 Subject: support remainder assignment operator --- crates/ra_parser/src/grammar/expressions.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/ra_parser/src/grammar') diff --git a/crates/ra_parser/src/grammar/expressions.rs b/crates/ra_parser/src/grammar/expressions.rs index 70c71a8e1..0df57afa7 100644 --- a/crates/ra_parser/src/grammar/expressions.rs +++ b/crates/ra_parser/src/grammar/expressions.rs @@ -155,6 +155,7 @@ fn current_op(p: &Parser) -> (u8, Op) { (PLUS, EQ) => return (1, Op::Composite(PLUSEQ, 2)), (MINUS, EQ) => return (1, Op::Composite(MINUSEQ, 2)), (STAR, EQ) => return (1, Op::Composite(STAREQ, 2)), + (PERCENT, EQ) => return (1, Op::Composite(PERCENTEQ, 2)), (SLASH, EQ) => return (1, Op::Composite(SLASHEQ, 2)), (PIPE, EQ) => return (1, Op::Composite(PIPEEQ, 2)), (AMP, EQ) => return (1, Op::Composite(AMPEQ, 2)), -- cgit v1.2.3