From effc9ac938a8f582ebdec541990345f74b0abf65 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Tue, 25 Mar 2025 11:55:09 +1300 Subject: Recognise : as a valid symbol When parsing a standalone : character, the following characters were also being consumed and appended instead of the expected behaviour where the current token should end as soon as a : is encountered. --- src/stages/syntactic.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/stages/syntactic.rs b/src/stages/syntactic.rs index 960a4ed..ff3a65a 100644 --- a/src/stages/syntactic.rs +++ b/src/stages/syntactic.rs @@ -117,6 +117,9 @@ fn parse_syntactic_from_tokeniser(mut t: Tokeniser) -> Result err!(SyntacticError::InvalidPaddingValue), } }, + ':' => { + SyntacticToken::Invocation(String::from(':')) + } c => { let token = format!("{c}{}", t.eat_token()); if let Ok(value) = token.parse::() { -- cgit v1.2.3-70-g09d2