/* Automatically @generated by tree-sitter */

#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 170
#define LARGE_STATE_COUNT 2
#define SYMBOL_COUNT 67
#define ALIAS_COUNT 0
#define TOKEN_COUNT 41
#define EXTERNAL_TOKEN_COUNT 12
#define FIELD_COUNT 0
#define MAX_ALIAS_SEQUENCE_LENGTH 6
#define MAX_RESERVED_WORD_SET_SIZE 0
#define PRODUCTION_ID_COUNT 1
#define SUPERTYPE_COUNT 0

enum ts_symbol_identifiers {
  anon_sym_LT_BANG = 1,
  aux_sym_doctype_token1 = 2,
  anon_sym_GT = 3,
  sym__doctype = 4,
  anon_sym_LT = 5,
  anon_sym_SLASH_GT = 6,
  anon_sym_LT_SLASH = 7,
  anon_sym_EQ = 8,
  sym_attribute_name = 9,
  sym_attribute_value = 10,
  sym_entity = 11,
  anon_sym_SQUOTE = 12,
  aux_sym_quoted_attribute_value_token1 = 13,
  anon_sym_DQUOTE = 14,
  aux_sym_quoted_attribute_value_token2 = 15,
  anon_sym_LBRACE_LBRACE = 16,
  anon_sym_RBRACE_RBRACE = 17,
  anon_sym_COLON = 18,
  anon_sym_COLON2 = 19,
  anon_sym_DOT = 20,
  anon_sym_AT = 21,
  anon_sym_POUND = 22,
  sym_directive_name = 23,
  sym_directive_value = 24,
  anon_sym_LBRACK = 25,
  anon_sym_RBRACK = 26,
  sym_dynamic_directive_inner_value = 27,
  anon_sym_DOT2 = 28,
  sym_directive_modifier = 29,
  sym__start_tag_name = 30,
  sym__script_start_tag_name = 31,
  sym__style_start_tag_name = 32,
  sym__end_tag_name = 33,
  sym_erroneous_end_tag_name = 34,
  sym__implicit_end_tag = 35,
  sym_raw_text = 36,
  sym_comment = 37,
  sym__template_start_tag_name = 38,
  sym__text_fragment = 39,
  sym__interpolation_text = 40,
  sym_document = 41,
  sym_doctype = 42,
  sym__node = 43,
  sym_element = 44,
  sym_script_element = 45,
  sym_style_element = 46,
  sym_start_tag = 47,
  sym_script_start_tag = 48,
  sym_style_start_tag = 49,
  sym_self_closing_tag = 50,
  sym_end_tag = 51,
  sym_erroneous_end_tag = 52,
  sym_attribute = 53,
  sym_quoted_attribute_value = 54,
  sym_text = 55,
  sym_template_element = 56,
  sym_template_start_tag = 57,
  sym_interpolation = 58,
  sym__attribute = 59,
  sym_directive_attribute = 60,
  sym_dynamic_directive_value = 61,
  sym_directive_modifiers = 62,
  aux_sym_document_repeat1 = 63,
  aux_sym_start_tag_repeat1 = 64,
  aux_sym_directive_attribute_repeat1 = 65,
  aux_sym_directive_modifiers_repeat1 = 66,
};

static const char * const ts_symbol_names[] = {
  [ts_builtin_sym_end] = "end",
  [anon_sym_LT_BANG] = "<!",
  [aux_sym_doctype_token1] = "doctype_token1",
  [anon_sym_GT] = ">",
  [sym__doctype] = "doctype",
  [anon_sym_LT] = "<",
  [anon_sym_SLASH_GT] = "/>",
  [anon_sym_LT_SLASH] = "</",
  [anon_sym_EQ] = "=",
  [sym_attribute_name] = "attribute_name",
  [sym_attribute_value] = "attribute_value",
  [sym_entity] = "entity",
  [anon_sym_SQUOTE] = "'",
  [aux_sym_quoted_attribute_value_token1] = "attribute_value",
  [anon_sym_DQUOTE] = "\"",
  [aux_sym_quoted_attribute_value_token2] = "attribute_value",
  [anon_sym_LBRACE_LBRACE] = "{{",
  [anon_sym_RBRACE_RBRACE] = "}}",
  [anon_sym_COLON] = ":",
  [anon_sym_COLON2] = ":",
  [anon_sym_DOT] = ".",
  [anon_sym_AT] = "@",
  [anon_sym_POUND] = "#",
  [sym_directive_name] = "directive_name",
  [sym_directive_value] = "directive_value",
  [anon_sym_LBRACK] = "[",
  [anon_sym_RBRACK] = "]",
  [sym_dynamic_directive_inner_value] = "dynamic_directive_inner_value",
  [anon_sym_DOT2] = ".",
  [sym_directive_modifier] = "directive_modifier",
  [sym__start_tag_name] = "tag_name",
  [sym__script_start_tag_name] = "tag_name",
  [sym__style_start_tag_name] = "tag_name",
  [sym__end_tag_name] = "tag_name",
  [sym_erroneous_end_tag_name] = "erroneous_end_tag_name",
  [sym__implicit_end_tag] = "_implicit_end_tag",
  [sym_raw_text] = "raw_text",
  [sym_comment] = "comment",
  [sym__template_start_tag_name] = "tag_name",
  [sym__text_fragment] = "_text_fragment",
  [sym__interpolation_text] = "raw_text",
  [sym_document] = "document",
  [sym_doctype] = "doctype",
  [sym__node] = "_node",
  [sym_element] = "element",
  [sym_script_element] = "script_element",
  [sym_style_element] = "style_element",
  [sym_start_tag] = "start_tag",
  [sym_script_start_tag] = "start_tag",
  [sym_style_start_tag] = "start_tag",
  [sym_self_closing_tag] = "self_closing_tag",
  [sym_end_tag] = "end_tag",
  [sym_erroneous_end_tag] = "erroneous_end_tag",
  [sym_attribute] = "attribute",
  [sym_quoted_attribute_value] = "quoted_attribute_value",
  [sym_text] = "text",
  [sym_template_element] = "template_element",
  [sym_template_start_tag] = "start_tag",
  [sym_interpolation] = "interpolation",
  [sym__attribute] = "_attribute",
  [sym_directive_attribute] = "directive_attribute",
  [sym_dynamic_directive_value] = "dynamic_directive_value",
  [sym_directive_modifiers] = "directive_modifiers",
  [aux_sym_document_repeat1] = "document_repeat1",
  [aux_sym_start_tag_repeat1] = "start_tag_repeat1",
  [aux_sym_directive_attribute_repeat1] = "directive_attribute_repeat1",
  [aux_sym_directive_modifiers_repeat1] = "directive_modifiers_repeat1",
};

static const TSSymbol ts_symbol_map[] = {
  [ts_builtin_sym_end] = ts_builtin_sym_end,
  [anon_sym_LT_BANG] = anon_sym_LT_BANG,
  [aux_sym_doctype_token1] = aux_sym_doctype_token1,
  [anon_sym_GT] = anon_sym_GT,
  [sym__doctype] = sym__doctype,
  [anon_sym_LT] = anon_sym_LT,
  [anon_sym_SLASH_GT] = anon_sym_SLASH_GT,
  [anon_sym_LT_SLASH] = anon_sym_LT_SLASH,
  [anon_sym_EQ] = anon_sym_EQ,
  [sym_attribute_name] = sym_attribute_name,
  [sym_attribute_value] = sym_attribute_value,
  [sym_entity] = sym_entity,
  [anon_sym_SQUOTE] = anon_sym_SQUOTE,
  [aux_sym_quoted_attribute_value_token1] = sym_attribute_value,
  [anon_sym_DQUOTE] = anon_sym_DQUOTE,
  [aux_sym_quoted_attribute_value_token2] = sym_attribute_value,
  [anon_sym_LBRACE_LBRACE] = anon_sym_LBRACE_LBRACE,
  [anon_sym_RBRACE_RBRACE] = anon_sym_RBRACE_RBRACE,
  [anon_sym_COLON] = anon_sym_COLON,
  [anon_sym_COLON2] = anon_sym_COLON,
  [anon_sym_DOT] = anon_sym_DOT,
  [anon_sym_AT] = anon_sym_AT,
  [anon_sym_POUND] = anon_sym_POUND,
  [sym_directive_name] = sym_directive_name,
  [sym_directive_value] = sym_directive_value,
  [anon_sym_LBRACK] = anon_sym_LBRACK,
  [anon_sym_RBRACK] = anon_sym_RBRACK,
  [sym_dynamic_directive_inner_value] = sym_dynamic_directive_inner_value,
  [anon_sym_DOT2] = anon_sym_DOT,
  [sym_directive_modifier] = sym_directive_modifier,
  [sym__start_tag_name] = sym__start_tag_name,
  [sym__script_start_tag_name] = sym__start_tag_name,
  [sym__style_start_tag_name] = sym__start_tag_name,
  [sym__end_tag_name] = sym__start_tag_name,
  [sym_erroneous_end_tag_name] = sym_erroneous_end_tag_name,
  [sym__implicit_end_tag] = sym__implicit_end_tag,
  [sym_raw_text] = sym_raw_text,
  [sym_comment] = sym_comment,
  [sym__template_start_tag_name] = sym__start_tag_name,
  [sym__text_fragment] = sym__text_fragment,
  [sym__interpolation_text] = sym_raw_text,
  [sym_document] = sym_document,
  [sym_doctype] = sym_doctype,
  [sym__node] = sym__node,
  [sym_element] = sym_element,
  [sym_script_element] = sym_script_element,
  [sym_style_element] = sym_style_element,
  [sym_start_tag] = sym_start_tag,
  [sym_script_start_tag] = sym_start_tag,
  [sym_style_start_tag] = sym_start_tag,
  [sym_self_closing_tag] = sym_self_closing_tag,
  [sym_end_tag] = sym_end_tag,
  [sym_erroneous_end_tag] = sym_erroneous_end_tag,
  [sym_attribute] = sym_attribute,
  [sym_quoted_attribute_value] = sym_quoted_attribute_value,
  [sym_text] = sym_text,
  [sym_template_element] = sym_template_element,
  [sym_template_start_tag] = sym_start_tag,
  [sym_interpolation] = sym_interpolation,
  [sym__attribute] = sym__attribute,
  [sym_directive_attribute] = sym_directive_attribute,
  [sym_dynamic_directive_value] = sym_dynamic_directive_value,
  [sym_directive_modifiers] = sym_directive_modifiers,
  [aux_sym_document_repeat1] = aux_sym_document_repeat1,
  [aux_sym_start_tag_repeat1] = aux_sym_start_tag_repeat1,
  [aux_sym_directive_attribute_repeat1] = aux_sym_directive_attribute_repeat1,
  [aux_sym_directive_modifiers_repeat1] = aux_sym_directive_modifiers_repeat1,
};

