diff options
-rw-r--r-- | src/stages/semantic_tokens.rs | 2 | ||||
-rw-r--r-- | src/stages/syntactic_tokens.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/stages/semantic_tokens.rs b/src/stages/semantic_tokens.rs index ca5b27a..365546f 100644 --- a/src/stages/semantic_tokens.rs +++ b/src/stages/semantic_tokens.rs @@ -63,7 +63,7 @@ fn report_semantic_error(error: &Tracked<SemanticError>, source_code: &str) { let context = Context { source_code: &source_code, source: &error.source }; let message = match &error.value { SemanticError::InvocationBeforeDefinition => - "Invocation before definition", + "Macro cannot be invoked before it has been defined", }; report_source_issue(LogLevel::Error, &context, message); diff --git a/src/stages/syntactic_tokens.rs b/src/stages/syntactic_tokens.rs index 57e78e7..4c258c6 100644 --- a/src/stages/syntactic_tokens.rs +++ b/src/stages/syntactic_tokens.rs @@ -50,7 +50,7 @@ fn report_syntactic_error(error: &Tracked<SyntacticError>, source_code: &str) { let context = Context { source_code: &source_code, source: &error.source }; let message = match &error.value { SyntacticError::UnterminatedBlock => - "Block was not terminated, add a '}}' character to terminate", + "Block was not terminated, add a '}' character to terminate", SyntacticError::UnterminatedComment => "Comment was not terminated, add a ')' character to terminate", SyntacticError::UnterminatedRawString => |