parser 3.1.2.1 → 3.1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -79,6 +79,8 @@ module Parser
79
79
  :invalid_id_to_get => 'identifier %{identifier} is not valid to get',
80
80
  :forward_arg_after_restarg => '... after rest argument',
81
81
  :no_anonymous_blockarg => 'no anonymous block parameter',
82
+ :no_anonymous_restarg => 'no anonymous rest parameter',
83
+ :no_anonymous_kwrestarg => 'no anonymous keyword rest parameter',
82
84
 
83
85
  # Parser warnings
84
86
  :useless_else => 'else without rescue is useless',
data/lib/parser/meta.rb CHANGED
@@ -33,6 +33,7 @@ module Parser
33
33
  hash_pattern const_pattern if_guard unless_guard match_nil_pattern
34
34
  empty_else find_pattern kwargs
35
35
  match_pattern_p match_pattern
36
+ forwarded_restarg forwarded_kwrestarg
36
37
  ).to_set.freeze
37
38
 
38
39
  end # Meta