mirror of
https://github.com/Noratrieb/ub.git
synced 2026-01-14 08:35:06 +01:00
ident
This commit is contained in:
parent
234f03dc1a
commit
888fcfd170
1 changed files with 4 additions and 1 deletions
|
|
@ -48,8 +48,11 @@ pub enum Token {
|
|||
#[token("fn")]
|
||||
Fn,
|
||||
|
||||
#[regex(r"[a-zA-Z_]\w*")]
|
||||
Ident(String),
|
||||
|
||||
#[error]
|
||||
#[regex(r"[ \t\n\r\f]+")]
|
||||
#[regex(r"[ \t\n\r\f]+"), logos::skip]
|
||||
Error,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue