[ruby/prism] Fix diagnostic incompatibility for Prism::Translation::Parser
In the case of the `**` and `&` ambiguous prefixes, incompatibilities remained among https://github.com/ruby/prism/issues/2513. https://github.com/ruby/prism/commit/3b8b231aae
This commit is contained in:
parent
207b002392
commit
bf17093a42
@ -193,8 +193,12 @@ module Prism
|
||||
Diagnostic.new(:warning, :ambiguous_prefix, { prefix: "+" }, diagnostic_location, [])
|
||||
when :ambiguous_first_argument_minus
|
||||
Diagnostic.new(:warning, :ambiguous_prefix, { prefix: "-" }, diagnostic_location, [])
|
||||
when :ambiguous_prefix_ampersand
|
||||
Diagnostic.new(:warning, :ambiguous_prefix, { prefix: "&" }, diagnostic_location, [])
|
||||
when :ambiguous_prefix_star
|
||||
Diagnostic.new(:warning, :ambiguous_prefix, { prefix: "*" }, diagnostic_location, [])
|
||||
when :ambiguous_prefix_star_star
|
||||
Diagnostic.new(:warning, :ambiguous_prefix, { prefix: "**" }, diagnostic_location, [])
|
||||
when :ambiguous_slash
|
||||
Diagnostic.new(:warning, :ambiguous_regexp, {}, diagnostic_location, [])
|
||||
when :dot_dot_dot_eol
|
||||
|
Loading…
x
Reference in New Issue
Block a user