Skip to content

Paren matching in LaTeX mode #784

@rgemulla

Description

@rgemulla

In LaTeX-mode, parens that follow double backslashes (newlines) are not matched correctly. For example, in tabular environment, I sometimes use \\[1cm] to add a custom spacing between successive rows.

Expected behavior

The closing square bracket should be matched to the opening square bracket. In general, smartparens should ignore all sequences of double backslashes preceeding a paren.

Actual behavior

The closing square bracket is marked as mismatched.

Steps to reproduce the problem

Create a new buffer, switch to LaTeX-mode, then type \\[1cm].

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions