Skip to content

Unable to handle open parenthesis #109

Open

Description

@axsaucedo

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?

Activity

  1. jrmd54 commented on Feb 22, 2024

    @jrmd54

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions