mirror of
https://github.com/Noratrieb/ub.git
synced 2026-01-14 16:45:05 +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")]
|
#[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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue