summaryrefslogtreecommitdiff
path: root/prism
diff options
context:
space:
mode:
Diffstat (limited to 'prism')
-rw-r--r--prism/prism.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/prism/prism.c b/prism/prism.c
index 1c1b53f787..4d2602cdb9 100644
--- a/prism/prism.c
+++ b/prism/prism.c
@@ -3999,9 +3999,8 @@ pm_keyword_hash_node_create(pm_parser_t *parser) {
*/
static void
pm_keyword_hash_node_elements_append(pm_keyword_hash_node_t *hash, pm_node_t *element) {
- // If the element being added is not an AssocNode or does not have a symbol key, then
- // we want to turn the STATIC_KEYS flag off.
- // TODO: Rename the flag to SYMBOL_KEYS instead.
+ // If the element being added is not an AssocNode or does not have a symbol
+ // key, then we want to turn the SYMBOL_KEYS flag off.
if (!PM_NODE_TYPE_P(element, PM_ASSOC_NODE) || !PM_NODE_TYPE_P(((pm_assoc_node_t *) element)->key, PM_SYMBOL_NODE)) {
pm_node_flag_unset((pm_node_t *)hash, PM_KEYWORD_HASH_NODE_FLAGS_SYMBOL_KEYS);
}