parser 3.1.1.0 → 3.1.2.0

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: 12a38198be7971a87e3fbc2514f45120238a8004b1b267382a481ea971c8d9ec
4
- data.tar.gz: ec1a2a51e94eb30280b31e5f26cb28cb1e50b94a9d3a11ae35616b79eaf11b52
3
+ metadata.gz: 99a2cb2ef9fe58be50862176d8ee8b7fc1f3e616e16360b6777c7f0a366c37fb
4
+ data.tar.gz: ec7f0703c68564fdc55fc5a402ead6978da0bc3af9650dbc5d93127ce458b2d8
5
5
  SHA512:
6
- metadata.gz: e37d66e7c76e0af7d9ad1e9c3c635741436f92d0eef67032fdad83c38090c90cdb9be49018e20786ae540b24d18628695ab4b372a94c96e93b1ce36418e41da5
7
- data.tar.gz: 9ad75e610252fb6db157948fb162b0907baedeac7c4107574b78b3869c2490afabec269ab31303ceec2a3a7f17659eb06b43e9b6677b279fb412abade076b93a
6
+ metadata.gz: 3474317cdd46eb6085244fc57c91d7bcc7a157550fe834e5d58792d472861fa3420d381535554dfaba5fd30142c60040cbc59973694e241ee8aa5ba7a9655690
7
+ data.tar.gz: 3a7cbfec0dfe94ea448930357d2692806080c033f3ccc0d2af472d7abc18d2e3c72d1bd163852310f5e852f188bc4ed7f2336a178bcbdcb2a1f7b79d438dbcf7
@@ -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/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,
@@ -7122,14 +7122,18 @@ def _reduce_521(val, _values, result)
7122
7122
  end
7123
7123
 
7124
7124
  def _reduce_522(val, _values, result)
7125
- result = [ @builder.match_nil_pattern(val[0], val[1]) ]
7125
+ result = val
7126
7126
 
7127
7127
  result
7128
7128
  end
7129
7129
 
7130
7130
  # reduce 523 omitted
7131
7131
 
7132
- # reduce 524 omitted
7132
+ def _reduce_524(val, _values, result)
7133
+ result = [ @builder.match_nil_pattern(val[0][0], val[0][1]) ]
7134
+
7135
+ result
7136
+ end
7133
7137
 
7134
7138
  # reduce 525 omitted
7135
7139
 
@@ -8073,7 +8077,7 @@ end
8073
8077
  # reduce 683 omitted
8074
8078
 
8075
8079
  def _reduce_684(val, _values, result)
8076
- result = [ @builder.kwnilarg(val[0], val[1]) ]
8080
+ result = [ @builder.kwnilarg(val[0][0], val[0][1]) ]
8077
8081
 
8078
8082
  result
8079
8083
  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.0'
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.0
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-04-12 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.0/CHANGELOG.md
250
+ documentation_uri: https://www.rubydoc.info/gems/parser/3.1.2.0
251
+ source_code_uri: https://github.com/whitequark/parser/tree/v3.1.2.0
252
252
  post_install_message:
253
253
  rdoc_options: []
254
254
  require_paths: