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