From d2f03976f8d8be64d6650d5a3521c5e0c1118ffe Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 27 Mar 2023 10:55:06 -0700 Subject: [PATCH] Fixed negative syntax bug --- src/parser/tokenize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/tokenize.rs b/src/parser/tokenize.rs index bb5833a..56f7a7f 100644 --- a/src/parser/tokenize.rs +++ b/src/parser/tokenize.rs @@ -42,7 +42,7 @@ pub fn p_tokenize(input: &String) -> VecDeque { // If previous token was any of the following, // this is the "minus" operator Some(Token::PreNumber(_, _)) | - Some(Token::PreGroup(_, _)) | + Some(Token::PreGroupEnd(_)) | Some(Token::PreWord(_, _)) => { t = Some(Token::PreOperator( LineLocation{pos: i, len: 1},