Re: Typo in the regex doc (can mislead users)
- Sorry, my bad, I made too quick conclusions from the fact that the two
different examples for the same pattern ("a", "ap", "aap" and "a",
We could make the sentence more descriptive, as Lench said, but I
would also explain :
``With that example, the only possibility to match more than one
character is with "ap", "app", ...``. It would help understanding the
operator imho, because when we test the example ourselves, "aa" is
highlited in "aap" (when hlsearch is on)... but it is in fact two
@Tony: Ok, thanks for the patching convention
On Fri, Mar 5, 2010 at 3:22 AM, Tony Mechelynck
> On 04/03/10 14:21, Romain Chossart wrote:--
>> Dear team,
>> There is a typo in the doc about the regex patterns. Can be quite
>> misleading since the operator is not easy to understand for beginners.
>> Location : runtime/doc/patterns.txt
>> Where :
>> :help \@!
>> It is in second paragraph, second example : "a", "ap", "aap" should be
>> "a", "ap", "app". (The same example in the first paragraph is right)
>> I included a patch, but this is my first one, so tell me if I need to
>> modify it to be conform to Vim devel standards.
>> Romain Chossart
> The patch (a unified diff) is OK: IIUC, Bram prefers context diffs but
> accepts unified diffs. Other kind of diffs (e.g. an ed-style diff) are not
> However, as Lech said, in this case the current help text is maybe unclear
> but not wrong.
> Best regards,
> Wiker's Law:
> Government expands to absorb revenue and then some.
You received this message from the "vim_dev" 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