⬆️ tree-sitter-cli (new ABI version)
This commit is contained in:
parent
c9b0de0410
commit
b04bf7b507
|
@ -16,7 +16,7 @@
|
|||
"nan": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tree-sitter-cli": "^0.12.5"
|
||||
"tree-sitter-cli": "^0.13.1"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tree-sitter generate && node-gyp build",
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
#endif
|
||||
|
||||
#define LANGUAGE_VERSION 8
|
||||
#define LANGUAGE_VERSION 9
|
||||
#define STATE_COUNT 86
|
||||
#define SYMBOL_COUNT 37
|
||||
#define ALIAS_COUNT 3
|
||||
|
|
|
@ -25,13 +25,16 @@ typedef struct {
|
|||
bool named : 1;
|
||||
} TSSymbolMetadata;
|
||||
|
||||
typedef struct {
|
||||
void (*advance)(void *, bool);
|
||||
void (*mark_end)(void *);
|
||||
uint32_t (*get_column)(void *);
|
||||
typedef struct TSLexer TSLexer;
|
||||
|
||||
struct TSLexer {
|
||||
int32_t lookahead;
|
||||
TSSymbol result_symbol;
|
||||
} TSLexer;
|
||||
void (*advance)(TSLexer *, bool);
|
||||
void (*mark_end)(TSLexer *);
|
||||
uint32_t (*get_column)(TSLexer *);
|
||||
bool (*is_at_included_range_start)(TSLexer *);
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
TSParseActionTypeShift,
|
||||
|
|
Loading…
Reference in New Issue