summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Healy <[email protected]>2024-01-08 21:25:30 +0100
committergit <[email protected]>2024-01-19 15:43:26 +0000
commit3fa6dbf304b0c3f456bb14faa63820f5044ffc05 (patch)
tree9f49daa8acc9e9cb700e6af1c0e57f07e6636d15
parent512be6cee1471c627c4677c44d750884b77e174f (diff)
[ruby/prism] Document BackReferencedReadNode fields
https://github.com/ruby/prism/commit/99a5660623
-rw-r--r--prism/config.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/prism/config.yml b/prism/config.yml
index a4488e6444..73ee41a6c8 100644
--- a/prism/config.yml
+++ b/prism/config.yml
@@ -633,6 +633,12 @@ nodes:
fields:
- name: name
type: constant
+ comment: |
+ The name of the back-reference variable, including the leading `$`.
+
+ $& # name `:$&`
+
+ $+ # name `:$+`
comment: |
Represents reading a reference to a field in the previous match.