diff --git a/grammar.js b/grammar.js index de4c1e5..d581499 100644 --- a/grammar.js +++ b/grammar.js @@ -138,6 +138,6 @@ module.exports = grammar({ seq('"', optional(alias(/[^"]+/, $.attribute_value)), '"'), ), - text: _ => /[^<>&\s]([^<>&]*[^<>&\s])?/, + text: _ => /[^<>&]+/, }, }); diff --git a/src/grammar.json b/src/grammar.json index cf34624..48e94bf 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -442,7 +442,7 @@ }, "text": { "type": "PATTERN", - "value": "[^<>&\\s]([^<>&]*[^<>&\\s])?" + "value": "[^<>&]+" } }, "extras": [ diff --git a/src/parser.c b/src/parser.c index 0b97e1e..0e8df8f 100644 --- a/src/parser.c +++ b/src/parser.c @@ -424,57 +424,57 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { eof = lexer->eof(lexer); switch (state) { case 0: - if (eof) ADVANCE(18); - if (lookahead == '"') ADVANCE(73); + if (eof) ADVANCE(17); + if (lookahead == '"') ADVANCE(72); if (lookahead == '&') ADVANCE(3); - if (lookahead == '\'') ADVANCE(70); + if (lookahead == '\'') ADVANCE(69); if (lookahead == '/') ADVANCE(6); - if (lookahead == '<') ADVANCE(24); - if (lookahead == '=') ADVANCE(27); - if (lookahead == '>') ADVANCE(22); + if (lookahead == '<') ADVANCE(23); + if (lookahead == '=') ADVANCE(26); + if (lookahead == '>') ADVANCE(21); if (lookahead == 'D' || lookahead == 'd') ADVANCE(9); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(0) END_STATE(); case 1: - if (lookahead == '"') ADVANCE(73); - if (lookahead == '\'') ADVANCE(70); + if (lookahead == '"') ADVANCE(72); + if (lookahead == '\'') ADVANCE(69); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(1) if (lookahead != 0 && - (lookahead < '<' || '>' < lookahead)) ADVANCE(29); + (lookahead < '<' || '>' < lookahead)) ADVANCE(28); END_STATE(); case 2: - if (lookahead == '"') ADVANCE(73); + if (lookahead == '"') ADVANCE(72); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(74); - if (lookahead != 0) ADVANCE(75); + lookahead == ' ') ADVANCE(73); + if (lookahead != 0) ADVANCE(74); END_STATE(); case 3: if (lookahead == '#') ADVANCE(12); if (('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(69); + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(68); END_STATE(); case 4: - if (lookahead == '\'') ADVANCE(70); + if (lookahead == '\'') ADVANCE(69); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(71); - if (lookahead != 0) ADVANCE(72); + lookahead == ' ') ADVANCE(70); + if (lookahead != 0) ADVANCE(71); END_STATE(); case 5: if (lookahead == '/') ADVANCE(6); - if (lookahead == '=') ADVANCE(27); - if (lookahead == '>') ADVANCE(22); + if (lookahead == '=') ADVANCE(26); + if (lookahead == '>') ADVANCE(21); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(5) if (lookahead != 0 && lookahead != '"' && lookahead != '\'' && - lookahead != '<') ADVANCE(28); + lookahead != '<') ADVANCE(27); END_STATE(); case 6: - if (lookahead == '>') ADVANCE(25); + if (lookahead == '>') ADVANCE(24); END_STATE(); case 7: if (lookahead == 'C' || @@ -482,7 +482,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 8: if (lookahead == 'E' || - lookahead == 'e') ADVANCE(23); + lookahead == 'e') ADVANCE(22); END_STATE(); case 9: if (lookahead == 'O' || @@ -498,8 +498,8 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 12: if (lookahead == 'X' || - lookahead == 'x') ADVANCE(16); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(35); + lookahead == 'x') ADVANCE(15); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(34); END_STATE(); case 13: if (lookahead == 'Y' || @@ -507,71 +507,63 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 14: if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(14); + lookahead == ' ') ADVANCE(19); if (lookahead != 0 && - lookahead != '&' && - lookahead != '<' && - lookahead != '>') ADVANCE(76); + lookahead != '>') ADVANCE(20); END_STATE(); case 15: - if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(20); - if (lookahead != 0 && - lookahead != '>') ADVANCE(21); - END_STATE(); - case 16: if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(40); + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(39); END_STATE(); - case 17: - if (eof) ADVANCE(18); + case 16: + if (eof) ADVANCE(17); if (lookahead == '&') ADVANCE(3); - if (lookahead == '<') ADVANCE(24); + if (lookahead == '<') ADVANCE(23); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(17) + lookahead == ' ') ADVANCE(75); if (lookahead != 0 && lookahead != '>') ADVANCE(76); END_STATE(); - case 18: + case 17: ACCEPT_TOKEN(ts_builtin_sym_end); END_STATE(); - case 19: + case 18: ACCEPT_TOKEN(anon_sym_LT_BANG); END_STATE(); - case 20: + case 19: ACCEPT_TOKEN(aux_sym_doctype_token1); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(20); + lookahead == ' ') ADVANCE(19); if (lookahead != 0 && - lookahead != '>') ADVANCE(21); + lookahead != '>') ADVANCE(20); END_STATE(); - case 21: + case 20: ACCEPT_TOKEN(aux_sym_doctype_token1); if (lookahead != 0 && - lookahead != '>') ADVANCE(21); + lookahead != '>') ADVANCE(20); END_STATE(); - case 22: + case 21: ACCEPT_TOKEN(anon_sym_GT); END_STATE(); - case 23: + case 22: ACCEPT_TOKEN(sym__doctype); END_STATE(); - case 24: + case 23: ACCEPT_TOKEN(anon_sym_LT); - if (lookahead == '!') ADVANCE(19); - if (lookahead == '/') ADVANCE(26); + if (lookahead == '!') ADVANCE(18); + if (lookahead == '/') ADVANCE(25); END_STATE(); - case 25: + case 24: ACCEPT_TOKEN(anon_sym_SLASH_GT); END_STATE(); - case 26: + case 25: ACCEPT_TOKEN(anon_sym_LT_SLASH); END_STATE(); - case 27: + case 26: ACCEPT_TOKEN(anon_sym_EQ); END_STATE(); - case 28: + case 27: ACCEPT_TOKEN(sym_attribute_name); if (lookahead != 0 && (lookahead < '\t' || '\r' < lookahead) && @@ -579,287 +571,294 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '"' && lookahead != '\'' && lookahead != '/' && - (lookahead < '<' || '>' < lookahead)) ADVANCE(28); + (lookahead < '<' || '>' < lookahead)) ADVANCE(27); END_STATE(); - case 29: + case 28: ACCEPT_TOKEN(sym_attribute_value); if (lookahead != 0 && (lookahead < '\t' || '\r' < lookahead) && lookahead != ' ' && lookahead != '"' && lookahead != '\'' && - (lookahead < '<' || '>' < lookahead)) ADVANCE(29); + (lookahead < '<' || '>' < lookahead)) ADVANCE(28); + END_STATE(); + case 29: + ACCEPT_TOKEN(sym_entity); END_STATE(); case 30: ACCEPT_TOKEN(sym_entity); + if (lookahead == ';') ADVANCE(29); END_STATE(); case 31: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(30); END_STATE(); case 32: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(31); END_STATE(); case 33: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(32); END_STATE(); case 34: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('0' <= lookahead && lookahead <= '9')) ADVANCE(33); END_STATE(); case 35: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(34); + if (lookahead == ';') ADVANCE(29); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(30); END_STATE(); case 36: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(31); + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(35); END_STATE(); case 37: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || ('a' <= lookahead && lookahead <= 'f')) ADVANCE(36); END_STATE(); case 38: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || ('a' <= lookahead && lookahead <= 'f')) ADVANCE(37); END_STATE(); case 39: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || ('a' <= lookahead && lookahead <= 'f')) ADVANCE(38); END_STATE(); case 40: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(39); + if (lookahead == ';') ADVANCE(29); + if (('A' <= lookahead && lookahead <= 'Z') || + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(30); END_STATE(); case 41: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(31); + ('a' <= lookahead && lookahead <= 'z')) ADVANCE(40); END_STATE(); case 42: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(41); END_STATE(); case 43: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(42); END_STATE(); case 44: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(43); END_STATE(); case 45: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(44); END_STATE(); case 46: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(45); END_STATE(); case 47: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(46); END_STATE(); case 48: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(47); END_STATE(); case 49: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(48); END_STATE(); case 50: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(49); END_STATE(); case 51: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(50); END_STATE(); case 52: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(51); END_STATE(); case 53: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(52); END_STATE(); case 54: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(53); END_STATE(); case 55: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(54); END_STATE(); case 56: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(55); END_STATE(); case 57: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(56); END_STATE(); case 58: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(57); END_STATE(); case 59: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(58); END_STATE(); case 60: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(59); END_STATE(); case 61: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(60); END_STATE(); case 62: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(61); END_STATE(); case 63: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(62); END_STATE(); case 64: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(63); END_STATE(); case 65: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(64); END_STATE(); case 66: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(65); END_STATE(); case 67: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(66); END_STATE(); case 68: ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); + if (lookahead == ';') ADVANCE(29); if (('A' <= lookahead && lookahead <= 'Z') || ('a' <= lookahead && lookahead <= 'z')) ADVANCE(67); END_STATE(); case 69: - ACCEPT_TOKEN(sym_entity); - if (lookahead == ';') ADVANCE(30); - if (('A' <= lookahead && lookahead <= 'Z') || - ('a' <= lookahead && lookahead <= 'z')) ADVANCE(68); - END_STATE(); - case 70: ACCEPT_TOKEN(anon_sym_SQUOTE); END_STATE(); - case 71: + case 70: ACCEPT_TOKEN(aux_sym_quoted_attribute_value_token1); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(71); + lookahead == ' ') ADVANCE(70); if (lookahead != 0 && - lookahead != '\'') ADVANCE(72); + lookahead != '\'') ADVANCE(71); END_STATE(); - case 72: + case 71: ACCEPT_TOKEN(aux_sym_quoted_attribute_value_token1); if (lookahead != 0 && - lookahead != '\'') ADVANCE(72); + lookahead != '\'') ADVANCE(71); END_STATE(); - case 73: + case 72: ACCEPT_TOKEN(anon_sym_DQUOTE); END_STATE(); - case 74: + case 73: ACCEPT_TOKEN(aux_sym_quoted_attribute_value_token2); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(74); + lookahead == ' ') ADVANCE(73); if (lookahead != 0 && - lookahead != '"') ADVANCE(75); + lookahead != '"') ADVANCE(74); END_STATE(); - case 75: + case 74: ACCEPT_TOKEN(aux_sym_quoted_attribute_value_token2); if (lookahead != 0 && - lookahead != '"') ADVANCE(75); + lookahead != '"') ADVANCE(74); END_STATE(); - case 76: + case 75: ACCEPT_TOKEN(sym_text); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(14); + lookahead == ' ') ADVANCE(75); + if (lookahead != 0 && + lookahead != '&' && + lookahead != '<' && + lookahead != '>') ADVANCE(76); + END_STATE(); + case 76: + ACCEPT_TOKEN(sym_text); if (lookahead != 0 && lookahead != '&' && lookahead != '<' && @@ -872,40 +871,40 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0, .external_lex_state = 1}, - [1] = {.lex_state = 17, .external_lex_state = 2}, - [2] = {.lex_state = 17, .external_lex_state = 3}, - [3] = {.lex_state = 17, .external_lex_state = 3}, - [4] = {.lex_state = 17, .external_lex_state = 3}, - [5] = {.lex_state = 17, .external_lex_state = 3}, - [6] = {.lex_state = 17, .external_lex_state = 3}, - [7] = {.lex_state = 17, .external_lex_state = 2}, - [8] = {.lex_state = 17, .external_lex_state = 2}, - [9] = {.lex_state = 17, .external_lex_state = 2}, - [10] = {.lex_state = 17, .external_lex_state = 2}, - [11] = {.lex_state = 17, .external_lex_state = 2}, - [12] = {.lex_state = 17, .external_lex_state = 3}, - [13] = {.lex_state = 17, .external_lex_state = 3}, - [14] = {.lex_state = 17, .external_lex_state = 2}, - [15] = {.lex_state = 17, .external_lex_state = 2}, - [16] = {.lex_state = 17, .external_lex_state = 3}, - [17] = {.lex_state = 17, .external_lex_state = 2}, - [18] = {.lex_state = 17, .external_lex_state = 3}, - [19] = {.lex_state = 17, .external_lex_state = 3}, - [20] = {.lex_state = 17, .external_lex_state = 3}, - [21] = {.lex_state = 17, .external_lex_state = 2}, - [22] = {.lex_state = 17, .external_lex_state = 3}, - [23] = {.lex_state = 17, .external_lex_state = 2}, - [24] = {.lex_state = 17, .external_lex_state = 3}, - [25] = {.lex_state = 17, .external_lex_state = 3}, - [26] = {.lex_state = 17, .external_lex_state = 3}, - [27] = {.lex_state = 17, .external_lex_state = 2}, - [28] = {.lex_state = 17, .external_lex_state = 2}, - [29] = {.lex_state = 17, .external_lex_state = 2}, - [30] = {.lex_state = 17, .external_lex_state = 3}, - [31] = {.lex_state = 17, .external_lex_state = 3}, - [32] = {.lex_state = 17, .external_lex_state = 3}, - [33] = {.lex_state = 17, .external_lex_state = 3}, - [34] = {.lex_state = 17, .external_lex_state = 2}, + [1] = {.lex_state = 16, .external_lex_state = 2}, + [2] = {.lex_state = 16, .external_lex_state = 3}, + [3] = {.lex_state = 16, .external_lex_state = 3}, + [4] = {.lex_state = 16, .external_lex_state = 3}, + [5] = {.lex_state = 16, .external_lex_state = 3}, + [6] = {.lex_state = 16, .external_lex_state = 3}, + [7] = {.lex_state = 16, .external_lex_state = 2}, + [8] = {.lex_state = 16, .external_lex_state = 2}, + [9] = {.lex_state = 16, .external_lex_state = 2}, + [10] = {.lex_state = 16, .external_lex_state = 2}, + [11] = {.lex_state = 16, .external_lex_state = 2}, + [12] = {.lex_state = 16, .external_lex_state = 3}, + [13] = {.lex_state = 16, .external_lex_state = 3}, + [14] = {.lex_state = 16, .external_lex_state = 2}, + [15] = {.lex_state = 16, .external_lex_state = 2}, + [16] = {.lex_state = 16, .external_lex_state = 3}, + [17] = {.lex_state = 16, .external_lex_state = 2}, + [18] = {.lex_state = 16, .external_lex_state = 3}, + [19] = {.lex_state = 16, .external_lex_state = 3}, + [20] = {.lex_state = 16, .external_lex_state = 3}, + [21] = {.lex_state = 16, .external_lex_state = 2}, + [22] = {.lex_state = 16, .external_lex_state = 3}, + [23] = {.lex_state = 16, .external_lex_state = 2}, + [24] = {.lex_state = 16, .external_lex_state = 3}, + [25] = {.lex_state = 16, .external_lex_state = 3}, + [26] = {.lex_state = 16, .external_lex_state = 3}, + [27] = {.lex_state = 16, .external_lex_state = 2}, + [28] = {.lex_state = 16, .external_lex_state = 2}, + [29] = {.lex_state = 16, .external_lex_state = 2}, + [30] = {.lex_state = 16, .external_lex_state = 3}, + [31] = {.lex_state = 16, .external_lex_state = 3}, + [32] = {.lex_state = 16, .external_lex_state = 3}, + [33] = {.lex_state = 16, .external_lex_state = 3}, + [34] = {.lex_state = 16, .external_lex_state = 2}, [35] = {.lex_state = 5, .external_lex_state = 4}, [36] = {.lex_state = 5, .external_lex_state = 4}, [37] = {.lex_state = 5, .external_lex_state = 4}, @@ -950,7 +949,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [76] = {.lex_state = 0, .external_lex_state = 2}, [77] = {.lex_state = 0, .external_lex_state = 2}, [78] = {.lex_state = 0, .external_lex_state = 2}, - [79] = {.lex_state = 15, .external_lex_state = 2}, + [79] = {.lex_state = 14, .external_lex_state = 2}, [80] = {.lex_state = 0, .external_lex_state = 2}, [81] = {.lex_state = 0, .external_lex_state = 8}, [82] = {.lex_state = 0, .external_lex_state = 2}, @@ -961,7 +960,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [87] = {.lex_state = 0, .external_lex_state = 2}, [88] = {.lex_state = 0, .external_lex_state = 2}, [89] = {.lex_state = 0, .external_lex_state = 8}, - [90] = {.lex_state = 15, .external_lex_state = 2}, + [90] = {.lex_state = 14, .external_lex_state = 2}, [91] = {.lex_state = 0, .external_lex_state = 2}, [92] = {.lex_state = 0, .external_lex_state = 9}, [93] = {.lex_state = 0, .external_lex_state = 2}, @@ -1007,22 +1006,26 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_LT] = ACTIONS(9), [anon_sym_LT_SLASH] = ACTIONS(11), [sym_entity] = ACTIONS(13), - [sym_text] = ACTIONS(13), + [sym_text] = ACTIONS(15), [sym_comment] = ACTIONS(3), }, }; static const uint16_t ts_small_parse_table[] = { - [0] = 12, + [0] = 13, ACTIONS(3), 1, sym_comment, - ACTIONS(15), 1, - anon_sym_LT_BANG, ACTIONS(17), 1, - anon_sym_LT, + anon_sym_LT_BANG, ACTIONS(19), 1, + anon_sym_LT, + ACTIONS(21), 1, anon_sym_LT_SLASH, ACTIONS(23), 1, + sym_entity, + ACTIONS(25), 1, + sym_text, + ACTIONS(27), 1, sym__implicit_end_tag, STATE(5), 1, sym_start_tag, @@ -1034,9 +1037,6 @@ static const uint16_t ts_small_parse_table[] = { sym_style_start_tag, STATE(56), 1, sym_script_start_tag, - ACTIONS(21), 2, - sym_entity, - sym_text, STATE(6), 7, sym_doctype, sym__node, @@ -1045,16 +1045,20 @@ static const uint16_t ts_small_parse_table[] = { sym_style_element, sym_erroneous_end_tag, aux_sym_document_repeat1, - [44] = 12, + [46] = 13, ACTIONS(3), 1, sym_comment, - ACTIONS(15), 1, - anon_sym_LT_BANG, ACTIONS(17), 1, + anon_sym_LT_BANG, + ACTIONS(19), 1, anon_sym_LT, + ACTIONS(23), 1, + sym_entity, ACTIONS(25), 1, + sym_text, + ACTIONS(29), 1, anon_sym_LT_SLASH, - ACTIONS(27), 1, + ACTIONS(31), 1, sym__implicit_end_tag, STATE(5), 1, sym_start_tag, @@ -1066,9 +1070,6 @@ static const uint16_t ts_small_parse_table[] = { sym_style_start_tag, STATE(56), 1, sym_script_start_tag, - ACTIONS(21), 2, - sym_entity, - sym_text, STATE(6), 7, sym_doctype, sym__node, @@ -1077,16 +1078,20 @@ static const uint16_t ts_small_parse_table[] = { sym_style_element, sym_erroneous_end_tag, aux_sym_document_repeat1, - [88] = 12, + [92] = 13, ACTIONS(3), 1, sym_comment, - ACTIONS(15), 1, - anon_sym_LT_BANG, ACTIONS(17), 1, - anon_sym_LT, + anon_sym_LT_BANG, ACTIONS(19), 1, + anon_sym_LT, + ACTIONS(21), 1, anon_sym_LT_SLASH, - ACTIONS(31), 1, + ACTIONS(33), 1, + sym_entity, + ACTIONS(35), 1, + sym_text, + ACTIONS(37), 1, sym__implicit_end_tag, STATE(5), 1, sym_start_tag, @@ -1098,9 +1103,6 @@ static const uint16_t ts_small_parse_table[] = { sym_style_start_tag, STATE(56), 1, sym_script_start_tag, - ACTIONS(29), 2, - sym_entity, - sym_text, STATE(2), 7, sym_doctype, sym__node, @@ -1109,16 +1111,20 @@ static const uint16_t ts_small_parse_table[] = { sym_style_element, sym_erroneous_end_tag, aux_sym_document_repeat1, - [132] = 12, + [138] = 13, ACTIONS(3), 1, sym_comment, - ACTIONS(15), 1, - anon_sym_LT_BANG, ACTIONS(17), 1, + anon_sym_LT_BANG, + ACTIONS(19), 1, anon_sym_LT, - ACTIONS(25), 1, + ACTIONS(29), 1, anon_sym_LT_SLASH, - ACTIONS(35), 1, + ACTIONS(39), 1, + sym_entity, + ACTIONS(41), 1, + sym_text, + ACTIONS(43), 1, sym__implicit_end_tag, STATE(5), 1, sym_start_tag, @@ -1130,9 +1136,6 @@ static const uint16_t ts_small_parse_table[] = { sym_style_start_tag, STATE(56), 1, sym_script_start_tag, - ACTIONS(33), 2, - sym_entity, - sym_text, STATE(3), 7, sym_doctype, sym__node, @@ -1141,16 +1144,20 @@ static const uint16_t ts_small_parse_table[] = { sym_style_element, sym_erroneous_end_tag, aux_sym_document_repeat1, - [176] = 11, + [184] = 12, ACTIONS(3), 1, sym_comment, - ACTIONS(37), 1, + ACTIONS(45), 1, anon_sym_LT_BANG, - ACTIONS(40), 1, + ACTIONS(48), 1, anon_sym_LT, - ACTIONS(43), 1, + ACTIONS(51), 1, anon_sym_LT_SLASH, - ACTIONS(49), 1, + ACTIONS(54), 1, + sym_entity, + ACTIONS(57), 1, + sym_text, + ACTIONS(60), 1, sym__implicit_end_tag, STATE(5), 1, sym_start_tag, @@ -1160,9 +1167,6 @@ static const uint16_t ts_small_parse_table[] = { sym_style_start_tag, STATE(56), 1, sym_script_start_tag, - ACTIONS(46), 2, - sym_entity, - sym_text, STATE(6), 7, sym_doctype, sym__node, @@ -1171,17 +1175,21 @@ static const uint16_t ts_small_parse_table[] = { sym_style_element, sym_erroneous_end_tag, aux_sym_document_repeat1, - [217] = 11, + [227] = 12, ACTIONS(3), 1, sym_comment, - ACTIONS(49), 1, + ACTIONS(60), 1, ts_builtin_sym_end, - ACTIONS(51), 1, + ACTIONS(62), 1, anon_sym_LT_BANG, - ACTIONS(54), 1, + ACTIONS(65), 1, anon_sym_LT, - ACTIONS(57), 1, + ACTIONS(68), 1, anon_sym_LT_SLASH, + ACTIONS(71), 1, + sym_entity, + ACTIONS(74), 1, + sym_text, STATE(4), 1, sym_start_tag, STATE(11), 1, @@ -1190,9 +1198,6 @@ static const uint16_t ts_small_parse_table[] = { sym_script_start_tag, STATE(57), 1, sym_style_start_tag, - ACTIONS(60), 2, - sym_entity, - sym_text, STATE(7), 7, sym_doctype, sym__node, @@ -1201,7 +1206,7 @@ static const uint16_t ts_small_parse_table[] = { sym_style_element, sym_erroneous_end_tag, aux_sym_document_repeat1, - [258] = 11, + [270] = 12, ACTIONS(3), 1, sym_comment, ACTIONS(7), 1, @@ -1210,8 +1215,12 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LT, ACTIONS(11), 1, anon_sym_LT_SLASH, - ACTIONS(63), 1, + ACTIONS(77), 1, ts_builtin_sym_end, + ACTIONS(79), 1, + sym_entity, + ACTIONS(81), 1, + sym_text, STATE(4), 1, sym_start_tag, STATE(11), 1, @@ -1220,9 +1229,6 @@ static const uint16_t ts_small_parse_table[] = { sym_script_start_tag, STATE(57), 1, sym_style_start_tag, - ACTIONS(65), 2, - sym_entity, - sym_text, STATE(7), 7, sym_doctype, sym__node, @@ -1231,817 +1237,817 @@ static const uint16_t ts_small_parse_table[] = { sym_style_element, sym_erroneous_end_tag, aux_sym_document_repeat1, - [299] = 3, - ACTIONS(3), 1, - sym_comment, - ACTIONS(69), 1, - anon_sym_LT, - ACTIONS(67), 5, - ts_builtin_sym_end, - anon_sym_LT_BANG, - anon_sym_LT_SLASH, - sym_entity, - sym_text, [313] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(73), 1, - anon_sym_LT, - ACTIONS(71), 5, + ACTIONS(83), 2, ts_builtin_sym_end, + sym_text, + ACTIONS(85), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [327] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(77), 1, - anon_sym_LT, - ACTIONS(75), 5, + ACTIONS(87), 2, ts_builtin_sym_end, + sym_text, + ACTIONS(89), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [341] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(81), 1, - anon_sym_LT, - ACTIONS(79), 5, - sym__implicit_end_tag, + ACTIONS(91), 2, + ts_builtin_sym_end, + sym_text, + ACTIONS(93), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [355] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(77), 1, - anon_sym_LT, - ACTIONS(75), 5, + ACTIONS(97), 2, sym__implicit_end_tag, + sym_text, + ACTIONS(95), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [369] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(85), 1, - anon_sym_LT, - ACTIONS(83), 5, - ts_builtin_sym_end, + ACTIONS(91), 2, + sym__implicit_end_tag, + sym_text, + ACTIONS(93), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [383] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(89), 1, - anon_sym_LT, - ACTIONS(87), 5, + ACTIONS(99), 2, ts_builtin_sym_end, + sym_text, + ACTIONS(101), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [397] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(89), 1, - anon_sym_LT, - ACTIONS(87), 5, - sym__implicit_end_tag, + ACTIONS(103), 2, + ts_builtin_sym_end, + sym_text, + ACTIONS(105), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [411] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(81), 1, - anon_sym_LT, - ACTIONS(79), 5, - ts_builtin_sym_end, + ACTIONS(103), 2, + sym__implicit_end_tag, + sym_text, + ACTIONS(105), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [425] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(93), 1, - anon_sym_LT, - ACTIONS(91), 5, - sym__implicit_end_tag, + ACTIONS(97), 2, + ts_builtin_sym_end, + sym_text, + ACTIONS(95), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [439] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(97), 1, - anon_sym_LT, - ACTIONS(95), 5, + ACTIONS(109), 2, sym__implicit_end_tag, + sym_text, + ACTIONS(107), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [453] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(73), 1, - anon_sym_LT, - ACTIONS(71), 5, + ACTIONS(113), 2, sym__implicit_end_tag, + sym_text, + ACTIONS(111), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [467] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(101), 1, - anon_sym_LT, - ACTIONS(99), 5, - ts_builtin_sym_end, + ACTIONS(87), 2, + sym__implicit_end_tag, + sym_text, + ACTIONS(89), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [481] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(69), 1, - anon_sym_LT, - ACTIONS(67), 5, - sym__implicit_end_tag, + ACTIONS(115), 2, + ts_builtin_sym_end, + sym_text, + ACTIONS(117), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [495] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(105), 1, - anon_sym_LT, - ACTIONS(103), 5, - ts_builtin_sym_end, + ACTIONS(83), 2, + sym__implicit_end_tag, + sym_text, + ACTIONS(85), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [509] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(109), 1, - anon_sym_LT, - ACTIONS(107), 5, - sym__implicit_end_tag, + ACTIONS(119), 2, + ts_builtin_sym_end, + sym_text, + ACTIONS(121), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [523] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(113), 1, - anon_sym_LT, - ACTIONS(111), 5, + ACTIONS(125), 2, sym__implicit_end_tag, + sym_text, + ACTIONS(123), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [537] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(117), 1, - anon_sym_LT, - ACTIONS(115), 5, + ACTIONS(129), 2, sym__implicit_end_tag, + sym_text, + ACTIONS(127), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [551] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(121), 1, - anon_sym_LT, - ACTIONS(119), 5, - ts_builtin_sym_end, + ACTIONS(133), 2, + sym__implicit_end_tag, + sym_text, + ACTIONS(131), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [565] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(93), 1, - anon_sym_LT, - ACTIONS(91), 5, + ACTIONS(135), 2, ts_builtin_sym_end, + sym_text, + ACTIONS(137), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [579] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(97), 1, - anon_sym_LT, - ACTIONS(95), 5, + ACTIONS(109), 2, ts_builtin_sym_end, + sym_text, + ACTIONS(107), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [593] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(121), 1, - anon_sym_LT, - ACTIONS(119), 5, - sym__implicit_end_tag, + ACTIONS(113), 2, + ts_builtin_sym_end, + sym_text, + ACTIONS(111), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [607] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(85), 1, - anon_sym_LT, - ACTIONS(83), 5, + ACTIONS(135), 2, sym__implicit_end_tag, + sym_text, + ACTIONS(137), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [621] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(101), 1, - anon_sym_LT, - ACTIONS(99), 5, + ACTIONS(99), 2, sym__implicit_end_tag, + sym_text, + ACTIONS(101), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [635] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(105), 1, - anon_sym_LT, - ACTIONS(103), 5, + ACTIONS(115), 2, sym__implicit_end_tag, + sym_text, + ACTIONS(117), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, [649] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(113), 1, + ACTIONS(119), 2, + sym__implicit_end_tag, + sym_text, + ACTIONS(121), 4, + anon_sym_LT_BANG, anon_sym_LT, - ACTIONS(111), 5, + anon_sym_LT_SLASH, + sym_entity, + [663] = 3, + ACTIONS(3), 1, + sym_comment, + ACTIONS(129), 2, ts_builtin_sym_end, + sym_text, + ACTIONS(127), 4, anon_sym_LT_BANG, + anon_sym_LT, anon_sym_LT_SLASH, sym_entity, - sym_text, - [663] = 5, + [677] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(123), 1, + ACTIONS(139), 1, anon_sym_GT, - ACTIONS(125), 1, + ACTIONS(141), 1, anon_sym_SLASH_GT, - ACTIONS(127), 1, + ACTIONS(143), 1, sym_attribute_name, STATE(38), 2, sym_attribute, aux_sym_start_tag_repeat1, - [680] = 5, + [694] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(127), 1, + ACTIONS(143), 1, sym_attribute_name, - ACTIONS(129), 1, + ACTIONS(145), 1, anon_sym_GT, - ACTIONS(131), 1, + ACTIONS(147), 1, anon_sym_SLASH_GT, STATE(37), 2, sym_attribute, aux_sym_start_tag_repeat1, - [697] = 4, + [711] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(135), 1, + ACTIONS(151), 1, sym_attribute_name, - ACTIONS(133), 2, + ACTIONS(149), 2, anon_sym_GT, anon_sym_SLASH_GT, STATE(37), 2, sym_attribute, aux_sym_start_tag_repeat1, - [712] = 5, + [726] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(127), 1, + ACTIONS(143), 1, sym_attribute_name, - ACTIONS(129), 1, + ACTIONS(145), 1, anon_sym_GT, - ACTIONS(138), 1, + ACTIONS(154), 1, anon_sym_SLASH_GT, STATE(37), 2, sym_attribute, aux_sym_start_tag_repeat1, - [729] = 5, + [743] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(123), 1, + ACTIONS(139), 1, anon_sym_GT, - ACTIONS(127), 1, + ACTIONS(143), 1, sym_attribute_name, - ACTIONS(140), 1, + ACTIONS(156), 1, anon_sym_SLASH_GT, STATE(36), 2, sym_attribute, aux_sym_start_tag_repeat1, - [746] = 4, + [760] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(142), 1, + ACTIONS(158), 1, anon_sym_GT, - ACTIONS(144), 1, + ACTIONS(160), 1, sym_attribute_name, STATE(47), 2, sym_attribute, aux_sym_start_tag_repeat1, - [760] = 4, + [774] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(144), 1, + ACTIONS(160), 1, sym_attribute_name, - ACTIONS(146), 1, + ACTIONS(162), 1, anon_sym_GT, STATE(47), 2, sym_attribute, aux_sym_start_tag_repeat1, - [774] = 3, + [788] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(150), 1, + ACTIONS(166), 1, anon_sym_EQ, - ACTIONS(148), 3, + ACTIONS(164), 3, anon_sym_GT, anon_sym_SLASH_GT, sym_attribute_name, - [786] = 5, + [800] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(152), 1, + ACTIONS(168), 1, sym_attribute_value, - ACTIONS(154), 1, + ACTIONS(170), 1, anon_sym_SQUOTE, - ACTIONS(156), 1, + ACTIONS(172), 1, anon_sym_DQUOTE, STATE(48), 1, sym_quoted_attribute_value, - [802] = 5, + [816] = 5, ACTIONS(3), 1, sym_comment, - ACTIONS(158), 1, + ACTIONS(174), 1, sym_attribute_value, - ACTIONS(160), 1, + ACTIONS(176), 1, anon_sym_SQUOTE, - ACTIONS(162), 1, + ACTIONS(178), 1, anon_sym_DQUOTE, STATE(69), 1, sym_quoted_attribute_value, - [818] = 4, + [832] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(144), 1, + ACTIONS(160), 1, sym_attribute_name, - ACTIONS(164), 1, + ACTIONS(180), 1, anon_sym_GT, STATE(40), 2, sym_attribute, aux_sym_start_tag_repeat1, - [832] = 4, + [846] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(144), 1, + ACTIONS(160), 1, sym_attribute_name, - ACTIONS(166), 1, + ACTIONS(182), 1, anon_sym_GT, STATE(41), 2, sym_attribute, aux_sym_start_tag_repeat1, - [846] = 4, + [860] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(133), 1, + ACTIONS(149), 1, anon_sym_GT, - ACTIONS(168), 1, + ACTIONS(184), 1, sym_attribute_name, STATE(47), 2, sym_attribute, aux_sym_start_tag_repeat1, - [860] = 2, + [874] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(171), 3, + ACTIONS(187), 3, anon_sym_GT, anon_sym_SLASH_GT, sym_attribute_name, - [869] = 3, + [883] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(173), 1, + ACTIONS(189), 1, anon_sym_EQ, - ACTIONS(148), 2, + ACTIONS(164), 2, anon_sym_GT, sym_attribute_name, - [880] = 2, + [894] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(175), 3, + ACTIONS(191), 3, anon_sym_GT, anon_sym_SLASH_GT, sym_attribute_name, - [889] = 4, + [903] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(177), 1, + ACTIONS(193), 1, sym__start_tag_name, - ACTIONS(179), 1, + ACTIONS(195), 1, sym__script_start_tag_name, - ACTIONS(181), 1, + ACTIONS(197), 1, sym__style_start_tag_name, - [902] = 4, + [916] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(179), 1, + ACTIONS(195), 1, sym__script_start_tag_name, - ACTIONS(181), 1, + ACTIONS(197), 1, sym__style_start_tag_name, - ACTIONS(183), 1, + ACTIONS(199), 1, sym__start_tag_name, - [915] = 2, + [929] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(185), 3, + ACTIONS(201), 3, anon_sym_GT, anon_sym_SLASH_GT, sym_attribute_name, - [924] = 4, + [938] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(187), 1, + ACTIONS(203), 1, anon_sym_LT_SLASH, - ACTIONS(189), 1, + ACTIONS(205), 1, sym_raw_text, STATE(21), 1, sym_end_tag, - [937] = 4, + [951] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(191), 1, + ACTIONS(207), 1, anon_sym_LT_SLASH, - ACTIONS(193), 1, + ACTIONS(209), 1, sym_raw_text, STATE(33), 1, sym_end_tag, - [950] = 4, + [964] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(191), 1, + ACTIONS(207), 1, anon_sym_LT_SLASH, - ACTIONS(195), 1, + ACTIONS(211), 1, sym_raw_text, STATE(32), 1, sym_end_tag, - [963] = 4, + [977] = 4, ACTIONS(3), 1, sym_comment, - ACTIONS(187), 1, + ACTIONS(203), 1, anon_sym_LT_SLASH, - ACTIONS(197), 1, + ACTIONS(213), 1, sym_raw_text, STATE(23), 1, sym_end_tag, - [976] = 2, + [990] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(185), 2, + ACTIONS(201), 2, anon_sym_GT, sym_attribute_name, - [984] = 2, + [998] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(199), 2, + ACTIONS(215), 2, sym_raw_text, anon_sym_LT_SLASH, - [992] = 2, + [1006] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(201), 2, + ACTIONS(217), 2, sym_raw_text, anon_sym_LT_SLASH, - [1000] = 2, + [1014] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(203), 2, + ACTIONS(219), 2, sym_raw_text, anon_sym_LT_SLASH, - [1008] = 3, + [1022] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(205), 1, + ACTIONS(221), 1, sym__end_tag_name, - ACTIONS(207), 1, + ACTIONS(223), 1, sym_erroneous_end_tag_name, - [1018] = 3, + [1032] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(187), 1, + ACTIONS(203), 1, anon_sym_LT_SLASH, STATE(29), 1, sym_end_tag, - [1028] = 3, + [1042] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(209), 1, + ACTIONS(225), 1, anon_sym_DQUOTE, - ACTIONS(211), 1, + ACTIONS(227), 1, aux_sym_quoted_attribute_value_token2, - [1038] = 3, + [1052] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(187), 1, + ACTIONS(203), 1, anon_sym_LT_SLASH, STATE(10), 1, sym_end_tag, - [1048] = 3, + [1062] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(207), 1, + ACTIONS(223), 1, sym_erroneous_end_tag_name, - ACTIONS(213), 1, + ACTIONS(229), 1, sym__end_tag_name, - [1058] = 3, + [1072] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(209), 1, + ACTIONS(225), 1, anon_sym_SQUOTE, - ACTIONS(215), 1, + ACTIONS(231), 1, aux_sym_quoted_attribute_value_token1, - [1068] = 3, + [1082] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(191), 1, + ACTIONS(207), 1, anon_sym_LT_SLASH, STATE(19), 1, sym_end_tag, - [1078] = 2, + [1092] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(171), 2, + ACTIONS(187), 2, anon_sym_GT, sym_attribute_name, - [1086] = 2, + [1100] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(175), 2, + ACTIONS(191), 2, anon_sym_GT, sym_attribute_name, - [1094] = 3, + [1108] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(217), 1, + ACTIONS(233), 1, anon_sym_DQUOTE, - ACTIONS(219), 1, + ACTIONS(235), 1, aux_sym_quoted_attribute_value_token2, - [1104] = 3, + [1118] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(191), 1, + ACTIONS(207), 1, anon_sym_LT_SLASH, STATE(20), 1, sym_end_tag, - [1114] = 2, + [1128] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(221), 2, + ACTIONS(237), 2, sym_raw_text, anon_sym_LT_SLASH, - [1122] = 3, + [1136] = 3, ACTIONS(3), 1, sym_comment, - ACTIONS(217), 1, + ACTIONS(233), 1, anon_sym_SQUOTE, - ACTIONS(223), 1, + ACTIONS(239), 1, aux_sym_quoted_attribute_value_token1, - [1132] = 2, + [1146] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(225), 1, + ACTIONS(241), 1, sym__doctype, - [1139] = 2, + [1153] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(227), 1, + ACTIONS(243), 1, anon_sym_GT, - [1146] = 2, + [1160] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(229), 1, + ACTIONS(245), 1, ts_builtin_sym_end, - [1153] = 2, + [1167] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(231), 1, + ACTIONS(247), 1, anon_sym_SQUOTE, - [1160] = 2, + [1174] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(233), 1, + ACTIONS(249), 1, aux_sym_doctype_token1, - [1167] = 2, + [1181] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(235), 1, + ACTIONS(251), 1, anon_sym_GT, - [1174] = 2, + [1188] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(237), 1, + ACTIONS(253), 1, sym_erroneous_end_tag_name, - [1181] = 2, + [1195] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(239), 1, + ACTIONS(255), 1, anon_sym_GT, - [1188] = 2, + [1202] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(241), 1, + ACTIONS(257), 1, anon_sym_GT, - [1195] = 2, + [1209] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(243), 1, + ACTIONS(259), 1, anon_sym_GT, - [1202] = 2, + [1216] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(213), 1, + ACTIONS(229), 1, sym__end_tag_name, - [1209] = 2, + [1223] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(245), 1, + ACTIONS(261), 1, anon_sym_SQUOTE, - [1216] = 2, + [1230] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(245), 1, + ACTIONS(261), 1, anon_sym_DQUOTE, - [1223] = 2, + [1237] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(231), 1, + ACTIONS(247), 1, anon_sym_DQUOTE, - [1230] = 2, + [1244] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(207), 1, + ACTIONS(223), 1, sym_erroneous_end_tag_name, - [1237] = 2, + [1251] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(247), 1, + ACTIONS(263), 1, aux_sym_doctype_token1, - [1244] = 2, + [1258] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(249), 1, + ACTIONS(265), 1, anon_sym_GT, - [1251] = 2, + [1265] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(205), 1, + ACTIONS(221), 1, sym__end_tag_name, - [1258] = 2, + [1272] = 2, ACTIONS(3), 1, sym_comment, - ACTIONS(251), 1, + ACTIONS(267), 1, sym__doctype, }; static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(2)] = 0, - [SMALL_STATE(3)] = 44, - [SMALL_STATE(4)] = 88, - [SMALL_STATE(5)] = 132, - [SMALL_STATE(6)] = 176, - [SMALL_STATE(7)] = 217, - [SMALL_STATE(8)] = 258, - [SMALL_STATE(9)] = 299, - [SMALL_STATE(10)] = 313, - [SMALL_STATE(11)] = 327, - [SMALL_STATE(12)] = 341, - [SMALL_STATE(13)] = 355, - [SMALL_STATE(14)] = 369, - [SMALL_STATE(15)] = 383, - [SMALL_STATE(16)] = 397, - [SMALL_STATE(17)] = 411, - [SMALL_STATE(18)] = 425, - [SMALL_STATE(19)] = 439, - [SMALL_STATE(20)] = 453, - [SMALL_STATE(21)] = 467, - [SMALL_STATE(22)] = 481, - [SMALL_STATE(23)] = 495, - [SMALL_STATE(24)] = 509, - [SMALL_STATE(25)] = 523, - [SMALL_STATE(26)] = 537, - [SMALL_STATE(27)] = 551, - [SMALL_STATE(28)] = 565, - [SMALL_STATE(29)] = 579, - [SMALL_STATE(30)] = 593, - [SMALL_STATE(31)] = 607, - [SMALL_STATE(32)] = 621, - [SMALL_STATE(33)] = 635, - [SMALL_STATE(34)] = 649, - [SMALL_STATE(35)] = 663, - [SMALL_STATE(36)] = 680, - [SMALL_STATE(37)] = 697, - [SMALL_STATE(38)] = 712, - [SMALL_STATE(39)] = 729, - [SMALL_STATE(40)] = 746, - [SMALL_STATE(41)] = 760, - [SMALL_STATE(42)] = 774, - [SMALL_STATE(43)] = 786, - [SMALL_STATE(44)] = 802, - [SMALL_STATE(45)] = 818, - [SMALL_STATE(46)] = 832, - [SMALL_STATE(47)] = 846, - [SMALL_STATE(48)] = 860, - [SMALL_STATE(49)] = 869, - [SMALL_STATE(50)] = 880, - [SMALL_STATE(51)] = 889, - [SMALL_STATE(52)] = 902, - [SMALL_STATE(53)] = 915, - [SMALL_STATE(54)] = 924, - [SMALL_STATE(55)] = 937, - [SMALL_STATE(56)] = 950, - [SMALL_STATE(57)] = 963, - [SMALL_STATE(58)] = 976, - [SMALL_STATE(59)] = 984, - [SMALL_STATE(60)] = 992, - [SMALL_STATE(61)] = 1000, - [SMALL_STATE(62)] = 1008, - [SMALL_STATE(63)] = 1018, - [SMALL_STATE(64)] = 1028, - [SMALL_STATE(65)] = 1038, - [SMALL_STATE(66)] = 1048, - [SMALL_STATE(67)] = 1058, - [SMALL_STATE(68)] = 1068, - [SMALL_STATE(69)] = 1078, - [SMALL_STATE(70)] = 1086, - [SMALL_STATE(71)] = 1094, - [SMALL_STATE(72)] = 1104, - [SMALL_STATE(73)] = 1114, - [SMALL_STATE(74)] = 1122, - [SMALL_STATE(75)] = 1132, - [SMALL_STATE(76)] = 1139, - [SMALL_STATE(77)] = 1146, - [SMALL_STATE(78)] = 1153, - [SMALL_STATE(79)] = 1160, - [SMALL_STATE(80)] = 1167, - [SMALL_STATE(81)] = 1174, - [SMALL_STATE(82)] = 1181, - [SMALL_STATE(83)] = 1188, - [SMALL_STATE(84)] = 1195, - [SMALL_STATE(85)] = 1202, - [SMALL_STATE(86)] = 1209, - [SMALL_STATE(87)] = 1216, - [SMALL_STATE(88)] = 1223, - [SMALL_STATE(89)] = 1230, - [SMALL_STATE(90)] = 1237, - [SMALL_STATE(91)] = 1244, - [SMALL_STATE(92)] = 1251, - [SMALL_STATE(93)] = 1258, + [SMALL_STATE(3)] = 46, + [SMALL_STATE(4)] = 92, + [SMALL_STATE(5)] = 138, + [SMALL_STATE(6)] = 184, + [SMALL_STATE(7)] = 227, + [SMALL_STATE(8)] = 270, + [SMALL_STATE(9)] = 313, + [SMALL_STATE(10)] = 327, + [SMALL_STATE(11)] = 341, + [SMALL_STATE(12)] = 355, + [SMALL_STATE(13)] = 369, + [SMALL_STATE(14)] = 383, + [SMALL_STATE(15)] = 397, + [SMALL_STATE(16)] = 411, + [SMALL_STATE(17)] = 425, + [SMALL_STATE(18)] = 439, + [SMALL_STATE(19)] = 453, + [SMALL_STATE(20)] = 467, + [SMALL_STATE(21)] = 481, + [SMALL_STATE(22)] = 495, + [SMALL_STATE(23)] = 509, + [SMALL_STATE(24)] = 523, + [SMALL_STATE(25)] = 537, + [SMALL_STATE(26)] = 551, + [SMALL_STATE(27)] = 565, + [SMALL_STATE(28)] = 579, + [SMALL_STATE(29)] = 593, + [SMALL_STATE(30)] = 607, + [SMALL_STATE(31)] = 621, + [SMALL_STATE(32)] = 635, + [SMALL_STATE(33)] = 649, + [SMALL_STATE(34)] = 663, + [SMALL_STATE(35)] = 677, + [SMALL_STATE(36)] = 694, + [SMALL_STATE(37)] = 711, + [SMALL_STATE(38)] = 726, + [SMALL_STATE(39)] = 743, + [SMALL_STATE(40)] = 760, + [SMALL_STATE(41)] = 774, + [SMALL_STATE(42)] = 788, + [SMALL_STATE(43)] = 800, + [SMALL_STATE(44)] = 816, + [SMALL_STATE(45)] = 832, + [SMALL_STATE(46)] = 846, + [SMALL_STATE(47)] = 860, + [SMALL_STATE(48)] = 874, + [SMALL_STATE(49)] = 883, + [SMALL_STATE(50)] = 894, + [SMALL_STATE(51)] = 903, + [SMALL_STATE(52)] = 916, + [SMALL_STATE(53)] = 929, + [SMALL_STATE(54)] = 938, + [SMALL_STATE(55)] = 951, + [SMALL_STATE(56)] = 964, + [SMALL_STATE(57)] = 977, + [SMALL_STATE(58)] = 990, + [SMALL_STATE(59)] = 998, + [SMALL_STATE(60)] = 1006, + [SMALL_STATE(61)] = 1014, + [SMALL_STATE(62)] = 1022, + [SMALL_STATE(63)] = 1032, + [SMALL_STATE(64)] = 1042, + [SMALL_STATE(65)] = 1052, + [SMALL_STATE(66)] = 1062, + [SMALL_STATE(67)] = 1072, + [SMALL_STATE(68)] = 1082, + [SMALL_STATE(69)] = 1092, + [SMALL_STATE(70)] = 1100, + [SMALL_STATE(71)] = 1108, + [SMALL_STATE(72)] = 1118, + [SMALL_STATE(73)] = 1128, + [SMALL_STATE(74)] = 1136, + [SMALL_STATE(75)] = 1146, + [SMALL_STATE(76)] = 1153, + [SMALL_STATE(77)] = 1160, + [SMALL_STATE(78)] = 1167, + [SMALL_STATE(79)] = 1174, + [SMALL_STATE(80)] = 1181, + [SMALL_STATE(81)] = 1188, + [SMALL_STATE(82)] = 1195, + [SMALL_STATE(83)] = 1202, + [SMALL_STATE(84)] = 1209, + [SMALL_STATE(85)] = 1216, + [SMALL_STATE(86)] = 1223, + [SMALL_STATE(87)] = 1230, + [SMALL_STATE(88)] = 1237, + [SMALL_STATE(89)] = 1244, + [SMALL_STATE(90)] = 1251, + [SMALL_STATE(91)] = 1258, + [SMALL_STATE(92)] = 1265, + [SMALL_STATE(93)] = 1272, }; static const TSParseActionEntry ts_parse_actions[] = { @@ -2049,124 +2055,131 @@ static const TSParseActionEntry ts_parse_actions[] = { [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT_EXTRA(), [5] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 0), - [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [7] = {.entry = {.count = 1, .reusable = false}}, SHIFT(75), [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(52), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), - [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [17] = {.entry = {.count = 1, .reusable = false}}, SHIFT(51), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), - [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [37] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(93), - [40] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(51), - [43] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(89), - [46] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(6), - [49] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), - [51] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(75), - [54] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(52), - [57] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(81), - [60] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(7), - [63] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 1), - [65] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [67] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_element, 3), - [69] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_element, 3), - [71] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script_element, 3), - [73] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_script_element, 3), - [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_element, 1), - [77] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_element, 1), - [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_element, 2), - [81] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_element, 2), - [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_end_tag, 3), - [85] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_end_tag, 3), - [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_self_closing_tag, 4), - [89] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_self_closing_tag, 4), - [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_doctype, 4), - [93] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_doctype, 4), - [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_style_element, 3), - [97] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_style_element, 3), - [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script_element, 2), - [101] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_script_element, 2), - [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_style_element, 2), - [105] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_style_element, 2), - [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_start_tag, 4), - [109] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_start_tag, 4), - [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_erroneous_end_tag, 3), - [113] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_erroneous_end_tag, 3), - [115] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_start_tag, 3), - [117] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_start_tag, 3), - [119] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_self_closing_tag, 3), - [121] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_self_closing_tag, 3), - [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), - [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [133] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_start_tag_repeat1, 2), - [135] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_start_tag_repeat1, 2), SHIFT_REPEAT(42), - [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), - [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), - [148] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_attribute, 1), - [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), - [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), - [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [156] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), - [158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), - [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), - [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), - [168] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_start_tag_repeat1, 2), SHIFT_REPEAT(49), - [171] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_attribute, 3), - [173] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [175] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_quoted_attribute_value, 2), - [177] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [179] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [185] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_quoted_attribute_value, 3), - [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), - [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), - [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script_start_tag, 4), - [201] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_style_start_tag, 3), - [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script_start_tag, 3), - [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), - [209] = {.entry = {.count = 1, .reusable = false}}, SHIFT(70), - [211] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [213] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [215] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), - [217] = {.entry = {.count = 1, .reusable = false}}, SHIFT(50), - [219] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), - [221] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_style_start_tag, 4), - [223] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [225] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), - [227] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [229] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [231] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [233] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), - [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [237] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), - [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [241] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [243] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [245] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [247] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), - [249] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [11] = {.entry = {.count = 1, .reusable = false}}, SHIFT(81), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(8), + [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [17] = {.entry = {.count = 1, .reusable = false}}, SHIFT(93), + [19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(51), + [21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(66), + [23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(6), + [25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(62), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [33] = {.entry = {.count = 1, .reusable = false}}, SHIFT(2), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), + [39] = {.entry = {.count = 1, .reusable = false}}, SHIFT(3), + [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), + [45] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(93), + [48] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(51), + [51] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(89), + [54] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(6), + [57] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(6), + [60] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), + [62] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(75), + [65] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(52), + [68] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(81), + [71] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(7), + [74] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2), SHIFT_REPEAT(7), + [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 1), + [79] = {.entry = {.count = 1, .reusable = false}}, SHIFT(7), + [81] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_element, 3), + [85] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_element, 3), + [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script_element, 3), + [89] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_script_element, 3), + [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_element, 1), + [93] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_element, 1), + [95] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_element, 2), + [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_element, 2), + [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_end_tag, 3), + [101] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_end_tag, 3), + [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_self_closing_tag, 4), + [105] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_self_closing_tag, 4), + [107] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_doctype, 4), + [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_doctype, 4), + [111] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_style_element, 3), + [113] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_style_element, 3), + [115] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script_element, 2), + [117] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_script_element, 2), + [119] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_style_element, 2), + [121] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_style_element, 2), + [123] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_start_tag, 4), + [125] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_start_tag, 4), + [127] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_erroneous_end_tag, 3), + [129] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_erroneous_end_tag, 3), + [131] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_start_tag, 3), + [133] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_start_tag, 3), + [135] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_self_closing_tag, 3), + [137] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_self_closing_tag, 3), + [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), + [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), + [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [149] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_start_tag_repeat1, 2), + [151] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_start_tag_repeat1, 2), SHIFT_REPEAT(42), + [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), + [156] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), + [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), + [164] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_attribute, 1), + [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), + [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), + [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), + [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), + [184] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_start_tag_repeat1, 2), SHIFT_REPEAT(49), + [187] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_attribute, 3), + [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), + [191] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_quoted_attribute_value, 2), + [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [201] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_quoted_attribute_value, 3), + [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), + [207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), + [209] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), + [211] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [213] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), + [215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script_start_tag, 4), + [217] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_style_start_tag, 3), + [219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script_start_tag, 3), + [221] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), + [223] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), + [225] = {.entry = {.count = 1, .reusable = false}}, SHIFT(70), + [227] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), + [231] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), + [233] = {.entry = {.count = 1, .reusable = false}}, SHIFT(50), + [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), + [237] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_style_start_tag, 4), + [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), + [241] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), + [243] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [245] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [247] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), + [249] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), + [251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), + [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), + [255] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), + [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), + [263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), + [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), }; enum ts_external_scanner_symbol_identifiers { diff --git a/test/corpus/main.txt b/test/corpus/main.txt index 9bccd9b..a9c88ea 100644 --- a/test/corpus/main.txt +++ b/test/corpus/main.txt @@ -50,6 +50,7 @@ Nested tags (element (start_tag (tag_name)) + (text) (element (start_tag (tag_name)) @@ -128,6 +129,7 @@ Custom tags (element (start_tag (tag_name)) + (text) (element (start_tag (tag_name) @@ -136,6 +138,7 @@ Custom tags (text) (end_tag (tag_name))) + (text) (end_tag (tag_name)))) @@ -152,10 +155,12 @@ Comments (document (comment) (comment) + (text) (element (start_tag (tag_name)) (comment) + (text) (end_tag (tag_name)))) @@ -186,18 +191,21 @@ Raw text elements (raw_text) (end_tag (tag_name))) + (text) (style_element (start_tag (tag_name)) (raw_text) (end_tag (tag_name))) + (text) (script_element (start_tag (tag_name)) (raw_text) (end_tag - (tag_name)))) + (tag_name))) + (text)) ================================== All-caps doctype @@ -232,6 +240,7 @@ LI elements without close tags (element (start_tag (tag_name)) + (text) (element (start_tag (tag_name)) @@ -259,6 +268,7 @@ DT and DL elements without close tags (element (start_tag (tag_name)) + (text) (element (start_tag (tag_name)) @@ -303,6 +313,7 @@ P elements without close tags (text) (end_tag (tag_name))) + (text) (element (start_tag (tag_name)) @@ -363,9 +374,11 @@ COLGROUP elements without end tags (element (start_tag (tag_name)) + (text) (element (start_tag (tag_name)) + (text) (element (start_tag (tag_name) @@ -383,26 +396,31 @@ COLGROUP elements without end tags (element (start_tag (tag_name)) + (text) (element (start_tag (tag_name)) (text) (end_tag (tag_name))) + (text) (element (start_tag (tag_name)) (text) (end_tag (tag_name))) + (text) (element (start_tag (tag_name)) (text) (end_tag (tag_name))) + (text) (end_tag (tag_name))) + (text) (end_tag (tag_name)))) @@ -423,9 +441,11 @@ TR, TD, and TH elements without end tags (element (start_tag (tag_name)) + (text) (element (start_tag (tag_name)) + (text) (element (start_tag (tag_name)) @@ -437,6 +457,7 @@ TR, TD, and TH elements without end tags (element (start_tag (tag_name)) + (text) (element (start_tag (tag_name)) @@ -456,6 +477,7 @@ Named entities in tag contents --- (document + (text) (element (start_tag (tag_name)) @@ -475,6 +497,7 @@ Numeric entities in tag contents --- (document + (text) (element (start_tag (tag_name)) @@ -494,6 +517,7 @@ Multiple entities in tag contents --- (document + (text) (element (start_tag (tag_name)) @@ -516,6 +540,7 @@ Omitted end tags for html and head --- (document + (text) (doctype) (element (start_tag