]> git.eshelyaron.com Git - emacs.git/commit
Support filling line comments in c-ts-mode
authorYuan Fu <casouri@gmail.com>
Sat, 14 Jan 2023 07:31:18 +0000 (23:31 -0800)
committerYuan Fu <casouri@gmail.com>
Sun, 15 Jan 2023 09:11:37 +0000 (01:11 -0800)
commitd428d5106642ad0a76d4abfb39d59c5bd80edddb
tree2a1eb57bf9dc31c968455581558e11a6ec6118a6
parentf02998939c6b7eaa5a63137573abe6fd85fc3de1
Support filling line comments in c-ts-mode

Now we handle line comments separately because for line comments, each
line is an individual node, unlike block comments, where the whole
block comment is a single node.  fill-comment-paragraph turns out to
do the job perfectly fine.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--fill-paragraph): Extract out most parts into
c-ts-mode--fill-block-comment.
(c-ts-mode--fill-block-comment): New extracted function.
lisp/progmodes/c-ts-mode.el