Project

General

Profile

Actions

Backport #1065

closed

more human readable output on parsing failure

Added by rogerdpack (Roger Pack) about 15 years ago. Updated over 12 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 #1

Updated by ko1 (Koichi Sasada) about 15 years ago

  • Assignee set to knu (Akinori MUSHA)

=begin

=end

Actions #2

Updated by shyouhei (Shyouhei Urabe) over 13 years ago

  • Status changed from Open to Assigned

=begin

=end

Updated by knu (Akinori MUSHA) over 12 years ago

  • Status changed from Assigned to Rejected

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0