diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2022-11-21 15:41:28 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2022-11-21 15:41:28 +0100 |
commit | 87c696b7a8db5ba1e43c9c52d7e0c1367e347eb6 (patch) | |
tree | 8eb63dc757db1b36c28a9ddfeccc5d9a208b7ce0 /src/treesit.h | |
parent | c96157c8f8290bc2049dc947b6d264564659a545 (diff) | |
download | emacs-87c696b7a8db5ba1e43c9c52d7e0c1367e347eb6.tar.gz emacs-87c696b7a8db5ba1e43c9c52d7e0c1367e347eb6.tar.bz2 emacs-87c696b7a8db5ba1e43c9c52d7e0c1367e347eb6.zip |
; Repair build without tree-sitter
Diffstat (limited to 'src/treesit.h')
-rw-r--r-- | src/treesit.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/treesit.h b/src/treesit.h index 2d2a91cd366..1473126c5bc 100644 --- a/src/treesit.h +++ b/src/treesit.h @@ -20,6 +20,10 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ #ifndef EMACS_TREESIT_H #define EMACS_TREESIT_H +#include <config.h> + +#ifdef HAVE_TREE_SITTER + #include <tree_sitter/api.h> #include "lisp.h" @@ -176,6 +180,8 @@ CHECK_TS_COMPILED_QUERY (Lisp_Object query) Qtreesit_compiled_query_p, query); } +INLINE_HEADER_END + extern void treesit_record_change (ptrdiff_t, ptrdiff_t, ptrdiff_t); extern Lisp_Object make_treesit_parser (Lisp_Object, TSParser *, TSTree *, Lisp_Object); @@ -187,8 +193,8 @@ extern void treesit_delete_parser (struct Lisp_TS_Parser *); extern void treesit_delete_query (struct Lisp_TS_Query *); extern bool treesit_named_node_p (TSNode); -extern void syms_of_treesit (void); +#endif /* HAVE_TREE_SITTER */ -INLINE_HEADER_END +extern void syms_of_treesit (void); #endif /* EMACS_TREESIT_H */ |