[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#67417: 29.1.50; c-ts-mode syntax issues with no brackets
From: |
Eli Zaretskii |
Subject: |
bug#67417: 29.1.50; c-ts-mode syntax issues with no brackets |
Date: |
Sat, 09 Dec 2023 10:27:09 +0200 |
> Date: Thu, 30 Nov 2023 23:58:14 -0800
> Cc: 67417@debbugs.gnu.org
> From: Yuan Fu <casouri@gmail.com>
>
> > The rest of the nodes (if/while/do/for) don't result in parse errors
> > here, as long as the condition in parentheses is typed out correctly.
> >
> > I tried some additional clauses looking for "previous sibling",
> > checking whether it's for_statement, etc, which ends with "expression
> > statement", and that one is empty... but it a fair amount of code
> > which will likely miss other edge cases anyway. Or breaks when the
> > grammar changes.
>
> Yeah, for now we can match for the specific case where there's an else
> before a "}". That should reduce the chance of it matching other edge
> cases. I'll give it another look on this weekend.
Any progress here?