From 6dec02c60c8c36a70fe06478a4f558f1df617cd0 Mon Sep 17 00:00:00 2001 From: Erin Date: Sat, 2 Apr 2022 20:39:48 +0200 Subject: [PATCH] removed \ from idents --- 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 6a6df61..4c0e54d 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 .*")]