Project

General

Profile

Actions

Backport #1065

closed

more human readable output on parsing failure

Added by rogerdpack (Roger Pack) about 15 years ago. Updated almost 13 years ago.

Status:
Rejected
[ruby-core:21624]

Description

=begin
It would be kind to apply a patch to make parsing errors more human readable for 1.8.x

ex:

-e:1: syntax error, unexpected tIDENTIFIER, expecting $end
the output is:
-e:1: syntax error, unexpected identifier, expecting $end

or:
-e:1: syntax error, unexpected kEND
-e:1: syntax error, unexpected end

refs:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7653
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/12946

Something like this appears to exist in 1.9, or the above patches might work.

Thank you!
-=r
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0