Function: treesit-library-abi-version

treesit-library-abi-version is a function defined in treesit.c.

Signature

(treesit-library-abi-version &optional MIN-COMPATIBLE)

Documentation

Return the language ABI version of the tree-sitter library.

By default, report the latest ABI version supported by the library for loading language support modules. The library is backward-compatible with language modules which use older ABI versions; if MIN-COMPATIBLE is non-nil, return the oldest compatible ABI version.

View in manual

Source Code

// Defined in /usr/src/emacs/src/treesit.c
{
  if (NILP (min_compatible))
    return make_fixnum (TREE_SITTER_LANGUAGE_VERSION);
  else
    return make_fixnum (TREE_SITTER_MIN_COMPATIBLE_LANGUAGE_VERSION);
}