From 55a455d1105e4be9b29d7bd3e4bb7f64e5799bcc 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 2029bf1..480c073 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