far.vim icon indicating copy to clipboard operation
far.vim copied to clipboard

Unable to handle open parenthesis

Open axsaucedo opened this issue 4 years ago • 1 comments

I have tried running a replace with the command:

Far first\( second\( **/*

But I get the following error when I run the command:

Invalid pattern regex: Vim(call):E54: Unmatched \(

I have also tried running multiple variations such as without the backslashes and/or alternating.

I have also tried with the old regexengine as recommended settings (and without).

Is this a bug or just my configuration?

axsaucedo avatar Feb 09 '21 20:02 axsaucedo

A little late but i have the same problem myself, it seems to be an issue with the way the regex is parsed by Far.vim. If i run :F "function\(" *.cpp I get the same error, as it seems that Far.vim expects a second ) to match the first as if it was a non-escaped () group.

My solution so far is to use :F "function\(.*\)" *.cpp which does the job as i mostly want to search for functions, which always have a matching closing parenthesis

jrmd54 avatar Feb 22 '24 09:02 jrmd54