From c1bc0e8a96ab68337797e12663e127bc9e5fbaed Mon Sep 17 00:00:00 2001 From: Erin Date: Sat, 16 Apr 2022 22:06:37 +0200 Subject: [PATCH] No underscore! --- 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 a67452e8..9c7d49b4 100644 --- a/ablescript/src/lexer.rs +++ b/ablescript/src/lexer.rs @@ -117,7 +117,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 .*")]