Added support for idents starting with _

pull/6/head
ondra05 2022-03-12 23:26:39 +01:00
parent d47bd65387
commit 6ea380f3a0
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ pub enum Token {
Integer(isize),
/// An identifier
#[regex(r"[\p{XID_Start}|\\][\p{XID_Continue}|\\]*", get_ident)]
#[regex(r"[\p{XID_Start}|\\|_][\p{XID_Continue}|\\]*", get_ident)]
Identifier(String),
#[regex(r"owo .*")]