diff options
| author | Matthew Healy <matthew@liamhealy.xyz> | 2024-01-08 21:34:11 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-01-19 15:43:27 +0000 |
| commit | 1c5e54069f0390c6cb0171d14a822dbc1f362f46 (patch) | |
| tree | 1469307bcb224a56f2f9d1f6f44175a45e77b5a6 | |
| parent | 3fa6dbf304b0c3f456bb14faa63820f5044ffc05 (diff) | |
[ruby/prism] Document NumberedReferenceReadNode fields
https://github.com/ruby/prism/commit/c3148b4519
| -rw-r--r-- | prism/config.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/prism/config.yml b/prism/config.yml index 73ee41a6c8..f26494f70f 100644 --- a/prism/config.yml +++ b/prism/config.yml @@ -2287,6 +2287,16 @@ nodes: fields: - name: number type: uint32 + comment: | + The (1-indexed, from the left) number of the capture group. Numbered + references that would overflow a `uint32` result in a `number` of + exactly `2**32 - 1`. + + $1 # number `1` + + $5432 # number `5432` + + $4294967296 # number `4294967295` comment: | Represents reading a numbered reference to a capture in the previous match. |
