ruby-next-parser 3.1.0.1 → 3.1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parser/ruby-next/builder.rb +7 -0
- data/lib/parser/ruby-next/version.rb +1 -1
- data/lib/parser/rubynext.rb +2122 -2121
- data/lib/parser/rubynext.y +14 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d12b880eb84d0abfd5348029a1283d3d11140588d84b356e043c1d8a82bb926
|
4
|
+
data.tar.gz: 352fa687518b19a3e7e174a9f64bdf810a92384d1f39eca7ea2630cacc4e0833
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0d1f0102b93796a567f0fe5bc34469682a5bf1a6ef920e7b92c82dfa405d0572381ad4efc5d96fdcea78fec2109f1b655bd574430891c61951a27f0ab7d4358
|
7
|
+
data.tar.gz: 1d3dd2e4d685958b4b73f62b97da4c2e1e7207102f1654762371aa794ca3f1e27c48068e4674b30f6a6ac1bc47c6ccc5a3bcd4425fecd69c6d29e9187716b990
|
@@ -11,6 +11,13 @@ module Parser
|
|
11
11
|
send_map(receiver, dot_t, selector_t, nil, [], nil))
|
12
12
|
end
|
13
13
|
|
14
|
+
def match_var(var)
|
15
|
+
return super(var) unless var.is_a?(::Parser::AST::Node)
|
16
|
+
|
17
|
+
n(:match_var, [ var ],
|
18
|
+
var_send_map(var))
|
19
|
+
end
|
20
|
+
|
14
21
|
def check_reserved_for_numparam(name, loc)
|
15
22
|
# We don't want to raise SyntaxError, 'cause we want to use _x vars for older Rubies.
|
16
23
|
# The exception should be raised by Ruby itself for versions supporting numbered parameters
|