mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-10 06:00:51 +00:00
; * lisp/progmodes/c-ts-mode.el (c-ts-mode--fill-paragraph): Fix.
This commit is contained in:
parent
dec1b37a32
commit
fba35657da
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue