> I have the following output from a compiler:
> 
> Loading configuration file
> C:\Programs\Adobe\FlexBuilder3\sdks\3.1.0\frameworks\flex-config.xml
> C:\projects\flex\src\MMO.mxml(488):  Error: Access of undefined
> property debugFlexBuilderRun.
> 
>                 if( debugFlexBuilderRun ) {
> 

I'm assuming there are five lines there:

- Loading configuration file
- Error: Access of undefined property ....
- Blank line
- Quoted source code
- Blank line

and that there are just a lot more because of mail software wrapping
stuff.

> I came up with the following (which is invalid and doesn't work):
> setlocal errorformat=
>             \%-GLoading\ configuration\ file,
>             \%f(%l):\ Error:\ %E%m%C%m%C%Z
> 
> Any suggestions.

Perhaps:

setlocal errorformat=
             \%-GLoading\ configuration\ file,
             \%E%f(%l):\ \ Error:\ %m,
             \%+C%.%#

To match the first line, you were spot on:
%-GLoading\ configuration\ file,

To match multiple line messages, you need a set of patterns, each
beginning with one of the uppercase multi-line converter things; you
don't combine them into a single pattern. So firstly you need something
to match the first line, like this (note that there are two spaces
before Error, which you didn't have in your pattern but which is in the
compiler output):
%E%f(%l):\ \ Error:\ %m,

Then you need to match the continuations of those lines, including for
empty lines, so the easiest way to do this is just to use the .* regexp
to match anything, plus mark it as a continuation to be included in the
message:
%+C%.%#

Ben.




--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to