parser 3.1.0.0 → 3.1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parser/all.rb +1 -0
- data/lib/parser/current.rb +13 -4
- data/lib/parser/ruby31.rb +4 -0
- data/lib/parser/ruby32.rb +8338 -0
- data/lib/parser/runner.rb +6 -0
- data/lib/parser/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2af0967a09b6a9965a76198eb9081b7b1a7f287534ed6ebd904c3dab4071ab31
|
4
|
+
data.tar.gz: ff41dd72074325e42b743a5653526ab536984bbc007d41b3407e3f7641c96cd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c6dec85eb0fb4a735eec43846ea605312891b880aa198cf172a85a57dceb80ae33120699ca8ef854bd33b5f89252b13f4ff9f800c9124ac9fb779e83c211230
|
7
|
+
data.tar.gz: 2dbbfe323c61fbf395743ba81443104b652ab8d2a736e7ac3d1f01229ccf9551c2edf13f48c901ca3e8c3337780c0d91cf6bd0cbadcb53d6209b092ff398a0a5
|
data/lib/parser/all.rb
CHANGED
data/lib/parser/current.rb
CHANGED
@@ -66,7 +66,7 @@ module Parser
|
|
66
66
|
CurrentRuby = Ruby25
|
67
67
|
|
68
68
|
when /^2\.6\./
|
69
|
-
current_version = '2.6.
|
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.
|
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.
|
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.
|
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
|
|