[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

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59349

  Log:
    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:
    trunk/parse.y
    trunk/test/ruby/test_parse.rb


More information about the ruby-cvs mailing list