summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/reader.c2
-rw-r--r--src/scan-code.l4
2 files changed, 3 insertions, 3 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)
diff --git a/src/scan-code.l b/src/scan-code.l
index 9141a9a5..2677a79a 100644
--- a/src/scan-code.l
+++ b/src/scan-code.l
@@ -745,8 +745,8 @@ handle_action_at (symbol_list *rule, char *text, location at_loc)
| Initialize the scanner. |
`-------------------------*/
-/* Translate the dollars and ats in \a self, in the context \a sc_context
- (SC_RULE_ACTION, SC_SYMBOL_ACTION, INITIAL). */
+/* Translate the '$...' and '@...' in \a self, in the context \a
+ sc_context (SC_RULE_ACTION, SC_SYMBOL_ACTION, INITIAL). */
static char const *
translate_action (code_props *self, int sc_context)