diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2025-02-15 08:20:18 +1300 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2025-02-15 08:20:18 +1300 |
commit | 4e8fae09f0f7d6f3a4ddbe285aeb01ef0622b761 (patch) | |
tree | 79eab5ef0f5d3eee7949a317db50489dac2fce99 /src/parsers/syntactic.rs | |
parent | e39505931b05be321ee2b04c41a9739f00c19208 (diff) | |
download | torque-asm-4e8fae09f0f7d6f3a4ddbe285aeb01ef0622b761.zip |
Implement semantic error reporting
Diffstat (limited to 'src/parsers/syntactic.rs')
-rw-r--r-- | src/parsers/syntactic.rs | 2 |
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; } } |