[splint-discuss] Splint and Vim Errorformat
Michael Wojcik
Michael.Wojcik at MicroFocus.com
Fri Apr 13 15:37:51 EDT 2007
> From: splint-discuss-bounces at cs.virginia.edu
> [mailto:splint-discuss-bounces at cs.virginia.edu] On Behalf Of
> Keith Prickett
> Sent: Thursday, 12 April, 2007 17:24
>
> :set errorformat=%A%f(%l\\,%c):\ %m,%+C\ %.%# Seems to work
> pretty well,
> except files with windows paths are not recognized using %f. For
> example "foobar.c(line,column)" IS recognized and the error is shown
> using :cn and :cp. But the line containing
> "C:\foo\bar\foobar.c(line,colum)" is NOT recognized.
Really? It works for me. This is (character-mode) Vim 6.3 on XP. I
don't have gvim installed, so I can't test with it, but I'd be surprised
if it was different.
I note that the operation of the %f (filename) token depends on the
setting of isfname, but I don't believe I've changed mine from the
default. Here's what it is, just in case yours is different:
isfname=@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],:, at -@,!,~,=
Backslash and colon are both present, so full Windows pathnames should
be (and, on my system, are) recognized by %f.
--
Michael Wojcik
Principal Software Systems Developer, Micro Focus
More information about the splint-discuss
mailing list