mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-03-28 06:01:02 +00:00
Better span for error message
This commit is contained in:
parent
0b87eb71e4
commit
e265fa81fe
@ -177,13 +177,8 @@ impl<'grammar> Validator<'grammar> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
if norm_util::check_funky_expression(action).is_in_curly_brackets() {
|
if norm_util::check_funky_expression(action).is_in_curly_brackets() {
|
||||||
let sym =
|
|
||||||
syms.iter()
|
|
||||||
.map(|&(_, sym)| sym)
|
|
||||||
.next()
|
|
||||||
.unwrap();
|
|
||||||
return_err!(
|
return_err!(
|
||||||
sym.span,
|
alternative.span,
|
||||||
"the `<>` expression requires to explicitly assign fields' names to values");
|
"the `<>` expression requires to explicitly assign fields' names to values");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user