* bug#75107: [PATCH] Fix comment indent in 'lua-ts-mode' and old grammar
@ 2024-12-26 1:36 john muhl
2024-12-26 1:42 ` john muhl
0 siblings, 1 reply; 3+ messages in thread
From: john muhl @ 2024-12-26 1:36 UTC (permalink / raw)
To: 75107
Tags: patch
This makes all the tests pass and fixes a bug with multi-line
comment indent with some of the older grammars. Namely v0.0.18
which is packaged in Debian testing and some of its derivatives
(e.g. Ubuntu).
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#75107: [PATCH] Fix comment indent in 'lua-ts-mode' and old grammar
2024-12-26 1:36 bug#75107: [PATCH] Fix comment indent in 'lua-ts-mode' and old grammar john muhl
@ 2024-12-26 1:42 ` john muhl
2024-12-26 9:02 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: john muhl @ 2024-12-26 1:42 UTC (permalink / raw)
To: 75107
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-Fix-comment-indent-in-lua-ts-mode-and-old-grammar.patch --]
[-- Type: text/x-patch, Size: 1084 bytes --]
From e4a9647912545fa0d97370bba9919db3a9acb219 Mon Sep 17 00:00:00 2001
From: john muhl <jm@pub.pink>
Date: Wed, 25 Dec 2024 18:03:50 -0600
Subject: [PATCH] Fix comment indent in 'lua-ts-mode' and old grammar
* lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules):
Improve multi-line comment indention for pre-0.0.19 grammars that
used a different structure for comment start/end markers.
(Bug#75107)
---
lisp/progmodes/lua-ts-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el
index 6fa3e51b34b..857be185fcf 100644
--- a/lisp/progmodes/lua-ts-mode.el
+++ b/lisp/progmodes/lua-ts-mode.el
@@ -281,7 +281,7 @@ lua-ts--simple-indent-rules
lua-ts--multi-line-comment-start
(parent-is "comment_content")
(parent-is "string_content")
- (node-is "]]"))
+ (or (node-is "]]") (node-is "comment_end")))
no-indent 0)
((and (n-p-gp "field" "table_constructor" "arguments")
lua-ts--multi-arg-function-call-matcher
--
2.47.1
[-- Attachment #2: Type: text/plain, Size: 263 bytes --]
john muhl <jm@pub.pink> writes:
> Tags: patch
>
> This makes all the tests pass and fixes a bug with multi-line
> comment indent with some of the older grammars. Namely v0.0.18
> which is packaged in Debian testing and some of its derivatives
> (e.g. Ubuntu).
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#75107: [PATCH] Fix comment indent in 'lua-ts-mode' and old grammar
2024-12-26 1:42 ` john muhl
@ 2024-12-26 9:02 ` Eli Zaretskii
0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2024-12-26 9:02 UTC (permalink / raw)
To: john muhl; +Cc: 75107-done
> From: john muhl <jm@pub.pink>
> Date: Wed, 25 Dec 2024 19:42:58 -0600
>
> >From e4a9647912545fa0d97370bba9919db3a9acb219 Mon Sep 17 00:00:00 2001
> From: john muhl <jm@pub.pink>
> Date: Wed, 25 Dec 2024 18:03:50 -0600
> Subject: [PATCH] Fix comment indent in 'lua-ts-mode' and old grammar
>
> * lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules):
> Improve multi-line comment indention for pre-0.0.19 grammars that
> used a different structure for comment start/end markers.
> (Bug#75107)
Thanks, installed on the emacs-30 branch, and closing the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-26 9:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-26 1:36 bug#75107: [PATCH] Fix comment indent in 'lua-ts-mode' and old grammar john muhl
2024-12-26 1:42 ` john muhl
2024-12-26 9:02 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.