Sunday, November 29, 2009

Detect func/method constructor and destrutor

Hi,

I got a little problem with my detect pattern for C++ constructor/
destructor methods and func

This is this :

^\(\w\+\s*\)\{0,10}\w\+\(::\~*\w\+\)\?[^(]\{0,10}(

It fails when I encounter spaces before constructor

constructor::constructor


destructor::destructor

Can you correct my pattern ?

Thanks

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

No comments: