forked from AbleScript/ablescript
Added support for idents starting with _
This commit is contained in:
parent
4d8ee1a0d7
commit
8ad10e132b
|
@ -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 .*")]
|
||||
|
|
Loading…
Reference in a new issue