[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#61142: Acknowledgement (29.0.60; java-ts-mode - Wrong indentatio
Re: bug#61142: Acknowledgement (29.0.60; java-ts-mode - Wrong indentation for the body of multiple lines conditions)
Wed, 01 Feb 2023 08:46:28 +0000
After reading treesit's manual, I found that we can use `n-p-gp` as the matcher
and `grand-parent` as the anchor to match the body of `if` (and `while`, which
has a similar issue).
I mean a rule looks like the following:
((n-p-gp nil "block" "if_statement") grand-parent java-ts-mode-indent-offset)
GNU bug Tracking System 在 2023年01月29日 星期日 16时33分03秒 (+08:00) 写道：
> Thank you for filing a new bug report with debbugs.gnu.org.
> This is an automatically generated reply to let you know your message
> has been received.
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
> Your message has been sent to the package maintainer(s):
> If you wish to submit further information on this problem, please
> send it to email@example.com.
> Please do not send mail to firstname.lastname@example.org unless you wish
> to report a problem with the Bug-tracking system.
发送自 Vivaldi 邮件。访问 vivaldi.com 免费下载
|[Prev in Thread]
||[Next in Thread]|
- Re: bug#61142: Acknowledgement (29.0.60; java-ts-mode - Wrong indentation for the body of multiple lines conditions),