aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--properties.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/properties.l b/properties.l
index a5102d0..5ffe47b 100644
--- a/properties.l
+++ b/properties.l
@@ -6,7 +6,7 @@
=|: return DIV;
^[ \t]*[a-zA-Z0-9\.]* yylval.value = strdup(yytext); return KEY;
-\n ;
+\n ; /* Ignores empty lines with a single newline */
. yylval.value = strdup(yytext); return VALUE;
^[ \t]*/\r?\n ; /* /\r?\n get the end of line, ref: https://stackoverflow.com/a/56104754 */