projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dec1b37
)
; * lisp/progmodes/c-ts-mode.el (c-ts-mode--fill-paragraph): Fix.
author
Yuan Fu
<casouri@gmail.com>
Fri, 30 Dec 2022 08:34:42 +0000
(
00:34
-0800)
committer
Yuan Fu
<casouri@gmail.com>
Fri, 30 Dec 2022 08:35:14 +0000
(
00:35
-0800)
lisp/progmodes/c-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/c-ts-mode.el
b/lisp/progmodes/c-ts-mode.el
index 82458ba5adbe94d43d79adca4dbe09a99fec05f2..82a13e976259638236c36fd6ed1faa0dc5cf80fb 100644
(file)
--- a/
lisp/progmodes/c-ts-mode.el
+++ b/
lisp/progmodes/c-ts-mode.el
@@
-595,7
+595,9
@@
ARG is passed to `fill-paragraph'."
(start-marker nil)
(end-marker nil)
(end-len 0))
- (when (equal (treesit-node-type node) "comment")
+ ;; These covers C/C++, Java, JavaScript, TypeScript, Rust, C#.
+ (when (member (treesit-node-type node)
+ '("comment" "line_comment" "block_comment"))
;; We mask "/*" and the space before "*/" like
;; `c-fill-paragraph' does.
(atomic-change-group