Monday, April 8, 2013

Re: erroformat, unknown option

On 2013-04-08, FlashBurn wrote:

> Gary,
>
> You were right. I needed to eliminate the spaces. But then I also
> needed to to the following
>
> execute 'CompilerSet errorformat='.escape(s:myerrorformat,'",\'),
> i.e I needed to escape comma, quotation mark, and backslash. I
> can't quite to figure out why, does anybody have any ideas?

The comma is the separator between entries of the 'errorformat'.
Therefore, any comma within an 'errorformat' entry must be
escaped.

In the context of a :set command, a quotation mark starts a comment,
so a quotation mark that is part of the :set command must be
escaped.

The backslash is the escape character, so to include a literal
escape in just about any context in Vim, it must be escaped.

See
:help efm-entries
:help option-backslash

Regards,
Gary

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