I wanted to find all the lines in our source code base that has a wide
character string literal that is not an input to the CComBSTR
constructor. So I did a
:vimgrep /\(CComBSTR(\)\@<!L"[^"]\+"/ C:\MyFolder\**\*.cpp
One of the search results it returned was so:
hr = pSomeVar->GetShortDescription(CComBSTR(L"String1"),
CComBSTR(L"String2"),&vSettingValue);
However, doing a search like so:
/\(CComBSTR(\)\@<!L"[^"]\+"
does not highlight anything in the returned line.
I believe the regular search is correct, and vimgrep is incorrect in
returning the above indicated line.
Am using 7.3 with patches 1-46 32 bit Windows Big GUI version with OLE
support downloaded from vim.org. I also have smartcase and ignorecase
both set.
thank you for listening,
- Anand Hariharan
--
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