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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e