[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: treesit indentation "blinking"
From: |
Yuan Fu |
Subject: |
Re: treesit indentation "blinking" |
Date: |
Wed, 22 Mar 2023 17:00:11 -0700 |
> On Mar 22, 2023, at 1:49 PM, Daniel Colascione <dancol@dancol.org> wrote:
>
> Is there a general-purpose through which we can avoid line indentation
> oscillating as the user types when the AST is temporarily invalid,
> e.g. after '(' or '{'? I'm checking out the C++ tree-sitter mode, and
> one of the more disconcerting things is the current line's indentation
> changing rapidly as I type. Is it feasible to create ERROR recovery
> indentation rules for every conceivable situation?
>
Yes, but in reality, I think all we need is a couple special case for the
unmatched ( and {’s. Can you think of other cases of blinking indentations?
Yuan
- treesit indentation "blinking", Daniel Colascione, 2023/03/22
- Re: treesit indentation "blinking",
Yuan Fu <=
- Re: treesit indentation "blinking", Daniel Colascione, 2023/03/22
- Re: treesit indentation "blinking", Yuan Fu, 2023/03/22
- Re: treesit indentation "blinking", Daniel Colascione, 2023/03/23
- Re: treesit indentation "blinking", Yuan Fu, 2023/03/23
- Re: treesit indentation "blinking", Daniel Colascione, 2023/03/23
- Re: treesit indentation "blinking", Dmitry Gutov, 2023/03/23
- Re: treesit indentation "blinking", João Távora, 2023/03/25
- Re: treesit indentation "blinking", Dmitry Gutov, 2023/03/25
- Re: treesit indentation "blinking", Eli Zaretskii, 2023/03/25
- Re: treesit indentation "blinking", João Távora, 2023/03/25