summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-11-01 21:41:28 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-11-01 21:41:28 (GMT)
commit384a83a4c36778c4cb2b3e2403b62862966e6544 (patch)
tree0c8bb8d3fcb808994885658aced2f0cb519df812
parentce33112cf8c913635402cb8b6d127f9ac9f2b6b5 (diff)
Accept empty strings as meta data and conditions once again.
-rw-r--r--src/analysis/scan/tokens.l8
1 files 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;
}
- <meta_value>\"{str_not_escaped}+\" {
+ <meta_value>\"{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;
}
- <meta_value>\"{str_mixed}+\" {
+ <meta_value>\"{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_]*
<condition>[mM][bB] { return MB; }
<condition>[gG][bB] { return GB; }
-<condition>\"{str_not_escaped}+\" {
+<condition>\"{str_not_escaped}*\" {
yylval->sized_cstring.data = yytext + 1;
yylval->sized_cstring.len = yyleng - 2;
return PLAIN_TEXT;
}
-<condition>\"{str_mixed}+\" {
+<condition>\"{str_mixed}*\" {
POP_STATE;
rost_unescape_string_bytes(yytext + 1, yyleng - 2, tmp_0);