summaryrefslogtreecommitdiff
path: root/src/parsers/syntactic.rs
diff options
context:
space:
mode:
authorBen Bridle <bridle.benjamin@gmail.com>2025-02-15 08:20:18 +1300
committerBen Bridle <bridle.benjamin@gmail.com>2025-02-15 08:20:18 +1300
commit4e8fae09f0f7d6f3a4ddbe285aeb01ef0622b761 (patch)
tree79eab5ef0f5d3eee7949a317db50489dac2fce99 /src/parsers/syntactic.rs
parente39505931b05be321ee2b04c41a9739f00c19208 (diff)
downloadtorque-asm-4e8fae09f0f7d6f3a4ddbe285aeb01ef0622b761.zip
Implement semantic error reporting
Diffstat (limited to 'src/parsers/syntactic.rs')
-rw-r--r--src/parsers/syntactic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parsers/syntactic.rs b/src/parsers/syntactic.rs
index c98a592..909dbaa 100644
--- a/src/parsers/syntactic.rs
+++ b/src/parsers/syntactic.rs
@@ -94,7 +94,7 @@ impl Iterator for SyntacticParser {
// Check if the comment fills the entire line.
if t.start_position.column == 0 && t.end_of_line() {
if let Some(path) = comment.strip_prefix(": ") {
- t.source_path = Some(PathBuf::from(path.trim()));
+ t.embedded_path = Some(PathBuf::from(path.trim()));
t.embedded_first_line = t.start_position.line + 1;
}
}