summaryrefslogtreecommitdiff
path: root/src/cparse/cparse.ypp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cparse/cparse.ypp')
-rw-r--r--src/cparse/cparse.ypp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cparse/cparse.ypp b/src/cparse/cparse.ypp
index 80d1120..23a63b2 100644
--- a/src/cparse/cparse.ypp
+++ b/src/cparse/cparse.ypp
@@ -77,7 +77,9 @@ add_node()
CfgNode *mapped_node = cur_node;
if (cur_node->isTag() && cur_node->isValue()) {
// tag value => need to add the "tag node" on top
- CfgNode *p = new CfgNode(pcomps, nname, NULL, NULL, ndeact, cstore);
+ // (need to force "tag" if the node is invalid => tag_if_invalid)
+ CfgNode *p = new CfgNode(pcomps, nname, NULL, NULL, ndeact, cstore,
+ true);
p->addChildNode(cur_node);
mapped_node = p;
}