ruby-next-parser 3.1.1.2 → 3.1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2266,11 +2266,14 @@ opt_block_args_tail:
2266
2266
 
2267
2267
  p_kwnorest: kwrest_mark kNIL
2268
2268
  {
2269
- result = [ @builder.match_nil_pattern(val[0], val[1]) ]
2269
+ result = val
2270
2270
  }
2271
2271
 
2272
2272
  p_any_kwrest: p_kwrest
2273
2273
  | p_kwnorest
2274
+ {
2275
+ result = [ @builder.match_nil_pattern(val[0][0], val[0][1]) ]
2276
+ }
2274
2277
 
2275
2278
  p_value: p_primitive
2276
2279
  | p_primitive tDOT2 p_primitive
@@ -2986,9 +2989,9 @@ f_opt_paren_args: f_paren_args
2986
2989
 
2987
2990
  kwrest_mark: tPOW | tDSTAR
2988
2991
 
2989
- f_no_kwarg: kwrest_mark kNIL
2992
+ f_no_kwarg: p_kwnorest
2990
2993
  {
2991
- result = [ @builder.kwnilarg(val[0], val[1]) ]
2994
+ result = [ @builder.kwnilarg(val[0][0], val[0][1]) ]
2992
2995
  }
2993
2996
 
2994
2997
  f_kwrest: kwrest_mark tIDENTIFIER
@@ -3114,7 +3117,7 @@ f_opt_paren_args: f_paren_args
3114
3117
  }
3115
3118
 
3116
3119
  operation: tIDENTIFIER | tCONSTANT | tFID
3117
- operation2: tIDENTIFIER | tCONSTANT | tFID | op
3120
+ operation2: operation | op
3118
3121
  operation3: tIDENTIFIER | tFID | op
3119
3122
  dot_or_colon: call_op | tCOLON2
3120
3123
  call_op: tDOT
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-next-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1.2
4
+ version: 3.1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  requirements: []
66
- rubygems_version: 3.2.22
66
+ rubygems_version: 3.3.7
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: Parser extension to support edge and experimental Ruby syntax