1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 19:31:02 -08:00

Add :version tag for new tree-sitter custom options

* lisp/progmodes/python.el (python-use-tree-sitter): Add version tag.
* lisp/treesit.el (treesit):
(treesit-max-buffer-size): Add version tag.
This commit is contained in:
Yuan Fu 2022-10-09 20:54:19 -07:00
parent bb8376145a
commit aaaa4ca77e
No known key found for this signature in database
GPG key ID: 56E19BC57664A442
2 changed files with 7 additions and 4 deletions

View file

@ -290,7 +290,8 @@
"If non-nil, `python-mode' tries to use tree-sitter.
Currently `python-mode' uses tree-sitter for font-locking, imenu,
and movement functions."
:type 'boolean)
:type 'boolean
:version "29.1")
(defcustom python-interpreter "python"
"Python interpreter for noninteractive use.

View file

@ -34,11 +34,13 @@
(defgroup treesit
nil
"Tree-sitter is an incremental parser."
:group 'tools)
:group 'tools
:version "29.1")
(defcustom treesit-max-buffer-size (* 4 1024 1024)
"Maximum buffer size for enabling tree-sitter parsing."
:type 'integer)
"Maximum buffer size for enabling tree-sitter parsing (in bytes)."
:type 'integer
:version "29.1")
(defun treesit-available-p ()
"Return non-nil if tree-sitter features are available."