Regenerate with latest tree-sitter

This commit is contained in:
Max Brunsfeld 2018-02-12 16:53:11 -08:00
parent 0259c5bce2
commit 31c17c066b
3 changed files with 24426 additions and 22080 deletions

View File

@ -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",

46492
src/parser.c vendored

File diff suppressed because it is too large Load Diff

View File

@ -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 } \