]> git.eshelyaron.com Git - emacs.git/commit
Fix c-ts-common--fill-paragraph for non-rust modes (bug#77727)
authorYuan Fu <casouri@gmail.com>
Wed, 16 Apr 2025 00:28:32 +0000 (17:28 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 17 Apr 2025 07:19:30 +0000 (09:19 +0200)
commit46b8b1bf7512ed0d46dd5b7a50ad2245a314c28a
tree4fb150c72e95c93a651eb9a59736d1bec862eca2
parent054e4f7c5c1ada762bce5ddbf0e80cdbaac528cc
Fix c-ts-common--fill-paragraph for non-rust modes (bug#77727)

* lisp/progmodes/c-ts-common.el:
(c-ts-common--comment-regexp): Add // and /* to regexp for Rust.
(c-ts-common--line-comment-p): Extract out into new function,
add a check that the parent node is a comment node.
(c-ts-common--fill-paragraph): Extract some code out.

(cherry picked from commit 9d43715baa5da4a644e180c7fb4550be0eb69be4)
lisp/progmodes/c-ts-common.el