diff --git a/ablescript/src/lexer.rs b/ablescript/src/lexer.rs index 07c99dd..15522c2 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 .*")]