static const TSSymbolMetadata ts_symbol_metadata[] = {
  [ts_builtin_sym_end] = {
    .visible = false,
    .named = true,
  },
  [anon_sym_LT_BANG] = {
    .visible = true,
    .named = false,
  },
  [aux_sym_doctype_token1] = {
    .visible = false,
    .named = false,
  },
  [anon_sym_GT] = {
    .visible = true,
    .named = false,
  },
  [sym__doctype] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_SLASH_GT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_LT_SLASH] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_EQ] = {
    .visible = true,
    .named = false,
  },
  [sym_attribute_name] = {
    .visible = true,
    .named = true,
  },
  [sym_attribute_value] = {
    .visible = true,
    .named = true,
  },
  [sym_entity] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_SQUOTE] = {
    .visible = true,
    .named = false,
  },
  [aux_sym_quoted_attribute_value_token1] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_DQUOTE] = {
    .visible = true,
    .named = false,
  },
  [aux_sym_quoted_attribute_value_token2] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_LBRACE_LBRACE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACE_RBRACE] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COLON] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_COLON2] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_DOT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_AT] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_POUND] = {
    .visible = true,
    .named = false,
  },
  [sym_directive_name] = {
    .visible = true,
    .named = true,
  },
  [sym_directive_value] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_LBRACK] = {
    .visible = true,
    .named = false,
  },
  [anon_sym_RBRACK] = {
    .visible = true,
    .named = false,
  },
  [sym_dynamic_directive_inner_value] = {
    .visible = true,
    .named = true,
  },
  [anon_sym_DOT2] = {
    .visible = true,
    .named = false,
  },
  [sym_directive_modifier] = {
    .visible = true,
    .named = true,
  },
  [sym__start_tag_name] = {
    .visible = true,
    .named = true,
  },
  [sym__script_start_tag_name] = {
    .visible = true,
    .named = true,
  },
  [sym__style_start_tag_name] = {
    .visible = true,
    .named = true,
  },
  [sym__end_tag_name] = {
    .visible = true,
    .named = true,
  },
  [sym_erroneous_end_tag_name] = {
    .visible = true,
    .named = true,
  },
  [sym__implicit_end_tag] = {
    .visible = false,
    .named = true,
  },
  [sym_raw_text] = {
    .visible = true,
    .named = true,
  },
  [sym_comment] = {
    .visible = true,
    .named = true,
  },
  [sym__template_start_tag_name] = {
    .visible = true,
    .named = true,
  },
  [sym__text_fragment] = {
    .visible = false,
    .named = true,
  },
  [sym__interpolation_text] = {
    .visible = true,
    .named = true,
  },
  [sym_document] = {
    .visible = true,
    .named = true,
  },
  [sym_doctype] = {
    .visible = true,
    .named = true,
  },
  [sym__node] = {
    .visible = false,
    .named = true,
  },
  [sym_element] = {
    .visible = true,
    .named = true,
  },
  [sym_script_element] = {
    .visible = true,
    .named = true,
  },
  [sym_style_element] = {
    .visible = true,
    .named = true,
  },
  [sym_start_tag] = {
    .visible = true,
    .named = true,
  },
  [sym_script_start_tag] = {
    .visible = true,
    .named = true,
  },
  [sym_style_start_tag] = {
    .visible = true,
    .named = true,
  },
  [sym_self_closing_tag] = {
    .visible = true,
    .named = true,
  },
  [sym_end_tag] = {
    .visible = true,
    .named = true,
  },
  [sym_erroneous_end_tag] = {
    .visible = true,
    .named = true,
  },
  [sym_attribute] = {
    .visible = true,
    .named = true,
  },
  [sym_quoted_attribute_value] = {
    .visible = true,
    .named = true,
  },
  [sym_text] = {
    .visible = true,
    .named = true,
  },
  [sym_template_element] = {
    .visible = true,
    .named = true,
  },
  [sym_template_start_tag] = {
    .visible = true,
    .named = true,
  },
  [sym_interpolation] = {
    .visible = true,
    .named = true,
  },
  [sym__attribute] = {
    .visible = false,
    .named = true,
  },
  [sym_directive_attribute] = {
    .visible = true,
    .named = true,
  },
  [sym_dynamic_directive_value] = {
    .visible = true,
    .named = true,
  },
  [sym_directive_modifiers] = {
    .visible = true,
    .named = true,
  },
  [aux_sym_document_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_start_tag_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_directive_attribute_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_directive_modifiers_repeat1] = {
    .visible = false,
    .named = false,
  },
};

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] = 2,
  [5] = 3,
  [6] = 6,
  [7] = 7,
  [8] = 8,
  [9] = 9,
  [10] = 9,
  [11] = 6,
  [12] = 8,
  [13] = 13,
  [14] = 14,
  [15] = 15,
  [16] = 16,
  [17] = 17,
  [18] = 18,
  [19] = 16,
  [20] = 15,
  [21] = 21,
  [22] = 14,
  [23] = 18,
  [24] = 24,
  [25] = 25,
  [26] = 26,
  [27] = 27,
  [28] = 21,
  [29] = 29,
  [30] = 13,
  [31] = 17,
  [32] = 32,
  [33] = 33,
  [34] = 34,
  [35] = 29,
  [36] = 33,
  [37] = 34,
  [38] = 38,
  [39] = 39,
  [40] = 32,
  [41] = 41,
  [42] = 42,
  [43] = 43,
  [44] = 42,
  [45] = 38,
  [46] = 41,
  [47] = 39,
  [48] = 48,
  [49] = 49,
  [50] = 50,
  [51] = 51,
  [52] = 49,
  [53] = 53,
  [54] = 43,
  [55] = 55,
  [56] = 56,
  [57] = 57,
  [58] = 48,
  [59] = 59,
  [60] = 60,
  [61] = 61,
  [62] = 62,
  [63] = 63,
  [64] = 64,
  [65] = 65,
  [66] = 66,
  [67] = 60,
  [68] = 68,
  [69] = 69,
  [70] = 70,
  [71] = 71,
  [72] = 68,
  [73] = 73,
  [74] = 63,
  [75] = 65,
  [76] = 66,
  [77] = 70,
  [78] = 78,
  [79] = 79,
  [80] = 80,
  [81] = 81,
  [82] = 82,
  [83] = 83,
  [84] = 84,
  [85] = 62,
  [86] = 71,
  [87] = 64,
  [88] = 51,
  [89] = 78,
  [90] = 57,
  [91] = 79,
  [92] = 80,
  [93] = 56,
  [94] = 81,
  [95] = 82,
  [96] = 59,
  [97] = 55,
  [98] = 53,
  [99] = 50,
  [100] = 83,
  [101] = 84,
  [102] = 73,
  [103] = 103,
  [104] = 104,
  [105] = 105,
  [106] = 106,
  [107] = 107,
  [108] = 108,
  [109] = 109,
  [110] = 110,
  [111] = 110,
  [112] = 107,
  [113] = 109,
  [114] = 105,
  [115] = 106,
  [116] = 108,
  [117] = 117,
  [118] = 118,
  [119] = 119,
  [120] = 117,
  [121] = 118,
  [122] = 122,
  [123] = 119,
  [124] = 122,
  [125] = 125,
  [126] = 126,
  [127] = 127,
  [128] = 128,
  [129] = 129,
  [130] = 130,
  [131] = 130,
  [132] = 132,
  [133] = 126,
  [134] = 134,
  [135] = 135,
  [136] = 136,
  [137] = 125,
  [138] = 136,
  [139] = 134,
  [140] = 129,
  [141] = 141,
  [142] = 126,
  [143] = 126,
  [144] = 135,
  [145] = 145,
  [146] = 146,
  [147] = 147,
  [148] = 148,
  [149] = 149,
  [150] = 150,
  [151] = 151,
  [152] = 152,
  [153] = 153,
  [154] = 148,
  [155] = 155,
  [156] = 146,
  [157] = 147,
  [158] = 149,
  [159] = 155,
  [160] = 160,
  [161] = 160,
  [162] = 162,
  [163] = 163,
  [164] = 163,
  [165] = 153,
  [166] = 152,
  [167] = 150,
  [168] = 162,
  [169] = 145,
};

