diff -r 30f7eade322f -r 375626e60b63 svghmi/parse_labels.ysl2 --- a/svghmi/parse_labels.ysl2 Tue Aug 23 12:19:44 2022 +0200 +++ b/svghmi/parse_labels.ysl2 Wed Aug 31 12:16:09 2022 +0200 @@ -70,11 +70,7 @@ } attrib "freq" > «$freq» } - foreach "str:split(substring-after($args, ':'), ':')" { - arg { - attrib "value" > «.» - } - } + // find "#" + JS expr at the end const "tail", "substring-after($declaration,'@')"; const "taillen","string-length($tail)"; @@ -90,6 +86,12 @@ attrib "enable_expr" value "$enable_expr"; } + foreach "str:split(substring-after($args, ':'), ':')" { + arg { + attrib "value" > «.» + } + } + // for stricter syntax checking, this should make error // if $paths contains "@@" or ends with "@" (empty paths)