mirror of https://github.com/rm-dr/daisy
Fixed negative syntax bug
parent
1774c105f4
commit
d2f03976f8
|
@ -42,7 +42,7 @@ pub fn p_tokenize(input: &String) -> VecDeque<Token> {
|
||||||
// If previous token was any of the following,
|
// If previous token was any of the following,
|
||||||
// this is the "minus" operator
|
// this is the "minus" operator
|
||||||
Some(Token::PreNumber(_, _)) |
|
Some(Token::PreNumber(_, _)) |
|
||||||
Some(Token::PreGroup(_, _)) |
|
Some(Token::PreGroupEnd(_)) |
|
||||||
Some(Token::PreWord(_, _)) => {
|
Some(Token::PreWord(_, _)) => {
|
||||||
t = Some(Token::PreOperator(
|
t = Some(Token::PreOperator(
|
||||||
LineLocation{pos: i, len: 1},
|
LineLocation{pos: i, len: 1},
|
||||||
|
|
Loading…
Reference in New Issue