Regenerate with latest tree-sitter
This commit is contained in:
parent
0259c5bce2
commit
31c17c066b
|
@ -13,7 +13,7 @@
|
||||||
"nan": "^2.4.0"
|
"nan": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tree-sitter-cli": "^0.8.0"
|
"tree-sitter-cli": "^0.9.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tree-sitter generate && node-gyp build",
|
"build": "tree-sitter generate && node-gyp build",
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -41,6 +41,7 @@ typedef struct {
|
||||||
struct {
|
struct {
|
||||||
TSStateId state;
|
TSStateId state;
|
||||||
bool extra : 1;
|
bool extra : 1;
|
||||||
|
bool repetition : 1;
|
||||||
};
|
};
|
||||||
struct {
|
struct {
|
||||||
TSSymbol symbol;
|
TSSymbol symbol;
|
||||||
|
@ -138,6 +139,17 @@ typedef struct TSLanguage {
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define SHIFT_REPEAT(state_value) \
|
||||||
|
{ \
|
||||||
|
{ \
|
||||||
|
.type = TSParseActionTypeShift, \
|
||||||
|
.params = { \
|
||||||
|
.state = state_value, \
|
||||||
|
.repetition = true \
|
||||||
|
}, \
|
||||||
|
} \
|
||||||
|
}
|
||||||
|
|
||||||
#define RECOVER() \
|
#define RECOVER() \
|
||||||
{ \
|
{ \
|
||||||
{ .type = TSParseActionTypeRecover } \
|
{ .type = TSParseActionTypeRecover } \
|
||||||
|
|
Loading…
Reference in New Issue