diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-04-26 09:30:24 +1200 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-04-26 09:31:58 +1200 |
commit | 83e5107684a37aa825d626c19a2af7fd6bfc231a (patch) | |
tree | 25de9db7c265e0560122796f4274686525bba719 /src | |
parent | 4b53479153806e3a1e7a4944313f77dc262117b2 (diff) | |
download | torque-asm-83e5107684a37aa825d626c19a2af7fd6bfc231a.zip |
Fix misleading error message
The code here is really expecting a block value, but has received an
integer value. This catches the case where an integer value is
incorrectly included in a macro definition body alongside block tokens.
Diffstat (limited to 'src')
-rw-r--r-- | src/stages/semantic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stages/semantic.rs b/src/stages/semantic.rs index 3c98192..ec2f704 100644 --- a/src/stages/semantic.rs +++ b/src/stages/semantic.rs @@ -137,7 +137,7 @@ impl SemanticParser { for token in tokens { match token { MacroDefinitionBody::Integer(integer) => { - let error = SemanticError::ExpectedInteger(location); + let error = SemanticError::ExpectedBlock(location); let tracked = Tracked::from(error, integer.source); self.errors.push(tracked); } |