diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2019-12-22 13:47:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-22 13:47:45 +0100 |
| commit | 9e9dcd4bd79cc5ea0fd240bcb242ceea07deabe2 (patch) | |
| tree | b4c06d6b6485f364f502b97d8775546a9fced24f /src/tree_sitter/language.h | |
| parent | e1d63c180cc38cec5a8bf3e543bfe18472352da4 (diff) | |
| parent | 440695c29696f261337227e5c419aa1cf313c2dd (diff) | |
| download | rneovim-9e9dcd4bd79cc5ea0fd240bcb242ceea07deabe2.tar.gz rneovim-9e9dcd4bd79cc5ea0fd240bcb242ceea07deabe2.tar.bz2 rneovim-9e9dcd4bd79cc5ea0fd240bcb242ceea07deabe2.zip | |
Merge pull request #11113 from bfredl/tree-sitter-query
tree-sitter step 2: query API and highlighting prototype
Diffstat (limited to 'src/tree_sitter/language.h')
| -rw-r--r-- | src/tree_sitter/language.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tree_sitter/language.h b/src/tree_sitter/language.h index 0741486a1b..d7e17c3d70 100644 --- a/src/tree_sitter/language.h +++ b/src/tree_sitter/language.h @@ -10,6 +10,7 @@ extern "C" { #define ts_builtin_sym_error_repeat (ts_builtin_sym_error - 1) #define TREE_SITTER_LANGUAGE_VERSION_WITH_FIELDS 10 +#define TREE_SITTER_LANGUAGE_VERSION_WITH_SYMBOL_DEDUPING 11 #define TREE_SITTER_LANGUAGE_VERSION_WITH_SMALL_STATES 11 typedef struct { @@ -22,6 +23,8 @@ void ts_language_table_entry(const TSLanguage *, TSStateId, TSSymbol, TableEntry TSSymbolMetadata ts_language_symbol_metadata(const TSLanguage *, TSSymbol); +TSSymbol ts_language_public_symbol(const TSLanguage *, TSSymbol); + static inline bool ts_language_is_symbol_external(const TSLanguage *self, TSSymbol symbol) { return 0 < symbol && symbol < self->external_token_count + 1; } |