From 384a83a4c36778c4cb2b3e2403b62862966e6544 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Wed, 1 Nov 2023 22:41:28 +0100 Subject: Accept empty strings as meta data and conditions once again. --- src/analysis/scan/tokens.l | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/analysis/scan/tokens.l b/src/analysis/scan/tokens.l index 11f5d9e..98c7bd8 100644 --- a/src/analysis/scan/tokens.l +++ b/src/analysis/scan/tokens.l @@ -482,7 +482,7 @@ bytes_fuzzy_id [\*A-Za-z_][\*A-Za-z0-9_]* return UNSIGNED_INTEGER; } - \"{str_not_escaped}+\" { + \"{str_not_escaped}*\" { POP_STATE; yylval->sized_cstring.data = yytext + 1; @@ -491,7 +491,7 @@ bytes_fuzzy_id [\*A-Za-z_][\*A-Za-z0-9_]* return PLAIN_TEXT; } - \"{str_mixed}+\" { + \"{str_mixed}*\" { POP_STATE; rost_unescape_string_bytes(yytext + 1, yyleng - 2, tmp_0); @@ -523,14 +523,14 @@ bytes_fuzzy_id [\*A-Za-z_][\*A-Za-z0-9_]* [mM][bB] { return MB; } [gG][bB] { return GB; } -\"{str_not_escaped}+\" { +\"{str_not_escaped}*\" { yylval->sized_cstring.data = yytext + 1; yylval->sized_cstring.len = yyleng - 2; return PLAIN_TEXT; } -\"{str_mixed}+\" { +\"{str_mixed}*\" { POP_STATE; rost_unescape_string_bytes(yytext + 1, yyleng - 2, tmp_0); -- cgit v0.11.2-87-g4458