mirror of https://github.com/rm-dr/daisy
Fixed unary + at start
parent
9b099bb408
commit
82b577568c
|
@ -22,7 +22,9 @@ fn lookback_signs(
|
|||
=> {
|
||||
if o == "-" {
|
||||
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); }
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue