Project

General

Profile

Backport #1065

more human readable output on parsing failure

Added by rogerdpack (Roger Pack) over 10 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Normal
[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

History

#1

Updated by ko1 (Koichi Sasada) over 10 years ago

  • Assignee set to knu (Akinori MUSHA)

=begin

=end

#2

Updated by shyouhei (Shyouhei Urabe) almost 9 years ago

  • Status changed from Open to Assigned

=begin

=end

Updated by knu (Akinori MUSHA) about 8 years ago

  • Status changed from Assigned to Rejected

One-point-eighters have been living with those mnemonics, so just leave them.

Also available in: Atom PDF