mirror of
https://github.com/rm-dr/daisy
synced 2025-04-10 15:13:28 -07:00
Fixed unary + at start
This commit is contained in:
parent
9b099bb408
commit
82b577568c
@ -22,7 +22,9 @@ fn lookback_signs(
|
|||||||
=> {
|
=> {
|
||||||
if o == "-" {
|
if o == "-" {
|
||||||
g.insert(i, PreToken::PreOperator(*l, String::from("neg")));
|
g.insert(i, PreToken::PreOperator(*l, String::from("neg")));
|
||||||
} else if o != "+" { g.insert(i, a); }
|
} else if o == "+" {
|
||||||
|
continue; // We should not increment i if we remove a token
|
||||||
|
} else {g.insert(i, a);}
|
||||||
},
|
},
|
||||||
_ => { g.insert(i, a); }
|
_ => { g.insert(i, a); }
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user