diff options
author | Ufuk Kayserilioglu <ufuk.kayserilioglu@shopify.com> | 2023-12-11 22:26:06 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-12-12 13:05:08 +0000 |
commit | 25b9a0cbc86da562e765e4fac27bb28311646971 (patch) | |
tree | dd180455113632114c38bac49f9d9f36dac04810 /prism | |
parent | d1c25605f671c85b1088cb8021d815a89b629dbf (diff) |
[ruby/prism] Add `STATIC_KEYS` flag for `KeywordHashNode`
https://github.com/ruby/prism/commit/aa83de39c1
Diffstat (limited to 'prism')
-rw-r--r-- | prism/config.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/prism/config.yml b/prism/config.yml index 5f20c80f16..7e71e4e50b 100644 --- a/prism/config.yml +++ b/prism/config.yml @@ -364,6 +364,11 @@ flags: - name: HEXADECIMAL comment: "0x prefix" comment: Flags for integer nodes that correspond to the base of the integer. + - name: KeywordHashNodeFlags + values: + - name: STATIC_KEYS + comment: "a keyword hash which only has `AssocNode` elements all with static literal keys, which means the elements can be treated as keyword arguments" + comment: Flags for keyword hash nodes. - name: LoopFlags values: - name: BEGIN_MODIFIER @@ -1821,6 +1826,9 @@ nodes: ^^^^^^^^^^^^^^^^ - name: KeywordHashNode fields: + - name: flags + type: flags + kind: KeywordHashNodeFlags - name: elements type: node[] comment: | |