|
|
|
|
@ -129,7 +129,7 @@ enum {
|
|
|
|
|
alias_sym_tag_name = 110,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const char *ts_symbol_names[] = {
|
|
|
|
|
static const char * const ts_symbol_names[] = {
|
|
|
|
|
[ts_builtin_sym_end] = "end",
|
|
|
|
|
[anon_sym_ATimport] = "@import",
|
|
|
|
|
[anon_sym_COMMA] = ",",
|
|
|
|
|
@ -243,7 +243,7 @@ static const char *ts_symbol_names[] = {
|
|
|
|
|
[alias_sym_tag_name] = "tag_name",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static TSSymbol ts_symbol_map[] = {
|
|
|
|
|
static const TSSymbol ts_symbol_map[] = {
|
|
|
|
|
[ts_builtin_sym_end] = ts_builtin_sym_end,
|
|
|
|
|
[anon_sym_ATimport] = anon_sym_ATimport,
|
|
|
|
|
[anon_sym_COMMA] = anon_sym_COMMA,
|
|
|
|
|
@ -804,7 +804,7 @@ static const TSSymbolMetadata ts_symbol_metadata[] = {
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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},
|
|
|
|
|
[1] = {
|
|
|
|
|
[0] = alias_sym_tag_name,
|
|
|
|
|
@ -850,7 +850,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[] = {
|
|
|
|
|
0,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@ -2897,7 +2897,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, .external_lex_state = 1},
|
|
|
|
|
[1] = {.lex_state = 72},
|
|
|
|
|
[2] = {.lex_state = 72},
|
|
|
|
|
@ -3182,17 +3182,17 @@ enum {
|
|
|
|
|
ts_external_token__descendant_operator = 0,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = {
|
|
|
|
|
static const TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = {
|
|
|
|
|
[ts_external_token__descendant_operator] = sym__descendant_operator,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static bool ts_external_scanner_states[2][EXTERNAL_TOKEN_COUNT] = {
|
|
|
|
|
static const bool ts_external_scanner_states[2][EXTERNAL_TOKEN_COUNT] = {
|
|
|
|
|
[1] = {
|
|
|
|
|
[ts_external_token__descendant_operator] = true,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
|
|
|
|
|
static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
|
|
|
|
|
[0] = {
|
|
|
|
|
[ts_builtin_sym_end] = ACTIONS(1),
|
|
|
|
|
[anon_sym_ATimport] = ACTIONS(1),
|
|
|
|
|
@ -3290,7 +3290,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] = 21,
|
|
|
|
|
ACTIONS(3), 1,
|
|
|
|
|
sym_comment,
|
|
|
|
|
@ -8597,7 +8597,7 @@ static uint16_t ts_small_parse_table[] = {
|
|
|
|
|
anon_sym_LPAREN2,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static uint32_t ts_small_parse_table_map[] = {
|
|
|
|
|
static const uint32_t ts_small_parse_table_map[] = {
|
|
|
|
|
[SMALL_STATE(2)] = 0,
|
|
|
|
|
[SMALL_STATE(3)] = 85,
|
|
|
|
|
[SMALL_STATE(4)] = 170,
|
|
|
|
|
@ -8876,7 +8876,7 @@ static uint32_t ts_small_parse_table_map[] = {
|
|
|
|
|
[SMALL_STATE(277)] = 6792,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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_EXTRA(),
|
|
|
|
|
@ -9321,7 +9321,7 @@ void tree_sitter_css_external_scanner_deserialize(void *, const char *, unsigned
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
extern const TSLanguage *tree_sitter_css(void) {
|
|
|
|
|
static TSLanguage language = {
|
|
|
|
|
static const TSLanguage language = {
|
|
|
|
|
.version = LANGUAGE_VERSION,
|
|
|
|
|
.symbol_count = SYMBOL_COUNT,
|
|
|
|
|
.alias_count = ALIAS_COUNT,
|
|
|
|
|
@ -9332,19 +9332,19 @@ extern const TSLanguage *tree_sitter_css(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,
|
|
|
|
|
.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,
|
|
|
|
|
.external_scanner = {
|
|
|
|
|
(const bool *)ts_external_scanner_states,
|
|
|
|
|
&ts_external_scanner_states[0][0],
|
|
|
|
|
ts_external_scanner_symbol_map,
|
|
|
|
|
tree_sitter_css_external_scanner_create,
|
|
|
|
|
tree_sitter_css_external_scanner_destroy,
|
|
|
|
|
|