parser 3.1.0.0 → 3.1.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ed45256e09de6d92098e12e73a655fe9d4f35518f573984bf1d92ac87ae8ded
4
- data.tar.gz: 68ee7fca4f6d1794e2fb160552b01b983466cd482cad8783ba5f7b1466d0e70b
3
+ metadata.gz: 2af0967a09b6a9965a76198eb9081b7b1a7f287534ed6ebd904c3dab4071ab31
4
+ data.tar.gz: ff41dd72074325e42b743a5653526ab536984bbc007d41b3407e3f7641c96cd9
5
5
  SHA512:
6
- metadata.gz: 2f8f0785aba15f53c97b046aa5155ffeff4063b12fb611612bd7c3b94affb282487b5aad5ca783d2b928a91333db6e572a2a8a466fe9c7f5716354cb23644471
7
- data.tar.gz: b8ecfc04463142cffb2aaad920e95e11257a1a6f7587bf439620b73e59102f15850c413dc807b613379678de9878aa2d941f3fa65ab20716f6be6d80fcf03299
6
+ metadata.gz: 9c6dec85eb0fb4a735eec43846ea605312891b880aa198cf172a85a57dceb80ae33120699ca8ef854bd33b5f89252b13f4ff9f800c9124ac9fb779e83c211230
7
+ data.tar.gz: 2dbbfe323c61fbf395743ba81443104b652ab8d2a736e7ac3d1f01229ccf9551c2edf13f48c901ca3e8c3337780c0d91cf6bd0cbadcb53d6209b092ff398a0a5
data/lib/parser/all.rb CHANGED
@@ -12,3 +12,4 @@ require 'parser/ruby26'
12
12
  require 'parser/ruby27'
13
13
  require 'parser/ruby30'
14
14
  require 'parser/ruby31'
15
+ require 'parser/ruby32'
@@ -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.0'
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
@@ -101,6 +101,15 @@ module Parser
101
101
  require 'parser/ruby31'
102
102
  CurrentRuby = Ruby31
103
103
 
104
+ when /^3\.2\./
105
+ current_version = '3.2.0-dev'
106
+ if RUBY_VERSION != current_version
107
+ warn_syntax_deviation 'parser/ruby32', current_version
108
+ end
109
+
110
+ require 'parser/ruby32'
111
+ CurrentRuby = Ruby32
112
+
104
113
  else # :nocov:
105
114
  # Keep this in sync with released Ruby.
106
115
  warn_syntax_deviation 'parser/ruby31', '3.1.x'
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