Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong parenthesis matching #1815

Closed
jeyj0 opened this issue Mar 15, 2022 · 1 comment
Closed

Wrong parenthesis matching #1815

jeyj0 opened this issue Mar 15, 2022 · 1 comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug

Comments

@jeyj0
Copy link

jeyj0 commented Mar 15, 2022

Reproduction steps

Save the following contents into a file ending is .hs (haskell):

        applyNoFilter = ("", [])
        applyPropertyKindFilter
            :: forall e name
             . ( Enum e
               , Show e
               , ToField e
               , KnownSymbol name
               )
            => Proxy name -> [e] -> (a, b)

The round parenthesis ) that is on its own line does not match with the correct opening one in an earlier line, but instead with the very last one for some reason. Same for its actually matching opening parenthesis.

Here's an asciinema illustrating the behavior: https://asciinema.org/a/bFbojsv8bM8jjHpOB1kz5FixF

Environment

  • Platform: Linux (NixOS)
  • Terminal emulator: alacritty
  • Helix version: v0.5.0-887-gc0dbd6dc
~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines
@jeyj0 jeyj0 added the C-bug Category: This is a bug label Mar 15, 2022
@kirawi kirawi added the A-helix-term Area: Helix term improvements label Mar 17, 2022
@pascalkuthe
Copy link
Member

This was fixed by #7242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants