Skip to content

Commit d8240d1

Browse files
committed
add file location info
1 parent 0a9d9cf commit d8240d1

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
@@ -1464,6 +1464,8 @@ where
14641464
} else {
14651465
let mut s = String::from("\n");
14661466
let rule_span = grm.rule_name_span(ref_ridx);
1467+
s.push_str(&diag.file_location_msg("Error", Some(rule_span)));
1468+
s.push_str("\n");
14671469
s.push_str(&diag.underline_span_with_text(
14681470
rule_span,
14691471
"Rule missing action type".to_string(),

0 commit comments

Comments
 (0)