Edward L. Fox wrote:
> On 8/25/07, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
>   
>> Edward L. Fox wrote:
>>
>>     
>>> Hi developers,
>>>
>>>
>>> Steps to reproduce:
>>>
>>> Vim 7.0 has a problem jumping between matching brackets in the
>>> following case:
>>> Foo()
>>> {
>>>   // {
>>> }
>>>
>>> The % command jumps between the close bracket and the open one in the
>>> comment rather than at the right beginning of function body.
>>>
>>>
>>> Expect behavior:
>>>
>>> The % command should jump between semantically matching brackets, such
>>> as the pair around the function body in the above case.
>>>
>>> Notice the correct matching is hilighted when cursor is on a bracket.
>>>       
>> This is not a bug, this is how it always has worked.  Some of my code
>> actually has "{" or "}" in the comment to match an unmatched brace.
>>
>> I do understand that you more or less expect the cursor to jump to the
>> paren that is highlighted by the matchparen plugin.  It's in the todo
>> list somewhere.
>>     

For me, it is interesting to find that the following:

// "{"
}

won't be matched with %. I guess the matching skip _strings_, and for 
the strings, escaping is also considered, as in the following example:

(
// "(\"("
)

Regards.
Fan Decheng
2007-08-25



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui