\ is valid part of identifiers

pull/6/head
ondra05 2022-03-01 23:07:23 +01:00
parent e7a4a99edc
commit c3a51e3221
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 .*")]