From 30132c682b22b57d7f42883f2cb8480691182551 Mon Sep 17 00:00:00 2001 From: Timothy Clem Date: Wed, 17 Jun 2020 14:12:14 -0700 Subject: [PATCH] Bring tags.h inline --- tags/include/tree_sitter/tags.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/tags/include/tree_sitter/tags.h b/tags/include/tree_sitter/tags.h index 946dc6f1..e1ed68bd 100644 --- a/tags/include/tree_sitter/tags.h +++ b/tags/include/tree_sitter/tags.h @@ -19,15 +19,17 @@ typedef enum { } TSTagsError; typedef enum { - TSTagKindFunction, - TSTagKindMethod, - TSTagKindClass, - TSTagKindModule, - TSTagKindCall, -} TSTagKind; + TSSyntaxTypeFunction, + TSSyntaxTypeMethod, + TSSyntaxTypeClass, + TSSyntaxTypeModule, + TSSyntaxTypeCall, + TSSyntaxTypeType, + TSSyntaxTypeInterface, + TSSyntaxTypeImplementation, +} TSTagSyntaxType; typedef struct { - TSTagKind kind; uint32_t start_byte; uint32_t end_byte; uint32_t name_start_byte; @@ -38,6 +40,8 @@ typedef struct { TSPoint end_point; uint32_t docs_start_byte; uint32_t docs_end_byte; + TSTagSyntaxType syntax_type; + bool is_definition; } TSTag; typedef struct TSTagger TSTagger;