aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-24 11:24:41 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-24 11:24:41 +0200
commit38a734ec35edbb466d2aad0ee72f34ff6d2e562d (patch)
tree184836e767cff0185dcf751fdf7c12ba4e8f0a1d
parent59852a307d7094dfe9d3844a45f73e8f4eb73354 (diff)
downloadproperties-38a734ec35edbb466d2aad0ee72f34ff6d2e562d.tar.gz
properties-38a734ec35edbb466d2aad0ee72f34ff6d2e562d.zip
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.
-rw-r--r--properties.l1
1 files changed, 0 insertions, 1 deletions
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;
%%