#include "tree_sitter/parser.h"
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif
#define LANGUAGE_VERSION 15
#define STATE_COUNT 53
#define LARGE_STATE_COUNT 5
#define SYMBOL_COUNT 42
#define ALIAS_COUNT 0
#define TOKEN_COUNT 23
#define EXTERNAL_TOKEN_COUNT 3
#define FIELD_COUNT 2
#define MAX_ALIAS_SEQUENCE_LENGTH 4
#define MAX_RESERVED_WORD_SET_SIZE 0
#define PRODUCTION_ID_COUNT 2
#define SUPERTYPE_COUNT 2
enum ts_symbol_identifiers {
anon_sym_LBRACE = 1,
anon_sym_COMMA = 2,
anon_sym_RBRACE = 3,
anon_sym_COLON = 4,
anon_sym_LBRACK = 5,
anon_sym_RBRACK = 6,
anon_sym_LPAREN = 7,
anon_sym_RPAREN = 8,
anon_sym_BQUOTE = 9,
anon_sym_DOLLAR_LBRACE = 10,
anon_sym_DQUOTE = 11,
anon_sym_SQUOTE = 12,
sym_unescaped_double_string_fragment = 13,
sym_unescaped_single_string_fragment = 14,
sym_escape_sequence = 15,
sym_identifier = 16,
sym_number = 17,
sym_true = 18,
sym_false = 19,
sym_null = 20,
sym__template_chars = 21,
sym_html_comment = 22,
sym_program = 23,
sym_expression_statement = 24,
sym_expression = 25,
sym_primary_expression = 26,
sym_object = 27,
sym_pair = 28,
sym__property_name = 29,
sym_computed_property_name = 30,
sym_array = 31,
sym_parenthesized_expression = 32,
sym_template_string = 33,
sym_template_substitution = 34,
sym_string = 35,
aux_sym_program_repeat1 = 36,
aux_sym_object_repeat1 = 37,
aux_sym_array_repeat1 = 38,
aux_sym_template_string_repeat1 = 39,
aux_sym_string_repeat1 = 40,
aux_sym_string_repeat2 = 41,
};
static const char * const ts_symbol_names[] = {
[ts_builtin_sym_end] = "end",
[anon_sym_LBRACE] = "{",
[anon_sym_COMMA] = ",",
[anon_sym_RBRACE] = "}",
[anon_sym_COLON] = ":",
[anon_sym_LBRACK] = "[",
[anon_sym_RBRACK] = "]",
[anon_sym_LPAREN] = "(",
[anon_sym_RPAREN] = ")",
[anon_sym_BQUOTE] = "`",
[anon_sym_DOLLAR_LBRACE] = "${",
[anon_sym_DQUOTE] = "\"",
[anon_sym_SQUOTE] = "'",
[sym_unescaped_double_string_fragment] = "string_fragment",
[sym_unescaped_single_string_fragment] = "string_fragment",
[sym_escape_sequence] = "escape_sequence",
[sym_identifier] = "identifier",
[sym_number] = "number",
[sym_true] = "true",
[sym_false] = "false",
[sym_null] = "null",
[sym__template_chars] = "string_fragment",
[sym_html_comment] = "html_comment",
[sym_program] = "program",
[sym_expression_statement] = "expression_statement",
[sym_expression] = "expression",
[sym_primary_expression] = "primary_expression",
[sym_object] = "object",
[sym_pair] = "pair",
[sym__property_name] = "_property_name",
[sym_computed_property_name] = "computed_property_name",
[sym_array] = "array",
[sym_parenthesized_expression] = "parenthesized_expression",
[sym_template_string] = "template_string",
[sym_template_substitution] = "template_substitution",
[sym_string] = "string",
[aux_sym_program_repeat1] = "program_repeat1",
[aux_sym_object_repeat1] = "object_repeat1",
[aux_sym_array_repeat1] = "array_repeat1",
[aux_sym_template_string_repeat1] = "template_string_repeat1",
[aux_sym_string_repeat1] = "string_repeat1",
[aux_sym_string_repeat2] = "string_repeat2",
};
static const TSSymbol ts_symbol_map[] = {
[ts_builtin_sym_end] = ts_builtin_sym_end,
[anon_sym_LBRACE] = anon_sym_LBRACE,
[anon_sym_COMMA] = anon_sym_COMMA,
[anon_sym_RBRACE] = anon_sym_RBRACE,
[anon_sym_COLON] = anon_sym_COLON,
[anon_sym_LBRACK] = anon_sym_LBRACK,
[anon_sym_RBRACK] = anon_sym_RBRACK,
[anon_sym_LPAREN] = anon_sym_LPAREN,
[anon_sym_RPAREN] = anon_sym_RPAREN,
[anon_sym_BQUOTE] = anon_sym_BQUOTE,
[anon_sym_DOLLAR_LBRACE] = anon_sym_DOLLAR_LBRACE,
[anon_sym_DQUOTE] = anon_sym_DQUOTE,
[anon_sym_SQUOTE] = anon_sym_SQUOTE,
[sym_unescaped_double_string_fragment] = sym__template_chars,
[sym_unescaped_single_string_fragment] = sym__template_chars,
[sym_escape_sequence] = sym_escape_sequence,
[sym_identifier] = sym_identifier,
[sym_number] = sym_number,
[sym_true] = sym_true,
[sym_false] = sym_false,
[sym_null] = sym_null,
[sym__template_chars] = sym__template_chars,
[sym_html_comment] = sym_html_comment,
[sym_program] = sym_program,
[sym_expression_statement] = sym_expression_statement,
[sym_expression] = sym_expression,
[sym_primary_expression] = sym_primary_expression,
[sym_object] = sym_object,
[sym_pair] = sym_pair,
[sym__property_name] = sym__property_name,
[sym_computed_property_name] = sym_computed_property_name,
[sym_array] = sym_array,
[sym_parenthesized_expression] = sym_parenthesized_expression,
[sym_template_string] = sym_template_string,
[sym_template_substitution] = sym_template_substitution,
[sym_string] = sym_string,
[aux_sym_program_repeat1] = aux_sym_program_repeat1,
[aux_sym_object_repeat1] = aux_sym_object_repeat1,
[aux_sym_array_repeat1] = aux_sym_array_repeat1,
[aux_sym_template_string_repeat1] = aux_sym_template_string_repeat1,
[aux_sym_string_repeat1] = aux_sym_string_repeat1,
[aux_sym_string_repeat2] = aux_sym_string_repeat2,
};
static const TSSymbolMetadata ts_symbol_metadata[] = {
[ts_builtin_sym_end] = {
.visible = false,
.named = true,
},
[anon_sym_LBRACE] = {
.visible = true,
.named = false,
},
[anon_sym_COMMA] = {
.visible = true,
.named = false,
},
[anon_sym_RBRACE] = {
.visible = true,
.named = false,
},
[anon_sym_COLON] = {
.visible = true,
.named = false,
},
[anon_sym_LBRACK] = {
.visible = true,
.named = false,
},
[anon_sym_RBRACK] = {
.visible = true,
.named = false,
},
[anon_sym_LPAREN] = {
.visible = true,
.named = false,
},
[anon_sym_RPAREN] = {
.visible = true,
.named = false,
},
[anon_sym_BQUOTE] = {
.visible = true,
.named = false,
},
[anon_sym_DOLLAR_LBRACE] = {
.visible = true,
.named = false,
},
[anon_sym_DQUOTE] = {
.visible = true,
.named = false,
},
[anon_sym_SQUOTE] = {
.visible = true,
.named = false,
},
[sym_unescaped_double_string_fragment] = {
.visible = true,
.named = true,
},
[sym_unescaped_single_string_fragment] = {
.visible = true,
.named = true,
},
[sym_escape_sequence] = {
.visible = true,
.named = true,
},
[sym_identifier] = {
.visible = true,
.named = true,
},
[sym_number] = {
.visible = true,
.named = true,
},
[sym_true] = {
.visible = true,
.named = true,
},
[sym_false] = {
.visible = true,
.named = true,
},
[sym_null] = {
.visible = true,
.named = true,
},
[sym__template_chars] = {
.visible = true,
.named = true,
},
[sym_html_comment] = {
.visible = true,
.named = true,
},
[sym_program] = {
.visible = true,
.named = true,
},
[sym_expression_statement] = {
.visible = true,
.named = true,
},
[sym_expression] = {
.visible = false,
.named = true,
.supertype = true,
},
[sym_primary_expression] = {
.visible = false,
.named = true,
.supertype = true,
},
[sym_object] = {
.visible = true,
.named = true,
},
[sym_pair] = {
.visible = true,
.named = true,
},
[sym__property_name] = {
.visible = false,
.named = true,
},
[sym_computed_property_name] = {
.visible = true,
.named = true,
},
[sym_array] = {
.visible = true,
.named = true,
},
[sym_parenthesized_expression] = {
.visible = true,
.named = true,
},
[sym_template_string] = {
.visible = true,
.named = true,
},
[sym_template_substitution] = {
.visible = true,
.named = true,
},
[sym_string] = {
.visible = true,
.named = true,
},
[aux_sym_program_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_object_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_array_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_template_string_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_string_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_string_repeat2] = {
.visible = false,
.named = false,
},
};
enum ts_field_identifiers {
field_key = 1,
field_value = 2,
};
static const char * const ts_field_names[] = {
[0] = NULL,
[field_key] = "key",
[field_value] = "value",
};
static const TSMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = {
[1] = {.index = 0, .length = 2},
};
static const TSFieldMapEntry ts_field_map_entries[] = {
[0] =
{field_key, 0},
{field_value, 2},
};
static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = {
[0] = {0},
};
static const uint16_t ts_non_terminal_alias_map[] = {
0,
};
static const TSStateId ts_primary_state_ids[STATE_COUNT] = {
[0] = 0,
[1] = 1,
[2] = 2,
[3] = 3,
[4] = 4,
[5] = 5,
[6] = 6,
[7] = 7,
[8] = 8,
[9] = 9,
[10] = 10,
[11] = 11,
[12] = 12,
[13] = 13,
[14] = 14,
[15] = 15,
[16] = 16,
[17] = 17,
[18] = 18,
[19] = 19,
[20] = 20,
[21] = 21,
[22] = 22,
[23] = 23,
[24] = 24,
[25] = 25,
[26] = 26,
[27] = 27,
[28] = 28,
[29] = 29,
[30] = 30,
[31] = 31,
[32] = 32,
[33] = 33,
[34] = 34,
[35] = 35,
[36] = 36,
[37] = 37,
[38] = 38,
[39] = 39,
[40] = 40,
[41] = 41,
[42] = 42,
[43] = 43,
[44] = 44,
[45] = 45,
[46] = 46,
[47] = 47,
[48] = 48,
[49] = 49,
[50] = 50,
[51] = 51,
[52] = 52,
};
static const TSSymbol ts_supertype_symbols[SUPERTYPE_COUNT] = {
sym_expression,
sym_primary_expression,
};
static const TSMapSlice ts_supertype_map_slices[] = {
[sym_expression] = {.index = 0, .length = 1},
[sym_primary_expression] = {.index = 1, .length = 10},
};
static const TSSymbol ts_supertype_map_entries[] = {
[0] =
sym_primary_expression,
[1] =
sym_array,
sym_false,
sym_identifier,
sym_null,
sym_number,
sym_object,
sym_parenthesized_expression,
sym_string,
sym_template_string,
sym_true,
};
static const TSCharacterRange extras_character_set_1[] = {
{'\t', '\r'}, {' ', ' '}, {0xa0, 0xa0}, {0x1680, 0x1680}, {0x2000, 0x200b}, {0x2028, 0x2029}, {0x202f, 0x202f}, {0x205f, 0x2060},
{0x3000, 0x3000}, {0xfeff, 0xfeff},
};
static bool ts_lex(TSLexer *lexer, TSStateId state) {
START_LEXER();
eof = lexer->eof(lexer);
switch (state) {
case 0:
if (eof) ADVANCE(25);
ADVANCE_MAP(
'"', 36,
'\'', 37,
'(', 32,
')', 33,
',', 27,
'.', 16,
'0', 58,
':', 29,
'[', 30,
'\\', 8,
']', 31,
'`', 34,
'f', 46,
'n', 55,
't', 52,
'{', 26,
'}', 28,
);
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(59);
if (set_contains(extras_character_set_1, 10, lookahead)) SKIP(24);
if (lookahead == '$' ||
('A' <= lookahead && lookahead <= 'Z') ||
('_' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 1:
if (lookahead == '"') ADVANCE(36);
if (lookahead == '\'') ADVANCE(37);
if (lookahead == ',') ADVANCE(27);
if (lookahead == '.') ADVANCE(16);
if (lookahead == '0') ADVANCE(58);
if (lookahead == '[') ADVANCE(30);
if (lookahead == '}') ADVANCE(28);
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(59);
if (set_contains(extras_character_set_1, 10, lookahead)) SKIP(1);
if (lookahead == '$' ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 2:
if (lookahead == '"') ADVANCE(36);
if (lookahead == '\\') ADVANCE(8);
if (lookahead == '\n' ||
lookahead == '\r') SKIP(3);
if (set_contains(extras_character_set_1, 10, lookahead)) ADVANCE(38);
if (lookahead != 0) ADVANCE(39);
END_STATE();
case 3:
if (lookahead == '"') ADVANCE(36);
if (set_contains(extras_character_set_1, 10, lookahead)) SKIP(3);
END_STATE();
case 4:
if (lookahead == '$') ADVANCE(9);
if (lookahead == '\\') ADVANCE(8);
if (lookahead == '`') ADVANCE(34);
if (set_contains(extras_character_set_1, 10, lookahead)) SKIP(5);
END_STATE();
case 5:
if (lookahead == '$') ADVANCE(9);
if (lookahead == '`') ADVANCE(34);
if (set_contains(extras_character_set_1, 10, lookahead)) SKIP(5);
END_STATE();
case 6:
if (lookahead == '\'') ADVANCE(37);
if (lookahead == '\\') ADVANCE(8);
if (lookahead == '\n' ||
lookahead == '\r') SKIP(7);
if (set_contains(extras_character_set_1, 10, lookahead)) ADVANCE(40);
if (lookahead != 0) ADVANCE(41);
END_STATE();
case 7:
if (lookahead == '\'') ADVANCE(37);
if (set_contains(extras_character_set_1, 10, lookahead)) SKIP(7);
END_STATE();
case 8:
if (lookahead == 'u') ADVANCE(10);
if (lookahead == 'x') ADVANCE(23);
if (lookahead == '\r' ||
lookahead == '?') ADVANCE(43);
if (('0' <= lookahead && lookahead <= '7')) ADVANCE(45);
if (lookahead != 0) ADVANCE(42);
END_STATE();
case 9:
if (lookahead == '{') ADVANCE(35);
END_STATE();
case 10:
if (lookahead == '{') ADVANCE(21);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'F') ||
('a' <= lookahead && lookahead <= 'f')) ADVANCE(22);
END_STATE();
case 11:
if (lookahead == '}') ADVANCE(42);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'F') ||
('a' <= lookahead && lookahead <= 'f')) ADVANCE(11);
END_STATE();
case 12:
if (lookahead == '+' ||
lookahead == '-') ADVANCE(18);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(65);
END_STATE();
case 13:
if (lookahead == '0' ||
lookahead == '1') ADVANCE(61);
END_STATE();
case 14:
if (('0' <= lookahead && lookahead <= '7')) ADVANCE(62);
END_STATE();
case 15:
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(59);
END_STATE();
case 16:
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(60);
END_STATE();
case 17:
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(64);
END_STATE();
case 18:
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(65);
END_STATE();
case 19:
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'F') ||
('a' <= lookahead && lookahead <= 'f')) ADVANCE(42);
END_STATE();
case 20:
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'F') ||
('a' <= lookahead && lookahead <= 'f')) ADVANCE(63);
END_STATE();
case 21:
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'F') ||
('a' <= lookahead && lookahead <= 'f')) ADVANCE(11);
END_STATE();
case 22:
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'F') ||
('a' <= lookahead && lookahead <= 'f')) ADVANCE(23);
END_STATE();
case 23:
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'F') ||
('a' <= lookahead && lookahead <= 'f')) ADVANCE(19);
END_STATE();
case 24:
if (eof) ADVANCE(25);
ADVANCE_MAP(
'"', 36,
'\'', 37,
'(', 32,
')', 33,
',', 27,
'.', 16,
'0', 58,
':', 29,
'[', 30,
']', 31,
'`', 34,
'f', 46,
'n', 55,
't', 52,
'{', 26,
'}', 28,
);
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(59);
if (set_contains(extras_character_set_1, 10, lookahead)) SKIP(24);
if (lookahead == '$' ||
('A' <= lookahead && lookahead <= 'Z') ||
('_' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 25:
ACCEPT_TOKEN(ts_builtin_sym_end);
END_STATE();
case 26:
ACCEPT_TOKEN(anon_sym_LBRACE);
END_STATE();
case 27:
ACCEPT_TOKEN(anon_sym_COMMA);
END_STATE();
case 28:
ACCEPT_TOKEN(anon_sym_RBRACE);
END_STATE();
case 29:
ACCEPT_TOKEN(anon_sym_COLON);
END_STATE();
case 30:
ACCEPT_TOKEN(anon_sym_LBRACK);
END_STATE();
case 31:
ACCEPT_TOKEN(anon_sym_RBRACK);
END_STATE();
case 32:
ACCEPT_TOKEN(anon_sym_LPAREN);
END_STATE();
case 33:
ACCEPT_TOKEN(anon_sym_RPAREN);
END_STATE();
case 34:
ACCEPT_TOKEN(anon_sym_BQUOTE);
END_STATE();
case 35:
ACCEPT_TOKEN(anon_sym_DOLLAR_LBRACE);
END_STATE();
case 36:
ACCEPT_TOKEN(anon_sym_DQUOTE);
END_STATE();
case 37:
ACCEPT_TOKEN(anon_sym_SQUOTE);
END_STATE();
case 38:
ACCEPT_TOKEN(sym_unescaped_double_string_fragment);
if ((set_contains(extras_character_set_1, 10, lookahead)) &&
lookahead != '\n' &&
lookahead != '\r') ADVANCE(38);
if (lookahead != 0 &&
(lookahead < '\t' || '\r' < lookahead) &&
lookahead != '"' &&
lookahead != '\\') ADVANCE(39);
END_STATE();
case 39:
ACCEPT_TOKEN(sym_unescaped_double_string_fragment);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r' &&
lookahead != '"' &&
lookahead != '\\') ADVANCE(39);
END_STATE();
case 40:
ACCEPT_TOKEN(sym_unescaped_single_string_fragment);
if ((set_contains(extras_character_set_1, 10, lookahead)) &&
lookahead != '\n' &&
lookahead != '\r') ADVANCE(40);
if (lookahead != 0 &&
(lookahead < '\t' || '\r' < lookahead) &&
lookahead != '\'' &&
lookahead != '\\') ADVANCE(41);
END_STATE();
case 41:
ACCEPT_TOKEN(sym_unescaped_single_string_fragment);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r' &&
lookahead != '\'' &&
lookahead != '\\') ADVANCE(41);
END_STATE();
case 42:
ACCEPT_TOKEN(sym_escape_sequence);
END_STATE();
case 43:
ACCEPT_TOKEN(sym_escape_sequence);
if (lookahead == '\n' ||
lookahead == 0x2028 ||
lookahead == 0x2029) ADVANCE(42);
END_STATE();
case 44:
ACCEPT_TOKEN(sym_escape_sequence);
if (('0' <= lookahead && lookahead <= '7')) ADVANCE(42);
END_STATE();
case 45:
ACCEPT_TOKEN(sym_escape_sequence);
if (('0' <= lookahead && lookahead <= '7')) ADVANCE(44);
END_STATE();
case 46:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'a') ADVANCE(49);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('b' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 47:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'e') ADVANCE(67);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 48:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'e') ADVANCE(68);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 49:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'l') ADVANCE(53);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 50:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'l') ADVANCE(69);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 51:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'l') ADVANCE(50);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 52:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'r') ADVANCE(54);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 53:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 's') ADVANCE(48);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 54:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'u') ADVANCE(47);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 55:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'u') ADVANCE(51);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 56:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 57:
ACCEPT_TOKEN(sym_number);
END_STATE();
case 58:
ACCEPT_TOKEN(sym_number);
ADVANCE_MAP(
'.', 66,
'0', 64,
'_', 17,
'n', 57,
'B', 13,
'b', 13,
'E', 12,
'e', 12,
'O', 14,
'o', 14,
'X', 20,
'x', 20,
);
if (('1' <= lookahead && lookahead <= '9')) ADVANCE(59);
END_STATE();
case 59:
ACCEPT_TOKEN(sym_number);
if (lookahead == '.') ADVANCE(66);
if (lookahead == '_') ADVANCE(15);
if (lookahead == 'n') ADVANCE(57);
if (lookahead == 'E' ||
lookahead == 'e') ADVANCE(12);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(59);
END_STATE();
case 60:
ACCEPT_TOKEN(sym_number);
if (lookahead == '_') ADVANCE(16);
if (lookahead == 'E' ||
lookahead == 'e') ADVANCE(12);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(60);
END_STATE();
case 61:
ACCEPT_TOKEN(sym_number);
if (lookahead == '_') ADVANCE(13);
if (lookahead == 'n') ADVANCE(57);
if (lookahead == '0' ||
lookahead == '1') ADVANCE(61);
END_STATE();
case 62:
ACCEPT_TOKEN(sym_number);
if (lookahead == '_') ADVANCE(14);
if (lookahead == 'n') ADVANCE(57);
if (('0' <= lookahead && lookahead <= '7')) ADVANCE(62);
END_STATE();
case 63:
ACCEPT_TOKEN(sym_number);
if (lookahead == '_') ADVANCE(20);
if (lookahead == 'n') ADVANCE(57);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'F') ||
('a' <= lookahead && lookahead <= 'f')) ADVANCE(63);
END_STATE();
case 64:
ACCEPT_TOKEN(sym_number);
if (lookahead == '_') ADVANCE(17);
if (lookahead == 'n') ADVANCE(57);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(64);
END_STATE();
case 65:
ACCEPT_TOKEN(sym_number);
if (lookahead == '_') ADVANCE(18);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(65);
END_STATE();
case 66:
ACCEPT_TOKEN(sym_number);
if (lookahead == 'E' ||
lookahead == 'e') ADVANCE(12);
if (('0' <= lookahead && lookahead <= '9')) ADVANCE(60);
END_STATE();
case 67:
ACCEPT_TOKEN(sym_true);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 68:
ACCEPT_TOKEN(sym_false);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
case 69:
ACCEPT_TOKEN(sym_null);
if (lookahead == '$' ||
('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
END_STATE();
default:
return false;
}
}
static const TSLexerMode ts_lex_modes[STATE_COUNT] = {
[0] = {.lex_state = 0, .external_lex_state = 1},
[1] = {.lex_state = 0, .external_lex_state = 2},
[2] = {.lex_state = 0, .external_lex_state = 2},
[3] = {.lex_state = 0, .external_lex_state = 2},
[4] = {.lex_state = 0, .external_lex_state = 2},
[5] = {.lex_state = 0, .external_lex_state = 2},
[6] = {.lex_state = 0, .external_lex_state = 2},
[7] = {.lex_state = 0, .external_lex_state = 2},
[8] = {.lex_state = 0, .external_lex_state = 2},
[9] = {.lex_state = 0, .external_lex_state = 2},
[10] = {.lex_state = 0, .external_lex_state = 2},
[11] = {.lex_state = 0, .external_lex_state = 2},
[12] = {.lex_state = 0, .external_lex_state = 2},
[13] = {.lex_state = 0, .external_lex_state = 2},
[14] = {.lex_state = 0, .external_lex_state = 2},
[15] = {.lex_state = 0, .external_lex_state = 2},
[16] = {.lex_state = 0, .external_lex_state = 2},
[17] = {.lex_state = 0, .external_lex_state = 2},
[18] = {.lex_state = 0, .external_lex_state = 2},
[19] = {.lex_state = 0, .external_lex_state = 2},
[20] = {.lex_state = 0, .external_lex_state = 2},
[21] = {.lex_state = 0, .external_lex_state = 2},
[22] = {.lex_state = 0, .external_lex_state = 2},
[23] = {.lex_state = 0, .external_lex_state = 2},
[24] = {.lex_state = 1, .external_lex_state = 2},
[25] = {.lex_state = 1, .external_lex_state = 2},
[26] = {.lex_state = 4, .external_lex_state = 1},
[27] = {.lex_state = 4, .external_lex_state = 1},
[28] = {.lex_state = 4, .external_lex_state = 1},
[29] = {.lex_state = 2, .external_lex_state = 3},
[30] = {.lex_state = 2, .external_lex_state = 3},
[31] = {.lex_state = 6, .external_lex_state = 3},
[32] = {.lex_state = 6, .external_lex_state = 3},
[33] = {.lex_state = 2, .external_lex_state = 3},
[34] = {.lex_state = 6, .external_lex_state = 3},
[35] = {.lex_state = 4, .external_lex_state = 1},
[36] = {.lex_state = 0, .external_lex_state = 2},
[37] = {.lex_state = 0, .external_lex_state = 2},
[38] = {.lex_state = 0, .external_lex_state = 2},
[39] = {.lex_state = 0, .external_lex_state = 2},
[40] = {.lex_state = 0, .external_lex_state = 2},
[41] = {.lex_state = 0, .external_lex_state = 2},
[42] = {.lex_state = 0, .external_lex_state = 2},
[43] = {.lex_state = 0, .external_lex_state = 2},
[44] = {.lex_state = 0, .external_lex_state = 2},
[45] = {.lex_state = 0, .external_lex_state = 2},
[46] = {.lex_state = 0, .external_lex_state = 2},
[47] = {.lex_state = 0, .external_lex_state = 2},
[48] = {.lex_state = 0, .external_lex_state = 2},
[49] = {.lex_state = 0, .external_lex_state = 2},
[50] = {.lex_state = 0, .external_lex_state = 2},
[51] = {.lex_state = 0, .external_lex_state = 2},
[52] = {.lex_state = 0, .external_lex_state = 2},
};
static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
[STATE(0)] = {
[ts_builtin_sym_end] = ACTIONS(1),
[anon_sym_LBRACE] = ACTIONS(1),
[anon_sym_COMMA] = ACTIONS(1),
[anon_sym_RBRACE] = ACTIONS(1),
[anon_sym_COLON] = ACTIONS(1),
[anon_sym_LBRACK] = ACTIONS(1),
[anon_sym_RBRACK] = ACTIONS(1),
[anon_sym_LPAREN] = ACTIONS(1),
[anon_sym_RPAREN] = ACTIONS(1),
[anon_sym_BQUOTE] = ACTIONS(1),
[anon_sym_DQUOTE] = ACTIONS(1),
[anon_sym_SQUOTE] = ACTIONS(1),
[sym_escape_sequence] = ACTIONS(1),
[sym_identifier] = ACTIONS(1),
[sym_number] = ACTIONS(1),
[sym_true] = ACTIONS(1),
[sym_false] = ACTIONS(1),
[sym_null] = ACTIONS(1),
[sym__template_chars] = ACTIONS(1),
[sym_html_comment] = ACTIONS(3),
},
[STATE(1)] = {
[sym_program] = STATE(47),
[sym_expression_statement] = STATE(3),
[sym_expression] = STATE(23),
[sym_primary_expression] = STATE(18),
[sym_object] = STATE(15),
[sym_array] = STATE(15),
[sym_parenthesized_expression] = STATE(15),
[sym_template_string] = STATE(15),
[sym_string] = STATE(15),
[aux_sym_program_repeat1] = STATE(3),
[ts_builtin_sym_end] = ACTIONS(5),
[anon_sym_LBRACE] = ACTIONS(7),
[anon_sym_LBRACK] = ACTIONS(9),
[anon_sym_LPAREN] = ACTIONS(11),
[anon_sym_BQUOTE] = ACTIONS(13),
[anon_sym_DQUOTE] = ACTIONS(15),
[anon_sym_SQUOTE] = ACTIONS(17),
[sym_identifier] = ACTIONS(19),
[sym_number] = ACTIONS(21),
[sym_true] = ACTIONS(19),
[sym_false] = ACTIONS(19),
[sym_null] = ACTIONS(19),
[sym_html_comment] = ACTIONS(3),
},
[STATE(2)] = {
[sym_expression] = STATE(41),
[sym_primary_expression] = STATE(18),
[sym_object] = STATE(15),
[sym_array] = STATE(15),
[sym_parenthesized_expression] = STATE(15),
[sym_template_string] = STATE(15),
[sym_string] = STATE(15),
[aux_sym_array_repeat1] = STATE(39),
[anon_sym_LBRACE] = ACTIONS(7),
[anon_sym_COMMA] = ACTIONS(23),
[anon_sym_LBRACK] = ACTIONS(9),
[anon_sym_RBRACK] = ACTIONS(25),
[anon_sym_LPAREN] = ACTIONS(11),
[anon_sym_BQUOTE] = ACTIONS(13),
[anon_sym_DQUOTE] = ACTIONS(15),
[anon_sym_SQUOTE] = ACTIONS(17),
[sym_identifier] = ACTIONS(19),
[sym_number] = ACTIONS(21),
[sym_true] = ACTIONS(19),
[sym_false] = ACTIONS(19),
[sym_null] = ACTIONS(19),
[sym_html_comment] = ACTIONS(3),
},
[STATE(3)] = {
[sym_expression_statement] = STATE(4),
[sym_expression] = STATE(23),
[sym_primary_expression] = STATE(18),
[sym_object] = STATE(15),
[sym_array] = STATE(15),
[sym_parenthesized_expression] = STATE(15),
[sym_template_string] = STATE(15),
[sym_string] = STATE(15),
[aux_sym_program_repeat1] = STATE(4),
[ts_builtin_sym_end] = ACTIONS(27),
[anon_sym_LBRACE] = ACTIONS(7),
[anon_sym_LBRACK] = ACTIONS(9),
[anon_sym_LPAREN] = ACTIONS(11),
[anon_sym_BQUOTE] = ACTIONS(13),
[anon_sym_DQUOTE] = ACTIONS(15),
[anon_sym_SQUOTE] = ACTIONS(17),
[sym_identifier] = ACTIONS(19),
[sym_number] = ACTIONS(21),
[sym_true] = ACTIONS(19),
[sym_false] = ACTIONS(19),
[sym_null] = ACTIONS(19),
[sym_html_comment] = ACTIONS(3),
},
[STATE(4)] = {
[sym_expression_statement] = STATE(4),
[sym_expression] = STATE(23),
[sym_primary_expression] = STATE(18),
[sym_object] = STATE(15),
[sym_array] = STATE(15),
[sym_parenthesized_expression] = STATE(15),
[sym_template_string] = STATE(15),
[sym_string] = STATE(15),
[aux_sym_program_repeat1] = STATE(4),
[ts_builtin_sym_end] = ACTIONS(29),
[anon_sym_LBRACE] = ACTIONS(31),
[anon_sym_LBRACK] = ACTIONS(34),
[anon_sym_LPAREN] = ACTIONS(37),
[anon_sym_BQUOTE] = ACTIONS(40),
[anon_sym_DQUOTE] = ACTIONS(43),
[anon_sym_SQUOTE] = ACTIONS(46),
[sym_identifier] = ACTIONS(49),
[sym_number] = ACTIONS(52),
[sym_true] = ACTIONS(49),
[sym_false] = ACTIONS(49),
[sym_null] = ACTIONS(49),
[sym_html_comment] = ACTIONS(3),
},
};
static const uint16_t ts_small_parse_table[] = {
[0] = 13,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(7), 1,
anon_sym_LBRACE,
ACTIONS(9), 1,
anon_sym_LBRACK,
ACTIONS(11), 1,
anon_sym_LPAREN,
ACTIONS(13), 1,
anon_sym_BQUOTE,
ACTIONS(15), 1,
anon_sym_DQUOTE,
ACTIONS(17), 1,
anon_sym_SQUOTE,
ACTIONS(21), 1,
sym_number,
STATE(18), 1,
sym_primary_expression,
STATE(44), 1,
sym_expression,
ACTIONS(55), 2,
anon_sym_COMMA,
anon_sym_RBRACK,
ACTIONS(19), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
STATE(15), 5,
sym_object,
sym_array,
sym_parenthesized_expression,
sym_template_string,
sym_string,
[48] = 12,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(7), 1,
anon_sym_LBRACE,
ACTIONS(9), 1,
anon_sym_LBRACK,
ACTIONS(11), 1,
anon_sym_LPAREN,
ACTIONS(13), 1,
anon_sym_BQUOTE,
ACTIONS(15), 1,
anon_sym_DQUOTE,
ACTIONS(17), 1,
anon_sym_SQUOTE,
ACTIONS(21), 1,
sym_number,
STATE(18), 1,
sym_primary_expression,
STATE(48), 1,
sym_expression,
ACTIONS(19), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
STATE(15), 5,
sym_object,
sym_array,
sym_parenthesized_expression,
sym_template_string,
sym_string,
[92] = 12,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(7), 1,
anon_sym_LBRACE,
ACTIONS(9), 1,
anon_sym_LBRACK,
ACTIONS(11), 1,
anon_sym_LPAREN,
ACTIONS(13), 1,
anon_sym_BQUOTE,
ACTIONS(15), 1,
anon_sym_DQUOTE,
ACTIONS(17), 1,
anon_sym_SQUOTE,
ACTIONS(21), 1,
sym_number,
STATE(18), 1,
sym_primary_expression,
STATE(52), 1,
sym_expression,
ACTIONS(19), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
STATE(15), 5,
sym_object,
sym_array,
sym_parenthesized_expression,
sym_template_string,
sym_string,
[136] = 12,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(7), 1,
anon_sym_LBRACE,
ACTIONS(9), 1,
anon_sym_LBRACK,
ACTIONS(11), 1,
anon_sym_LPAREN,
ACTIONS(13), 1,
anon_sym_BQUOTE,
ACTIONS(15), 1,
anon_sym_DQUOTE,
ACTIONS(17), 1,
anon_sym_SQUOTE,
ACTIONS(21), 1,
sym_number,
STATE(18), 1,
sym_primary_expression,
STATE(51), 1,
sym_expression,
ACTIONS(19), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
STATE(15), 5,
sym_object,
sym_array,
sym_parenthesized_expression,
sym_template_string,
sym_string,
[180] = 12,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(7), 1,
anon_sym_LBRACE,
ACTIONS(9), 1,
anon_sym_LBRACK,
ACTIONS(11), 1,
anon_sym_LPAREN,
ACTIONS(13), 1,
anon_sym_BQUOTE,
ACTIONS(15), 1,
anon_sym_DQUOTE,
ACTIONS(17), 1,
anon_sym_SQUOTE,
ACTIONS(21), 1,
sym_number,
STATE(18), 1,
sym_primary_expression,
STATE(46), 1,
sym_expression,
ACTIONS(19), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
STATE(15), 5,
sym_object,
sym_array,
sym_parenthesized_expression,
sym_template_string,
sym_string,
[224] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(59), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(57), 13,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_COLON,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[249] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(63), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(61), 13,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_COLON,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[274] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(67), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(65), 12,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[298] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(71), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(69), 12,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[322] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(75), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(73), 12,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[346] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(79), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(77), 12,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[370] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(83), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(81), 12,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[394] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(87), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(85), 12,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[418] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(91), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(89), 12,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[442] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(95), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(93), 12,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[466] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(99), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(97), 12,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[490] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(103), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(101), 12,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[514] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(107), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(105), 12,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_COMMA,
anon_sym_RBRACE,
anon_sym_LBRACK,
anon_sym_RBRACK,
anon_sym_LPAREN,
anon_sym_RPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[538] = 3,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(111), 4,
sym_identifier,
sym_true,
sym_false,
sym_null,
ACTIONS(109), 8,
ts_builtin_sym_end,
anon_sym_LBRACE,
anon_sym_LBRACK,
anon_sym_LPAREN,
anon_sym_BQUOTE,
anon_sym_DQUOTE,
anon_sym_SQUOTE,
sym_number,
[558] = 10,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(15), 1,
anon_sym_DQUOTE,
ACTIONS(17), 1,
anon_sym_SQUOTE,
ACTIONS(113), 1,
anon_sym_COMMA,
ACTIONS(115), 1,
anon_sym_RBRACE,
ACTIONS(117), 1,
anon_sym_LBRACK,
STATE(38), 1,
aux_sym_object_repeat1,
STATE(43), 1,
sym_pair,
ACTIONS(119), 2,
sym_identifier,
sym_number,
STATE(49), 3,
sym__property_name,
sym_computed_property_name,
sym_string,
[592] = 8,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(15), 1,
anon_sym_DQUOTE,
ACTIONS(17), 1,
anon_sym_SQUOTE,
ACTIONS(117), 1,
anon_sym_LBRACK,
STATE(45), 1,
sym_pair,
ACTIONS(119), 2,
sym_identifier,
sym_number,
ACTIONS(121), 2,
anon_sym_COMMA,
anon_sym_RBRACE,
STATE(49), 3,
sym__property_name,
sym_computed_property_name,
sym_string,
[621] = 5,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(123), 1,
anon_sym_BQUOTE,
ACTIONS(125), 1,
anon_sym_DOLLAR_LBRACE,
ACTIONS(127), 2,
sym__template_chars,
sym_escape_sequence,
STATE(28), 2,
sym_template_substitution,
aux_sym_template_string_repeat1,
[639] = 5,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(125), 1,
anon_sym_DOLLAR_LBRACE,
ACTIONS(129), 1,
anon_sym_BQUOTE,
ACTIONS(131), 2,
sym__template_chars,
sym_escape_sequence,
STATE(26), 2,
sym_template_substitution,
aux_sym_template_string_repeat1,
[657] = 5,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(133), 1,
anon_sym_BQUOTE,
ACTIONS(135), 1,
anon_sym_DOLLAR_LBRACE,
ACTIONS(138), 2,
sym__template_chars,
sym_escape_sequence,
STATE(28), 2,
sym_template_substitution,
aux_sym_template_string_repeat1,
[675] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(141), 1,
anon_sym_DQUOTE,
STATE(30), 1,
aux_sym_string_repeat1,
ACTIONS(143), 2,
sym_unescaped_double_string_fragment,
sym_escape_sequence,
[689] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(145), 1,
anon_sym_DQUOTE,
STATE(33), 1,
aux_sym_string_repeat1,
ACTIONS(147), 2,
sym_unescaped_double_string_fragment,
sym_escape_sequence,
[703] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(145), 1,
anon_sym_SQUOTE,
STATE(34), 1,
aux_sym_string_repeat2,
ACTIONS(149), 2,
sym_unescaped_single_string_fragment,
sym_escape_sequence,
[717] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(141), 1,
anon_sym_SQUOTE,
STATE(31), 1,
aux_sym_string_repeat2,
ACTIONS(151), 2,
sym_unescaped_single_string_fragment,
sym_escape_sequence,
[731] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(153), 1,
anon_sym_DQUOTE,
STATE(33), 1,
aux_sym_string_repeat1,
ACTIONS(155), 2,
sym_unescaped_double_string_fragment,
sym_escape_sequence,
[745] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(158), 1,
anon_sym_SQUOTE,
STATE(34), 1,
aux_sym_string_repeat2,
ACTIONS(160), 2,
sym_unescaped_single_string_fragment,
sym_escape_sequence,
[759] = 2,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(163), 4,
sym__template_chars,
anon_sym_BQUOTE,
anon_sym_DOLLAR_LBRACE,
sym_escape_sequence,
[769] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(165), 1,
anon_sym_COMMA,
ACTIONS(168), 1,
anon_sym_RBRACE,
STATE(36), 1,
aux_sym_object_repeat1,
[782] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(113), 1,
anon_sym_COMMA,
ACTIONS(170), 1,
anon_sym_RBRACE,
STATE(36), 1,
aux_sym_object_repeat1,
[795] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(113), 1,
anon_sym_COMMA,
ACTIONS(172), 1,
anon_sym_RBRACE,
STATE(36), 1,
aux_sym_object_repeat1,
[808] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(23), 1,
anon_sym_COMMA,
ACTIONS(174), 1,
anon_sym_RBRACK,
STATE(42), 1,
aux_sym_array_repeat1,
[821] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(23), 1,
anon_sym_COMMA,
ACTIONS(176), 1,
anon_sym_RBRACK,
STATE(42), 1,
aux_sym_array_repeat1,
[834] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(23), 1,
anon_sym_COMMA,
ACTIONS(174), 1,
anon_sym_RBRACK,
STATE(40), 1,
aux_sym_array_repeat1,
[847] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(178), 1,
anon_sym_COMMA,
ACTIONS(181), 1,
anon_sym_RBRACK,
STATE(42), 1,
aux_sym_array_repeat1,
[860] = 4,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(113), 1,
anon_sym_COMMA,
ACTIONS(172), 1,
anon_sym_RBRACE,
STATE(37), 1,
aux_sym_object_repeat1,
[873] = 2,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(181), 2,
anon_sym_COMMA,
anon_sym_RBRACK,
[881] = 2,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(168), 2,
anon_sym_COMMA,
anon_sym_RBRACE,
[889] = 2,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(183), 2,
anon_sym_COMMA,
anon_sym_RBRACE,
[897] = 2,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(185), 1,
ts_builtin_sym_end,
[904] = 2,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(187), 1,
anon_sym_RBRACK,
[911] = 2,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(189), 1,
anon_sym_COLON,
[918] = 2,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(191), 1,
anon_sym_COLON,
[925] = 2,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(193), 1,
anon_sym_RBRACE,
[932] = 2,
ACTIONS(3), 1,
sym_html_comment,
ACTIONS(195), 1,
anon_sym_RPAREN,
};
static const uint32_t ts_small_parse_table_map[] = {
[SMALL_STATE(5)] = 0,
[SMALL_STATE(6)] = 48,
[SMALL_STATE(7)] = 92,
[SMALL_STATE(8)] = 136,
[SMALL_STATE(9)] = 180,
[SMALL_STATE(10)] = 224,
[SMALL_STATE(11)] = 249,
[SMALL_STATE(12)] = 274,
[SMALL_STATE(13)] = 298,
[SMALL_STATE(14)] = 322,
[SMALL_STATE(15)] = 346,
[SMALL_STATE(16)] = 370,
[SMALL_STATE(17)] = 394,
[SMALL_STATE(18)] = 418,
[SMALL_STATE(19)] = 442,
[SMALL_STATE(20)] = 466,
[SMALL_STATE(21)] = 490,
[SMALL_STATE(22)] = 514,
[SMALL_STATE(23)] = 538,
[SMALL_STATE(24)] = 558,
[SMALL_STATE(25)] = 592,
[SMALL_STATE(26)] = 621,
[SMALL_STATE(27)] = 639,
[SMALL_STATE(28)] = 657,
[SMALL_STATE(29)] = 675,
[SMALL_STATE(30)] = 689,
[SMALL_STATE(31)] = 703,
[SMALL_STATE(32)] = 717,
[SMALL_STATE(33)] = 731,
[SMALL_STATE(34)] = 745,
[SMALL_STATE(35)] = 759,
[SMALL_STATE(36)] = 769,
[SMALL_STATE(37)] = 782,
[SMALL_STATE(38)] = 795,
[SMALL_STATE(39)] = 808,
[SMALL_STATE(40)] = 821,
[SMALL_STATE(41)] = 834,
[SMALL_STATE(42)] = 847,
[SMALL_STATE(43)] = 860,
[SMALL_STATE(44)] = 873,
[SMALL_STATE(45)] = 881,
[SMALL_STATE(46)] = 889,
[SMALL_STATE(47)] = 897,
[SMALL_STATE(48)] = 904,
[SMALL_STATE(49)] = 911,
[SMALL_STATE(50)] = 918,
[SMALL_STATE(51)] = 925,
[SMALL_STATE(52)] = 932,
};
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(),
[5] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_program, 0, 0, 0),
[7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24),
[9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2),
[11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7),
[13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27),
[15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29),
[17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32),
[19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(15),
[21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
[23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5),
[25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14),
[27] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_program, 1, 0, 0),
[29] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0),
[31] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(24),
[34] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(2),
[37] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(7),
[40] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(27),
[43] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(29),
[46] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(32),
[49] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(15),
[52] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_program_repeat1, 2, 0, 0), SHIFT_REPEAT(15),
[55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 1, 0, 0),
[57] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 2, 0, 0),
[59] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_string, 2, 0, 0),
[61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 3, 0, 0),
[63] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_string, 3, 0, 0),
[65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template_string, 2, 0, 0),
[67] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template_string, 2, 0, 0),
[69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_object, 2, 0, 0),
[71] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_object, 2, 0, 0),
[73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 2, 0, 0),
[75] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_array, 2, 0, 0),
[77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_primary_expression, 1, 0, 0),
[79] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_primary_expression, 1, 0, 0),
[81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template_string, 3, 0, 0),
[83] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template_string, 3, 0, 0),
[85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_object, 3, 0, 0),
[87] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_object, 3, 0, 0),
[89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_expression, 1, 0, 0),
[91] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_expression, 1, 0, 0),
[93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 3, 0, 0),
[95] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_array, 3, 0, 0),
[97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_parenthesized_expression, 3, 0, 0),
[99] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_parenthesized_expression, 3, 0, 0),
[101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_object, 4, 0, 0),
[103] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_object, 4, 0, 0),
[105] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_array, 4, 0, 0),
[107] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_array, 4, 0, 0),
[109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_expression_statement, 1, 0, 0),
[111] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_expression_statement, 1, 0, 0),
[113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25),
[115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13),
[117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6),
[119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49),
[121] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_object_repeat1, 1, 0, 0),
[123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
[125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8),
[127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28),
[129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
[131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26),
[133] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_template_string_repeat1, 2, 0, 0),
[135] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_template_string_repeat1, 2, 0, 0), SHIFT_REPEAT(8),
[138] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_template_string_repeat1, 2, 0, 0), SHIFT_REPEAT(28),
[141] = {.entry = {.count = 1, .reusable = false}}, SHIFT(10),
[143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30),
[145] = {.entry = {.count = 1, .reusable = false}}, SHIFT(11),
[147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33),
[149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34),
[151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31),
[153] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0),
[155] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_string_repeat1, 2, 0, 0), SHIFT_REPEAT(33),
[158] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_string_repeat2, 2, 0, 0),
[160] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_string_repeat2, 2, 0, 0), SHIFT_REPEAT(34),
[163] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template_substitution, 3, 0, 0),
[165] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_object_repeat1, 2, 0, 0), SHIFT_REPEAT(25),
[168] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_object_repeat1, 2, 0, 0),
[170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21),
[172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17),
[174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19),
[176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22),
[178] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0), SHIFT_REPEAT(5),
[181] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_array_repeat1, 2, 0, 0),
[183] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pair, 3, 0, 1),
[185] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(),
[187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50),
[189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9),
[191] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_computed_property_name, 3, 0, 0),
[193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35),
[195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20),
};
enum ts_external_scanner_symbol_identifiers {
ts_external_token__template_chars = 0,
ts_external_token_html_comment = 1,
ts_external_token_escape_sequence = 2,
};
static const TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = {
[ts_external_token__template_chars] = sym__template_chars,
[ts_external_token_html_comment] = sym_html_comment,
[ts_external_token_escape_sequence] = sym_escape_sequence,
};
static const bool ts_external_scanner_states[4][EXTERNAL_TOKEN_COUNT] = {
[1] = {
[ts_external_token__template_chars] = true,
[ts_external_token_html_comment] = true,
[ts_external_token_escape_sequence] = true,
},
[2] = {
[ts_external_token_html_comment] = true,
},
[3] = {
[ts_external_token_html_comment] = true,
[ts_external_token_escape_sequence] = true,
},
};
#ifdef __cplusplus
extern "C" {
#endif
void *tree_sitter_javascript_external_scanner_create(void);
void tree_sitter_javascript_external_scanner_destroy(void *);
bool tree_sitter_javascript_external_scanner_scan(void *, TSLexer *, const bool *);
unsigned tree_sitter_javascript_external_scanner_serialize(void *, char *);
void tree_sitter_javascript_external_scanner_deserialize(void *, const char *, unsigned);
#ifdef TREE_SITTER_HIDE_SYMBOLS
#define TS_PUBLIC
#elif defined(_WIN32)
#define TS_PUBLIC __declspec(dllexport)
#else
#define TS_PUBLIC __attribute__((visibility("default")))
#endif
TS_PUBLIC const TSLanguage *tree_sitter_javascript(void) {
static const TSLanguage language = {
.abi_version = LANGUAGE_VERSION,
.symbol_count = SYMBOL_COUNT,
.alias_count = ALIAS_COUNT,
.token_count = TOKEN_COUNT,
.external_token_count = EXTERNAL_TOKEN_COUNT,
.state_count = STATE_COUNT,
.large_state_count = LARGE_STATE_COUNT,
.production_id_count = PRODUCTION_ID_COUNT,
.supertype_count = SUPERTYPE_COUNT,
.field_count = FIELD_COUNT,
.max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH,
.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 = ts_field_map_slices,
.field_map_entries = ts_field_map_entries,
.supertype_map_slices = ts_supertype_map_slices,
.supertype_map_entries = ts_supertype_map_entries,
.supertype_symbols = ts_supertype_symbols,
.symbol_metadata = ts_symbol_metadata,
.public_symbol_map = ts_symbol_map,
.alias_map = ts_non_terminal_alias_map,
.alias_sequences = &ts_alias_sequences[0][0],
.lex_modes = (const void*)ts_lex_modes,
.lex_fn = ts_lex,
.external_scanner = {
&ts_external_scanner_states[0][0],
ts_external_scanner_symbol_map,
tree_sitter_javascript_external_scanner_create,
tree_sitter_javascript_external_scanner_destroy,
tree_sitter_javascript_external_scanner_scan,
tree_sitter_javascript_external_scanner_serialize,
tree_sitter_javascript_external_scanner_deserialize,
},
.primary_state_ids = ts_primary_state_ids,
.name = "javascript",
.max_reserved_word_set_size = 0,
.metadata = {
.major_version = 0,
.minor_version = 25,
.patch_version = 0,
},
};
return &language;
}
#ifdef __cplusplus
}
#endif