diff options
author | Yuan Fu <casouri@gmail.com> | 2022-12-18 14:11:54 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-12-18 14:48:38 -0800 |
commit | ce7b7e5af3ddb2863c0c4f6f7c91d1b6c205f1a0 (patch) | |
tree | 4cc3624341851c2660400a5c3aa689e29280d354 /doc/lispref/parsing.texi | |
parent | c1e015ae320c7ea0f9ca764b2df5fcd6f0d39994 (diff) | |
download | emacs-ce7b7e5af3ddb2863c0c4f6f7c91d1b6c205f1a0.tar.gz emacs-ce7b7e5af3ddb2863c0c4f6f7c91d1b6c205f1a0.tar.bz2 emacs-ce7b7e5af3ddb2863c0c4f6f7c91d1b6c205f1a0.zip |
Remove comment-start-skip preset in tree-sitter indentation engine
Comment indentation should use a adaptive-fill-based indent, rather
than comment-start-skip.
Also remove manual description of removed variables in treesit.el and
add documentation for n-p-gp upon request.
* doc/lispref/modes.texi (Parser-based Indentation)
* lisp/treesit.el (treesit-simple-indent-presets): Add n-p-gp, remove
treesit-comment-start/end, remove comment-start-skip.
* doc/lispref/parsing.texi (Tree-sitter major modes): Remove
treesit-comment-start/end.
Diffstat (limited to 'doc/lispref/parsing.texi')
-rw-r--r-- | doc/lispref/parsing.texi | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi index af7be2ebf36..adb4c5e6e0c 100644 --- a/doc/lispref/parsing.texi +++ b/doc/lispref/parsing.texi @@ -1735,20 +1735,6 @@ For more information of these built-in tree-sitter features, For supporting mixing of multiple languages in a major mode, @pxref{Multiple Languages}. -Setting the following local variables allows tree-sitter's indentation -engine to correctly indent multi-line comments: - -@defvar treesit-comment-start -This should be a regular expression matching an opening comment token. -For example, it should match @samp{//}, @samp{////}, @samp{/*}, -@samp{/****}, etc., in C. -@end defvar - -@defvar treesit-comment-end -This should be a regular expression matching a closing comment token. -For example, it should match @samp{*/}, @samp{****/}, etc., in C. -@end defvar - @node Tree-sitter C API @section Tree-sitter C API Correspondence |