⬆️ tree-sitter-cli to 0.16

This commit is contained in:
Max Brunsfeld 2019-12-09 16:36:12 -08:00
parent caed98aef6
commit 179c2f3a75
3 changed files with 5716 additions and 4089 deletions

View File

@ -13,7 +13,7 @@
"nan": "^2.11.1"
},
"devDependencies": {
"tree-sitter-cli": "^0.15.14"
"tree-sitter-cli": "^0.16.1"
},
"scripts": {
"test": "tree-sitter test && tree-sitter parse examples/*.css --quiet --time",

9797
src/parser.c vendored

File diff suppressed because it is too large Load Diff

View File

@ -115,6 +115,10 @@ struct TSLanguage {
const TSFieldMapSlice *field_map_slices;
const TSFieldMapEntry *field_map_entries;
const char **field_names;
uint32_t large_state_count;
const uint16_t *small_parse_table;
const uint32_t *small_parse_table_map;
const TSSymbol *public_symbol_map;
};
/*
@ -157,6 +161,8 @@ struct TSLanguage {
* Parse Table Macros
*/
#define SMALL_STATE(id) id - LARGE_STATE_COUNT
#define STATE(id) id
#define ACTIONS(id) id