lib/rbs/parser_aux.rb in rbs-1.7.0.beta.2 vs lib/rbs/parser_aux.rb in rbs-1.7.0.beta.3

- old
+ new

@@ -19,13 +19,45 @@ when Buffer source end end - SyntaxError = ParsingError - SemanticsError = ParsingError - LexerError = ParsingError + autoload :SyntaxError, "rbs/parser_compat/syntax_error" + autoload :SemanticsError, "rbs/parser_compat/semantics_error" + autoload :LexerError, "rbs/parser_compat/lexer_error" + autoload :LocatedValue, "rbs/parser_compat/located_value" - class LocatedValue - end + KEYWORDS = Set.new( + %w( + bool + bot + class + instance + interface + nil + self + singleton + top + void + type + unchecked + in + out + end + def + include + extend + prepend + alias + module + attr_reader + attr_writer + attr_accessor + public + private + untyped + true + false + ) + ) end end