Wednesday, April 3, 2013

errorformat when error is not a number

I have setup my errorformat quite nicely to match the compiler and lint output, however today I bumped onto a new error format:

<offending expression>
^
"path/to/the/file",<line number><white space>Error[Pe<error number>]:<white space><error message>v

Vim usually displays error number next to the error, but for the error number it matches exactly that - a number. Does anybody know if there is a way to make it match also a string for error number, i.e. Pe[<error number>] so that vim could display it like

<path to the file|<line number> col <column number> error Pe<error number>| error message

I know how to set it up if there is no Pe in the error number, but I would like to be able to stick "Pe" between the two pipes (vertical lines).

Any help is appreciated.

--
--
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/groups/opt_out.

No comments:

Post a Comment