parser: allow from as reserved ident

This commit is contained in:
Ryan Chandler 2022-11-30 00:58:22 +00:00
parent 490648514a
commit 29946919ad
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -145,5 +145,6 @@ pub(crate) fn is_reserved_ident(kind: &TokenKind) -> bool {
| TokenKind::HaltCompiler
| TokenKind::Fn
| TokenKind::Match
| TokenKind::Enum)
| TokenKind::Enum
| TokenKind::From)
}