From 567665a314d5abdacbac57e1c2991342d09c0c1a Mon Sep 17 00:00:00 2001 From: Erin Date: Thu, 24 Feb 2022 21:53:43 +0100 Subject: [PATCH] fixed strings --- 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 2029bf18..480c073a 100644 --- a/ablescript/src/lexer.rs +++ b/ablescript/src/lexer.rs @@ -122,7 +122,7 @@ pub enum Token { Abool(Abool), /// String - #[regex("/\\*(\\.|[^\\*/])*\\*/", get_string)] + #[regex(r"/\*([^\*]*\*+[^\*/])*([^\*]*\*+|[^\*]*\*/)", get_string)] String(String), /// Integer