Skip to content

Commit 733f249

Browse files
committed
Add missing file location info from PR #625
1 parent d8240d1 commit 733f249

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lrpar/src/lib/ctbuilder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,6 +1543,8 @@ where
15431543
let inner_span =
15441544
Span::new(span.start() + last + off + "$".len(), span.end());
15451545
let mut s = String::from("\n");
1546+
s.push_str(&diag.file_location_msg("Error", Some(inner_span)));
1547+
s.push_str("\n");
15461548
s.push_str(&diag.underline_span_with_text(
15471549
inner_span,
15481550
"Unknown text following '$'".to_string(),

0 commit comments

Comments
 (0)