diff options
author | Matthew Healy <[email protected]> | 2024-01-08 22:07:01 +0100 |
---|---|---|
committer | git <[email protected]> | 2024-01-19 15:43:28 +0000 |
commit | 57c138c5f4a57890f55a54c7c3f5bb55ee49c909 (patch) | |
tree | bd3cdecdae598756cc3755693240ce11839e4312 | |
parent | b7d37e274a58cc3afa06d421627d11e226329cec (diff) |
[ruby/prism] Document ConstantReadNode fields
https://github.com/ruby/prism/commit/a1623f6451
-rw-r--r-- | prism/config.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/prism/config.yml b/prism/config.yml index 70de2d9477..9720d1a83b 100644 --- a/prism/config.yml +++ b/prism/config.yml @@ -1225,6 +1225,17 @@ nodes: fields: - name: name type: constant + comment: | + The name of the constant. Constant names begin with an upper-case + letter, followed by arbitrarily many underscores, alphanumeric or + non-ASCII characters. The exact definitions of "upper-case", + and "alphanumeric" are encoding-dependent. + + X # name `:X` + + SOME_CONSTANT # name `:SOME_CONSTANT` + + F🥨 # name `:F🥨` comment: | Represents referencing a constant. |