parser 3.1.1.0 → 3.1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12a38198be7971a87e3fbc2514f45120238a8004b1b267382a481ea971c8d9ec
4
- data.tar.gz: ec1a2a51e94eb30280b31e5f26cb28cb1e50b94a9d3a11ae35616b79eaf11b52
3
+ metadata.gz: 2af0967a09b6a9965a76198eb9081b7b1a7f287534ed6ebd904c3dab4071ab31
4
+ data.tar.gz: ff41dd72074325e42b743a5653526ab536984bbc007d41b3407e3f7641c96cd9
5
5
  SHA512:
6
- metadata.gz: e37d66e7c76e0af7d9ad1e9c3c635741436f92d0eef67032fdad83c38090c90cdb9be49018e20786ae540b24d18628695ab4b372a94c96e93b1ce36418e41da5
7
- data.tar.gz: 9ad75e610252fb6db157948fb162b0907baedeac7c4107574b78b3869c2490afabec269ab31303ceec2a3a7f17659eb06b43e9b6677b279fb412abade076b93a
6
+ metadata.gz: 9c6dec85eb0fb4a735eec43846ea605312891b880aa198cf172a85a57dceb80ae33120699ca8ef854bd33b5f89252b13f4ff9f800c9124ac9fb779e83c211230
7
+ data.tar.gz: 2dbbfe323c61fbf395743ba81443104b652ab8d2a736e7ac3d1f01229ccf9551c2edf13f48c901ca3e8c3337780c0d91cf6bd0cbadcb53d6209b092ff398a0a5
@@ -66,7 +66,7 @@ module Parser
66
66
  CurrentRuby = Ruby25
67
67
 
68
68
  when /^2\.6\./
69
- current_version = '2.6.9'
69
+ current_version = '2.6.10'
70
70
  if RUBY_VERSION != current_version
71
71
  warn_syntax_deviation 'parser/ruby26', current_version
72
72
  end
@@ -75,7 +75,7 @@ module Parser
75
75
  CurrentRuby = Ruby26
76
76
 
77
77
  when /^2\.7\./
78
- current_version = '2.7.5'
78
+ current_version = '2.7.6'
79
79
  if RUBY_VERSION != current_version
80
80
  warn_syntax_deviation 'parser/ruby27', current_version
81
81
  end
@@ -84,7 +84,7 @@ module Parser
84
84
  CurrentRuby = Ruby27
85
85
 
86
86
  when /^3\.0\./
87
- current_version = '3.0.3'
87
+ current_version = '3.0.4'
88
88
  if RUBY_VERSION != current_version
89
89
  warn_syntax_deviation 'parser/ruby30', current_version
90
90
  end
@@ -93,7 +93,7 @@ module Parser
93
93
  CurrentRuby = Ruby30
94
94
 
95
95
  when /^3\.1\./
96
- current_version = '3.1.1'
96
+ current_version = '3.1.2'
97
97
  if RUBY_VERSION != current_version
98
98
  warn_syntax_deviation 'parser/ruby31', current_version
99
99
  end
data/lib/parser/ruby31.rb CHANGED
@@ -4479,6 +4479,7 @@ def _reduce_57(val, _values, result)
4479
4479
  @lexer.state = :expr_beg
4480
4480
  @lexer.command_start = false
4481
4481
  @pattern_variables.push
4482
+ @pattern_hash_keys.push
4482
4483
 
4483
4484
  result = @context.in_kwarg
4484
4485
  @context.in_kwarg = true
@@ -4488,6 +4489,7 @@ end
4488
4489
 
4489
4490
  def _reduce_58(val, _values, result)
4490
4491
  @pattern_variables.pop
4492
+ @pattern_hash_keys.pop
4491
4493
  @context.in_kwarg = val[2]
4492
4494
  result = @builder.match_pattern(val[0], val[1], val[3])
4493
4495
 
@@ -4498,6 +4500,7 @@ def _reduce_59(val, _values, result)
4498
4500
  @lexer.state = :expr_beg
4499
4501
  @lexer.command_start = false
4500
4502
  @pattern_variables.push
4503
+ @pattern_hash_keys.push
4501
4504
 
4502
4505
  result = @context.in_kwarg
4503
4506
  @context.in_kwarg = true
@@ -4507,6 +4510,7 @@ end
4507
4510
 
4508
4511
  def _reduce_60(val, _values, result)
4509
4512
  @pattern_variables.pop
