parser 2.5.1.1 → 2.5.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74690ed0b42a0adf60b87ac491252301383d408f49c94b3ca57569f731bba610
4
- data.tar.gz: bcfab73accb005126ca982eba28ceff93539f4f2b84523e1f31fe9d11f898808
3
+ metadata.gz: 999565504b59c7ad12546445a92d20f6ff6235ed29d76c8c52eb73513c23d9e7
4
+ data.tar.gz: e04475df2071b10e772259cc6697875067432121122541a5ef5a5092eeee4e1f
5
5
  SHA512:
6
- metadata.gz: 4b84846a1eff219eb607276d2b21a3e9c3e08ffc527aa5eb221ae73712e3b3d461ede2b9fae72a995db4dc761d3dc438fd81f2b278bdf577a39a08b04ceb2364
7
- data.tar.gz: 3a0febdb064269e6e0ef29e84d86f75c2b9b7ef2ab004e0fe25734d7a58ae947a2507eab90926c28a86cf9fb761c5882205633d25b37639c4807b4ee9bac9e7e
6
+ metadata.gz: ef4a0c50b91ba31b62c2274a6d442589fa277e0a606811800e9590ae73e7f6236d80fbc01c1d180adf2d64532d87dc99fcfa4953a28fa272dcce2fb195e8b224
7
+ data.tar.gz: 88e285335392b9269787035fe5dccc073758157496bcade661be8acbb912ec134e86fa75e8a2e3fbc0a62f7fa8a38c9f581cbecd9059bbddfe03812f958002cd
@@ -4,6 +4,12 @@ Changelog
4
4
  Not released (2018-07-10)
5
5
  -------------------------
6
6
 
7
+ Bugs fixed:
8
+ * lexer.rl: Partially revert 5ba072d and properly handle 'm = -> *args do end'. (Ilya Bylich)
9
+
10
+ v2.5.1.1 (2018-07-10)
11
+ ---------------------
12
+
7
13
  Features implemented:
8
14
  * ruby26.y: Endless ranges support. (Ilya Bylich)
9
15
 
@@ -2243,13 +2243,19 @@ class Parser::Lexer
2243
2243
  # OPERATORS
2244
2244
  #
2245
2245
 
2246
+ '*'
2247
+ => {
2248
+ emit(:tSTAR2)
2249
+ fgoto expr_value;
2250
+ };
2251
+
2246
2252
  # When '|', '~', '!', '=>' are used as operators
2247
2253
  # they do not accept any symbols (or quoted labels) after.
2248
2254
  # Other binary operators accept it.
2249
- ( operator_arithmetic | operator_rest ) - ( '|' | '~' | '!' )
2255
+ ( operator_arithmetic | operator_rest ) - ( '|' | '~' | '!' - '*' )
2250
2256
  => {
2251
2257
  emit_table(PUNCTUATION);
2252
- fgoto expr_value;
2258
+ fnext expr_value; fbreak;
2253
2259
  };
2254
2260
 
2255
2261
  ( e_lparen | '|' | '~' | '!' )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parser
4
- VERSION = '2.5.1.1'
4
+ VERSION = '2.5.1.2'
5
5
  end
@@ -7025,4 +7025,14 @@ class TestParser < Minitest::Test
7025
7025
  %q{},
7026
7026
  SINCE_1_9)
7027
7027
  end
7028
+
7029
+ def test_parser_bug_518
7030
+ assert_parses(
7031
+ s(:class,
7032
+ s(:const, nil, :A),
7033
+ s(:const, nil, :B), nil),
7034
+ "class A < B\nend",
7035
+ %q{},
7036
+ ALL_VERSIONS)
7037
+ end
7028
7038
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1.1
4
+ version: 2.5.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - whitequark