parser 2.7.0.3 → 2.7.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/parser/lexer.rl +1 -1
- data/lib/parser/version.rb +1 -1
- data/test/test_parser.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13d527f63ead893a2e151944c1bcdd8b42b7e62b59619c52c5173782d1121964
|
4
|
+
data.tar.gz: 741979c7e6c252b0ddd18c69b79738cc01771d2bed73ec15c30cb3b2cccd9631
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53f345d27c23b86ef7fe55bcbfdbab9605f313e721c8ae75aebfa6d84073d3e738e42fbffeced65463ea1ad1233dc0297c55ad04187c36eb3c1878d36caac4dd
|
7
|
+
data.tar.gz: 6035992372bdc46cfd086508cfecaf3d24f014317681e45c4190b18d5fbe126fad3bf399b98ae465ab46d1827d88b7c0241998c0d4723ae780e05250b8168ad7
|
data/CHANGELOG.md
CHANGED
data/lib/parser/lexer.rl
CHANGED
@@ -2473,7 +2473,7 @@ class Parser::Lexer
|
|
2473
2473
|
|
2474
2474
|
# Here we use '\n' instead of w_newline to not modify @newline_s
|
2475
2475
|
# and eventually properly emit tNL
|
2476
|
-
(w_space_comment '\n')+
|
2476
|
+
(c_space* w_space_comment '\n')+
|
2477
2477
|
=> {
|
2478
2478
|
if @version < 27
|
2479
2479
|
# Ruby before 2.7 doesn't support comments before leading dot.
|
data/lib/parser/version.rb
CHANGED
data/test/test_parser.rb
CHANGED
@@ -7644,12 +7644,26 @@ class TestParser < Minitest::Test
|
|
7644
7644
|
%q{},
|
7645
7645
|
SINCE_2_7)
|
7646
7646
|
|
7647
|
+
assert_parses(
|
7648
|
+
s(:send,
|
7649
|
+
s(:send, nil, :a), :foo),
|
7650
|
+
%Q{a #\n #\n.foo\n},
|
7651
|
+
%q{},
|
7652
|
+
SINCE_2_7)
|
7653
|
+
|
7647
7654
|
assert_parses(
|
7648
7655
|
s(:csend,
|
7649
7656
|
s(:send, nil, :a), :foo),
|
7650
7657
|
%Q{a #\n#\n&.foo\n},
|
7651
7658
|
%q{},
|
7652
7659
|
SINCE_2_7)
|
7660
|
+
|
7661
|
+
assert_parses(
|
7662
|
+
s(:csend,
|
7663
|
+
s(:send, nil, :a), :foo),
|
7664
|
+
%Q{a #\n #\n&.foo\n},
|
7665
|
+
%q{},
|
7666
|
+
SINCE_2_7)
|
7653
7667
|
end
|
7654
7668
|
|
7655
7669
|
def test_comments_before_leading_dot__before_27
|
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: 2.7.0.
|
4
|
+
version: 2.7.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- whitequark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02
|
11
|
+
date: 2020-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|
@@ -297,9 +297,9 @@ licenses:
|
|
297
297
|
- MIT
|
298
298
|
metadata:
|
299
299
|
bug_tracker_uri: https://github.com/whitequark/parser/issues
|
300
|
-
changelog_uri: https://github.com/whitequark/parser/blob/v2.7.0.
|
301
|
-
documentation_uri: https://www.rubydoc.info/gems/parser/2.7.0.
|
302
|
-
source_code_uri: https://github.com/whitequark/parser/tree/v2.7.0.
|
300
|
+
changelog_uri: https://github.com/whitequark/parser/blob/v2.7.0.4/CHANGELOG.md
|
301
|
+
documentation_uri: https://www.rubydoc.info/gems/parser/2.7.0.4
|
302
|
+
source_code_uri: https://github.com/whitequark/parser/tree/v2.7.0.4
|
303
303
|
post_install_message:
|
304
304
|
rdoc_options: []
|
305
305
|
require_paths:
|