From e010ea0cc5e3e8ec210d5e469ad4a41296fc4d50 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Wed, 15 Oct 2025 12:57:43 +1300 Subject: Remove string-style argument syntax from error message The string-style argument syntax is no longer supported, it has been replaced with a list-style syntax (using square brackets instead of double-quotes). --- src/stages/semantic_tokens.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stages') diff --git a/src/stages/semantic_tokens.rs b/src/stages/semantic_tokens.rs index 7aa6093..69c6c98 100644 --- a/src/stages/semantic_tokens.rs +++ b/src/stages/semantic_tokens.rs @@ -211,7 +211,7 @@ fn report_semantic_error(error: &Tracked, source_code: &str) { &format!("A string value was expected {location}"), SemanticError::InvalidArgumentDefinition => - "Argument definition must take one of the following forms: name, {name}, \"name\", or [name]", + "Argument definition must take one of the following forms: name, {name}, or [name]", SemanticError::InvalidInvocationArgument => "This token cannot be used in an invocation argument", SemanticError::InvalidBlockInExpression => -- cgit v1.2.3-70-g09d2