parser 2.2.2.5 → 2.2.2.6

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
  SHA1:
3
- metadata.gz: 710e70cbd335c48e5d33828e22465ed144bb89e1
4
- data.tar.gz: f7b154226cd171fc3d7290a83636e292631c961a
3
+ metadata.gz: 864d24da6c6936935fa44791e2135ede616c27f1
4
+ data.tar.gz: 2acd99c70f1ae55be305451d0669399c12b23427
5
5
  SHA512:
6
- metadata.gz: f675cb69ce293a7f6787c6b08ce38d545393a7ca776a999f5c37cb607425a22aee2d2d2f24474792927e8bbc36e86125b8bcbe3c366cebb2c3fc785e2eaa5675
7
- data.tar.gz: 02fb79c07b4473351667a166383345a235a756cea3ff7b0b718683fe5b6fab13c5f67ffc484e60f72402cf8c0b6e5130305157e1dac96a5d57353efe41d1af3c
6
+ metadata.gz: a43d1e290f527a7d25b344483cf46ebb5cd32bc64b2f033579bb6925d0cdb6510b348eb400119f3ae6411f6d56b7ee411f05f2e0b0b4687a83aeb13be8595e00
7
+ data.tar.gz: 5a20d4f2725b79d78ccb3a508b92d9efab5727eb7bf5d3b97679dde3df61c735e84b101573ccf9b863bd3fb3b2906fd43d83aef6f45cc41e33cfb08706b1614b
@@ -1,6 +1,15 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ v2.2.2.6 (2015-06-30)
5
+ ---------------------
6
+
7
+ API modifications:
8
+ * parser/current: link to README from syntax deviation warning. (whitequark)
9
+
10
+ Bugs fixed:
11
+ * lexer.rl: "[/()\\1/, ?#]": fixes #198. (whitequark)
12
+
4
13
  v2.2.2.5 (2015-05-25)
5
14
  ---------------------
6
15
 
@@ -3,6 +3,7 @@ module Parser
3
3
  def warn_syntax_deviation(feature, version)
4
4
  warn "warning: parser/current is loading #{feature}, which recognizes"
5
5
  warn "warning: #{version}-compliant syntax, but you are running #{RUBY_VERSION}."
6
+ warn "warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri."
6
7
  end
7
8
  private :warn_syntax_deviation
8
9
  end
@@ -1694,7 +1694,7 @@ class Parser::Lexer
1694
1694
  #
1695
1695
 
1696
1696
  '?' ( e_bs escape
1697
- | c_any - c_space_nl - e_bs % { @escape = nil }
1697
+ | (c_any - c_space_nl - e_bs) % { @escape = nil }
1698
1698
  )
1699
1699
  => {
1700
1700
  # Show an error if memorized.
@@ -1,3 +1,3 @@
1
1
  module Parser
2
- VERSION = '2.2.2.5'
2
+ VERSION = '2.2.2.6'
3
3
  end
@@ -4938,6 +4938,18 @@ class TestParser < Minitest::Test
4938
4938
  ALL_VERSIONS - %w(1.8 1.9 2.0))
4939
4939
  end
4940
4940
 
4941
+ def test_parser_bug_198
4942
+ assert_parses(
4943
+ s(:array,
4944
+ s(:regexp,
4945
+ s(:str, "()\\1"),
4946
+ s(:regopt)),
4947
+ s(:str, "#")),
4948
+ %q{[/()\\1/, ?#]},
4949
+ %q{},
4950
+ ALL_VERSIONS - %w(1.8))
4951
+ end
4952
+
4941
4953
  def test_bug_lambda_leakage
4942
4954
  assert_parses(
4943
4955
  s(:begin,
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.2.2.5
4
+ version: 2.2.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Zotov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-25 00:00:00.000000000 Z
11
+ date: 2015-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ast