From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 60091@debbugs.gnu.org
Cc: casouri@gmail.com
Subject: bug#60091: 30.0.50; [PATCH] Add lambda_expression rule to java-ts-mode
Date: Thu, 15 Dec 2022 14:56:12 +0100 [thread overview]
Message-ID: <87h6xwwz2b.fsf@thornhill.no> (raw)
[-- Attachment #1: Type: text/plain, Size: 42 bytes --]
Hi Yuan,
Can you apply this one?
Theo
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-lambda_expression-rule-to-java-ts-mode.patch --]
[-- Type: text/x-diff, Size: 1121 bytes --]
From aff3aa5fb0d2ad84d21df8155e913d0fc7cf1337 Mon Sep 17 00:00:00 2001
From: Theodor Thornhill <theo@thornhill.no>
Date: Thu, 15 Dec 2022 14:54:17 +0100
Subject: [PATCH] Add lambda_expression-rule to java-ts-mode
* lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules): New
rule.
---
lisp/progmodes/java-ts-mode.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el
index ac591a0859..a0c818e0dd 100644
--- a/lisp/progmodes/java-ts-mode.el
+++ b/lisp/progmodes/java-ts-mode.el
@@ -86,6 +86,7 @@ java-ts-mode--indent-rules
((parent-is "method_invocation") parent-bol java-ts-mode-indent-offset)
((parent-is "switch_rule") parent-bol java-ts-mode-indent-offset)
((parent-is "ternary_expression") parent-bol java-ts-mode-indent-offset)
+ ((parent-is "lambda_expression") parent-bol java-ts-mode-indent-offset)
((parent-is "element_value_array_initializer") parent-bol java-ts-mode-indent-offset)
((parent-is "function_definition") parent-bol 0)
((parent-is "conditional_expression") first-sibling 0)
--
2.34.1
next reply other threads:[~2022-12-15 13:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-15 13:56 Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-12-16 3:27 ` bug#60091: 30.0.50; [PATCH] Add lambda_expression rule to java-ts-mode Yuan Fu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h6xwwz2b.fsf@thornhill.no \
--to=bug-gnu-emacs@gnu.org \
--cc=60091@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=theo@thornhill.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).