Skip to content

Commit d1900d9

Browse files
committed
chore: bump tree-sitter version
1 parent 5be2686 commit d1900d9

File tree

4 files changed

+82
-11
lines changed

4 files changed

+82
-11
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
all:
2-
tree-sitter generate --abi=13
3-
tree-sitter test
2+
npm run build
3+
npm run test

package-lock.json

+8-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "A tree-sitter parser for Vim help files",
55
"main": "bindings/node",
66
"scripts": {
7+
"build": "tree-sitter generate",
78
"test": "tree-sitter test"
89
},
910
"repository": {
@@ -25,6 +26,6 @@
2526
"nan": "^2.15.0"
2627
},
2728
"devDependencies": {
28-
"tree-sitter-cli": "^0.20.0"
29+
"tree-sitter-cli": "^0.20.7"
2930
}
3031
}

src/parser.c

+70-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
66
#endif
77

8-
#define LANGUAGE_VERSION 13
8+
#define LANGUAGE_VERSION 14
99
#define STATE_COUNT 65
1010
#define LARGE_STATE_COUNT 6
1111
#define SYMBOL_COUNT 31
@@ -288,6 +288,74 @@ static const uint16_t ts_non_terminal_alias_map[] = {
288288
0,
289289
};
290290

291+
static const TSStateId ts_primary_state_ids[STATE_COUNT] = {
292+
[0] = 0,
293+
[1] = 1,
294+
[2] = 2,
295+
[3] = 3,
296+
[4] = 4,
297+
[5] = 5,
298+
[6] = 4,
299+
[7] = 7,
300+
[8] = 8,
301+
[9] = 9,
302+
[10] = 10,
303+
[11] = 11,
304+
[12] = 12,
305+
[13] = 13,
306+
[14] = 14,
307+
[15] = 15,
308+
[16] = 16,
309+
[17] = 17,
310+
[18] = 18,
311+
[19] = 19,
312+
[20] = 20,
313+
[21] = 20,
314+
[22] = 20,
315+
[23] = 9,
316+
[24] = 10,
317+
[25] = 13,
318+
[26] = 18,
319+
[27] = 17,
320+
[28] = 28,
321+
[29] = 10,
322+
[30] = 30,
323+
[31] = 31,
324+
[32] = 32,
325+
[33] = 33,
326+
[34] = 31,
327+
[35] = 35,
328+
[36] = 13,
329+
[37] = 18,
330+
[38] = 9,
331+
[39] = 17,
332+
[40] = 40,
333+
[41] = 41,
334+
[42] = 42,
335+
[43] = 43,
336+
[44] = 44,
337+
[45] = 30,
338+
[46] = 35,
339+
[47] = 47,
340+
[48] = 33,
341+
[49] = 32,
342+
[50] = 30,
343+
[51] = 35,
344+
[52] = 31,
345+
[53] = 33,
346+
[54] = 32,
347+
[55] = 55,
348+
[56] = 55,
349+
[57] = 44,
350+
[58] = 43,
351+
[59] = 42,
352+
[60] = 60,
353+
[61] = 55,
354+
[62] = 44,
355+
[63] = 43,
356+
[64] = 42,
357+
};
358+
291359
static bool ts_lex(TSLexer *lexer, TSStateId state) {
292360
START_LEXER();
293361
eof = lexer->eof(lexer);
@@ -1350,6 +1418,7 @@ extern const TSLanguage *tree_sitter_help(void) {
13501418
tree_sitter_help_external_scanner_serialize,
13511419
tree_sitter_help_external_scanner_deserialize,
13521420
},
1421+
.primary_state_ids = ts_primary_state_ids,
13531422
};
13541423
return &language;
13551424
}

0 commit comments

Comments
 (0)