lib/steep/errors.rb in steep-0.27.0 vs lib/steep/errors.rb in steep-0.28.0

- old
+ new

@@ -541,7 +541,21 @@ def to_s "#{location_to_str}: MissingKeyword: #{missing_keywords.to_a.join(", ")}" end end + + class UnsupportedSyntax < Base + attr_reader :message + + def initialize(node:, message: nil) + super(node: node) + @message = message + end + + def to_s + msg = message || "#{node.type} is not supported" + "#{location_to_str}: UnsupportedSyntax: #{msg}" + end + end end end