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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2801cd6adbcd161d1a3b643dca79b9a9f7ff13210439bf632fcc22072837dffa
4
- data.tar.gz: 20a0402b20903555a7cc29507205f7bf7176b26dfe039df79bf17fd503ed951e
3
+ metadata.gz: 13d527f63ead893a2e151944c1bcdd8b42b7e62b59619c52c5173782d1121964
4
+ data.tar.gz: 741979c7e6c252b0ddd18c69b79738cc01771d2bed73ec15c30cb3b2cccd9631
5
5
  SHA512:
6
- metadata.gz: b254886d186ac704cb8a6dcc6bfdce7d2f9f079ce83edb456646a0ec04336a2893c140f1b525e8cea89f34c52bf01c1e6849dc8ce80d9f4f3fdb0af072e15ac2
7
- data.tar.gz: 627b678f07bf6ad130235f3ab1440d563905cf671e0618f2cb3b549e0f34dc341e70f5659580d731259d8caa97fd3d221868b966b5df5188c5c985db836ecc2a
6
+ metadata.gz: 53f345d27c23b86ef7fe55bcbfdbab9605f313e721c8ae75aebfa6d84073d3e738e42fbffeced65463ea1ad1233dc0297c55ad04187c36eb3c1878d36caac4dd
7
+ data.tar.gz: 6035992372bdc46cfd086508cfecaf3d24f014317681e45c4190b18d5fbe126fad3bf399b98ae465ab46d1827d88b7c0241998c0d4723ae780e05250b8168ad7
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ Not released (2020-03-02)
5
+ -------------------------
6
+
7
+ Bugs fixed:
8
+ * lexer.rl: allow spaces before comments-before-leading-dot. (#654) (Ilya Bylich)
9
+
4
10
  v2.7.0.2 (2020-01-08)
5
11
  ---------------------
6
12
 
@@ -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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parser
4
- VERSION = '2.7.0.3'
4
+ VERSION = '2.7.0.4'
5
5
  end
@@ -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.3
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-26 00:00:00.000000000 Z
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.3/CHANGELOG.md
301
- documentation_uri: https://www.rubydoc.info/gems/parser/2.7.0.3
302
- source_code_uri: https://github.com/whitequark/parser/tree/v2.7.0.3
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: