From 9d6f5740b1dcc0386037bcd0d26d5433fa4bc1eb Mon Sep 17 00:00:00 2001 From: Erin Date: Tue, 1 Mar 2022 23:07:23 +0100 Subject: [PATCH] \ is valid part of identifiers --- ablescript/src/lexer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ablescript/src/lexer.rs b/ablescript/src/lexer.rs index 95cc355..1a4202e 100644 --- a/ablescript/src/lexer.rs +++ b/ablescript/src/lexer.rs @@ -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 .*")]