aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-24 11:58:17 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-24 11:58:17 +0200
commit244273d303fa7ee64c15ab5cd6be9c2445a2a2e5 (patch)
tree2ca43ecdca27db113111d8ea90cdd01374c73d2b
parent308dfa1918472ef86fb844d62e2ddc2d4ef0687e (diff)
downloadproperties-244273d303fa7ee64c15ab5cd6be9c2445a2a2e5.tar.gz
properties-244273d303fa7ee64c15ab5cd6be9c2445a2a2e5.zip
Ignore single line ending with newline
-rw-r--r--properties.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/properties.l b/properties.l
index ce4ffb8..a5102d0 100644
--- a/properties.l
+++ b/properties.l
@@ -6,8 +6,8 @@
=|: return DIV;
^[ \t]*[a-zA-Z0-9\.]* yylval.value = strdup(yytext); return KEY;
+\n ;
. yylval.value = strdup(yytext); return VALUE;
-\n* ;
^[ \t]*/\r?\n ; /* /\r?\n get the end of line, ref: https://stackoverflow.com/a/56104754 */
%%