summaryrefslogtreecommitdiff
path: root/src/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c
index 8d373416..3d5d32a3 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -619,7 +619,7 @@ packgram (void)
/* If the midrule's $$ is set or its $n is used, remove the '$' from the
symbol name so that it's a user-defined symbol so that the default
%destructor and %printer apply. */
- if (lhs->midrule_parent_rule
+ if (lhs->midrule_parent_rule /* i.e., symbol_is_dummy (lhs->content.sym). */
&& (lhs->action_props.is_value_used
|| (symbol_list_n_get (lhs->midrule_parent_rule,
lhs->midrule_parent_rhs_index)