svghmi/parse_labels.ysl2
changeset 3595 375626e60b63
parent 3594 30f7eade322f
--- 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)