Skip to content

BUG: Incorrect parenthesis and bracket matching #1989

@BrighamZimmerman

Description

@BrighamZimmerman

System Configuration

Emacs version 30.2
Evil version 1.15.0
I use emacs & evil in X mode

How to reproduce

open a file with any of ( { [ and an unpaired of any of ) } ] before the correct closing bracket/parenthesis. For example:

general {
# this is a comment with a smile :)
enabled = true
}

Evil will incorrectly recognize the closing bracket/parenthesis of the incorrect type (i.e. { with ) or any other combination) as the paired bracket/parenthesis, and will treat it as such, e.g. when using % to jump to the paired bracket/parenthesis

In an unconfigured (vanilla) vim install, vim correctly ignores the closing bracket/parenthesis of the incorrect type, even when not commented out.

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