/* 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 21
#define LARGE_STATE_COUNT 4
#define SYMBOL_COUNT 24
#define ALIAS_COUNT 0
#define TOKEN_COUNT 17
#define EXTERNAL_TOKEN_COUNT 0
#define FIELD_COUNT 0
#define MAX_ALIAS_SEQUENCE_LENGTH 5
#define MAX_RESERVED_WORD_SET_SIZE 0
#define PRODUCTION_ID_COUNT 1
#define SUPERTYPE_COUNT 0

enum ts_symbol_identifiers {
  anon_sym_LF = 1,
  sym_context_marker = 2,
  sym_dots = 3,
  sym_block_type = 4,
  sym_void_marker = 5,
  sym_context_content = 6,
  sym_block_content = 7,
  sym_space = 8,
  sym_extra_space = 9,
  sym__dot_dot = 10,
  sym_block_id = 11,
  sym_kwarg = 12,
  sym_quoted_string = 13,
  sym_unclosed_quote = 14,
  sym_word = 15,
  sym_text_line = 16,
  sym_source_file = 17,
  sym_meta_line = 18,
  sym_void_content = 19,
  sym_content_parts = 20,
  sym_param_separator = 21,
  aux_sym_source_file_repeat1 = 22,
  aux_sym_content_parts_repeat1 = 23,
};

static const char * const ts_symbol_names[] = {
  [ts_builtin_sym_end] = "end",
  [anon_sym_LF] = "\n",
  [sym_context_marker] = "context_marker",
  [sym_dots] = "dots",
  [sym_block_type] = "block_type",
  [sym_void_marker] = "void_marker",
  [sym_context_content] = "context_content",
  [sym_block_content] = "block_content",
  [sym_space] = "space",
  [sym_extra_space] = "extra_space",
  [sym__dot_dot] = "_dot_dot",
  [sym_block_id] = "block_id",
  [sym_kwarg] = "kwarg",
  [sym_quoted_string] = "quoted_string",
  [sym_unclosed_quote] = "unclosed_quote",
  [sym_word] = "word",
  [sym_text_line] = "text_line",
  [sym_source_file] = "source_file",
  [sym_meta_line] = "meta_line",
  [sym_void_content] = "void_content",
  [sym_content_parts] = "content_parts",
  [sym_param_separator] = "param_separator",
  [aux_sym_source_file_repeat1] = "source_file_repeat1",
  [aux_sym_content_parts_repeat1] = "content_parts_repeat1",
};

static const TSSymbol ts_symbol_map[] = {
  [ts_builtin_sym_end] = ts_builtin_sym_end,
  [anon_sym_LF] = anon_sym_LF,
  [sym_context_marker] = sym_context_marker,
  [sym_dots] = sym_dots,
  [sym_block_type] = sym_block_type,
  [sym_void_marker] = sym_void_marker,
  [sym_context_content] = sym_context_content,
  [sym_block_content] = sym_block_content,
  [sym_space] = sym_space,
  [sym_extra_space] = sym_extra_space,
  [sym__dot_dot] = sym__dot_dot,
  [sym_block_id] = sym_block_id,
  [sym_kwarg] = sym_kwarg,
  [sym_quoted_string] = sym_quoted_string,
  [sym_unclosed_quote] = sym_unclosed_quote,
  [sym_word] = sym_word,
  [sym_text_line] = sym_text_line,
  [sym_source_file] = sym_source_file,
  [sym_meta_line] = sym_meta_line,
  [sym_void_content] = sym_void_content,
  [sym_content_parts] = sym_content_parts,
  [sym_param_separator] = sym_param_separator,
  [aux_sym_source_file_repeat1] = aux_sym_source_file_repeat1,
  [aux_sym_content_parts_repeat1] = aux_sym_content_parts_repeat1,
};

static const TSSymbolMetadata ts_symbol_metadata[] = {
  [ts_builtin_sym_end] = {
    .visible = false,
    .named = true,
  },
  [anon_sym_LF] = {
    .visible = true,
    .named = false,
  },
  [sym_context_marker] = {
    .visible = true,
    .named = true,
  },
  [sym_dots] = {
    .visible = true,
    .named = true,
  },
  [sym_block_type] = {
    .visible = true,
    .named = true,
  },
  [sym_void_marker] = {
    .visible = true,
    .named = true,
  },
  [sym_context_content] = {
    .visible = true,
    .named = true,
  },
  [sym_block_content] = {
    .visible = true,
    .named = true,
  },
  [sym_space] = {
    .visible = true,
    .named = true,
  },
  [sym_extra_space] = {
    .visible = true,
    .named = true,
  },
  [sym__dot_dot] = {
    .visible = false,
    .named = true,
  },
  [sym_block_id] = {
    .visible = true,
    .named = true,
  },
  [sym_kwarg] = {
    .visible = true,
    .named = true,
  },
  [sym_quoted_string] = {
    .visible = true,
    .named = true,
  },
  [sym_unclosed_quote] = {
    .visible = true,
    .named = true,
  },
  [sym_word] = {
    .visible = true,
    .named = true,
  },
  [sym_text_line] = {
    .visible = true,
    .named = true,
  },
  [sym_source_file] = {
    .visible = true,
    .named = true,
  },
  [sym_meta_line] = {
    .visible = true,
    .named = true,
  },
  [sym_void_content] = {
    .visible = true,
    .named = true,
  },
  [sym_content_parts] = {
    .visible = true,
    .named = true,
  },
  [sym_param_separator] = {
    .visible = true,
    .named = true,
  },
  [aux_sym_source_file_repeat1] = {
    .visible = false,
    .named = false,
  },
  [aux_sym_content_parts_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] = 4,
  [5] = 5,
  [6] = 6,
  [7] = 7,
  [8] = 8,
  [9] = 9,
  [10] = 10,
  [11] = 11,
  [12] = 12,
  [13] = 13,
  [14] = 14,
  [15] = 15,
  [16] = 16,
  [17] = 17,
  [18] = 18,
  [19] = 19,
  [20] = 20,
};

static bool ts_lex(TSLexer *lexer, TSStateId state) {
  START_LEXER();
  eof = lexer->eof(lexer);
  switch (state) {
    case 0:
      if (eof) ADVANCE(15);
      ADVANCE_MAP(
        '\n', 16,
        ' ', 32,
        '"', 47,
        '#', 51,
        '.', 52,
        '/', 57,
        ':', 57,
        '=', 27,
      );
      if (('\t' <= lookahead && lookahead <= '\r')) ADVANCE(61);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(53);
      if (lookahead != 0) ADVANCE(55);
      END_STATE();
    case 1:
      if (lookahead == '"') ADVANCE(39);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ') ADVANCE(43);
      END_STATE();
    case 2:
      if (lookahead == '"') ADVANCE(37);
      if (lookahead == '\\') ADVANCE(6);
      if (lookahead != 0) ADVANCE(2);
      END_STATE();
    case 3:
      if (lookahead == '"') ADVANCE(19);
      if (lookahead == '\\') ADVANCE(7);
      if (lookahead != 0) ADVANCE(3);
      END_STATE();
    case 4:
      if (lookahead == '"') ADVANCE(45);
      if (lookahead == '\\') ADVANCE(5);
      if (lookahead != 0) ADVANCE(4);
      END_STATE();
    case 5:
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(4);
      END_STATE();
    case 6:
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(2);
      END_STATE();
    case 7:
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(3);
      END_STATE();
    case 8:
      if (eof) ADVANCE(15);
      if (lookahead == '\n') ADVANCE(16);
      if (lookahead == ' ') ADVANCE(32);
      if (lookahead == '.') ADVANCE(18);
      if (lookahead == ':') ADVANCE(29);
      if (lookahead != 0) ADVANCE(61);
      END_STATE();
    case 9:
      if (eof) ADVANCE(15);
      if (lookahead == '\n') ADVANCE(16);
      if (lookahead == ' ') ADVANCE(34);
      if (lookahead == '"') ADVANCE(48);
      if (lookahead == '.') ADVANCE(52);
      if (lookahead == ':') ADVANCE(56);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == '=') ADVANCE(61);
      if (('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(54);
      if (lookahead != 0) ADVANCE(57);
      END_STATE();
    case 10:
      if (eof) ADVANCE(15);
      if (lookahead == '\n') ADVANCE(16);
      if (lookahead == ' ') ADVANCE(33);
      if (lookahead == '.') ADVANCE(18);
      if (lookahead != 0) ADVANCE(61);
      END_STATE();
    case 11:
      if (eof) ADVANCE(15);
      if (lookahead == '\n') ADVANCE(16);
      if (lookahead == '"') ADVANCE(66);
      if (lookahead == '#') ADVANCE(24);
      if (lookahead == '.') ADVANCE(18);
      if (lookahead == '/') ADVANCE(17);
      if (lookahead == ':') ADVANCE(29);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(61);
      if (lookahead != 0) ADVANCE(27);
      END_STATE();
    case 12:
      if (eof) ADVANCE(15);
      if (lookahead == '\n') ADVANCE(16);
      if (lookahead == '.') ADVANCE(18);
      if (lookahead != 0) ADVANCE(61);
      END_STATE();
    case 13:
      if (eof) ADVANCE(15);
      if (lookahead == '\n') ADVANCE(16);
      if (lookahead == '.') ADVANCE(30);
      if (lookahead != 0) ADVANCE(31);
      END_STATE();
    case 14:
      if (eof) ADVANCE(15);
      if (lookahead == '\n') ADVANCE(58);
      if (lookahead == '.') ADVANCE(18);
      if (lookahead != 0) ADVANCE(61);
      END_STATE();
    case 15:
      ACCEPT_TOKEN(ts_builtin_sym_end);
      END_STATE();
    case 16:
      ACCEPT_TOKEN(anon_sym_LF);
      END_STATE();
    case 17:
      ACCEPT_TOKEN(sym_context_marker);
      END_STATE();
    case 18:
      ACCEPT_TOKEN(sym_dots);
      if (lookahead == '.') ADVANCE(18);
      END_STATE();
    case 19:
      ACCEPT_TOKEN(sym_block_type);
      END_STATE();
    case 20:
      ACCEPT_TOKEN(sym_block_type);
      if (lookahead == '\n') ADVANCE(70);
      if (lookahead == '"') ADVANCE(44);
      if (lookahead == '\\') ADVANCE(25);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(59);
      if (lookahead != 0) ADVANCE(20);
      END_STATE();
    case 21:
      ACCEPT_TOKEN(sym_block_type);
      if (lookahead == '\n') ADVANCE(69);
      if (lookahead == '"') ADVANCE(28);
      if (lookahead == '\\') ADVANCE(26);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(67);
      if (lookahead != 0) ADVANCE(21);
      END_STATE();
    case 22:
      ACCEPT_TOKEN(sym_block_type);
      if (lookahead == '"') ADVANCE(38);
      if (lookahead == '.' ||
          lookahead == '/' ||
          lookahead == ':') ADVANCE(43);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ') ADVANCE(40);
      END_STATE();
    case 23:
      ACCEPT_TOKEN(sym_block_type);
      if (lookahead == '"') ADVANCE(38);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ') ADVANCE(43);
      END_STATE();
    case 24:
      ACCEPT_TOKEN(sym_block_type);
      if (lookahead == '#') ADVANCE(24);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '#' &&
          lookahead != '.' &&
          lookahead != '/' &&
          lookahead != ':') ADVANCE(27);
      END_STATE();
    case 25:
      ACCEPT_TOKEN(sym_block_type);
      if (lookahead == '\t' ||
          (0x0b <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(59);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead)) ADVANCE(20);
      END_STATE();
    case 26:
      ACCEPT_TOKEN(sym_block_type);
      if (lookahead == '\t' ||
          (0x0b <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(67);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead)) ADVANCE(21);
      END_STATE();
    case 27:
      ACCEPT_TOKEN(sym_block_type);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '.' &&
          lookahead != '/' &&
          lookahead != ':') ADVANCE(27);
      END_STATE();
    case 28:
      ACCEPT_TOKEN(sym_block_type);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ') ADVANCE(28);
      END_STATE();
    case 29:
      ACCEPT_TOKEN(sym_void_marker);
      END_STATE();
    case 30:
      ACCEPT_TOKEN(sym_context_content);
      if (lookahead == '.') ADVANCE(30);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(31);
      END_STATE();
    case 31:
      ACCEPT_TOKEN(sym_context_content);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(31);
      END_STATE();
    case 32:
      ACCEPT_TOKEN(sym_block_content);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(32);
      END_STATE();
    case 33:
      ACCEPT_TOKEN(sym_space);
      END_STATE();
    case 34:
      ACCEPT_TOKEN(sym_extra_space);
      if (lookahead == ' ') ADVANCE(34);
      END_STATE();
    case 35:
      ACCEPT_TOKEN(sym__dot_dot);
      END_STATE();
    case 36:
      ACCEPT_TOKEN(sym_block_id);
      if (lookahead == '-' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z') ||
          (0x80 <= lookahead && lookahead <= 0xffff)) ADVANCE(36);
      END_STATE();
    case 37:
      ACCEPT_TOKEN(sym_kwarg);
      END_STATE();
    case 38:
      ACCEPT_TOKEN(sym_kwarg);
      if (lookahead == '\n') ADVANCE(68);
      if (lookahead == '"') ADVANCE(43);
      if (lookahead == '\\') ADVANCE(42);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(65);
      if (lookahead != 0) ADVANCE(38);
      END_STATE();
    case 39:
      ACCEPT_TOKEN(sym_kwarg);
      if (lookahead == '"') ADVANCE(43);
      if (lookahead == '\\') ADVANCE(41);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(2);
      if (lookahead != 0) ADVANCE(39);
      END_STATE();
    case 40:
      ACCEPT_TOKEN(sym_kwarg);
      if (lookahead == '"' ||
          lookahead == '.' ||
          lookahead == '/' ||
          lookahead == ':') ADVANCE(43);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ') ADVANCE(40);
      END_STATE();
    case 41:
      ACCEPT_TOKEN(sym_kwarg);
      if (lookahead == '\t' ||
          (0x0b <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(2);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead)) ADVANCE(39);
      END_STATE();
    case 42:
      ACCEPT_TOKEN(sym_kwarg);
      if (lookahead == '\t' ||
          (0x0b <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(65);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead)) ADVANCE(38);
      END_STATE();
    case 43:
      ACCEPT_TOKEN(sym_kwarg);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ') ADVANCE(43);
      END_STATE();
    case 44:
      ACCEPT_TOKEN(sym_quoted_string);
      if (lookahead == '=') ADVANCE(23);
      END_STATE();
    case 45:
      ACCEPT_TOKEN(sym_quoted_string);
      if (lookahead == '=') ADVANCE(1);
      END_STATE();
    case 46:
      ACCEPT_TOKEN(sym_quoted_string);
      if (lookahead == '=') ADVANCE(60);
      END_STATE();
    case 47:
      ACCEPT_TOKEN(sym_unclosed_quote);
      if (lookahead == '\n') ADVANCE(70);
      if (lookahead == '"') ADVANCE(44);
      if (lookahead == '\\') ADVANCE(49);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(48);
      if (lookahead != 0) ADVANCE(47);
      END_STATE();
    case 48:
      ACCEPT_TOKEN(sym_unclosed_quote);
      if (lookahead == '\n') ADVANCE(70);
      if (lookahead == '"') ADVANCE(46);
      if (lookahead == '\\') ADVANCE(50);
      if (lookahead != 0) ADVANCE(48);
      END_STATE();
    case 49:
      ACCEPT_TOKEN(sym_unclosed_quote);
      if (lookahead == '"') ADVANCE(20);
      if (lookahead == '\t' ||
          (0x0b <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(48);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead)) ADVANCE(47);
      END_STATE();
    case 50:
      ACCEPT_TOKEN(sym_unclosed_quote);
      if (lookahead == '"') ADVANCE(59);
      if (lookahead != 0 &&
          lookahead != '\n') ADVANCE(48);
      END_STATE();
    case 51:
      ACCEPT_TOKEN(sym_word);
      if (lookahead == '#') ADVANCE(51);
      if (lookahead == '.' ||
          lookahead == '/' ||
          lookahead == ':') ADVANCE(57);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '#' &&
          lookahead != '=') ADVANCE(55);
      END_STATE();
    case 52:
      ACCEPT_TOKEN(sym_word);
      if (lookahead == '.') ADVANCE(35);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '=') ADVANCE(57);
      END_STATE();
    case 53:
      ACCEPT_TOKEN(sym_word);
      if (lookahead == '=') ADVANCE(22);
      if (lookahead == '.' ||
          lookahead == '/' ||
          lookahead == ':') ADVANCE(57);
      if (('-' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(53);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"') ADVANCE(55);
      END_STATE();
    case 54:
      ACCEPT_TOKEN(sym_word);
      if (lookahead == '=') ADVANCE(60);
      if (lookahead == '-' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z')) ADVANCE(54);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"') ADVANCE(57);
      END_STATE();
    case 55:
      ACCEPT_TOKEN(sym_word);
      if (lookahead == '.' ||
          lookahead == '/' ||
          lookahead == ':') ADVANCE(57);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '=') ADVANCE(55);
      END_STATE();
    case 56:
      ACCEPT_TOKEN(sym_word);
      if (lookahead == '-' ||
          ('0' <= lookahead && lookahead <= '9') ||
          ('A' <= lookahead && lookahead <= 'Z') ||
          lookahead == '_' ||
          ('a' <= lookahead && lookahead <= 'z') ||
          (0x80 <= lookahead && lookahead <= 0xffff)) ADVANCE(36);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '=') ADVANCE(57);
      END_STATE();
    case 57:
      ACCEPT_TOKEN(sym_word);
      if (lookahead != 0 &&
          (lookahead < '\t' || '\r' < lookahead) &&
          lookahead != ' ' &&
          lookahead != '"' &&
          lookahead != '=') ADVANCE(57);
      END_STATE();
    case 58:
      ACCEPT_TOKEN(sym_text_line);
      END_STATE();
    case 59:
      ACCEPT_TOKEN(sym_text_line);
      if (lookahead == '\n') ADVANCE(70);
      if (lookahead == '"') ADVANCE(46);
      if (lookahead == '\\') ADVANCE(62);
      if (lookahead != 0) ADVANCE(59);
      END_STATE();
    case 60:
      ACCEPT_TOKEN(sym_text_line);
      if (lookahead == '\n') ADVANCE(58);
      if (lookahead == '"') ADVANCE(38);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(61);
      if (lookahead != 0) ADVANCE(43);
      END_STATE();
    case 61:
      ACCEPT_TOKEN(sym_text_line);
      if (lookahead == '\n') ADVANCE(58);
      if (lookahead != 0) ADVANCE(61);
      END_STATE();
    case 62:
      ACCEPT_TOKEN(sym_text_line);
      if (lookahead == '\n') ADVANCE(58);
      if (lookahead != 0) ADVANCE(59);
      END_STATE();
    case 63:
      ACCEPT_TOKEN(sym_text_line);
      if (lookahead == '\n') ADVANCE(58);
      if (lookahead != 0) ADVANCE(65);
      END_STATE();
    case 64:
      ACCEPT_TOKEN(sym_text_line);
      if (lookahead == '\n') ADVANCE(58);
      if (lookahead != 0) ADVANCE(67);
      END_STATE();
    case 65:
      ACCEPT_TOKEN(sym_text_line);
      if (lookahead == '\n') ADVANCE(68);
      if (lookahead == '"') ADVANCE(37);
      if (lookahead == '\\') ADVANCE(63);
      if (lookahead != 0) ADVANCE(65);
      END_STATE();
    case 66:
      ACCEPT_TOKEN(sym_text_line);
      if (lookahead == '\n') ADVANCE(69);
      if (lookahead == '"') ADVANCE(28);
      if (lookahead == '\\') ADVANCE(26);
      if (('\t' <= lookahead && lookahead <= '\r') ||
          lookahead == ' ') ADVANCE(67);
      if (lookahead != 0) ADVANCE(21);
      END_STATE();
    case 67:
      ACCEPT_TOKEN(sym_text_line);
      if (lookahead == '\n') ADVANCE(69);
      if (lookahead == '"') ADVANCE(19);
      if (lookahead == '\\') ADVANCE(64);
      if (lookahead != 0) ADVANCE(67);
      END_STATE();
    case 68:
      ACCEPT_TOKEN(sym_text_line);
      if (lookahead == '"') ADVANCE(37);
      if (lookahead == '\\') ADVANCE(6);
      if (lookahead != 0) ADVANCE(2);
      END_STATE();
    case 69:
      ACCEPT_TOKEN(sym_text_line);
      if (lookahead == '"') ADVANCE(19);
      if (lookahead == '\\') ADVANCE(7);
      if (lookahead != 0) ADVANCE(3);
      END_STATE();
    case 70:
      ACCEPT_TOKEN(sym_text_line);
      if (lookahead == '"') ADVANCE(45);
      if (lookahead == '\\') ADVANCE(5);
      if (lookahead != 0) ADVANCE(4);
      END_STATE();
    default:
      return false;
  }
}

static const TSLexerMode ts_lex_modes[STATE_COUNT] = {
  [0] = {.lex_state = 0},
  [1] = {.lex_state = 14},
  [2] = {.lex_state = 9},
  [3] = {.lex_state = 9},
  [4] = {.lex_state = 9},
  [5] = {.lex_state = 9},
  [6] = {.lex_state = 11},
  [7] = {.lex_state = 8},
  [8] = {.lex_state = 10},
  [9] = {.lex_state = 10},
  [10] = {.lex_state = 14},
  [11] = {.lex_state = 13},
  [12] = {.lex_state = 14},
  [13] = {.lex_state = 12},
  [14] = {.lex_state = 12},
  [15] = {.lex_state = 12},
  [16] = {.lex_state = 14},
  [17] = {.lex_state = 14},
  [18] = {.lex_state = 14},
  [19] = {.lex_state = 14},
  [20] = {.lex_state = 0},
};

static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
  [STATE(0)] = {
    [ts_builtin_sym_end] = ACTIONS(1),
    [anon_sym_LF] = ACTIONS(1),
    [sym_context_marker] = ACTIONS(1),
    [sym_dots] = ACTIONS(1),
    [sym_block_type] = ACTIONS(1),
    [sym_void_marker] = ACTIONS(1),
    [sym_block_content] = ACTIONS(1),
    [sym_space] = ACTIONS(1),
    [sym__dot_dot] = ACTIONS(1),
    [sym_kwarg] = ACTIONS(1),
    [sym_quoted_string] = ACTIONS(1),
    [sym_unclosed_quote] = ACTIONS(1),
    [sym_word] = ACTIONS(1),
    [sym_text_line] = ACTIONS(1),
  },
  [STATE(1)] = {
    [sym_source_file] = STATE(20),
    [sym_meta_line] = STATE(10),
    [aux_sym_source_file_repeat1] = STATE(10),
    [ts_builtin_sym_end] = ACTIONS(3),
    [sym_dots] = ACTIONS(5),
    [sym_text_line] = ACTIONS(7),
  },
  [STATE(2)] = {
    [sym_param_separator] = STATE(3),
    [aux_sym_content_parts_repeat1] = STATE(3),
    [ts_builtin_sym_end] = ACTIONS(9),
    [anon_sym_LF] = ACTIONS(9),
    [sym_dots] = ACTIONS(11),
    [sym_extra_space] = ACTIONS(13),
    [sym__dot_dot] = ACTIONS(15),
    [sym_block_id] = ACTIONS(13),
    [sym_kwarg] = ACTIONS(13),
    [sym_quoted_string] = ACTIONS(17),
    [sym_unclosed_quote] = ACTIONS(17),
    [sym_word] = ACTIONS(17),
    [sym_text_line] = ACTIONS(11),
  },
  [STATE(3)] = {
    [sym_param_separator] = STATE(3),
    [aux_sym_content_parts_repeat1] = STATE(3),
    [ts_builtin_sym_end] = ACTIONS(19),
    [anon_sym_LF] = ACTIONS(19),
    [sym_dots] = ACTIONS(21),
    [sym_extra_space] = ACTIONS(23),
    [sym__dot_dot] = ACTIONS(26),
    [sym_block_id] = ACTIONS(23),
    [sym_kwarg] = ACTIONS(23),
    [sym_quoted_string] = ACTIONS(29),
    [sym_unclosed_quote] = ACTIONS(29),
    [sym_word] = ACTIONS(29),
    [sym_text_line] = ACTIONS(21),
  },
};

static const uint16_t ts_small_parse_table[] = {
  [0] = 2,
    ACTIONS(34), 5,
      sym_dots,
      sym_quoted_string,
      sym_unclosed_quote,
      sym_word,
      sym_text_line,
    ACTIONS(32), 6,
      ts_builtin_sym_end,
      anon_sym_LF,
      sym_extra_space,
      sym__dot_dot,
      sym_block_id,
      sym_kwarg,
  [16] = 5,
    ACTIONS(15), 1,
      sym__dot_dot,
    STATE(15), 1,
      sym_content_parts,
    STATE(2), 2,
      sym_param_separator,
      aux_sym_content_parts_repeat1,
    ACTIONS(36), 3,
      sym_extra_space,
      sym_block_id,
      sym_kwarg,
    ACTIONS(38), 3,
      sym_quoted_string,
      sym_unclosed_quote,
      sym_word,
  [37] = 6,
    ACTIONS(42), 1,
      anon_sym_LF,
    ACTIONS(44), 1,
      sym_context_marker,
    ACTIONS(46), 1,
      sym_block_type,
    ACTIONS(48), 1,
      sym_void_marker,
    ACTIONS(50), 1,
      sym_text_line,
    ACTIONS(40), 2,
      ts_builtin_sym_end,
      sym_dots,
  [57] = 5,
    ACTIONS(54), 1,
      anon_sym_LF,
    ACTIONS(56), 1,
      sym_void_marker,
    ACTIONS(58), 1,
      sym_block_content,
    ACTIONS(60), 1,
      sym_text_line,
    ACTIONS(52), 2,
      ts_builtin_sym_end,
      sym_dots,
  [74] = 5,
    ACTIONS(54), 1,
      anon_sym_LF,
    ACTIONS(60), 1,
      sym_text_line,
    ACTIONS(62), 1,
      sym_space,
    STATE(13), 1,
      sym_void_content,
    ACTIONS(52), 2,
      ts_builtin_sym_end,
      sym_dots,
  [91] = 5,
    ACTIONS(62), 1,
      sym_space,
    ACTIONS(66), 1,
      anon_sym_LF,
    ACTIONS(68), 1,
      sym_text_line,
    STATE(14), 1,
      sym_void_content,
    ACTIONS(64), 2,
      ts_builtin_sym_end,
      sym_dots,
  [108] = 4,
    ACTIONS(5), 1,
      sym_dots,
    ACTIONS(70), 1,
      ts_builtin_sym_end,
    ACTIONS(72), 1,
      sym_text_line,
    STATE(12), 2,
      sym_meta_line,
      aux_sym_source_file_repeat1,
  [122] = 4,
    ACTIONS(52), 1,
      ts_builtin_sym_end,
    ACTIONS(54), 1,
      anon_sym_LF,
    ACTIONS(58), 1,
      sym_context_content,
    ACTIONS(60), 2,
      sym_dots,
      sym_text_line,
  [136] = 4,
    ACTIONS(74), 1,
      ts_builtin_sym_end,
    ACTIONS(76), 1,
      sym_dots,
    ACTIONS(79), 1,
      sym_text_line,
    STATE(12), 2,
      sym_meta_line,
      aux_sym_source_file_repeat1,
  [150] = 3,
    ACTIONS(66), 1,
      anon_sym_LF,
    ACTIONS(68), 1,
      sym_text_line,
    ACTIONS(64), 2,
      ts_builtin_sym_end,
      sym_dots,
  [161] = 3,
    ACTIONS(84), 1,
      anon_sym_LF,
    ACTIONS(86), 1,
      sym_text_line,
    ACTIONS(82), 2,
      ts_builtin_sym_end,
      sym_dots,
  [172] = 2,
    ACTIONS(90), 1,
      sym_text_line,
    ACTIONS(88), 3,
      ts_builtin_sym_end,
      anon_sym_LF,
      sym_dots,
  [181] = 1,
    ACTIONS(52), 3,
      ts_builtin_sym_end,
      sym_dots,
      sym_text_line,
  [187] = 1,
    ACTIONS(64), 3,
      ts_builtin_sym_end,
      sym_dots,
      sym_text_line,
  [193] = 1,
    ACTIONS(82), 3,
      ts_builtin_sym_end,
      sym_dots,
      sym_text_line,
  [199] = 1,
    ACTIONS(92), 3,
      ts_builtin_sym_end,
      sym_dots,
      sym_text_line,
  [205] = 1,
    ACTIONS(94), 1,
      ts_builtin_sym_end,
};

static const uint32_t ts_small_parse_table_map[] = {
  [SMALL_STATE(4)] = 0,
  [SMALL_STATE(5)] = 16,
  [SMALL_STATE(6)] = 37,
  [SMALL_STATE(7)] = 57,
  [SMALL_STATE(8)] = 74,
  [SMALL_STATE(9)] = 91,
  [SMALL_STATE(10)] = 108,
  [SMALL_STATE(11)] = 122,
  [SMALL_STATE(12)] = 136,
  [SMALL_STATE(13)] = 150,
  [SMALL_STATE(14)] = 161,
  [SMALL_STATE(15)] = 172,
  [SMALL_STATE(16)] = 181,
  [SMALL_STATE(17)] = 187,
  [SMALL_STATE(18)] = 193,
  [SMALL_STATE(19)] = 199,
  [SMALL_STATE(20)] = 205,
};

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}}, REDUCE(sym_source_file, 0, 0, 0),
  [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6),
  [7] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10),
  [9] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_content_parts, 1, 0, 0),
  [11] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_content_parts, 1, 0, 0),
  [13] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3),
  [15] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4),
  [17] = {.entry = {.count = 1, .reusable = false}}, SHIFT(3),
  [19] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_content_parts_repeat1, 2, 0, 0),
  [21] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_content_parts_repeat1, 2, 0, 0),
  [23] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_content_parts_repeat1, 2, 0, 0), SHIFT_REPEAT(3),
  [26] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_content_parts_repeat1, 2, 0, 0), SHIFT_REPEAT(4),
  [29] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_content_parts_repeat1, 2, 0, 0), SHIFT_REPEAT(3),
  [32] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_param_separator, 1, 0, 0),
  [34] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_param_separator, 1, 0, 0),
  [36] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2),
  [38] = {.entry = {.count = 1, .reusable = false}}, SHIFT(2),
  [40] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_meta_line, 1, 0, 0),
  [42] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
  [44] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11),
  [46] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7),
  [48] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8),
  [50] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_meta_line, 1, 0, 0),
  [52] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_meta_line, 2, 0, 0),
  [54] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17),
  [56] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9),
  [58] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13),
  [60] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_meta_line, 2, 0, 0),
  [62] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5),
  [64] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_meta_line, 3, 0, 0),
  [66] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18),
  [68] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_meta_line, 3, 0, 0),
  [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1, 0, 0),
  [72] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
  [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0),
  [76] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(6),
  [79] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2, 0, 0), SHIFT_REPEAT(12),
  [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_meta_line, 4, 0, 0),
  [84] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19),
  [86] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_meta_line, 4, 0, 0),
  [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_void_content, 2, 0, 0),
  [90] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_void_content, 2, 0, 0),
  [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_meta_line, 5, 0, 0),
  [94] = {.entry = {.count = 1, .reusable = true}},  ACCEPT_INPUT(),
};

#ifdef __cplusplus
extern "C" {
#endif
#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_wasot(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,
    .primary_state_ids = ts_primary_state_ids,
    .name = "wasot",
    .max_reserved_word_set_size = 0,
    .metadata = {
      .major_version = 0,
      .minor_version = 1,
      .patch_version = 0,
    },
  };
  return &language;
}
#ifdef __cplusplus
}
#endif
