aboutsummaryrefslogtreecommitdiff
path: root/properties.l
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-08-13 11:08:56 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-08-13 11:08:56 +0200
commit4e5fcd691545ea51d17a2aa8accfc89d303c3d9f (patch)
treeb012c9feeaf244bc300c6555559dde8873780e82 /properties.l
parent1cf817eba1ab8c2ee46a73c6bea9b7e70e418cdd (diff)
downloadproperties-4e5fcd691545ea51d17a2aa8accfc89d303c3d9f.tar.gz
properties-4e5fcd691545ea51d17a2aa8accfc89d303c3d9f.zip
Add possibility of using ':' and '=' as values
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 50acbd7..b1b8617 100644
--- a/properties.l
+++ b/properties.l
@@ -5,7 +5,7 @@
%%
-=|: return DIV;
+=|: yylval.value = strdup(yytext); return DIV;
^[ \t]*[a-zA-Z0-9\.]*[ \t]* yylval.value = strdup(trim(yytext)); return KEY;
\n ; /* Ignores empty lines with a single newline */
^[ \t]*#.* ; /* Ignores comments */