static bool ts_lex(TSLexer *lexer, TSStateId state) {
  START_LEXER();
  eof = lexer->eof(lexer);
  switch (state) {
    case 0:
      if (eof) ADVANCE(27);
      ADVANCE_MAP(
        '"', 84,
        '#', 93,
        '&', 6,
        '\'', 81,
        '.', 99,
        '/', 9,
        ':', 89,
        '<', 33,
        '=', 36,
        '>', 31,
        '@', 92,
        '[', 96,
        ']', 97,
        'v', 8,
        '{', 12,
        '}', 13,
        'D', 16,
        'd', 16,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(26);
      END_STATE();
    case 1:
      if (lookahead == '"') ADVANCE(84);
      if (lookahead == '\'') ADVANCE(81);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(1);
      if (lookahead != 0 &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(40);
      END_STATE();
    case 2:
      if (lookahead == '"') ADVANCE(84);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(85);
      if (lookahead != 0) ADVANCE(86);
      END_STATE();
    case 3:
      ADVANCE_MAP(
        '#', 93,
        '.', 99,
        '/', 9,
        ':', 89,
        '=', 36,
        '>', 31,
        '@', 92,
        'v', 37,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(5);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '#' &&
          lookahead != '\'' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(39);
      END_STATE();
    case 4:
      ADVANCE_MAP(
        '#', 93,
        '.', 99,
        '/', 9,
        ':', 90,
        '=', 36,
        '>', 31,
        '@', 92,
        'v', 37,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(5);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '#' &&
          lookahead != '\'' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(39);
      END_STATE();
    case 5:
      ADVANCE_MAP(
        '#', 93,
        '.', 91,
        '/', 9,
        ':', 90,
        '=', 36,
        '>', 31,
        '@', 92,
        'v', 37,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(5);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '#' &&
          lookahead != '\'' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(39);
      END_STATE();
    case 6:
      if (lookahead == '#') ADVANCE(19);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(80);
      END_STATE();
    case 7:
      if (lookahead == '\'') ADVANCE(81);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(82);
      if (lookahead != 0) ADVANCE(83);
      END_STATE();
    case 8:
      if (lookahead == '-') ADVANCE(24);
      END_STATE();
    case 9:
      if (lookahead == '>') ADVANCE(34);
      END_STATE();
    case 10:
      if (lookahead == '[') ADVANCE(96);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(21);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\'' &&
          lookahead != '.' &&
          lookahead != '/' &&
          lookahead != ':' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(95);
      END_STATE();
    case 11:
      if (lookahead == ']') ADVANCE(97);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '\'' &&
          lookahead != '/' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(98);
      END_STATE();
    case 12:
      if (lookahead == '{') ADVANCE(87);
      END_STATE();
    case 13:
      if (lookahead == '}') ADVANCE(88);
      END_STATE();
    case 14:
      if (lookahead == 'C' ||
          lookahead == 'c') ADVANCE(18);
      END_STATE();
    case 15:
      if (lookahead == 'E' ||
          lookahead == 'e') ADVANCE(32);
      END_STATE();
    case 16:
      if (lookahead == 'O' ||
          lookahead == 'o') ADVANCE(14);
      END_STATE();
    case 17:
      if (lookahead == 'P' ||
          lookahead == 'p') ADVANCE(15);
      END_STATE();
    case 18:
      if (lookahead == 'T' ||
          lookahead == 't') ADVANCE(20);
      END_STATE();
    case 19:
      if (lookahead == 'X' ||
          lookahead == 'x') ADVANCE(23);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(46);
      END_STATE();
    case 20:
      if (lookahead == 'Y' ||
          lookahead == 'y') ADVANCE(17);
      END_STATE();
    case 21:
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(21);
      if (lookahead != 0 &&
          lookahead != '"' &&
          lookahead != '\'' &&
          lookahead != '.' &&
          lookahead != '/' &&
          lookahead != ':' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(95);
      END_STATE();
    case 22:
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(29);
      if (lookahead != 0 &&
          lookahead != '>') ADVANCE(30);
      END_STATE();
    case 23:
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(51);
      END_STATE();
    case 24:
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '\'' &&
          lookahead != '.' &&
          lookahead != '/' &&
          lookahead != ':' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(94);
      END_STATE();
    case 25:
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '\'' &&
          lookahead != '.' &&
          lookahead != '/' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(100);
      END_STATE();
    case 26:
      if (eof) ADVANCE(27);
      ADVANCE_MAP(
        '"', 84,
        '#', 93,
        '&', 6,
        '\'', 81,
        '.', 91,
        '/', 9,
        ':', 90,
        '<', 33,
        '=', 36,
        '>', 31,
        '@', 92,
        'v', 8,
        '{', 12,
        '}', 13,
        'D', 16,
        'd', 16,
      );
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') SKIP(26);
      END_STATE();
    case 27:
      ACCEPT_TOKEN(ts_builtin_sym_end);
      END_STATE();
    case 28:
      ACCEPT_TOKEN(anon_sym_LT_BANG);
      END_STATE();
    case 29:
      ACCEPT_TOKEN(aux_sym_doctype_token1);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(29);
      if (lookahead != 0 &&
          lookahead != '>') ADVANCE(30);
      END_STATE();
    case 30:
      ACCEPT_TOKEN(aux_sym_doctype_token1);
      if (lookahead != 0 &&
          lookahead != '>') ADVANCE(30);
      END_STATE();
    case 31:
      ACCEPT_TOKEN(anon_sym_GT);
      END_STATE();
    case 32:
      ACCEPT_TOKEN(sym__doctype);
      END_STATE();
    case 33:
      ACCEPT_TOKEN(anon_sym_LT);
      if (lookahead == '!') ADVANCE(28);
      if (lookahead == '/') ADVANCE(35);
      END_STATE();
    case 34:
      ACCEPT_TOKEN(anon_sym_SLASH_GT);
      END_STATE();
    case 35:
      ACCEPT_TOKEN(anon_sym_LT_SLASH);
      END_STATE();
    case 36:
      ACCEPT_TOKEN(anon_sym_EQ);
      END_STATE();
    case 37:
      ACCEPT_TOKEN(sym_attribute_name);
      if (lookahead == '-') ADVANCE(38);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '\'' &&
          lookahead != '/' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(39);
      END_STATE();
    case 38:
      ACCEPT_TOKEN(sym_attribute_name);
      if (lookahead == '.' ||
          lookahead == ':') ADVANCE(39);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '\'' &&
          lookahead != '.' &&
          lookahead != '/' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(94);
      END_STATE();
    case 39:
      ACCEPT_TOKEN(sym_attribute_name);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '\'' &&
          lookahead != '/' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(39);
      END_STATE();
    case 40:
      ACCEPT_TOKEN(sym_attribute_value);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '\'' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(40);
      END_STATE();
    case 41:
      ACCEPT_TOKEN(sym_entity);
      END_STATE();
    case 42:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      END_STATE();
    case 43:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(42);
      END_STATE();
    case 44:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(43);
      END_STATE();
    case 45:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(44);
      END_STATE();
    case 46:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('0' <= lookahead && lookahead <= '9')) ADVANCE(45);
      END_STATE();
    case 47:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(42);
      END_STATE();
    case 48:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(47);
      END_STATE();
    case 49:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(48);
      END_STATE();
    case 50:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(49);
      END_STATE();
    case 51:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'F') ||
          ('a' <= lookahead && lookahead <= 'f')) ADVANCE(50);
      END_STATE();
    case 52:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(42);
      END_STATE();
    case 53:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(52);
      END_STATE();
    case 54:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(53);
      END_STATE();
    case 55:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(54);
      END_STATE();
    case 56:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(55);
      END_STATE();
    case 57:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(56);
      END_STATE();
    case 58:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(57);
      END_STATE();
    case 59:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(58);
      END_STATE();
    case 60:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(59);
      END_STATE();
    case 61:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(60);
      END_STATE();
    case 62:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(61);
      END_STATE();
    case 63:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(62);
      END_STATE();
    case 64:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(63);
      END_STATE();
    case 65:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(64);
      END_STATE();
    case 66:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(65);
      END_STATE();
    case 67:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(66);
      END_STATE();
    case 68:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(67);
      END_STATE();
    case 69:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(68);
      END_STATE();
    case 70:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(69);
      END_STATE();
    case 71:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(70);
      END_STATE();
    case 72:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(71);
      END_STATE();
    case 73:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(72);
      END_STATE();
    case 74:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(73);
      END_STATE();
    case 75:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(74);
      END_STATE();
    case 76:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(75);
      END_STATE();
    case 77:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(76);
      END_STATE();
    case 78:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(77);
      END_STATE();
    case 79:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(78);
      END_STATE();
    case 80:
      ACCEPT_TOKEN(sym_entity);
      if (lookahead == ';') ADVANCE(41);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(79);
      END_STATE();
    case 81:
      ACCEPT_TOKEN(anon_sym_SQUOTE);
      END_STATE();
    case 82:
      ACCEPT_TOKEN(aux_sym_quoted_attribute_value_token1);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(82);
      if (lookahead != 0 &&
          lookahead != '\'') ADVANCE(83);
      END_STATE();
    case 83:
      ACCEPT_TOKEN(aux_sym_quoted_attribute_value_token1);
      if (lookahead != 0 &&
          lookahead != '\'') ADVANCE(83);
      END_STATE();
    case 84:
      ACCEPT_TOKEN(anon_sym_DQUOTE);
      END_STATE();
    case 85:
      ACCEPT_TOKEN(aux_sym_quoted_attribute_value_token2);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(85);
      if (lookahead != 0 &&
          lookahead != '"') ADVANCE(86);
      END_STATE();
    case 86:
      ACCEPT_TOKEN(aux_sym_quoted_attribute_value_token2);
      if (lookahead != 0 &&
          lookahead != '"') ADVANCE(86);
      END_STATE();
    case 87:
      ACCEPT_TOKEN(anon_sym_LBRACE_LBRACE);
      END_STATE();
    case 88:
      ACCEPT_TOKEN(anon_sym_RBRACE_RBRACE);
      END_STATE();
    case 89:
      ACCEPT_TOKEN(anon_sym_COLON);
      END_STATE();
    case 90:
      ACCEPT_TOKEN(anon_sym_COLON2);
      END_STATE();
    case 91:
      ACCEPT_TOKEN(anon_sym_DOT);
      END_STATE();
    case 92:
      ACCEPT_TOKEN(anon_sym_AT);
      END_STATE();
    case 93:
      ACCEPT_TOKEN(anon_sym_POUND);
      END_STATE();
    case 94:
      ACCEPT_TOKEN(sym_directive_name);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '\'' &&
          lookahead != '.' &&
          lookahead != '/' &&
          lookahead != ':' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(94);
      END_STATE();
    case 95:
      ACCEPT_TOKEN(sym_directive_value);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '\'' &&
          lookahead != '.' &&
          lookahead != '/' &&
          lookahead != ':' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(95);
      END_STATE();
    case 96:
      ACCEPT_TOKEN(anon_sym_LBRACK);
      END_STATE();
    case 97:
      ACCEPT_TOKEN(anon_sym_RBRACK);
      END_STATE();
    case 98:
      ACCEPT_TOKEN(sym_dynamic_directive_inner_value);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '\'' &&
          lookahead != '/' &&
          (lookahead < '<' || '>' < lookahead) &&
          lookahead != ']') ADVANCE(98);
      END_STATE();
    case 99:
      ACCEPT_TOKEN(anon_sym_DOT2);
      END_STATE();
    case 100:
      ACCEPT_TOKEN(sym_directive_modifier);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '\'' &&
          lookahead != '.' &&
          lookahead != '/' &&
          (lookahead < '<' || '>' < lookahead)) ADVANCE(100);
      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 = 3},
  [3] = {.lex_state = 0, .external_lex_state = 3},
  [4] = {.lex_state = 0, .external_lex_state = 3},
  [5] = {.lex_state = 0, .external_lex_state = 3},
  [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 = 3},
  [11] = {.lex_state = 0, .external_lex_state = 2},
  [12] = {.lex_state = 0, .external_lex_state = 2},
  [13] = {.lex_state = 4, .external_lex_state = 4},
  [14] = {.lex_state = 5, .external_lex_state = 4},
  [15] = {.lex_state = 5, .external_lex_state = 4},
  [16] = {.lex_state = 5, .external_lex_state = 4},
  [17] = {.lex_state = 3, .external_lex_state = 4},
  [18] = {.lex_state = 5, .external_lex_state = 4},
  [19] = {.lex_state = 5, .external_lex_state = 4},
  [20] = {.lex_state = 5, .external_lex_state = 4},
  [21] = {.lex_state = 5, .external_lex_state = 4},
  [22] = {.lex_state = 5, .external_lex_state = 4},
  [23] = {.lex_state = 5, .external_lex_state = 4},
  [24] = {.lex_state = 5, .external_lex_state = 5},
  [25] = {.lex_state = 5, .external_lex_state = 5},
  [26] = {.lex_state = 5, .external_lex_state = 5},
  [27] = {.lex_state = 5, .external_lex_state = 5},
  [28] = {.lex_state = 5, .external_lex_state = 5},
  [29] = {.lex_state = 4, .external_lex_state = 4},
  [30] = {.lex_state = 4, .external_lex_state = 5},
  [31] = {.lex_state = 3, .external_lex_state = 5},
  [32] = {.lex_state = 4, .external_lex_state = 4},
  [33] = {.lex_state = 4, .external_lex_state = 4},
  [34] = {.lex_state = 4, .external_lex_state = 4},
  [35] = {.lex_state = 4, .external_lex_state = 5},
  [36] = {.lex_state = 4, .external_lex_state = 5},
  [37] = {.lex_state = 4, .external_lex_state = 5},
  [38] = {.lex_state = 4, .external_lex_state = 4},
  [39] = {.lex_state = 4, .external_lex_state = 4},
  [40] = {.lex_state = 4, .external_lex_state = 5},
  [41] = {.lex_state = 4, .external_lex_state = 4},
  [42] = {.lex_state = 4, .external_lex_state = 4},
  [43] = {.lex_state = 5, .external_lex_state = 4},
  [44] = {.lex_state = 4, .external_lex_state = 5},
  [45] = {.lex_state = 4, .external_lex_state = 5},
  [46] = {.lex_state = 4, .external_lex_state = 5},
  [47] = {.lex_state = 4, .external_lex_state = 5},
  [48] = {.lex_state = 5, .external_lex_state = 4},
  [49] = {.lex_state = 5, .external_lex_state = 4},
  [50] = {.lex_state = 5, .external_lex_state = 4},
  [51] = {.lex_state = 5, .external_lex_state = 4},
  [52] = {.lex_state = 5, .external_lex_state = 5},
  [53] = {.lex_state = 5, .external_lex_state = 4},
  [54] = {.lex_state = 5, .external_lex_state = 5},
  [55] = {.lex_state = 5, .external_lex_state = 4},
  [56] = {.lex_state = 5, .external_lex_state = 4},
  [57] = {.lex_state = 5, .external_lex_state = 4},
  [58] = {.lex_state = 5, .external_lex_state = 5},
  [59] = {.lex_state = 5, .external_lex_state = 4},
  [60] = {.lex_state = 0, .external_lex_state = 3},
  [61] = {.lex_state = 0, .external_lex_state = 3},
  [62] = {.lex_state = 0, .external_lex_state = 2},
  [63] = {.lex_state = 0, .external_lex_state = 2},
  [64] = {.lex_state = 0, .external_lex_state = 2},
  [65] = {.lex_state = 0, .external_lex_state = 2},
  [66] = {.lex_state = 0, .external_lex_state = 2},
  [67] = {.lex_state = 0, .external_lex_state = 2},
  [68] = {.lex_state = 0, .external_lex_state = 2},
  [69] = {.lex_state = 0, .external_lex_state = 3},
  [70] = {.lex_state = 0, .external_lex_state = 2},
  [71] = {.lex_state = 0, .external_lex_state = 3},
  [72] = {.lex_state = 0, .external_lex_state = 3},
  [73] = {.lex_state = 0, .external_lex_state = 3},
  [74] = {.lex_state = 0, .external_lex_state = 3},
  [75] = {.lex_state = 0, .external_lex_state = 3},
  [76] = {.lex_state = 0, .external_lex_state = 3},
  [77] = {.lex_state = 0, .external_lex_state = 3},
  [78] = {.lex_state = 0, .external_lex_state = 3},
  [79] = {.lex_state = 0, .external_lex_state = 3},
  [80] = {.lex_state = 0, .external_lex_state = 3},
  [81] = {.lex_state = 0, .external_lex_state = 3},
  [82] = {.lex_state = 0, .external_lex_state = 3},
  [83] = {.lex_state = 0, .external_lex_state = 3},
  [84] = {.lex_state = 0, .external_lex_state = 3},
  [85] = {.lex_state = 0, .external_lex_state = 3},
  [86] = {.lex_state = 0, .external_lex_state = 2},
  [87] = {.lex_state = 0, .external_lex_state = 3},
  [88] = {.lex_state = 5, .external_lex_state = 5},
  [89] = {.lex_state = 0, .external_lex_state = 2},
  [90] = {.lex_state = 5, .external_lex_state = 5},
  [91] = {.lex_state = 0, .external_lex_state = 2},
  [92] = {.lex_state = 0, .external_lex_state = 2},
  [93] = {.lex_state = 5, .external_lex_state = 5},
  [94] = {.lex_state = 0, .external_lex_state = 2},
  [95] = {.lex_state = 0, .external_lex_state = 2},
  [96] = {.lex_state = 5, .external_lex_state = 5},
  [97] = {.lex_state = 5, .external_lex_state = 5},
  [98] = {.lex_state = 5, .external_lex_state = 5},
  [99] = {.lex_state = 5, .external_lex_state = 5},
  [100] = {.lex_state = 0, .external_lex_state = 2},
  [101] = {.lex_state = 0, .external_lex_state = 2},
  [102] = {.lex_state = 0, .external_lex_state = 2},
  [103] = {.lex_state = 0, .external_lex_state = 2},
  [104] = {.lex_state = 0, .external_lex_state = 2},
  [105] = {.lex_state = 1, .external_lex_state = 5},
  [106] = {.lex_state = 1, .external_lex_state = 5},
  [107] = {.lex_state = 1, .external_lex_state = 5},
  [108] = {.lex_state = 0, .external_lex_state = 6},
  [109] = {.lex_state = 1, .external_lex_state = 5},
  [110] = {.lex_state = 1, .external_lex_state = 5},
  [111] = {.lex_state = 1, .external_lex_state = 5},
  [112] = {.lex_state = 1, .external_lex_state = 5},
  [113] = {.lex_state = 1, .external_lex_state = 5},
  [114] = {.lex_state = 1, .external_lex_state = 5},
  [115] = {.lex_state = 1, .external_lex_state = 5},
  [116] = {.lex_state = 0, .external_lex_state = 6},
  [117] = {.lex_state = 0, .external_lex_state = 7},
  [118] = {.lex_state = 0, .external_lex_state = 7},
  [119] = {.lex_state = 10, .external_lex_state = 5},
  [120] = {.lex_state = 0, .external_lex_state = 7},
  [121] = {.lex_state = 0, .external_lex_state = 7},
  [122] = {.lex_state = 10, .external_lex_state = 5},
  [123] = {.lex_state = 10, .external_lex_state = 5},
  [124] = {.lex_state = 10, .external_lex_state = 5},
  [125] = {.lex_state = 2, .external_lex_state = 5},
  [126] = {.lex_state = 0, .external_lex_state = 8},
  [127] = {.lex_state = 0, .external_lex_state = 7},
  [128] = {.lex_state = 0, .external_lex_state = 7},
  [129] = {.lex_state = 7, .external_lex_state = 5},
  [130] = {.lex_state = 0, .external_lex_state = 9},
  [131] = {.lex_state = 0, .external_lex_state = 9},
  [132] = {.lex_state = 0, .external_lex_state = 7},
  [133] = {.lex_state = 0, .external_lex_state = 8},
  [134] = {.lex_state = 11, .external_lex_state = 5},
  [135] = {.lex_state = 0, .external_lex_state = 5},
  [136] = {.lex_state = 0, .external_lex_state = 5},
  [137] = {.lex_state = 2, .external_lex_state = 5},
  [138] = {.lex_state = 0, .external_lex_state = 5},
  [139] = {.lex_state = 11, .external_lex_state = 5},
  [140] = {.lex_state = 7, .external_lex_state = 5},
  [141] = {.lex_state = 0, .external_lex_state = 7},
  [142] = {.lex_state = 0, .external_lex_state = 8},
  [143] = {.lex_state = 0, .external_lex_state = 8},
  [144] = {.lex_state = 0, .external_lex_state = 5},
  [145] = {.lex_state = 0, .external_lex_state = 5},
  [146] = {.lex_state = 0, .external_lex_state = 5},
  [147] = {.lex_state = 0, .external_lex_state = 5},
  [148] = {.lex_state = 25, .external_lex_state = 5},
  [149] = {.lex_state = 0, .external_lex_state = 5},
  [150] = {.lex_state = 0, .external_lex_state = 5},
  [151] = {.lex_state = 0, .external_lex_state = 5},
  [152] = {.lex_state = 22, .external_lex_state = 5},
  [153] = {.lex_state = 0, .external_lex_state = 10},
  [154] = {.lex_state = 25, .external_lex_state = 5},
  [155] = {.lex_state = 0, .external_lex_state = 5},
  [156] = {.lex_state = 0, .external_lex_state = 5},
  [157] = {.lex_state = 0, .external_lex_state = 5},
  [158] = {.lex_state = 0, .external_lex_state = 5},
  [159] = {.lex_state = 0, .external_lex_state = 5},
  [160] = {.lex_state = 0, .external_lex_state = 5},
  [161] = {.lex_state = 0, .external_lex_state = 5},
  [162] = {.lex_state = 0, .external_lex_state = 11},
  [163] = {.lex_state = 0, .external_lex_state = 5},
  [164] = {.lex_state = 0, .external_lex_state = 5},
  [165] = {.lex_state = 0, .external_lex_state = 10},
  [166] = {.lex_state = 22, .external_lex_state = 5},
  [167] = {.lex_state = 0, .external_lex_state = 5},
  [168] = {.lex_state = 0, .external_lex_state = 11},
  [169] = {.lex_state = 0, .external_lex_state = 5},
};

static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
  [STATE(0)] = {
    [ts_builtin_sym_end] = ACTIONS(1),
    [anon_sym_LT_BANG] = ACTIONS(1),
    [anon_sym_GT] = ACTIONS(1),
    [sym__doctype] = ACTIONS(1),
    [anon_sym_LT] = ACTIONS(1),
    [anon_sym_SLASH_GT] = ACTIONS(1),
    [anon_sym_LT_SLASH] = ACTIONS(1),
    [anon_sym_EQ] = ACTIONS(1),
    [sym_entity] = ACTIONS(1),
    [anon_sym_SQUOTE] = ACTIONS(1),
    [anon_sym_DQUOTE] = ACTIONS(1),
    [anon_sym_LBRACE_LBRACE] = ACTIONS(1),
    [anon_sym_RBRACE_RBRACE] = ACTIONS(1),
    [anon_sym_COLON] = ACTIONS(1),
    [anon_sym_COLON2] = ACTIONS(1),
    [anon_sym_DOT] = ACTIONS(1),
    [anon_sym_AT] = ACTIONS(1),
    [anon_sym_POUND] = ACTIONS(1),
    [sym_directive_name] = ACTIONS(1),
    [anon_sym_LBRACK] = ACTIONS(1),
    [anon_sym_RBRACK] = ACTIONS(1),
    [anon_sym_DOT2] = ACTIONS(1),
    [sym__start_tag_name] = ACTIONS(1),
    [sym__script_start_tag_name] = ACTIONS(1),
    [sym__style_start_tag_name] = ACTIONS(1),
    [sym__end_tag_name] = ACTIONS(1),
    [sym_erroneous_end_tag_name] = ACTIONS(1),
    [sym__implicit_end_tag] = ACTIONS(1),
    [sym_raw_text] = ACTIONS(1),
    [sym_comment] = ACTIONS(3),
    [sym__template_start_tag_name] = ACTIONS(1),
    [sym__text_fragment] = ACTIONS(1),
    [sym__interpolation_text] = ACTIONS(1),
  },
  [STATE(1)] = {
    [sym_document] = STATE(151),
    [sym_doctype] = STATE(7),
    [sym__node] = STATE(7),
    [sym_element] = STATE(7),
    [sym_script_element] = STATE(7),
    [sym_style_element] = STATE(7),
    [sym_start_tag] = STATE(2),
    [sym_script_start_tag] = STATE(117),
    [sym_style_start_tag] = STATE(118),
    [sym_self_closing_tag] = STATE(68),
    [sym_erroneous_end_tag] = STATE(7),
    [sym_text] = STATE(7),
    [sym_template_element] = STATE(7),
    [sym_template_start_tag] = STATE(6),
    [sym_interpolation] = STATE(7),
    [aux_sym_document_repeat1] = STATE(7),
    [ts_builtin_sym_end] = ACTIONS(5),
    [anon_sym_LT_BANG] = ACTIONS(7),
    [anon_sym_LT] = ACTIONS(9),
    [anon_sym_LT_SLASH] = ACTIONS(11),
    [sym_entity] = ACTIONS(13),
    [anon_sym_LBRACE_LBRACE] = ACTIONS(15),
    [sym_comment] = ACTIONS(3),
    [sym__text_fragment] = ACTIONS(17),
  },
};

