aboutsummaryrefslogtreecommitdiff
path: root/properties.l
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-24 12:01:27 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-07-24 12:01:27 +0200
commit90a72c4b49d81ca5116788f90144e40c17136153 (patch)
tree3fad2704da2aafba6a33a868618bade5cc821622 /properties.l
parent244273d303fa7ee64c15ab5cd6be9c2445a2a2e5 (diff)
downloadproperties-90a72c4b49d81ca5116788f90144e40c17136153.tar.gz
properties-90a72c4b49d81ca5116788f90144e40c17136153.zip
Add a comment
Diffstat (limited to 'properties.l')
-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 */