Parse error

I just got the message
script.rb:324: parse error.
i.e on the last line of the script. I use syntax highlighting, and even
looking deeper than that I could see no reason for this. Would it be
possible for this message to give some information about what was just
accepted, which expected tokens failed to match, or some other
information which could give a clue what was happening? I know it is
not easy to write parsers, having tried it myself…

Is there any ruby code which can give more verbose (or at least
different) diagnostics about this sort of thing (given the existence of
IDEs and other tools extracting information from ruby code)?

Adding a spurious “end” made the problen go away, but that is like
replacing a fuse with a nail…!

On a related note, how do I get hold of the “matchit” for ruby for vim,
so I can use % on do…end etc? Last time I tried to find it I didn’t
succeed.

    Thank you,
    Hugh

Just install my ruby filetype plugin module (after having installed
matchit itself, of course).

http://vim.sourceforge.net/scripts/script.php?script_id=303

···

On Thursday 11 July 2002 07:39 am, Hugh Sasse Staff Elec Eng wrote:

On a related note, how do I get hold of the “matchit” for ruby for
vim, so I can use % on do…end etc? Last time I tried to find it
I didn’t succeed.


Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE