From 4e8fae09f0f7d6f3a4ddbe285aeb01ef0622b761 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Sat, 15 Feb 2025 08:20:18 +1300 Subject: Implement semantic error reporting --- src/parsers/syntactic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parsers/syntactic.rs') 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; } } -- cgit v1.2.3-70-g09d2