diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-10-13 13:35:45 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-10-13 13:36:18 +1300 |
commit | cc1b2d971bd1afc430756ded20e8c24d98fb4b9b (patch) | |
tree | 6fcb8868cfad7c71fdcd93e828537c659b3154e5 /src/stages/semantic.rs | |
parent | 73ab590c4420e051afba4a501c1dcb4fb99baeec (diff) | |
download | torque-asm-cc1b2d971bd1afc430756ded20e8c24d98fb4b9b.zip |
Rename labels/sublabels to global/local labels
This terminology has been used in the manual for a long time now.
Diffstat (limited to 'src/stages/semantic.rs')
-rw-r--r-- | src/stages/semantic.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stages/semantic.rs b/src/stages/semantic.rs index 6cd83f8..eb9e7b6 100644 --- a/src/stages/semantic.rs +++ b/src/stages/semantic.rs @@ -45,7 +45,7 @@ impl SemanticParser { match symbol { ScopedSymbol::Global(name) => match &self.namespace { Namespace::Macro(_) => { - let error = SemanticError::LabelInMacroDefinition; + let error = SemanticError::GlobalLabelInMacroDefinition; self.errors.push(Tracked::from(error, source.to_owned())); None } @@ -62,7 +62,7 @@ impl SemanticParser { Some(format!("{label_ns}/{name}")) } Namespace::None => { - let error = SemanticError::SublabelWithoutNamespace; + let error = SemanticError::LocalLabelWithoutNamespace; self.errors.push(Tracked::from(error, source.to_owned())); None } |