4513
+ @pattern_hash_keys.pop
4510
4514
  @context.in_kwarg = val[2]
4511
4515
  result = @builder.match_pattern_p(val[0], val[1], val[3])
4512
4516
 
data/lib/parser/ruby32.rb CHANGED
@@ -3282,7 +3282,7 @@ racc_reduce_table = [
3282
3282
  1, 346, :_reduce_521,
3283
3283
  2, 348, :_reduce_522,
3284
3284
  1, 342, :_reduce_none,
3285
- 1, 342, :_reduce_none,
3285
+ 1, 342, :_reduce_524,
3286
3286
  1, 332, :_reduce_none,
3287
3287
  3, 332, :_reduce_526,
3288
3288
  3, 332, :_reduce_527,
@@ -4473,6 +4473,7 @@ def _reduce_57(val, _values, result)
4473
4473
  @lexer.state = :expr_beg
4474
4474
  @lexer.command_start = false
4475
4475
  @pattern_variables.push
4476
+ @pattern_hash_keys.push
4476
4477
 
4477
4478
  result = @context.in_kwarg
4478
4479
  @context.in_kwarg = true
@@ -4482,6 +4483,7 @@ end
4482
4483
 
4483
4484
  def _reduce_58(val, _values, result)
4484
4485
  @pattern_variables.pop
4486
+ @pattern_hash_keys.pop
4485
4487
  @context.in_kwarg = val[2]
4486
4488
  result = @builder.match_pattern(val[0], val[1], val[3])
4487
4489
 
@@ -4492,6 +4494,7 @@ def _reduce_59(val, _values, result)
4492
4494
  @lexer.state = :expr_beg
4493
4495
  @lexer.command_start = false
4494
4496
  @pattern_variables.push
4497
+ @pattern_hash_keys.push
4495
4498
 
4496
4499
  result = @context.in_kwarg
4497
4500
  @context.in_kwarg = true
@@ -4501,6 +4504,7 @@ end
4501
4504
 
4502
4505
  def _reduce_60(val, _values, result)
4503
4506
  @pattern_variables.pop
4507
+ @pattern_hash_keys.pop
4504
4508
  @context.in_kwarg = val[2]
4505
4509
  result = @builder.match_pattern_p(val[0], val[1], val[3])
4506
4510
 
@@ -7122,14 +7126,18 @@ def _reduce_521(val, _values, result)
7122
7126
  end
7123
7127
 
7124
7128
  def _reduce_522(val, _values, result)
7125
- result = [ @builder.match_nil_pattern(val[0], val[1]) ]
7129
+ result = val
7126
7130
 
7127
7131
  result
7128
7132
  end
7129
7133
 
7130
7134
  # reduce 523 omitted
7131
7135
 
7132
- # reduce 524 omitted
7136
+ def _reduce_524(val, _values, result)
7137
+ result = [ @builder.match_nil_pattern(val[0][0], val[0][1]) ]
7138
+
7139
+ result
7140
+ end
7133
7141
 
7134
7142
  # reduce 525 omitted
7135
7143
 
@@ -8073,7 +8081,7 @@ end
8073
8081
  # reduce 683 omitted
8074
8082
 
8075
8083
  def _reduce_684(val, _values, result)
8076
- result = [ @builder.kwnilarg(val[0], val[1]) ]
8084
+ result = [ @builder.kwnilarg(val[0][0], val[0][1]) ]
8077
8085
 
8078
8086
  result
8079
8087
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parser
4
- VERSION = '3.1.1.0'
4
+ VERSION = '3.1.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1.0
4
+ version: 3.1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - whitequark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-21 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ast
@@ -246,9 +246,9 @@ licenses:
246
246
  - MIT
247
247
  metadata:
248
248
  bug_tracker_uri: https://github.com/whitequark/parser/issues
249
- changelog_uri: https://github.com/whitequark/parser/blob/v3.1.1.0/CHANGELOG.md
250
- documentation_uri: https://www.rubydoc.info/gems/parser/3.1.1.0
251
- source_code_uri: https://github.com/whitequark/parser/tree/v3.1.1.0
249
+ changelog_uri: https://github.com/whitequark/parser/blob/v3.1.2.1/CHANGELOG.md
250
+ documentation_uri: https://www.rubydoc.info/gems/parser/3.1.2.1
251
+ source_code_uri: https://github.com/whitequark/parser/tree/v3.1.2.1
252
252
  post_install_message:
253
253
  rdoc_options: []
254
254
  require_paths: