Update tree-sitter-cli: 0.19.4 -> 0.20.1

This commit is contained in:
Stephan Seitz 2022-01-13 09:53:10 +01:00
parent 44be8fbf72
commit fca82f8774
3 changed files with 20 additions and 20 deletions

View file

@ -12,6 +12,6 @@
"nan": "^2.14.2"
},
"devDependencies": {
"tree-sitter-cli": "^0.19.4"
"tree-sitter-cli": "^0.20.1"
}
}

View file

@ -145,7 +145,7 @@ enum {
aux_sym_unquoted_string_repeat1 = 126,
};
static const char *ts_symbol_names[] = {
static const char * const ts_symbol_names[] = {
[ts_builtin_sym_end] = "end",
[anon_sym_LF] = "\n",
[aux_sym_from_instruction_token1] = "FROM",
@ -275,7 +275,7 @@ static const char *ts_symbol_names[] = {
[aux_sym_unquoted_string_repeat1] = "unquoted_string_repeat1",
};
static TSSymbol ts_symbol_map[] = {
static const TSSymbol ts_symbol_map[] = {
[ts_builtin_sym_end] = ts_builtin_sym_end,
[anon_sym_LF] = anon_sym_LF,
[aux_sym_from_instruction_token1] = aux_sym_from_instruction_token1,
@ -928,7 +928,7 @@ enum {
field_value = 9,
};
static const char *ts_field_names[] = {
static const char * const ts_field_names[] = {
[0] = NULL,
[field_as] = "as",
[field_default] = "default",
@ -999,7 +999,7 @@ static const TSFieldMapEntry ts_field_map_entries[] = {
{field_as, 4},
};
static TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = {
static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = {
[0] = {0},
[3] = {
[1] = sym_unquoted_string,
@ -1010,7 +1010,7 @@ static TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGT
},
};
static uint16_t ts_non_terminal_alias_map[] = {
static const uint16_t ts_non_terminal_alias_map[] = {
aux_sym__user_name_or_group, 2,
aux_sym__user_name_or_group,
sym_unquoted_string,
@ -2562,7 +2562,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {
}
}
static TSLexMode ts_lex_modes[STATE_COUNT] = {
static const TSLexMode ts_lex_modes[STATE_COUNT] = {
[0] = {.lex_state = 0},
[1] = {.lex_state = 157},
[2] = {.lex_state = 157},
@ -2815,7 +2815,7 @@ static TSLexMode ts_lex_modes[STATE_COUNT] = {
[249] = {(TSStateId)(-1)},
};
static uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
[0] = {
[sym_line_continuation] = STATE(0),
[ts_builtin_sym_end] = ACTIONS(1),
@ -2885,7 +2885,7 @@ static uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
},
};
static uint16_t ts_small_parse_table[] = {
static const uint16_t ts_small_parse_table[] = {
[0] = 25,
ACTIONS(3), 1,
anon_sym_BSLASH_LF,
@ -5777,7 +5777,7 @@ static uint16_t ts_small_parse_table[] = {
ts_builtin_sym_end,
};
static uint32_t ts_small_parse_table_map[] = {
static const uint32_t ts_small_parse_table_map[] = {
[SMALL_STATE(2)] = 0,
[SMALL_STATE(3)] = 95,
[SMALL_STATE(4)] = 192,
@ -6028,7 +6028,7 @@ static uint32_t ts_small_parse_table_map[] = {
[SMALL_STATE(249)] = 4090,
};
static TSParseActionEntry ts_parse_actions[] = {
static const TSParseActionEntry ts_parse_actions[] = {
[0] = {.entry = {.count = 0, .reusable = false}},
[1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(),
[3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(249),
@ -6410,7 +6410,7 @@ extern "C" {
#endif
extern const TSLanguage *tree_sitter_dockerfile(void) {
static TSLanguage language = {
static const TSLanguage language = {
.version = LANGUAGE_VERSION,
.symbol_count = SYMBOL_COUNT,
.alias_count = ALIAS_COUNT,
@ -6421,18 +6421,18 @@ extern const TSLanguage *tree_sitter_dockerfile(void) {
.production_id_count = PRODUCTION_ID_COUNT,
.field_count = FIELD_COUNT,
.max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH,
.parse_table = (const uint16_t *)ts_parse_table,
.small_parse_table = (const uint16_t *)ts_small_parse_table,
.small_parse_table_map = (const uint32_t *)ts_small_parse_table_map,
.parse_table = &ts_parse_table[0][0],
.small_parse_table = ts_small_parse_table,
.small_parse_table_map = ts_small_parse_table_map,
.parse_actions = ts_parse_actions,
.symbol_names = ts_symbol_names,
.field_names = ts_field_names,
.field_map_slices = (const TSFieldMapSlice *)ts_field_map_slices,
.field_map_entries = (const TSFieldMapEntry *)ts_field_map_entries,
.field_map_slices = ts_field_map_slices,
.field_map_entries = ts_field_map_entries,
.symbol_metadata = ts_symbol_metadata,
.public_symbol_map = ts_symbol_map,
.alias_map = ts_non_terminal_alias_map,
.alias_sequences = (const TSSymbol *)ts_alias_sequences,
.alias_sequences = &ts_alias_sequences[0][0],
.lex_modes = ts_lex_modes,
.lex_fn = ts_lex,
};

View file

@ -102,8 +102,8 @@ struct TSLanguage {
const uint16_t *small_parse_table;
const uint32_t *small_parse_table_map;
const TSParseActionEntry *parse_actions;
const char **symbol_names;
const char **field_names;
const char * const *symbol_names;
const char * const *field_names;
const TSFieldMapSlice *field_map_slices;
const TSFieldMapEntry *field_map_entries;
const TSSymbolMetadata *symbol_metadata;