[ruby-cvs:66527] nobu:r59349 (trunk): parse.y: refine literal error messages

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Jul 17 09:11:38 JST 2017

nobu	2017-07-17 09:11:38 +0900 (Mon, 17 Jul 2017)

  New Revision: 59349


    parse.y: refine literal error messages
    * parse.y (parser_yyerror): strip newline in error source which
      will not be printed, when lex_p has passed it.
    * parse.y (parser_tokadd_utf8): unterminated Unicode escape even
      after invalid Unicode escape.
    * parse.y (parser_parse_string): show the error source line when
      unterminated literal at end of file.

  Modified files:

More information about the ruby-cvs mailing list