diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-01-25 08:43:41 -0500 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-01-25 13:58:07 +0000 |
| commit | ebf803aa196e2df4c129b1ec11107363ebbe1382 (patch) | |
| tree | bf0020630ce863480afa5e5b726a7b0109d4b2e1 /prism | |
| parent | fdb8f086396e0f9b64e069852cb0dd40147877d1 (diff) | |
[ruby/prism] Fix Ruby head build
https://github.com/ruby/prism/commit/149e2ff7f6
Diffstat (limited to 'prism')
| -rw-r--r-- | prism/prism.c | 5 |
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); } |
