This commit is contained in:
nora 2022-03-21 12:44:40 +01:00
parent 234f03dc1a
commit 888fcfd170

View file

@ -48,8 +48,11 @@ pub enum Token {
#[token("fn")] #[token("fn")]
Fn, Fn,
#[regex(r"[a-zA-Z_]\w*")]
Ident(String),
#[error] #[error]
#[regex(r"[ \t\n\r\f]+")] #[regex(r"[ \t\n\r\f]+"), logos::skip]
Error, Error,
} }