mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
support remainder assignment operator
This commit is contained in:
parent
9a59272f5f
commit
a8ee994ae0
3 changed files with 218 additions and 0 deletions
|
@ -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)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue