From 244273d303fa7ee64c15ab5cd6be9c2445a2a2e5 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Wed, 24 Jul 2024 11:58:17 +0200 Subject: Ignore single line ending with newline --- properties.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ %% -- cgit v1.2.3