static const uint16_t ts_small_parse_table[] = {
  [0] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LT_BANG,
    ACTIONS(21), 1,
      anon_sym_LT,
    ACTIONS(23), 1,
      anon_sym_LT_SLASH,
    ACTIONS(25), 1,
      sym_entity,
    ACTIONS(27), 1,
      anon_sym_LBRACE_LBRACE,
    ACTIONS(29), 1,
      sym__implicit_end_tag,
    ACTIONS(31), 1,
      sym__text_fragment,
    STATE(4), 1,
      sym_start_tag,
    STATE(11), 1,
      sym_template_start_tag,
    STATE(63), 1,
      sym_end_tag,
    STATE(72), 1,
      sym_self_closing_tag,
    STATE(120), 1,
      sym_script_start_tag,
    STATE(121), 1,
      sym_style_start_tag,
    STATE(3), 10,
      sym_doctype,
      sym__node,
      sym_element,
      sym_script_element,
      sym_style_element,
      sym_erroneous_end_tag,
      sym_text,
      sym_template_element,
      sym_interpolation,
      aux_sym_document_repeat1,
  [55] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LT_BANG,
    ACTIONS(21), 1,
      anon_sym_LT,
    ACTIONS(23), 1,
      anon_sym_LT_SLASH,
    ACTIONS(27), 1,
      anon_sym_LBRACE_LBRACE,
    ACTIONS(31), 1,
      sym__text_fragment,
    ACTIONS(33), 1,
      sym_entity,
    ACTIONS(35), 1,
      sym__implicit_end_tag,
    STATE(4), 1,
      sym_start_tag,
    STATE(11), 1,
      sym_template_start_tag,
    STATE(72), 1,
      sym_self_closing_tag,
    STATE(92), 1,
      sym_end_tag,
    STATE(120), 1,
      sym_script_start_tag,
    STATE(121), 1,
      sym_style_start_tag,
    STATE(10), 10,
      sym_doctype,
      sym__node,
      sym_element,
      sym_script_element,
      sym_style_element,
      sym_erroneous_end_tag,
      sym_text,
      sym_template_element,
      sym_interpolation,
      aux_sym_document_repeat1,
  [110] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LT_BANG,
    ACTIONS(21), 1,
      anon_sym_LT,
    ACTIONS(27), 1,
      anon_sym_LBRACE_LBRACE,
    ACTIONS(31), 1,
      sym__text_fragment,
    ACTIONS(37), 1,
      anon_sym_LT_SLASH,
    ACTIONS(39), 1,
      sym_entity,
    ACTIONS(41), 1,
      sym__implicit_end_tag,
    STATE(4), 1,
      sym_start_tag,
    STATE(11), 1,
      sym_template_start_tag,
    STATE(72), 1,
      sym_self_closing_tag,
    STATE(74), 1,
      sym_end_tag,
    STATE(120), 1,
      sym_script_start_tag,
    STATE(121), 1,
      sym_style_start_tag,
    STATE(5), 10,
      sym_doctype,
      sym__node,
      sym_element,
      sym_script_element,
      sym_style_element,
      sym_erroneous_end_tag,
      sym_text,
      sym_template_element,
      sym_interpolation,
      aux_sym_document_repeat1,
  [165] = 15,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(19), 1,
      anon_sym_LT_BANG,
    ACTIONS(21), 1,
      anon_sym_LT,
    ACTIONS(27), 1,
      anon_sym_LBRACE_LBRACE,
    ACTIONS(31), 1,
      sym__text_fragment,
    ACTIONS(33), 1,
      sym_entity,
    ACTIONS(37), 1,
      anon_sym_LT_SLASH,
    ACTIONS(43), 1,
      sym__implicit_end_tag,
    STATE(4), 1,
      sym_start_tag,
    STATE(11), 1,
      sym_template_start_tag,
    STATE(72), 1,
      sym_self_closing_tag,
    STATE(80), 1,
      sym_end_tag,
    STATE(120), 1,
      sym_script_start_tag,
    STATE(121), 1,
      sym_style_start_tag,
    STATE(10), 10,
      sym_doctype,
      sym__node,
      sym_element,
      sym_script_element,
      sym_style_element,
      sym_erroneous_end_tag,
      sym_text,
      sym_template_element,
      sym_interpolation,
      aux_sym_document_repeat1,
  [220] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_LT_BANG,
    ACTIONS(9), 1,
      anon_sym_LT,
    ACTIONS(15), 1,
      anon_sym_LBRACE_LBRACE,
    ACTIONS(17), 1,
      sym__text_fragment,
    ACTIONS(45), 1,
      anon_sym_LT_SLASH,
    ACTIONS(47), 1,
      sym_entity,
    STATE(2), 1,
      sym_start_tag,
    STATE(6), 1,
      sym_template_start_tag,
    STATE(67), 1,
      sym_end_tag,
    STATE(68), 1,
      sym_self_closing_tag,
    STATE(117), 1,
      sym_script_start_tag,
    STATE(118), 1,
      sym_style_start_tag,
    STATE(8), 10,
      sym_doctype,
      sym__node,
      sym_element,
      sym_script_element,
      sym_style_element,
      sym_erroneous_end_tag,
      sym_text,
      sym_template_element,
      sym_interpolation,
      aux_sym_document_repeat1,
  [272] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_LT_BANG,
    ACTIONS(9), 1,
      anon_sym_LT,
    ACTIONS(11), 1,
      anon_sym_LT_SLASH,
    ACTIONS(15), 1,
      anon_sym_LBRACE_LBRACE,
    ACTIONS(17), 1,
      sym__text_fragment,
    ACTIONS(49), 1,
      ts_builtin_sym_end,
    ACTIONS(51), 1,
      sym_entity,
    STATE(2), 1,
      sym_start_tag,
    STATE(6), 1,
      sym_template_start_tag,
    STATE(68), 1,
      sym_self_closing_tag,
    STATE(117), 1,
      sym_script_start_tag,
    STATE(118), 1,
      sym_style_start_tag,
    STATE(9), 10,
      sym_doctype,
      sym__node,
      sym_element,
      sym_script_element,
      sym_style_element,
      sym_erroneous_end_tag,
      sym_text,
      sym_template_element,
      sym_interpolation,
      aux_sym_document_repeat1,
  [324] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_LT_BANG,
    ACTIONS(9), 1,
      anon_sym_LT,
    ACTIONS(15), 1,
      anon_sym_LBRACE_LBRACE,
    ACTIONS(17), 1,
      sym__text_fragment,
    ACTIONS(45), 1,
      anon_sym_LT_SLASH,
    ACTIONS(51), 1,
      sym_entity,
    STATE(2), 1,
      sym_start_tag,
    STATE(6), 1,
      sym_template_start_tag,
    STATE(68), 1,
      sym_self_closing_tag,
    STATE(100), 1,
      sym_end_tag,
    STATE(117), 1,
      sym_script_start_tag,
    STATE(118), 1,
      sym_style_start_tag,
    STATE(9), 10,
      sym_doctype,
      sym__node,
      sym_element,
      sym_script_element,
      sym_style_element,
      sym_erroneous_end_tag,
      sym_text,
      sym_template_element,
      sym_interpolation,
      aux_sym_document_repeat1,
  [376] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(53), 1,
      ts_builtin_sym_end,
    ACTIONS(55), 1,
      anon_sym_LT_BANG,
    ACTIONS(58), 1,
      anon_sym_LT,
    ACTIONS(61), 1,
      anon_sym_LT_SLASH,
    ACTIONS(64), 1,
      sym_entity,
    ACTIONS(67), 1,
      anon_sym_LBRACE_LBRACE,
    ACTIONS(70), 1,
      sym__text_fragment,
    STATE(2), 1,
      sym_start_tag,
    STATE(6), 1,
      sym_template_start_tag,
    STATE(68), 1,
      sym_self_closing_tag,
    STATE(117), 1,
      sym_script_start_tag,
    STATE(118), 1,
      sym_style_start_tag,
    STATE(9), 10,
      sym_doctype,
      sym__node,
      sym_element,
      sym_script_element,
      sym_style_element,
      sym_erroneous_end_tag,
      sym_text,
      sym_template_element,
      sym_interpolation,
      aux_sym_document_repeat1,
  [428] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(53), 1,
      sym__implicit_end_tag,
    ACTIONS(73), 1,
      anon_sym_LT_BANG,
    ACTIONS(76), 1,
      anon_sym_LT,
    ACTIONS(79), 1,
      anon_sym_LT_SLASH,
    ACTIONS(82), 1,
      sym_entity,
    ACTIONS(85), 1,
      anon_sym_LBRACE_LBRACE,
    ACTIONS(88), 1,
      sym__text_fragment,
    STATE(4), 1,
      sym_start_tag,
    STATE(11), 1,
      sym_template_start_tag,
    STATE(72), 1,
      sym_self_closing_tag,
    STATE(120), 1,
      sym_script_start_tag,
    STATE(121), 1,
      sym_style_start_tag,
    STATE(10), 10,
      sym_doctype,
      sym__node,
      sym_element,
      sym_script_element,
      sym_style_element,
      sym_erroneous_end_tag,
      sym_text,
      sym_template_element,
      sym_interpolation,
      aux_sym_document_repeat1,
  [480] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_LT_BANG,
    ACTIONS(9), 1,
      anon_sym_LT,
    ACTIONS(15), 1,
      anon_sym_LBRACE_LBRACE,
    ACTIONS(17), 1,
      sym__text_fragment,
    ACTIONS(91), 1,
      anon_sym_LT_SLASH,
    ACTIONS(93), 1,
      sym_entity,
    STATE(2), 1,
      sym_start_tag,
    STATE(6), 1,
      sym_template_start_tag,
    STATE(60), 1,
      sym_end_tag,
    STATE(68), 1,
      sym_self_closing_tag,
    STATE(117), 1,
      sym_script_start_tag,
    STATE(118), 1,
      sym_style_start_tag,
    STATE(12), 10,
      sym_doctype,
      sym__node,
      sym_element,
      sym_script_element,
      sym_style_element,
      sym_erroneous_end_tag,
      sym_text,
      sym_template_element,
      sym_interpolation,
      aux_sym_document_repeat1,
  [532] = 14,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(7), 1,
      anon_sym_LT_BANG,
    ACTIONS(9), 1,
      anon_sym_LT,
    ACTIONS(15), 1,
      anon_sym_LBRACE_LBRACE,
    ACTIONS(17), 1,
      sym__text_fragment,
    ACTIONS(51), 1,
      sym_entity,
    ACTIONS(91), 1,
      anon_sym_LT_SLASH,
    STATE(2), 1,
      sym_start_tag,
    STATE(6), 1,
      sym_template_start_tag,
    STATE(68), 1,
      sym_self_closing_tag,
    STATE(83), 1,
      sym_end_tag,
    STATE(117), 1,
      sym_script_start_tag,
    STATE(118), 1,
      sym_style_start_tag,
    STATE(9), 10,
      sym_doctype,
      sym__node,
      sym_element,
      sym_script_element,
      sym_style_element,
      sym_erroneous_end_tag,
      sym_text,
      sym_template_element,
      sym_interpolation,
      aux_sym_document_repeat1,
  [584] = 10,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(97), 1,
      anon_sym_EQ,
    ACTIONS(99), 1,
      sym_attribute_name,
    ACTIONS(103), 1,
      anon_sym_DOT,
    ACTIONS(105), 1,
      anon_sym_DOT2,
    STATE(33), 1,
      aux_sym_directive_attribute_repeat1,
    STATE(34), 1,
      aux_sym_directive_modifiers_repeat1,
    STATE(49), 1,
      sym_directive_modifiers,
    ACTIONS(95), 3,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      sym_directive_name,
    ACTIONS(101), 3,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
  [619] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(107), 1,
      anon_sym_GT,
    ACTIONS(109), 1,
      anon_sym_SLASH_GT,
    ACTIONS(111), 1,
      sym_attribute_name,
    ACTIONS(113), 1,
      sym_directive_name,
    STATE(13), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(101), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(21), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [650] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(111), 1,
      sym_attribute_name,
    ACTIONS(113), 1,
      sym_directive_name,
    ACTIONS(115), 1,
      anon_sym_GT,
    ACTIONS(117), 1,
      anon_sym_SLASH_GT,
    STATE(13), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(101), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(18), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [681] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(111), 1,
      sym_attribute_name,
    ACTIONS(113), 1,
      sym_directive_name,
    ACTIONS(117), 1,
      anon_sym_SLASH_GT,
    ACTIONS(119), 1,
      anon_sym_GT,
    STATE(13), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(101), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(14), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [712] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(97), 1,
      anon_sym_EQ,
    ACTIONS(105), 1,
      anon_sym_DOT2,
    ACTIONS(121), 1,
      anon_sym_COLON,
    STATE(34), 1,
      aux_sym_directive_modifiers_repeat1,
    STATE(49), 1,
      sym_directive_modifiers,
    ACTIONS(99), 3,
      sym_attribute_name,
      anon_sym_COLON2,
      anon_sym_DOT,
    ACTIONS(95), 5,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [743] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(109), 1,
      anon_sym_SLASH_GT,
    ACTIONS(111), 1,
      sym_attribute_name,
    ACTIONS(113), 1,
      sym_directive_name,
    ACTIONS(123), 1,
      anon_sym_GT,
    STATE(13), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(101), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(21), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [774] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(111), 1,
      sym_attribute_name,
    ACTIONS(113), 1,
      sym_directive_name,
    ACTIONS(119), 1,
      anon_sym_GT,
    ACTIONS(125), 1,
      anon_sym_SLASH_GT,
    STATE(13), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(101), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(22), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [805] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(111), 1,
      sym_attribute_name,
    ACTIONS(113), 1,
      sym_directive_name,
    ACTIONS(115), 1,
      anon_sym_GT,
    ACTIONS(125), 1,
      anon_sym_SLASH_GT,
    STATE(13), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(101), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(23), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [836] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(129), 1,
      sym_attribute_name,
    ACTIONS(135), 1,
      sym_directive_name,
    STATE(13), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(127), 2,
      anon_sym_GT,
      anon_sym_SLASH_GT,
    ACTIONS(132), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(21), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [865] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(107), 1,
      anon_sym_GT,
    ACTIONS(111), 1,
      sym_attribute_name,
    ACTIONS(113), 1,
      sym_directive_name,
    ACTIONS(138), 1,
      anon_sym_SLASH_GT,
    STATE(13), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(101), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(21), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [896] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(111), 1,
      sym_attribute_name,
    ACTIONS(113), 1,
      sym_directive_name,
    ACTIONS(123), 1,
      anon_sym_GT,
    ACTIONS(138), 1,
      anon_sym_SLASH_GT,
    STATE(13), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(101), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(21), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [927] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(140), 1,
      anon_sym_GT,
    ACTIONS(142), 1,
      sym_attribute_name,
    ACTIONS(146), 1,
      sym_directive_name,
    STATE(30), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(144), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(26), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [955] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(142), 1,
      sym_attribute_name,
    ACTIONS(146), 1,
      sym_directive_name,
    ACTIONS(148), 1,
      anon_sym_GT,
    STATE(30), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(144), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(27), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [983] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(142), 1,
      sym_attribute_name,
    ACTIONS(146), 1,
      sym_directive_name,
    ACTIONS(150), 1,
      anon_sym_GT,
    STATE(30), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(144), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(28), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [1011] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(142), 1,
      sym_attribute_name,
    ACTIONS(146), 1,
      sym_directive_name,
    ACTIONS(152), 1,
      anon_sym_GT,
    STATE(30), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(144), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(28), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [1039] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(127), 1,
      anon_sym_GT,
    ACTIONS(154), 1,
      sym_attribute_name,
    ACTIONS(160), 1,
      sym_directive_name,
    STATE(30), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(157), 4,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
    STATE(28), 4,
      sym_attribute,
      sym__attribute,
      sym_directive_attribute,
      aux_sym_start_tag_repeat1,
  [1067] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(105), 1,
      anon_sym_DOT2,
    ACTIONS(165), 1,
      anon_sym_EQ,
    STATE(34), 1,
      aux_sym_directive_modifiers_repeat1,
    STATE(48), 1,
      sym_directive_modifiers,
    ACTIONS(167), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(163), 6,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1095] = 10,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(99), 1,
      sym_attribute_name,
    ACTIONS(169), 1,
      anon_sym_EQ,
    ACTIONS(171), 1,
      anon_sym_DOT,
    ACTIONS(173), 1,
      anon_sym_DOT2,
    STATE(36), 1,
      aux_sym_directive_attribute_repeat1,
    STATE(37), 1,
      aux_sym_directive_modifiers_repeat1,
    STATE(52), 1,
      sym_directive_modifiers,
    ACTIONS(95), 2,
      anon_sym_GT,
      sym_directive_name,
    ACTIONS(144), 3,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
  [1129] = 8,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(169), 1,
      anon_sym_EQ,
    ACTIONS(173), 1,
      anon_sym_DOT2,
    ACTIONS(175), 1,
      anon_sym_COLON,
    STATE(37), 1,
      aux_sym_directive_modifiers_repeat1,
    STATE(52), 1,
      sym_directive_modifiers,
    ACTIONS(99), 3,
      sym_attribute_name,
      anon_sym_COLON2,
      anon_sym_DOT,
    ACTIONS(95), 4,
      anon_sym_GT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1159] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(181), 1,
      anon_sym_DOT2,
    STATE(32), 1,
      aux_sym_directive_modifiers_repeat1,
    ACTIONS(179), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(177), 7,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_EQ,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1182] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(186), 1,
      sym_attribute_name,
    ACTIONS(191), 1,
      anon_sym_DOT,
    STATE(33), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(188), 3,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
    ACTIONS(184), 5,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_EQ,
      sym_directive_name,
      anon_sym_DOT2,
  [1207] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(105), 1,
      anon_sym_DOT2,
    STATE(32), 1,
      aux_sym_directive_modifiers_repeat1,
    ACTIONS(196), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(194), 7,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_EQ,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1230] = 7,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(173), 1,
      anon_sym_DOT2,
    ACTIONS(198), 1,
      anon_sym_EQ,
    STATE(37), 1,
      aux_sym_directive_modifiers_repeat1,
    STATE(58), 1,
      sym_directive_modifiers,
    ACTIONS(167), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(163), 5,
      anon_sym_GT,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1257] = 6,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(186), 1,
      sym_attribute_name,
    ACTIONS(203), 1,
      anon_sym_DOT,
    STATE(36), 1,
      aux_sym_directive_attribute_repeat1,
    ACTIONS(200), 3,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
    ACTIONS(184), 4,
      anon_sym_GT,
      anon_sym_EQ,
      sym_directive_name,
      anon_sym_DOT2,
  [1281] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(173), 1,
      anon_sym_DOT2,
    STATE(40), 1,
      aux_sym_directive_modifiers_repeat1,
    ACTIONS(196), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(194), 6,
      anon_sym_GT,
      anon_sym_EQ,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1303] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(208), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(206), 8,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_EQ,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
      anon_sym_DOT2,
  [1321] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(212), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(210), 8,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_EQ,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
      anon_sym_DOT2,
  [1339] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(214), 1,
      anon_sym_DOT2,
    STATE(40), 1,
      aux_sym_directive_modifiers_repeat1,
    ACTIONS(179), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(177), 6,
      anon_sym_GT,
      anon_sym_EQ,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1361] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(179), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(177), 8,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_EQ,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
      anon_sym_DOT2,
  [1379] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(186), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(184), 8,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_EQ,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
      anon_sym_DOT2,
  [1397] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(219), 1,
      anon_sym_EQ,
    ACTIONS(221), 1,
      sym_attribute_name,
    ACTIONS(217), 7,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1416] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(186), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(184), 7,
      anon_sym_GT,
      anon_sym_EQ,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
      anon_sym_DOT2,
  [1433] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(208), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(206), 7,
      anon_sym_GT,
      anon_sym_EQ,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
      anon_sym_DOT2,
  [1450] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(179), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(177), 7,
      anon_sym_GT,
      anon_sym_EQ,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
      anon_sym_DOT2,
  [1467] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(212), 2,
      sym_attribute_name,
      anon_sym_DOT,
    ACTIONS(210), 7,
      anon_sym_GT,
      anon_sym_EQ,
      anon_sym_COLON2,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
      anon_sym_DOT2,
  [1484] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(225), 1,
      anon_sym_EQ,
    ACTIONS(227), 1,
      sym_attribute_name,
    ACTIONS(223), 7,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1503] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(231), 1,
      anon_sym_EQ,
    ACTIONS(233), 1,
      sym_attribute_name,
    ACTIONS(229), 7,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1522] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(237), 1,
      sym_attribute_name,
    ACTIONS(235), 7,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1538] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(241), 1,
      sym_attribute_name,
    ACTIONS(239), 7,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1554] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(233), 1,
      sym_attribute_name,
    ACTIONS(243), 1,
      anon_sym_EQ,
    ACTIONS(229), 6,
      anon_sym_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1572] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(247), 1,
      sym_attribute_name,
    ACTIONS(245), 7,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1588] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(221), 1,
      sym_attribute_name,
    ACTIONS(249), 1,
      anon_sym_EQ,
    ACTIONS(217), 6,
      anon_sym_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1606] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(253), 1,
      sym_attribute_name,
    ACTIONS(251), 7,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1622] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(257), 1,
      sym_attribute_name,
    ACTIONS(255), 7,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1638] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(167), 1,
      sym_attribute_name,
    ACTIONS(163), 7,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1654] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(227), 1,
      sym_attribute_name,
    ACTIONS(259), 1,
      anon_sym_EQ,
    ACTIONS(223), 6,
      anon_sym_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1672] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(227), 1,
      sym_attribute_name,
    ACTIONS(223), 7,
      anon_sym_GT,
      anon_sym_SLASH_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [1688] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(263), 1,
      anon_sym_LT,
    ACTIONS(261), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1703] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(267), 1,
      anon_sym_LT,
    ACTIONS(265), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1718] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(271), 1,
      anon_sym_LT,
    ACTIONS(269), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1733] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(275), 1,
      anon_sym_LT,
    ACTIONS(273), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1748] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(279), 1,
      anon_sym_LT,
    ACTIONS(277), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1763] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(283), 1,
      anon_sym_LT,
    ACTIONS(281), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1778] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(287), 1,
      anon_sym_LT,
    ACTIONS(285), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1793] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(263), 1,
      anon_sym_LT,
    ACTIONS(261), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1808] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(291), 1,
      anon_sym_LT,
    ACTIONS(289), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1823] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(295), 1,
      anon_sym_LT,
    ACTIONS(293), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1838] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(299), 1,
      anon_sym_LT,
    ACTIONS(297), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1853] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(303), 1,
      anon_sym_LT,
    ACTIONS(301), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1868] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(291), 1,
      anon_sym_LT,
    ACTIONS(289), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1883] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(307), 1,
      anon_sym_LT,
    ACTIONS(305), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1898] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(275), 1,
      anon_sym_LT,
    ACTIONS(273), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1913] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(283), 1,
      anon_sym_LT,
    ACTIONS(281), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1928] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(287), 1,
      anon_sym_LT,
    ACTIONS(285), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1943] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(299), 1,
      anon_sym_LT,
    ACTIONS(297), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1958] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(311), 1,
      anon_sym_LT,
    ACTIONS(309), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1973] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(315), 1,
      anon_sym_LT,
    ACTIONS(313), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [1988] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(319), 1,
      anon_sym_LT,
    ACTIONS(317), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2003] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(323), 1,
      anon_sym_LT,
    ACTIONS(321), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2018] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(327), 1,
      anon_sym_LT,
    ACTIONS(325), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2033] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(331), 1,
      anon_sym_LT,
    ACTIONS(329), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2048] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(335), 1,
      anon_sym_LT,
    ACTIONS(333), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2063] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(271), 1,
      anon_sym_LT,
    ACTIONS(269), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2078] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(303), 1,
      anon_sym_LT,
    ACTIONS(301), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2093] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(279), 1,
      anon_sym_LT,
    ACTIONS(277), 6,
      sym__implicit_end_tag,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2108] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(241), 1,
      sym_attribute_name,
    ACTIONS(239), 6,
      anon_sym_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [2123] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(311), 1,
      anon_sym_LT,
    ACTIONS(309), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2138] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(167), 1,
      sym_attribute_name,
    ACTIONS(163), 6,
      anon_sym_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [2153] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(315), 1,
      anon_sym_LT,
    ACTIONS(313), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2168] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(319), 1,
      anon_sym_LT,
    ACTIONS(317), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2183] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(257), 1,
      sym_attribute_name,
    ACTIONS(255), 6,
      anon_sym_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [2198] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(323), 1,
      anon_sym_LT,
    ACTIONS(321), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2213] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(327), 1,
      anon_sym_LT,
    ACTIONS(325), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2228] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(227), 1,
      sym_attribute_name,
    ACTIONS(223), 6,
      anon_sym_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [2243] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(253), 1,
      sym_attribute_name,
    ACTIONS(251), 6,
      anon_sym_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [2258] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(247), 1,
      sym_attribute_name,
    ACTIONS(245), 6,
      anon_sym_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [2273] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(237), 1,
      sym_attribute_name,
    ACTIONS(235), 6,
      anon_sym_GT,
      anon_sym_COLON2,
      anon_sym_DOT,
      anon_sym_AT,
      anon_sym_POUND,
      sym_directive_name,
  [2288] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(331), 1,
      anon_sym_LT,
    ACTIONS(329), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2303] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(335), 1,
      anon_sym_LT,
    ACTIONS(333), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2318] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(307), 1,
      anon_sym_LT,
    ACTIONS(305), 6,
      sym__text_fragment,
      ts_builtin_sym_end,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2333] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(339), 1,
      anon_sym_LT,
    ACTIONS(337), 5,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2347] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(343), 1,
      anon_sym_LT,
    ACTIONS(341), 5,
      sym__text_fragment,
      anon_sym_LT_BANG,
      anon_sym_LT_SLASH,
      sym_entity,
      anon_sym_LBRACE_LBRACE,
  [2361] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(345), 1,
      sym_attribute_value,
    ACTIONS(347), 1,
      anon_sym_SQUOTE,
    ACTIONS(349), 1,
      anon_sym_DQUOTE,
    STATE(59), 1,
      sym_quoted_attribute_value,
  [2377] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(347), 1,
      anon_sym_SQUOTE,
    ACTIONS(349), 1,
      anon_sym_DQUOTE,
    ACTIONS(351), 1,
      sym_attribute_value,
    STATE(50), 1,
      sym_quoted_attribute_value,
  [2393] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(347), 1,
      anon_sym_SQUOTE,
    ACTIONS(349), 1,
      anon_sym_DQUOTE,
    ACTIONS(353), 1,
      sym_attribute_value,
    STATE(53), 1,
      sym_quoted_attribute_value,
  [2409] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(355), 1,
      sym__start_tag_name,
    ACTIONS(357), 1,
      sym__script_start_tag_name,
    ACTIONS(359), 1,
      sym__style_start_tag_name,
    ACTIONS(361), 1,
      sym__template_start_tag_name,
  [2425] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(347), 1,
      anon_sym_SQUOTE,
    ACTIONS(349), 1,
      anon_sym_DQUOTE,
    ACTIONS(363), 1,
      sym_attribute_value,
    STATE(51), 1,
      sym_quoted_attribute_value,
  [2441] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(347), 1,
      anon_sym_SQUOTE,
    ACTIONS(349), 1,
      anon_sym_DQUOTE,
    ACTIONS(365), 1,
      sym_attribute_value,
    STATE(57), 1,
      sym_quoted_attribute_value,
  [2457] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(367), 1,
      sym_attribute_value,
    ACTIONS(369), 1,
      anon_sym_SQUOTE,
    ACTIONS(371), 1,
      anon_sym_DQUOTE,
    STATE(90), 1,
      sym_quoted_attribute_value,
  [2473] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(369), 1,
      anon_sym_SQUOTE,
    ACTIONS(371), 1,
      anon_sym_DQUOTE,
    ACTIONS(373), 1,
      sym_attribute_value,
    STATE(98), 1,
      sym_quoted_attribute_value,
  [2489] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(369), 1,
      anon_sym_SQUOTE,
    ACTIONS(371), 1,
      anon_sym_DQUOTE,
    ACTIONS(375), 1,
      sym_attribute_value,
    STATE(88), 1,
      sym_quoted_attribute_value,
  [2505] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(369), 1,
      anon_sym_SQUOTE,
    ACTIONS(371), 1,
      anon_sym_DQUOTE,
    ACTIONS(377), 1,
      sym_attribute_value,
    STATE(96), 1,
      sym_quoted_attribute_value,
  [2521] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(369), 1,
      anon_sym_SQUOTE,
    ACTIONS(371), 1,
      anon_sym_DQUOTE,
    ACTIONS(379), 1,
      sym_attribute_value,
    STATE(99), 1,
      sym_quoted_attribute_value,
  [2537] = 5,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(357), 1,
      sym__script_start_tag_name,
    ACTIONS(359), 1,
      sym__style_start_tag_name,
    ACTIONS(381), 1,
      sym__start_tag_name,
    ACTIONS(383), 1,
      sym__template_start_tag_name,
  [2553] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(385), 1,
      anon_sym_LT_SLASH,
    ACTIONS(387), 1,
      sym_raw_text,
    STATE(65), 1,
      sym_end_tag,
  [2566] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(385), 1,
      anon_sym_LT_SLASH,
    ACTIONS(389), 1,
      sym_raw_text,
    STATE(66), 1,
      sym_end_tag,
  [2579] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(391), 1,
      sym_directive_value,
    ACTIONS(393), 1,
      anon_sym_LBRACK,
    STATE(42), 1,
      sym_dynamic_directive_value,
  [2592] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(395), 1,
      anon_sym_LT_SLASH,
    ACTIONS(397), 1,
      sym_raw_text,
    STATE(75), 1,
      sym_end_tag,
  [2605] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(395), 1,
      anon_sym_LT_SLASH,
    ACTIONS(399), 1,
      sym_raw_text,
    STATE(76), 1,
      sym_end_tag,
  [2618] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(401), 1,
      sym_directive_value,
    ACTIONS(403), 1,
      anon_sym_LBRACK,
    STATE(35), 1,
      sym_dynamic_directive_value,
  [2631] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(403), 1,
      anon_sym_LBRACK,
    ACTIONS(405), 1,
      sym_directive_value,
    STATE(44), 1,
      sym_dynamic_directive_value,
  [2644] = 4,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(393), 1,
      anon_sym_LBRACK,
    ACTIONS(407), 1,
      sym_directive_value,
    STATE(29), 1,
      sym_dynamic_directive_value,
  [2657] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(409), 1,
      anon_sym_DQUOTE,
    ACTIONS(411), 1,
      aux_sym_quoted_attribute_value_token2,
  [2667] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(413), 1,
      sym__end_tag_name,
    ACTIONS(415), 1,
      sym_erroneous_end_tag_name,
  [2677] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(417), 2,
      sym_raw_text,
      anon_sym_LT_SLASH,
  [2685] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(419), 2,
      sym_raw_text,
      anon_sym_LT_SLASH,
  [2693] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(421), 1,
      anon_sym_SQUOTE,
    ACTIONS(423), 1,
      aux_sym_quoted_attribute_value_token1,
  [2703] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(425), 1,
      anon_sym_RBRACE_RBRACE,
    ACTIONS(427), 1,
      sym__interpolation_text,
  [2713] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(429), 1,
      anon_sym_RBRACE_RBRACE,
    ACTIONS(431), 1,
      sym__interpolation_text,
  [2723] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(433), 2,
      sym_raw_text,
      anon_sym_LT_SLASH,
  [2731] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(435), 1,
      sym__end_tag_name,
    ACTIONS(437), 1,
      sym_erroneous_end_tag_name,
  [2741] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(439), 1,
      anon_sym_RBRACK,
    ACTIONS(441), 1,
      sym_dynamic_directive_inner_value,
  [2751] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(395), 1,
      anon_sym_LT_SLASH,
    STATE(81), 1,
      sym_end_tag,
  [2761] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(395), 1,
      anon_sym_LT_SLASH,
    STATE(82), 1,
      sym_end_tag,
  [2771] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(421), 1,
      anon_sym_DQUOTE,
    ACTIONS(443), 1,
      aux_sym_quoted_attribute_value_token2,
  [2781] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(385), 1,
      anon_sym_LT_SLASH,
    STATE(95), 1,
      sym_end_tag,
  [2791] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(445), 1,
      anon_sym_RBRACK,
    ACTIONS(447), 1,
      sym_dynamic_directive_inner_value,
  [2801] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(409), 1,
      anon_sym_SQUOTE,
    ACTIONS(449), 1,
      aux_sym_quoted_attribute_value_token1,
  [2811] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(451), 2,
      sym_raw_text,
      anon_sym_LT_SLASH,
  [2819] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(413), 1,
      sym__end_tag_name,
    ACTIONS(437), 1,
      sym_erroneous_end_tag_name,
  [2829] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(415), 1,
      sym_erroneous_end_tag_name,
    ACTIONS(435), 1,
      sym__end_tag_name,
  [2839] = 3,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(385), 1,
      anon_sym_LT_SLASH,
    STATE(94), 1,
      sym_end_tag,
  [2849] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(453), 1,
      sym__doctype,
  [2856] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(455), 1,
      anon_sym_RBRACE_RBRACE,
  [2863] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(457), 1,
      anon_sym_RBRACK,
  [2870] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(459), 1,
      sym_directive_modifier,
  [2877] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(461), 1,
      anon_sym_GT,
  [2884] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(463), 1,
      anon_sym_GT,
  [2891] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(465), 1,
      ts_builtin_sym_end,
  [2898] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(467), 1,
      aux_sym_doctype_token1,
  [2905] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(437), 1,
      sym_erroneous_end_tag_name,
  [2912] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(469), 1,
      sym_directive_modifier,
  [2919] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(471), 1,
      anon_sym_SQUOTE,
  [2926] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(473), 1,
      anon_sym_RBRACE_RBRACE,
  [2933] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(475), 1,
      anon_sym_RBRACK,
  [2940] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(477), 1,
      anon_sym_GT,
  [2947] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(479), 1,
      anon_sym_SQUOTE,
  [2954] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(479), 1,
      anon_sym_DQUOTE,
  [2961] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(471), 1,
      anon_sym_DQUOTE,
  [2968] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(435), 1,
      sym__end_tag_name,
  [2975] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(481), 1,
      anon_sym_GT,
  [2982] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(483), 1,
      anon_sym_GT,
  [2989] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(415), 1,
      sym_erroneous_end_tag_name,
  [2996] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(485), 1,
      aux_sym_doctype_token1,
  [3003] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(487), 1,
      anon_sym_GT,
  [3010] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(413), 1,
      sym__end_tag_name,
  [3017] = 2,
    ACTIONS(3), 1,
      sym_comment,
    ACTIONS(489), 1,
      sym__doctype,
};

