summaryrefslogtreecommitdiff
path: root/scripts/build-command-templates
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build-command-templates')
-rwxr-xr-xscripts/build-command-templates5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build-command-templates b/scripts/build-command-templates
index dbf4ad9c5..c6534a6d8 100755
--- a/scripts/build-command-templates
+++ b/scripts/build-command-templates
@@ -264,6 +264,11 @@ def process_node(n, tmpl_dir):
if node_type == "tagNode":
props["tag"] = "True"
+ if node_type != "leafNode":
+ if "multi" in props:
+ raise ValueError("<multi/> tag is only allowed in <leafNode>")
+ if "valueless" in props:
+ raise ValueError("<valueless/> is only allowed in <leafNode>")
nodedef_path = os.path.join(make_path(my_tmpl_dir), "node.def")
if not os.path.exists(nodedef_path):