summaryrefslogtreecommitdiff
path: root/doc/lispref/parsing.texi
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2022-12-30 02:54:13 -0800
committerYuan Fu <casouri@gmail.com>2022-12-30 02:54:13 -0800
commit0237c5927e9a741083e4d177bd9a8e9c876cc662 (patch)
tree3061f9dd597072393f32ece54bf9d8842707593f /doc/lispref/parsing.texi
parent312f82d36f0f8a68e70a7fbcddc398670680b5b6 (diff)
downloademacs-0237c5927e9a741083e4d177bd9a8e9c876cc662.tar.gz
emacs-0237c5927e9a741083e4d177bd9a8e9c876cc662.tar.bz2
emacs-0237c5927e9a741083e4d177bd9a8e9c876cc662.zip
Add treesit-language-abi-version
Also rename treesit-language-version to treesit-library-abi-version, because the old name is somewhat misleading. * doc/lispref/parsing.texi (Language Grammar): Update. * src/treesit.c (Ftreesit_library_abi_version): Rename. (Ftreesit_language_abi_version): New function.
Diffstat (limited to 'doc/lispref/parsing.texi')
-rw-r--r--doc/lispref/parsing.texi8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi
index 5411987b5e8..8803991b725 100644
--- a/doc/lispref/parsing.texi
+++ b/doc/lispref/parsing.texi
@@ -141,7 +141,7 @@ for a language that considers itself too ``cool'' to abide by
conventions.
@cindex language grammar version, compatibility
-@defun treesit-language-version &optional min-compatible
+@defun treesit-library-abi-version &optional min-compatible
This function returns the version of the language grammar
Application Binary Interface (@acronym{ABI}) supported by the
tree-sitter library. By default, it returns the latest ABI version
@@ -153,6 +153,12 @@ the tree-sitter library, otherwise the library will be unable to load
them.
@end defun
+@defun treesit-language-abi-version language
+This function returns the language grammar @acronym{ABI} version of
+language grammar for @var{language} loaded by Emacs. If
+@var{language} is unavailable, this function returns @code{nil}.
+@end defun
+
@heading Concrete syntax tree
@cindex syntax tree, concrete