forked from AbleScript/ablescript
\ is valid part of identifiers
This commit is contained in:
parent
dbbe46fa5e
commit
e17b67e438
|
@ -120,7 +120,7 @@ pub enum Token {
|
||||||
Integer(isize),
|
Integer(isize),
|
||||||
|
|
||||||
/// An identifier
|
/// An identifier
|
||||||
#[regex(r"\p{XID_Start}\p{XID_Continue}*", get_ident)]
|
#[regex(r"[\p{XID_Start}|\\][\p{XID_Continue}|\\]*", get_ident)]
|
||||||
Identifier(String),
|
Identifier(String),
|
||||||
|
|
||||||
#[regex(r"owo .*")]
|
#[regex(r"owo .*")]
|
||||||
|
|
Loading…
Reference in a new issue