static const uint32_t ts_small_parse_table_map[] = {
  [SMALL_STATE(2)] = 0,
  [SMALL_STATE(3)] = 55,
  [SMALL_STATE(4)] = 110,
  [SMALL_STATE(5)] = 165,
  [SMALL_STATE(6)] = 220,
  [SMALL_STATE(7)] = 272,
  [SMALL_STATE(8)] = 324,
  [SMALL_STATE(9)] = 376,
  [SMALL_STATE(10)] = 428,
  [SMALL_STATE(11)] = 480,
  [SMALL_STATE(12)] = 532,
  [SMALL_STATE(13)] = 584,
  [SMALL_STATE(14)] = 619,
  [SMALL_STATE(15)] = 650,
  [SMALL_STATE(16)] = 681,
  [SMALL_STATE(17)] = 712,
  [SMALL_STATE(18)] = 743,
  [SMALL_STATE(19)] = 774,
  [SMALL_STATE(20)] = 805,
  [SMALL_STATE(21)] = 836,
  [SMALL_STATE(22)] = 865,
  [SMALL_STATE(23)] = 896,
  [SMALL_STATE(24)] = 927,
  [SMALL_STATE(25)] = 955,
  [SMALL_STATE(26)] = 983,
  [SMALL_STATE(27)] = 1011,
  [SMALL_STATE(28)] = 1039,
  [SMALL_STATE(29)] = 1067,
  [SMALL_STATE(30)] = 1095,
  [SMALL_STATE(31)] = 1129,
  [SMALL_STATE(32)] = 1159,
  [SMALL_STATE(33)] = 1182,
  [SMALL_STATE(34)] = 1207,
  [SMALL_STATE(35)] = 1230,
  [SMALL_STATE(36)] = 1257,
  [SMALL_STATE(37)] = 1281,
  [SMALL_STATE(38)] = 1303,
  [SMALL_STATE(39)] = 1321,
  [SMALL_STATE(40)] = 1339,
  [SMALL_STATE(41)] = 1361,
  [SMALL_STATE(42)] = 1379,
  [SMALL_STATE(43)] = 1397,
  [SMALL_STATE(44)] = 1416,
  [SMALL_STATE(45)] = 1433,
  [SMALL_STATE(46)] = 1450,
  [SMALL_STATE(47)] = 1467,
  [SMALL_STATE(48)] = 1484,
  [SMALL_STATE(49)] = 1503,
  [SMALL_STATE(50)] = 1522,
  [SMALL_STATE(51)] = 1538,
  [SMALL_STATE(52)] = 1554,
  [SMALL_STATE(53)] = 1572,
  [SMALL_STATE(54)] = 1588,
  [SMALL_STATE(55)] = 1606,
  [SMALL_STATE(56)] = 1622,
  [SMALL_STATE(57)] = 1638,
  [SMALL_STATE(58)] = 1654,
  [SMALL_STATE(59)] = 1672,
  [SMALL_STATE(60)] = 1688,
  [SMALL_STATE(61)] = 1703,
  [SMALL_STATE(62)] = 1718,
  [SMALL_STATE(63)] = 1733,
  [SMALL_STATE(64)] = 1748,
  [SMALL_STATE(65)] = 1763,
  [SMALL_STATE(66)] = 1778,
  [SMALL_STATE(67)] = 1793,
  [SMALL_STATE(68)] = 1808,
  [SMALL_STATE(69)] = 1823,
  [SMALL_STATE(70)] = 1838,
  [SMALL_STATE(71)] = 1853,
  [SMALL_STATE(72)] = 1868,
  [SMALL_STATE(73)] = 1883,
  [SMALL_STATE(74)] = 1898,
  [SMALL_STATE(75)] = 1913,
  [SMALL_STATE(76)] = 1928,
  [SMALL_STATE(77)] = 1943,
  [SMALL_STATE(78)] = 1958,
  [SMALL_STATE(79)] = 1973,
  [SMALL_STATE(80)] = 1988,
  [SMALL_STATE(81)] = 2003,
  [SMALL_STATE(82)] = 2018,
  [SMALL_STATE(83)] = 2033,
  [SMALL_STATE(84)] = 2048,
  [SMALL_STATE(85)] = 2063,
  [SMALL_STATE(86)] = 2078,
  [SMALL_STATE(87)] = 2093,
  [SMALL_STATE(88)] = 2108,
  [SMALL_STATE(89)] = 2123,
  [SMALL_STATE(90)] = 2138,
  [SMALL_STATE(91)] = 2153,
  [SMALL_STATE(92)] = 2168,
  [SMALL_STATE(93)] = 2183,
  [SMALL_STATE(94)] = 2198,
  [SMALL_STATE(95)] = 2213,
  [SMALL_STATE(96)] = 2228,
  [SMALL_STATE(97)] = 2243,
  [SMALL_STATE(98)] = 2258,
  [SMALL_STATE(99)] = 2273,
  [SMALL_STATE(100)] = 2288,
  [SMALL_STATE(101)] = 2303,
  [SMALL_STATE(102)] = 2318,
  [SMALL_STATE(103)] = 2333,
  [SMALL_STATE(104)] = 2347,
  [SMALL_STATE(105)] = 2361,
  [SMALL_STATE(106)] = 2377,
  [SMALL_STATE(107)] = 2393,
  [SMALL_STATE(108)] = 2409,
  [SMALL_STATE(109)] = 2425,
  [SMALL_STATE(110)] = 2441,
  [SMALL_STATE(111)] = 2457,
  [SMALL_STATE(112)] = 2473,
  [SMALL_STATE(113)] = 2489,
  [SMALL_STATE(114)] = 2505,
  [SMALL_STATE(115)] = 2521,
  [SMALL_STATE(116)] = 2537,
  [SMALL_STATE(117)] = 2553,
  [SMALL_STATE(118)] = 2566,
  [SMALL_STATE(119)] = 2579,
  [SMALL_STATE(120)] = 2592,
  [SMALL_STATE(121)] = 2605,
  [SMALL_STATE(122)] = 2618,
  [SMALL_STATE(123)] = 2631,
  [SMALL_STATE(124)] = 2644,
  [SMALL_STATE(125)] = 2657,
  [SMALL_STATE(126)] = 2667,
  [SMALL_STATE(127)] = 2677,
  [SMALL_STATE(128)] = 2685,
  [SMALL_STATE(129)] = 2693,
  [SMALL_STATE(130)] = 2703,
  [SMALL_STATE(131)] = 2713,
  [SMALL_STATE(132)] = 2723,
  [SMALL_STATE(133)] = 2731,
  [SMALL_STATE(134)] = 2741,
  [SMALL_STATE(135)] = 2751,
  [SMALL_STATE(136)] = 2761,
  [SMALL_STATE(137)] = 2771,
  [SMALL_STATE(138)] = 2781,
  [SMALL_STATE(139)] = 2791,
  [SMALL_STATE(140)] = 2801,
  [SMALL_STATE(141)] = 2811,
  [SMALL_STATE(142)] = 2819,
  [SMALL_STATE(143)] = 2829,
  [SMALL_STATE(144)] = 2839,
  [SMALL_STATE(145)] = 2849,
  [SMALL_STATE(146)] = 2856,
  [SMALL_STATE(147)] = 2863,
  [SMALL_STATE(148)] = 2870,
  [SMALL_STATE(149)] = 2877,
  [SMALL_STATE(150)] = 2884,
  [SMALL_STATE(151)] = 2891,
  [SMALL_STATE(152)] = 2898,
  [SMALL_STATE(153)] = 2905,
  [SMALL_STATE(154)] = 2912,
  [SMALL_STATE(155)] = 2919,
  [SMALL_STATE(156)] = 2926,
  [SMALL_STATE(157)] = 2933,
  [SMALL_STATE(158)] = 2940,
  [SMALL_STATE(159)] = 2947,
  [SMALL_STATE(160)] = 2954,
  [SMALL_STATE(161)] = 2961,
  [SMALL_STATE(162)] = 2968,
  [SMALL_STATE(163)] = 2975,
  [SMALL_STATE(164)] = 2982,
  [SMALL_STATE(165)] = 2989,
  [SMALL_STATE(166)] = 2996,
  [SMALL_STATE(167)] = 3003,
  [SMALL_STATE(168)] = 3010,
  [SMALL_STATE(169)] = 3017,
};

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_document, 0, 0, 0),
  [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(145),
  [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(108),
  [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(153),
  [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7),
  [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131),
  [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86),
  [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(169),
  [21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116),
  [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(143),
  [25] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3),
  [27] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130),
  [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63),
  [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71),
  [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10),
  [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92),
  [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126),
  [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5),
  [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74),
  [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80),
  [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133),
  [47] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8),
  [49] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 1, 0, 0),
  [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9),
  [53] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0),
  [55] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0), SHIFT_REPEAT(145),
  [58] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0), SHIFT_REPEAT(108),
  [61] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0), SHIFT_REPEAT(153),
  [64] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0), SHIFT_REPEAT(9),
  [67] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0), SHIFT_REPEAT(131),
  [70] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0), SHIFT_REPEAT(86),
  [73] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0), SHIFT_REPEAT(169),
  [76] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0), SHIFT_REPEAT(116),
  [79] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0), SHIFT_REPEAT(165),
  [82] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0), SHIFT_REPEAT(10),
  [85] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0), SHIFT_REPEAT(130),
  [88] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, 0, 0), SHIFT_REPEAT(71),
  [91] = {.entry = {.count = 1, .reusable = true}}, SHIFT(142),
  [93] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
  [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_directive_attribute, 1, 0, 0),
  [97] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110),
  [99] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_directive_attribute, 1, 0, 0),
  [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119),
  [103] = {.entry = {.count = 1, .reusable = false}}, SHIFT(119),
  [105] = {.entry = {.count = 1, .reusable = true}}, SHIFT(148),
  [107] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61),
  [109] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62),
  [111] = {.entry = {.count = 1, .reusable = false}}, SHIFT(43),
  [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17),
  [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104),
  [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70),
  [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69),
  [121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124),
  [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(103),
  [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77),
  [127] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_start_tag_repeat1, 2, 0, 0),
  [129] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_start_tag_repeat1, 2, 0, 0), SHIFT_REPEAT(43),
  [132] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_start_tag_repeat1, 2, 0, 0), SHIFT_REPEAT(119),
  [135] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_start_tag_repeat1, 2, 0, 0), SHIFT_REPEAT(17),
  [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85),
  [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(141),
  [142] = {.entry = {.count = 1, .reusable = false}}, SHIFT(54),
  [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(123),
  [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31),
  [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132),
  [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127),
  [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128),
  [154] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_start_tag_repeat1, 2, 0, 0), SHIFT_REPEAT(54),
  [157] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_start_tag_repeat1, 2, 0, 0), SHIFT_REPEAT(123),
  [160] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_start_tag_repeat1, 2, 0, 0), SHIFT_REPEAT(31),
  [163] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_directive_attribute, 3, 0, 0),
  [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107),
  [167] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_directive_attribute, 3, 0, 0),
  [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111),
  [171] = {.entry = {.count = 1, .reusable = false}}, SHIFT(123),
  [173] = {.entry = {.count = 1, .reusable = true}}, SHIFT(154),
  [175] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122),
  [177] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_directive_modifiers_repeat1, 2, 0, 0),
  [179] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_directive_modifiers_repeat1, 2, 0, 0),
  [181] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_directive_modifiers_repeat1, 2, 0, 0), SHIFT_REPEAT(148),
  [184] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_directive_attribute_repeat1, 2, 0, 0),
  [186] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_directive_attribute_repeat1, 2, 0, 0),
  [188] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_directive_attribute_repeat1, 2, 0, 0), SHIFT_REPEAT(119),
  [191] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_directive_attribute_repeat1, 2, 0, 0), SHIFT_REPEAT(119),
  [194] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_directive_modifiers, 1, 0, 0),
  [196] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_directive_modifiers, 1, 0, 0),
  [198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112),
  [200] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_directive_attribute_repeat1, 2, 0, 0), SHIFT_REPEAT(123),
  [203] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_directive_attribute_repeat1, 2, 0, 0), SHIFT_REPEAT(123),
  [206] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_dynamic_directive_value, 2, 0, 0),
  [208] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_dynamic_directive_value, 2, 0, 0),
  [210] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_dynamic_directive_value, 3, 0, 0),
  [212] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_dynamic_directive_value, 3, 0, 0),
  [214] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_directive_modifiers_repeat1, 2, 0, 0), SHIFT_REPEAT(154),
  [217] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_attribute, 1, 0, 0),
  [219] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109),
  [221] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_attribute, 1, 0, 0),
  [223] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_directive_attribute, 4, 0, 0),
  [225] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106),
  [227] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_directive_attribute, 4, 0, 0),
  [229] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_directive_attribute, 2, 0, 0),
  [231] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105),
  [233] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_directive_attribute, 2, 0, 0),
  [235] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_directive_attribute, 6, 0, 0),
  [237] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_directive_attribute, 6, 0, 0),
  [239] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_attribute, 3, 0, 0),
  [241] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_attribute, 3, 0, 0),
  [243] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114),
  [245] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_directive_attribute, 5, 0, 0),
  [247] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_directive_attribute, 5, 0, 0),
  [249] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113),
  [251] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_quoted_attribute_value, 3, 0, 0),
  [253] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_quoted_attribute_value, 3, 0, 0),
  [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_quoted_attribute_value, 2, 0, 0),
  [257] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_quoted_attribute_value, 2, 0, 0),
  [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115),
  [261] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template_element, 2, 0, 0),
  [263] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template_element, 2, 0, 0),
  [265] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_start_tag, 4, 0, 0),
  [267] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_start_tag, 4, 0, 0),
  [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_self_closing_tag, 4, 0, 0),
  [271] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_self_closing_tag, 4, 0, 0),
  [273] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_element, 2, 0, 0),
  [275] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_element, 2, 0, 0),
  [277] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_end_tag, 3, 0, 0),
  [279] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_end_tag, 3, 0, 0),
  [281] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script_element, 2, 0, 0),
  [283] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_script_element, 2, 0, 0),
  [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_style_element, 2, 0, 0),
  [287] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_style_element, 2, 0, 0),
  [289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_element, 1, 0, 0),
  [291] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_element, 1, 0, 0),
  [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_start_tag, 3, 0, 0),
  [295] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_start_tag, 3, 0, 0),
  [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_self_closing_tag, 3, 0, 0),
  [299] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_self_closing_tag, 3, 0, 0),
  [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_text, 1, 0, 0),
  [303] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_text, 1, 0, 0),
  [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpolation, 2, 0, 0),
  [307] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_interpolation, 2, 0, 0),
  [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_erroneous_end_tag, 3, 0, 0),
  [311] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_erroneous_end_tag, 3, 0, 0),
  [313] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpolation, 3, 0, 0),
  [315] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_interpolation, 3, 0, 0),
  [317] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_element, 3, 0, 0),
  [319] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_element, 3, 0, 0),
  [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script_element, 3, 0, 0),
  [323] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_script_element, 3, 0, 0),
  [325] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_style_element, 3, 0, 0),
  [327] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_style_element, 3, 0, 0),
  [329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template_element, 3, 0, 0),
  [331] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template_element, 3, 0, 0),
  [333] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_doctype, 4, 0, 0),
  [335] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_doctype, 4, 0, 0),
  [337] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template_start_tag, 4, 0, 0),
  [339] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template_start_tag, 4, 0, 0),
  [341] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_template_start_tag, 3, 0, 0),
  [343] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_template_start_tag, 3, 0, 0),
  [345] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59),
  [347] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129),
  [349] = {.entry = {.count = 1, .reusable = true}}, SHIFT(137),
  [351] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50),
  [353] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53),
  [355] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
  [357] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24),
  [359] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25),
  [361] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
  [363] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51),
  [365] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57),
  [367] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90),
  [369] = {.entry = {.count = 1, .reusable = true}}, SHIFT(140),
  [371] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125),
  [373] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98),
  [375] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88),
  [377] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96),
  [379] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99),
  [381] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19),
  [383] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20),
  [385] = {.entry = {.count = 1, .reusable = true}}, SHIFT(162),
  [387] = {.entry = {.count = 1, .reusable = true}}, SHIFT(144),
  [389] = {.entry = {.count = 1, .reusable = true}}, SHIFT(138),
  [391] = {.entry = {.count = 1, .reusable = false}}, SHIFT(42),
  [393] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134),
  [395] = {.entry = {.count = 1, .reusable = true}}, SHIFT(168),
  [397] = {.entry = {.count = 1, .reusable = true}}, SHIFT(135),
  [399] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136),
  [401] = {.entry = {.count = 1, .reusable = false}}, SHIFT(35),
  [403] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139),
  [405] = {.entry = {.count = 1, .reusable = false}}, SHIFT(44),
  [407] = {.entry = {.count = 1, .reusable = false}}, SHIFT(29),
  [409] = {.entry = {.count = 1, .reusable = false}}, SHIFT(93),
  [411] = {.entry = {.count = 1, .reusable = true}}, SHIFT(160),
  [413] = {.entry = {.count = 1, .reusable = true}}, SHIFT(149),
  [415] = {.entry = {.count = 1, .reusable = true}}, SHIFT(164),
  [417] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script_start_tag, 4, 0, 0),
  [419] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_style_start_tag, 4, 0, 0),
  [421] = {.entry = {.count = 1, .reusable = false}}, SHIFT(56),
  [423] = {.entry = {.count = 1, .reusable = true}}, SHIFT(155),
  [425] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73),
  [427] = {.entry = {.count = 1, .reusable = true}}, SHIFT(146),
  [429] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102),
  [431] = {.entry = {.count = 1, .reusable = true}}, SHIFT(156),
  [433] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_style_start_tag, 3, 0, 0),
  [435] = {.entry = {.count = 1, .reusable = true}}, SHIFT(158),
  [437] = {.entry = {.count = 1, .reusable = true}}, SHIFT(163),
  [439] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38),
  [441] = {.entry = {.count = 1, .reusable = true}}, SHIFT(147),
  [443] = {.entry = {.count = 1, .reusable = true}}, SHIFT(161),
  [445] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45),
  [447] = {.entry = {.count = 1, .reusable = true}}, SHIFT(157),
  [449] = {.entry = {.count = 1, .reusable = true}}, SHIFT(159),
  [451] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_script_start_tag, 3, 0, 0),
  [453] = {.entry = {.count = 1, .reusable = true}}, SHIFT(152),
  [455] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79),
  [457] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39),
  [459] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41),
  [461] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87),
  [463] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101),
  [465] = {.entry = {.count = 1, .reusable = true}},  ACCEPT_INPUT(),
  [467] = {.entry = {.count = 1, .reusable = true}}, SHIFT(150),
  [469] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46),
  [471] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55),
  [473] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91),
  [475] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47),
  [477] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64),
  [479] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97),
  [481] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89),
  [483] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78),
  [485] = {.entry = {.count = 1, .reusable = true}}, SHIFT(167),
  [487] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84),
  [489] = {.entry = {.count = 1, .reusable = true}}, SHIFT(166),
};

