summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanjay Karukamanna <work@sanjay.link>2024-01-03 05:28:03 +0000
committergit <svn-admin@ruby-lang.org>2024-01-03 16:44:37 +0000
commit06a65ce64163f5d28e45485520f721cd335372b2 (patch)
tree77467f970ca4da465eff2b562ce86480139e1706
parentfc48a679062e422b475ccea11574bf5b4368b732 (diff)
[ruby/prism] Document `IntegerNode` fields
https://github.com/ruby/prism/commit/77280b2807
-rw-r--r--prism/config.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/prism/config.yml b/prism/config.yml
index d714d6d698..5423fc64cc 100644
--- a/prism/config.yml
+++ b/prism/config.yml
@@ -1758,6 +1758,17 @@ nodes:
- name: flags
type: flags
kind: IntegerBaseFlags
+ comment: |
+ Represents flag indicating the base of the integer
+ 10 base decimal, value 10
+ 0d10 base decimal, value 10
+ 0b10 base binary, value 2
+ 0o10 base octal, value 8
+ 010 base octal, value 8
+ 0x10 base hexidecimal, value 16
+ A 0 prefix indicates the number has a different base.
+ The d, b, o, and x prefixes indicate the base. If one of those
+ four letters is omitted, the base is assumed to be octal.
comment: |
Represents an integer number literal.