parser 3.1.2.0 → 3.2.1.0

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.
@@ -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