enum ts_external_scanner_symbol_identifiers {
  ts_external_token__start_tag_name = 0,
  ts_external_token__script_start_tag_name = 1,
  ts_external_token__style_start_tag_name = 2,
  ts_external_token__end_tag_name = 3,
  ts_external_token_erroneous_end_tag_name = 4,
  ts_external_token_SLASH_GT = 5,
  ts_external_token__implicit_end_tag = 6,
  ts_external_token_raw_text = 7,
  ts_external_token_comment = 8,
  ts_external_token__template_start_tag_name = 9,
  ts_external_token__text_fragment = 10,
  ts_external_token__interpolation_text = 11,
};

static const TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = {
  [ts_external_token__start_tag_name] = sym__start_tag_name,
  [ts_external_token__script_start_tag_name] = sym__script_start_tag_name,
  [ts_external_token__style_start_tag_name] = sym__style_start_tag_name,
  [ts_external_token__end_tag_name] = sym__end_tag_name,
  [ts_external_token_erroneous_end_tag_name] = sym_erroneous_end_tag_name,
  [ts_external_token_SLASH_GT] = anon_sym_SLASH_GT,
  [ts_external_token__implicit_end_tag] = sym__implicit_end_tag,
  [ts_external_token_raw_text] = sym_raw_text,
  [ts_external_token_comment] = sym_comment,
  [ts_external_token__template_start_tag_name] = sym__template_start_tag_name,
  [ts_external_token__text_fragment] = sym__text_fragment,
  [ts_external_token__interpolation_text] = sym__interpolation_text,
};

