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