mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-29 21:22:55 +03:00
forgot to push new error with previous commit
This commit is contained in:
parent
8c996fb15d
commit
62e68f42da
@ -72,6 +72,10 @@ impl SyntaxError {
|
||||
)
|
||||
}
|
||||
|
||||
pub fn invalid_ident_name(got: &str, expected: &str, span: &Span) -> Self {
|
||||
Self::new_from_span(format!("expected identifier {} -- got '{}'", expected, got), span)
|
||||
}
|
||||
|
||||
pub fn unexpected_ident(got: &str, expected: &[&str], span: &Span) -> Self {
|
||||
Self::new_from_span(
|
||||
format!(
|
||||
|
Loading…
Reference in New Issue
Block a user