static const bool ts_external_scanner_states[12][EXTERNAL_TOKEN_COUNT] = {
  [1] = {
    [ts_external_token__start_tag_name] = true,
    [ts_external_token__script_start_tag_name] = true,
    [ts_external_token__style_start_tag_name] = true,
    [ts_external_token__end_tag_name] = true,
    [ts_external_token_erroneous_end_tag_name] = true,
    [ts_external_token_SLASH_GT] = true,
    [ts_external_token__implicit_end_tag] = true,
    [ts_external_token_raw_text] = true,
    [ts_external_token_comment] = true,
    [ts_external_token__template_start_tag_name] = true,
    [ts_external_token__text_fragment] = true,
    [ts_external_token__interpolation_text] = true,
  },
  [2] = {
    [ts_external_token_comment] = true,
    [ts_external_token__text_fragment] = true,
  },
  [3] = {
    [ts_external_token__implicit_end_tag] = true,
    [ts_external_token_comment] = true,
    [ts_external_token__text_fragment] = true,
  },
  [4] = {
    [ts_external_token_SLASH_GT] = true,
    [ts_external_token_comment] = true,
  },
  [5] = {
    [ts_external_token_comment] = true,
  },
  [6] = {
    [ts_external_token__start_tag_name] = true,
    [ts_external_token__script_start_tag_name] = true,
    [ts_external_token__style_start_tag_name] = true,
    [ts_external_token_comment] = true,
    [ts_external_token__template_start_tag_name] = true,
  },
  [7] = {
    [ts_external_token_raw_text] = true,
    [ts_external_token_comment] = true,
  },
  [8] = {
    [ts_external_token__end_tag_name] = true,
    [ts_external_token_erroneous_end_tag_name] = true,
    [ts_external_token_comment] = true,
  },
  [9] = {
    [ts_external_token_comment] = true,
    [ts_external_token__interpolation_text] = true,
  },
  [10] = {
    [ts_external_token_erroneous_end_tag_name] = true,
    [ts_external_token_comment] = true,
  },
  [11] = {
    [ts_external_token__end_tag_name] = true,
    [ts_external_token_comment] = true,
  },
};

#ifdef __cplusplus
extern "C" {
#endif
void *tree_sitter_vue_external_scanner_create(void);
void tree_sitter_vue_external_scanner_destroy(void *);
bool tree_sitter_vue_external_scanner_scan(void *, TSLexer *, const bool *);
unsigned tree_sitter_vue_external_scanner_serialize(void *, char *);
void tree_sitter_vue_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_vue(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,
    .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_vue_external_scanner_create,
      tree_sitter_vue_external_scanner_destroy,
      tree_sitter_vue_external_scanner_scan,
      tree_sitter_vue_external_scanner_serialize,
      tree_sitter_vue_external_scanner_deserialize,
    },
    .primary_state_ids = ts_primary_state_ids,
    .name = "vue",
    .max_reserved_word_set_size = 0,
    .metadata = {
      .major_version = 0,
      .minor_version = 1,
      .patch_version = 0,
    },
  };
  return &language;
}
#ifdef __cplusplus
}
#endif
