# line2
# The name consists of the characters A-Z, a-z, 0-9, '-', '_', and '.'.
#
-# In the first format (name: value) the ':' must be immediately after the name.
-# The value starts immediately after the first whitespace and is taken directly
-# without any processing.
+# In the first format (name: value):
+# - Any amount (including 0) of whitespace is allowed before the ':'.
+# - The value starts immediately after the first whitespace after the ':'
+# and is taken directly without any processing.
#
# In the second format (name = value) some processing is performed:
# - Any amount (including 0) of whitespace is allowed before and
print_debug($depth, "LINE $line");
# new definition name: value
- if ($line =~ /^([A-Za-z0-9_\-\.]+):[ \t](.*)$/) {
+ if ($line =~ /^([A-Za-z0-9_\-\.]+)[ \t]*:[ \t](.*)$/) {
$parse_mode = 0;
unless ($if_block) {
$name = $1;