\ is valid part of identifiers

This commit is contained in:
Erin 2022-03-01 23:07:23 +01:00 committed by ondra05
parent dbbe46fa5e
commit e17b67e438

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 .*")]