lib/rbs/parser.y in rbs-0.20.1 vs lib/rbs/parser.y in rbs-1.0.0.pre

- old
+ new

@@ -97,15 +97,17 @@ super_class: { result = nil } | kLT class_name { result = Declarations::Class::Super.new(name: val[1].value, - args: []) + args: [], + location: val[1].location) } | kLT class_name kLBRACKET type_list kRBRACKET { result = Declarations::Class::Super.new(name: val[1].value, - args: val[3]) + args: val[3], + location: val[1].location + val[4].location) } module_decl: annotations kMODULE start_new_scope class_name module_type_params colon_module_self_types class_members kEND { reset_variable_scope @@ -836,9 +838,18 @@ | tINTEGER kFATARROW type { result = { val[0].value => val[2] } } | keyword type { result = { val[0].value => val[1] } + } + | identifier_keywords kCOLON type { + result = { val[0].value => val[2] } + } + | tQUOTEDIDENT kCOLON type { + result = { val[0].value => val[2] } + } + | tQUOTEDMETHOD kCOLON type { + result = { val[0].value => val[2] } } keyword_name: keyword | identifier_keywords kCOLON {