diff options
author | Yuan Fu <casouri@gmail.com> | 2022-11-27 14:15:57 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-11-27 14:20:56 -0800 |
commit | d5dc1dbf7cb263d8ff541a0def028c2d7d24f82b (patch) | |
tree | 878994bb6bc5c1b6465fd0ba7df0352c5888d853 /test/lisp/emacs-lisp/bytecomp-resources/no-byte-compile.el | |
parent | 849223fba1ef899f90a6edff05bce24b90fbb043 (diff) | |
download | emacs-d5dc1dbf7cb263d8ff541a0def028c2d7d24f82b.tar.gz emacs-d5dc1dbf7cb263d8ff541a0def028c2d7d24f82b.tar.bz2 emacs-d5dc1dbf7cb263d8ff541a0def028c2d7d24f82b.zip |
Remove treesit-comment-start/end and use comment-start/end-skip
treesit-comment-start/end is unnecessary because of
comment-start/end-skip, so they should be removed.
Cleanup and set comment-start/end-skip for tree-sitter C-like major
modes.
I replaced the [ \t]* part in comment-start-skip with (syntax
whitespace), which is what comment-end-skip uses. I also added
grouping in comment-start-skip to match that of comment-end-skip.
* lisp/progmodes/c-ts-mode.el (c-ts-mode)
(c++-ts-mode)
* lisp/progmodes/csharp-mode.el (csharp-ts-mode)
* lisp/progmodes/java-ts-mode.el (java-ts-mode)
* lisp/progmodes/js.el (js-ts-mode)
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode): Setup
comment-start/end-skip.
* lisp/treesit.el (treesit-comment-start)
(treesit-comment-end): Remove variables.
(treesit-simple-indent-presets): Use comment-start/end-skip instead.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/no-byte-compile.el')
0 files changed, 0 insertions, 0 deletions