aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-24 11:35:55 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-24 11:35:55 +0200
commit9f731dbe32b66533839c7fb8e6c3518429106e5b (patch)
treeec4b12c938afa58616d2c0d446ae8d746c5a26b2
parent38a734ec35edbb466d2aad0ee72f34ff6d2e562d (diff)
downloadproperties-9f731dbe32b66533839c7fb8e6c3518429106e5b.tar.gz
properties-9f731dbe32b66533839c7fb8e6c3518429106e5b.zip
Ignore newline lines
In the properties file you can separeta blocks of properties using the newline character.
-rw-r--r--properties.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/properties.l b/properties.l
index 80240c2..4103d16 100644
--- a/properties.l
+++ b/properties.l
@@ -7,5 +7,6 @@
=|: return DIV;
^[ \t]*[a-zA-Z0-9\.]* yylval.value = strdup(yytext); return KEY;
. yylval.value = strdup(yytext); return VALUE;
+\n* ;
%%