Hi,
Frantisek Rysanek wrote:
>
> My custom efm pattern setting command is
>
> set efm=%f\(%l\):\ Error\ %n:\ %m
>
> VIM now says this:
>
> "TEST.PAS(1)^MTEST.PAS(1)^MTEST.PAS" [access denied]
> (3/5) error 36: BEGIN expected.
>
> So now the %n and %m are parsed correctly, but the leading
> TEST.PAS(1) does not get split into %f and %l , and there are some
> carriage returns inserted (the resulting %f looks garbled).
> This is weird... any ideas?
while compiling Borland's command-line compiler outputs the current file
and the number of source lines already processed as status information.
To reduce the number of status lines needed for one file the second and
all further status lines are started with a carriage return. This puts
the cursor at the start of line and the following status text overwrites
the previous one. When a new unit is opened for compiling a new line is
started.
For parsing the output for Vim you should first get rid of everything up
to the last carriage return on a line or -- if the last carriage return
is part of the line ending -- the second to last one. After that the
line will start with a file name.
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment