⬆️ tree-sitter to 0.16

This commit is contained in:
Max Brunsfeld 2019-12-10 10:25:03 -08:00
parent 49fff05d9b
commit 1c21687999
3 changed files with 1058 additions and 668 deletions

View File

@ -13,13 +13,12 @@
], ],
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"nan": "^2.10.0" "nan": "^2.14.0"
}, },
"devDependencies": { "devDependencies": {
"tree-sitter-cli": "^0.15.14" "tree-sitter-cli": "^0.16.1"
}, },
"scripts": { "scripts": {
"build": "tree-sitter generate && node-gyp build",
"test": "tree-sitter test && tree-sitter parse examples/*.html --quiet --time", "test": "tree-sitter test && tree-sitter parse examples/*.html --quiet --time",
"test-windows": "tree-sitter test" "test-windows": "tree-sitter test"
}, },

1715
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 TSFieldMapSlice *field_map_slices;
const TSFieldMapEntry *field_map_entries; const TSFieldMapEntry *field_map_entries;
const char **field_names; 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 * Parse Table Macros
*/ */
#define SMALL_STATE(id) id - LARGE_STATE_COUNT
#define STATE(id) id #define STATE(id) id
#define ACTIONS(id) id #define ACTIONS(id) id