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
Thank you, Hugh