forgot to push new error with previous commit

This commit is contained in:
gluax 2021-03-23 16:06:39 -04:00
parent 8c996fb15d
commit 62e68f42da

View File

@ -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!(