From a176baa26fd99ed9177dd5100d754120652e9f8d Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Thu, 29 Oct 2015 12:41:21 -0400 Subject: [PATCH] Pass a language, rather than a document. --- include/tree_sitter/runtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tree_sitter/runtime.h b/include/tree_sitter/runtime.h index 00b02473..67141fb3 100644 --- a/include/tree_sitter/runtime.h +++ b/include/tree_sitter/runtime.h @@ -79,7 +79,7 @@ void ts_document_invalidate(TSDocument *); TSNode ts_document_root_node(const TSDocument *); size_t ts_document_parse_count(const TSDocument *); -const char *ts_language_symbol_name(TSDocument *, TSSymbol); +const char *ts_language_symbol_name(TSLanguage *, TSSymbol); #define ts_builtin_sym_error 0 #define ts_builtin_sym_end 1