Subject: bug#61142: Acknowledgement (29.0.60; java-ts-mode - Wrong indentation for the body of multiple lines conditions)

From: 太阳 <[email-masked]>
Date: 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):

>  [email-masked]

> If you wish to submit further information on this problem, please

> send it to [email-masked].

> Please do not send mail to [email-masked] unless you wish

> to report a problem with the Bug-tracking system.

-- 
发送自 Vivaldi 邮件。访问 vivaldi.com 免费下载