From: john muhl <jm@pub.pink>
To: 75107@debbugs.gnu.org
Subject: bug#75107: [PATCH] Fix comment indent in 'lua-ts-mode' and old grammar
Date: Wed, 25 Dec 2024 19:42:58 -0600 [thread overview]
Message-ID: <87seqb43tp.fsf@pub.pink> (raw)
In-Reply-To: <8734ib5io5.fsf@pub.pink> (john muhl's message of "Wed, 25 Dec 2024 19:36:58 -0600")
[-- 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).
next prev parent reply other threads:[~2024-12-26 1:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2024-12-26 9:02 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87seqb43tp.fsf@pub.pink \
--to=jm@pub.pink \
--cc=75107@debbugs.gnu.org \
/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 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.