⬆️ tree-sitter-cli

This commit is contained in:
Max Brunsfeld 2018-03-28 11:18:32 -07:00
parent 2d96fc5fcb
commit f478eaddb3
4 changed files with 74760 additions and 112375 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
node_modules
build
*.log
package-lock.json

View File

@ -13,7 +13,7 @@
"nan": "^2.4.0"
},
"devDependencies": {
"tree-sitter-cli": "^0.10.1"
"tree-sitter-cli": "^0.11.0"
},
"scripts": {
"build": "tree-sitter generate && node-gyp build",

187129
src/parser.c vendored

File diff suppressed because it is too large Load Diff

View File

@ -63,7 +63,6 @@ typedef union {
struct {
uint8_t count;
bool reusable : 1;
bool depends_on_lookahead : 1;
};
} TSParseActionEntry;
@ -81,6 +80,8 @@ typedef struct TSLanguage {
const TSSymbol *alias_sequences;
uint16_t max_alias_sequence_length;
bool (*lex_fn)(TSLexer *, TSStateId);
bool (*keyword_lex_fn)(TSLexer *, TSStateId);
TSSymbol keyword_capture_token;
struct {
const bool *states;
const TSSymbol *symbol_map;