diff options
Diffstat (limited to 'vendor/github.com/mitjafelicijan/go-tree-sitter/bindings.h')
| -rw-r--r-- | vendor/github.com/mitjafelicijan/go-tree-sitter/bindings.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/github.com/mitjafelicijan/go-tree-sitter/bindings.h b/vendor/github.com/mitjafelicijan/go-tree-sitter/bindings.h new file mode 100644 index 0000000..c9dad10 --- /dev/null +++ b/vendor/github.com/mitjafelicijan/go-tree-sitter/bindings.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #ifndef TREE_SITTER_BINDINGS_H_ | ||
| 2 | #define TREE_SITTER_BINDINGS_H_ | ||
| 3 | |||
| 4 | #include "api.h" | ||
| 5 | |||
| 6 | TSLogger stderr_logger_new(bool include_lexing); | ||
| 7 | |||
| 8 | typedef struct | ||
| 9 | { | ||
| 10 | int read_function_id; | ||
| 11 | char *previous_content; | ||
| 12 | } ParsePayload; | ||
| 13 | |||
| 14 | extern char *callReadFunc(int id, uint32_t byteIndex, TSPoint position, uint32_t *bytesRead); | ||
| 15 | TSTree *call_ts_parser_parse(TSParser *self, const TSTree *old_tree, int read_function_id, TSInputEncoding encoding); | ||
| 16 | |||
| 17 | #endif | ||
