lib/rbs/parser.y in rbs-1.3.1 vs lib/rbs/parser.y in rbs-1.3.2

- old
+ new

@@ -724,11 +724,11 @@ } | tQUOTEDMETHOD | tQUOTEDIDENT | tWRITE_ATTR - method_name0: tUIDENT | tLIDENT | tINTERFACEIDENT | identifier_keywords + method_name0: tUIDENT | tLIDENT | tINTERFACEIDENT | tUNDERSCOREIDENT | identifier_keywords identifier_keywords: kCLASS | kVOID | kNIL | kTRUE | kFALSE | kANY | kUNTYPED | kTOP | kBOT | kINSTANCE | kBOOL | kSINGLETON | kTYPE | kMODULE | kPRIVATE | kPUBLIC | kEND | kINCLUDE | kEXTEND | kPREPEND | kATTRREADER | kATTRACCESSOR | kATTRWRITER | kDEF | kEXTENSION | kSELF | kINCOMPATIBLE @@ -1720,10 +1720,10 @@ new_token(:tUIDENT) when input.scan(/[a-z]\w*\b/) new_token(:tLIDENT) when input.scan(/_[a-z]\w*\b/) new_token(:tUNDERSCOREIDENT) - when input.scan(/_[\w_]*\b/) + when input.scan(/_\w*\b/) new_token(:tPARAMNAME) when input.scan(/"(\\"|[^"])*"/) s = input.matched.yield_self {|s| s[1, s.length - 2] } .gsub(DBL_QUOTE_STR_ESCAPE_SEQUENCES_RE) do |match| case match