Upgrade tree-sitter for new lexer API
This commit is contained in:
parent
811de9534d
commit
d85b6287e6
|
@ -13,7 +13,7 @@
|
||||||
"nan": "^2.4.0"
|
"nan": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tree-sitter-cli": "^0.7.1"
|
"tree-sitter-cli": "^0.8.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tree-sitter generate && node-gyp build",
|
"build": "tree-sitter generate && node-gyp build",
|
||||||
|
|
|
@ -24,6 +24,7 @@ typedef struct {
|
||||||
typedef struct {
|
typedef struct {
|
||||||
void (*advance)(void *, bool);
|
void (*advance)(void *, bool);
|
||||||
void (*mark_end)(void *);
|
void (*mark_end)(void *);
|
||||||
|
uint32_t (*get_column)(void *);
|
||||||
int32_t lookahead;
|
int32_t lookahead;
|
||||||
TSSymbol result_symbol;
|
TSSymbol result_symbol;
|
||||||
} TSLexer;
|
} TSLexer;
|
||||||
|
|
Loading…
Reference in New Issue