From 38a734ec35edbb466d2aad0ee72f34ff6d2e562d Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Wed, 24 Jul 2024 11:24:41 +0200 Subject: Remove the Lex rule to ignore tabs and spaces Those characters must be read inside the value. With that rule, I had properties without spaces or tabs, for example: key1=value with a space Became: key1=valuewithaspace So, this commit resolves that issue. --- properties.l | 1 - 1 file changed, 1 deletion(-) diff --git a/properties.l b/properties.l index eb6ff81..80240c2 100644 --- a/properties.l +++ b/properties.l @@ -6,7 +6,6 @@ =|: return DIV; ^[ \t]*[a-zA-Z0-9\.]* yylval.value = strdup(yytext); return KEY; -[ \t]* ; . yylval.value = strdup(yytext); return VALUE; %% -- cgit v1.2.3