Monday, February 16, 2015

Feature Request: errorformat scanf string "search" match with looser matching behavior the %s

I've worked through a few errorformat strings. Quickfix + errorformat + makeprg seems to me to be a core interface for integrating vim with external tools.

While looking at some crude support for TAP compliant output I wanted the scanf "%s" parameter to do a loose match, looking for the test name string. For (almost) all scenarios, that is adequate to find the line where the test fails (where it is not it's an easy matter to change the test title to make it unique).

But %s is hard wired to produce a very tight \V^[match]$ which doesn't work here. Most titles are embedded in code, at the very least with quote strings around them that the hard line match won't find. Some sort of way to request a looser match would make this much more workable, presumably an additional, looser scanf parameter (maybe %S ?)

Some TAP compliant tools will emit line numbers to match on, but not all.

I think this could be more generally useful.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: