From 9ed0843765f0f97f6d3f989995a492da20b8c410 Mon Sep 17 00:00:00 2001 From: Hannes von Haugwitz Date: Tue, 3 Sep 2024 19:41:19 +0200 Subject: [PATCH] Fix parsing of lowercase group names * closes: #176 --- ChangeLog | 3 +++ src/conf_lex.l | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3505168..df764e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2024-09-03 Hannes von Haugwitz + * Fix parsing of lowercase group names (closes: #176) + 2023-08-01 Hannes von Haugwitz * Release aide 0.18.6 diff --git a/src/conf_lex.l b/src/conf_lex.l index 4186101..0cf8c71 100644 --- a/src/conf_lex.l +++ b/src/conf_lex.l @@ -5,8 +5,6 @@ G [a-zA-Z0-9] V [a-zA-Z_]+[a-zA-Z0-9_]* E [\ ]*"="[\ ]* -O [a-z_] - %{ #define YYDEBUG 1 @@ -460,7 +458,7 @@ LOG_LEVEL lex_log_level = LOG_LEVEL_DEBUG; return (CONFIGOPTION); } -({O})+ { +[a-z]+(_[a-z]+)+ { log_msg(LOG_LEVEL_ERROR,"%s:%d: unknown config option: '%s' (line: '%s')", conf_filename, conf_linenumber, conftext, conf_linebuf); exit(INVALID_CONFIGURELINE_ERROR); } -- 2.33.0