#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 55
#define LARGE_STATE_COUNT 2
#define SYMBOL_COUNT 49
#define ALIAS_COUNT 0
#define TOKEN_COUNT 29
#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_LT = 1,
aux_sym_keycode_token1 = 2,
anon_sym_GT = 3,
sym__not_keycode = 4,
anon_sym_COLON_PERCENT = 5,
aux_sym__range_s_command_token1 = 6,
aux_sym__vimgrep_token1 = 7,
anon_sym_COLON_DOT = 8,
anon_sym_lua = 9,
aux_sym__cmd_rhs_token1 = 10,
anon_sym_COLON = 11,
aux_sym__colon_rhs_token1 = 12,
aux_sym__first_command_token1 = 13,
anon_sym_SQUOTE_LT_COMMA_SQUOTE_GT = 14,
aux_sym__cr_token1 = 15,
anon_sym_BSLASH_PIPE = 16,
anon_sym_PIPE = 17,
aux_sym__pipe_token1 = 18,
anon_sym_printf = 19,
anon_sym_LPAREN = 20,
anon_sym_COMMA = 21,
anon_sym_RPAREN = 22,
anon_sym_SQUOTE = 23,
sym_string_content = 24,
sym_scope = 25,
sym_identifier = 26,
sym_comment = 27,
sym__blank = 28,
sym_map_side = 29,
sym_keycode = 30,
sym__range_s_command = 31,
sym__vimgrep = 32,
sym__lua_cur_line = 33,
sym__cmd_rhs = 34,
sym__colon_rhs = 35,
sym__first_command = 36,
sym__range = 37,
sym_command = 38,
sym__cr = 39,
sym__pipe = 40,
sym_expression = 41,
sym_printf = 42,
sym_string = 43,
sym__argument = 44,
sym_scoped_identifier = 45,
aux_sym_map_side_repeat1 = 46,
aux_sym__cmd_rhs_repeat1 = 47,
aux_sym_printf_repeat1 = 48,
};
static const char * const ts_symbol_names[] = {
[ts_builtin_sym_end] = "end",
[anon_sym_LT] = "<",
[aux_sym_keycode_token1] = "keycode_token1",
[anon_sym_GT] = ">",
[sym__not_keycode] = "_not_keycode",
[anon_sym_COLON_PERCENT] = "command",
[aux_sym__range_s_command_token1] = "command",
[aux_sym__vimgrep_token1] = "command",
[anon_sym_COLON_DOT] = "command",
[anon_sym_lua] = "command",
[aux_sym__cmd_rhs_token1] = "keycode",
[anon_sym_COLON] = ":",
[aux_sym__colon_rhs_token1] = "keycode",
[aux_sym__first_command_token1] = "_first_command_token1",
[anon_sym_SQUOTE_LT_COMMA_SQUOTE_GT] = "'<,'>",
[aux_sym__cr_token1] = "keycode",
[anon_sym_BSLASH_PIPE] = "\\|",
[anon_sym_PIPE] = "|",
[aux_sym__pipe_token1] = "bar",
[anon_sym_printf] = "printf",
[anon_sym_LPAREN] = "(",
[anon_sym_COMMA] = ",",
[anon_sym_RPAREN] = ")",
[anon_sym_SQUOTE] = "'",
[sym_string_content] = "string_content",
[sym_scope] = "scope",
[sym_identifier] = "identifier",
[sym_comment] = "comment",
[sym__blank] = "_blank",
[sym_map_side] = "map_side",
[sym_keycode] = "keycode",
[sym__range_s_command] = "_range_s_command",
[sym__vimgrep] = "_vimgrep",
[sym__lua_cur_line] = "_lua_cur_line",
[sym__cmd_rhs] = "_cmd_rhs",
[sym__colon_rhs] = "_colon_rhs",
[sym__first_command] = "command",
[sym__range] = "_range",
[sym_command] = "command",
[sym__cr] = "_cr",
[sym__pipe] = "_pipe",
[sym_expression] = "expression",
[sym_printf] = "printf",
[sym_string] = "string",
[sym__argument] = "_argument",
[sym_scoped_identifier] = "scoped_identifier",
[aux_sym_map_side_repeat1] = "map_side_repeat1",
[aux_sym__cmd_rhs_repeat1] = "_cmd_rhs_repeat1",
[aux_sym_printf_repeat1] = "printf_repeat1",
};
static const TSSymbol ts_symbol_map[] = {
[ts_builtin_sym_end] = ts_builtin_sym_end,
[anon_sym_LT] = anon_sym_LT,
[aux_sym_keycode_token1] = aux_sym_keycode_token1,
[anon_sym_GT] = anon_sym_GT,
[sym__not_keycode] = sym__not_keycode,
[anon_sym_COLON_PERCENT] = sym_command,
[aux_sym__range_s_command_token1] = sym_command,
[aux_sym__vimgrep_token1] = sym_command,
[anon_sym_COLON_DOT] = sym_command,
[anon_sym_lua] = sym_command,
[aux_sym__cmd_rhs_token1] = sym_keycode,
[anon_sym_COLON] = anon_sym_COLON,
[aux_sym__colon_rhs_token1] = sym_keycode,
[aux_sym__first_command_token1] = aux_sym__first_command_token1,
[anon_sym_SQUOTE_LT_COMMA_SQUOTE_GT] = anon_sym_SQUOTE_LT_COMMA_SQUOTE_GT,
[aux_sym__cr_token1] = sym_keycode,
[anon_sym_BSLASH_PIPE] = anon_sym_BSLASH_PIPE,
[anon_sym_PIPE] = anon_sym_PIPE,
[aux_sym__pipe_token1] = aux_sym__pipe_token1,
[anon_sym_printf] = anon_sym_printf,
[anon_sym_LPAREN] = anon_sym_LPAREN,
[anon_sym_COMMA] = anon_sym_COMMA,
[anon_sym_RPAREN] = anon_sym_RPAREN,
[anon_sym_SQUOTE] = anon_sym_SQUOTE,
[sym_string_content] = sym_string_content,
[sym_scope] = sym_scope,
[sym_identifier] = sym_identifier,
[sym_comment] = sym_comment,
[sym__blank] = sym__blank,
[sym_map_side] = sym_map_side,
[sym_keycode] = sym_keycode,
[sym__range_s_command] = sym__range_s_command,
[sym__vimgrep] = sym__vimgrep,
[sym__lua_cur_line] = sym__lua_cur_line,
[sym__cmd_rhs] = sym__cmd_rhs,
[sym__colon_rhs] = sym__colon_rhs,
[sym__first_command] = sym_command,
[sym__range] = sym__range,
[sym_command] = sym_command,
[sym__cr] = sym__cr,
[sym__pipe] = sym__pipe,
[sym_expression] = sym_expression,
[sym_printf] = sym_printf,
[sym_string] = sym_string,
[sym__argument] = sym__argument,
[sym_scoped_identifier] = sym_scoped_identifier,
[aux_sym_map_side_repeat1] = aux_sym_map_side_repeat1,
[aux_sym__cmd_rhs_repeat1] = aux_sym__cmd_rhs_repeat1,
[aux_sym_printf_repeat1] = aux_sym_printf_repeat1,
};
static const TSSymbolMetadata ts_symbol_metadata[] = {
[ts_builtin_sym_end] = {
.visible = false,
.named = true,
},
[anon_sym_LT] = {
.visible = true,
.named = false,
},
[aux_sym_keycode_token1] = {
.visible = false,
.named = false,
},
[anon_sym_GT] = {
.visible = true,
.named = false,
},
[sym__not_keycode] = {
.visible = false,
.named = true,
},
[anon_sym_COLON_PERCENT] = {
.visible = true,
.named = true,
},
[aux_sym__range_s_command_token1] = {
.visible = true,
.named = true,
},
[aux_sym__vimgrep_token1] = {
.visible = true,
.named = true,
},
[anon_sym_COLON_DOT] = {
.visible = true,
.named = true,
},
[anon_sym_lua] = {
.visible = true,
.named = true,
},
[aux_sym__cmd_rhs_token1] = {
.visible = true,
.named = true,
},
[anon_sym_COLON] = {
.visible = true,
.named = false,
},
[aux_sym__colon_rhs_token1] = {
.visible = true,
.named = true,
},
[aux_sym__first_command_token1] = {
.visible = false,
.named = false,
},
[anon_sym_SQUOTE_LT_COMMA_SQUOTE_GT] = {
.visible = true,
.named = false,
},
[aux_sym__cr_token1] = {
.visible = true,
.named = true,
},
[anon_sym_BSLASH_PIPE] = {
.visible = true,
.named = false,
},
[anon_sym_PIPE] = {
.visible = true,
.named = false,
},
[aux_sym__pipe_token1] = {
.visible = true,
.named = true,
},
[anon_sym_printf] = {
.visible = true,
.named = false,
},
[anon_sym_LPAREN] = {
.visible = true,
.named = false,
},
[anon_sym_COMMA] = {
.visible = true,
.named = false,
},
[anon_sym_RPAREN] = {
.visible = true,
.named = false,
},
[anon_sym_SQUOTE] = {
.visible = true,
.named = false,
},
[sym_string_content] = {
.visible = true,
.named = true,
},
[sym_scope] = {
.visible = true,
.named = true,
},
[sym_identifier] = {
.visible = true,
.named = true,
},
[sym_comment] = {
.visible = true,
.named = true,
},
[sym__blank] = {
.visible = false,
.named = true,
},
[sym_map_side] = {
.visible = true,
.named = true,
},
[sym_keycode] = {
.visible = true,
.named = true,
},
[sym__range_s_command] = {
.visible = false,
.named = true,
},
[sym__vimgrep] = {
.visible = false,
.named = true,
},
[sym__lua_cur_line] = {
.visible = false,
.named = true,
},
[sym__cmd_rhs] = {
.visible = false,
.named = true,
},
[sym__colon_rhs] = {
.visible = false,
.named = true,
},
[sym__first_command] = {
.visible = true,
.named = true,
},
[sym__range] = {
.visible = false,
.named = true,
},
[sym_command] = {
.visible = true,
.named = true,
},
[sym__cr] = {
.visible = false,
.named = true,
},
[sym__pipe] = {
.visible = false,
.named = true,
},
[sym_expression] = {
.visible = true,
.named = true,
},
[sym_printf] = {
.visible = true,
.named = true,
},
[sym_string] = {
.visible = true,
.named = true,
},
[sym__argument] = {
.visible = false,
.named = true,
},
[sym_scoped_identifier] = {
.visible = true,
.named = true,
},
[aux_sym_map_side_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym__cmd_rhs_repeat1] = {
.visible = false,
.named = false,
},
[aux_sym_printf_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,
[21] = 21,
[22] = 22,
[23] = 23,
[24] = 24,
[25] = 25,
[26] = 26,
[27] = 27,
[28] = 28,
[29] = 29,
[30] = 30,
[31] = 31,
[32] = 32,
[33] = 33,
[34] = 34,
[35] = 35,
[36] = 36,
[37] = 37,
[38] = 38,
[39] = 39,
[40] = 40,
[41] = 41,
[42] = 42,
[43] = 43,
[44] = 44,
[45] = 45,
[46] = 46,
[47] = 47,
[48] = 48,
[49] = 49,
[50] = 50,
[51] = 51,
[52] = 52,
[53] = 53,
[54] = 54,
};
static bool ts_lex(TSLexer *lexer, TSStateId state) {
START_LEXER();
eof = lexer->eof(lexer);
switch (state) {
case 0:
if (eof) ADVANCE(41);
ADVANCE_MAP(
'"', 89,
'\'', 78,
'(', 75,
')', 77,
',', 76,
':', 61,
'<', 42,
'>', 46,
'\\', 27,
'l', 11,
'p', 24,
'|', 71,
'g', 12,
'v', 12,
);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(90);
if (('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(36);
END_STATE();
case 1:
ADVANCE_MAP(
'"', 89,
':', 62,
'<', 42,
'p', 50,
'\n', 90,
'\r', 90,
'\t', 52,
0x0b, 52,
'\f', 52,
' ', 52,
);
if (lookahead != 0 &&
lookahead != '(') ADVANCE(53);
END_STATE();
case 2:
if (lookahead == '"') ADVANCE(89);
if (lookahead == '<') ADVANCE(29);
if (lookahead == '\\') ADVANCE(27);
if (lookahead == 'l') ADVANCE(26);
if (lookahead == 's') ADVANCE(38);
if (lookahead == '|') ADVANCE(71);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(90);
END_STATE();
case 3:
if (lookahead == '"') ADVANCE(89);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(90);
if (('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(36);
END_STATE();
case 4:
if (lookahead == '"') ADVANCE(65);
if (lookahead == '\'') ADVANCE(64);
if (lookahead == '<') ADVANCE(30);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(66);
if (lookahead != 0 &&
lookahead != '\\' &&
lookahead != '|') ADVANCE(67);
END_STATE();
case 5:
if (lookahead == '"') ADVANCE(65);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(66);
if (lookahead != 0 &&
lookahead != '<' &&
lookahead != '\\' &&
lookahead != '|') ADVANCE(67);
END_STATE();
case 6:
if (lookahead == '"') ADVANCE(79);
if (lookahead == '\'') ADVANCE(78);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(80);
if (lookahead != 0) ADVANCE(81);
END_STATE();
case 7:
if (lookahead == '"') ADVANCE(43);
if (lookahead == '\n' ||
lookahead == '\r') ADVANCE(90);
if (('\t' <= lookahead && lookahead <= '\f') ||
lookahead == ' ') ADVANCE(44);
if (lookahead != 0 &&
lookahead != '>') ADVANCE(45);
END_STATE();
case 8:
if (lookahead == '\'') ADVANCE(16);
END_STATE();
case 9:
if (lookahead == ',') ADVANCE(8);
END_STATE();
case 10:
if (lookahead == '-') ADVANCE(35);
END_STATE();
case 11:
if (lookahead == ':') ADVANCE(82);
if (lookahead == 'u') ADVANCE(83);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(88);
END_STATE();
case 12:
if (lookahead == ':') ADVANCE(82);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(88);
END_STATE();
case 13:
if (lookahead == '>') ADVANCE(60);
END_STATE();
case 14:
if (lookahead == '>') ADVANCE(69);
END_STATE();
case 15:
if (lookahead == '>') ADVANCE(72);
END_STATE();
case 16:
if (lookahead == '>') ADVANCE(68);
END_STATE();
case 17:
if (lookahead == '>') ADVANCE(63);
END_STATE();
case 18:
if (lookahead == 'a') ADVANCE(58);
END_STATE();
case 19:
if (lookahead == 'e') ADVANCE(23);
END_STATE();
case 20:
if (lookahead == 'g') ADVANCE(25);
END_STATE();
case 21:
if (lookahead == 'i') ADVANCE(22);
END_STATE();
case 22:
if (lookahead == 'm') ADVANCE(20);
END_STATE();
case 23:
if (lookahead == 'p') ADVANCE(37);
END_STATE();
case 24:
if (lookahead == 'r') ADVANCE(85);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(88);
END_STATE();
case 25:
if (lookahead == 'r') ADVANCE(19);
END_STATE();
case 26:
if (lookahead == 'u') ADVANCE(18);
END_STATE();
case 27:
if (lookahead == '|') ADVANCE(70);
END_STATE();
case 28:
if (lookahead == 'A' ||
lookahead == 'a') ADVANCE(34);
END_STATE();
case 29:
if (lookahead == 'B' ||
lookahead == 'b') ADVANCE(28);
if (lookahead == 'C' ||
lookahead == 'c') ADVANCE(33);
END_STATE();
case 30:
if (lookahead == 'C' ||
lookahead == 'c') ADVANCE(10);
END_STATE();
case 31:
if (lookahead == 'D' ||
lookahead == 'd') ADVANCE(13);
END_STATE();
case 32:
if (lookahead == 'M' ||
lookahead == 'm') ADVANCE(31);
END_STATE();
case 33:
if (lookahead == 'R' ||
lookahead == 'r') ADVANCE(14);
END_STATE();
case 34:
if (lookahead == 'R' ||
lookahead == 'r') ADVANCE(15);
END_STATE();
case 35:
if (lookahead == 'U' ||
lookahead == 'u') ADVANCE(17);
END_STATE();
case 36:
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(88);
END_STATE();
case 37:
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r') ADVANCE(56);
END_STATE();
case 38:
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r') ADVANCE(55);
END_STATE();
case 39:
if (eof) ADVANCE(41);
ADVANCE_MAP(
'"', 89,
':', 61,
'<', 42,
'\n', 90,
'\r', 90,
'\t', 52,
0x0b, 52,
'\f', 52,
' ', 52,
);
if (lookahead != 0 &&
lookahead != '(') ADVANCE(53);
END_STATE();
case 40:
if (eof) ADVANCE(41);
ADVANCE_MAP(
'"', 89,
':', 62,
'<', 42,
'\n', 90,
'\r', 90,
'\t', 52,
0x0b, 52,
'\f', 52,
' ', 52,
);
if (lookahead != 0 &&
lookahead != '(') ADVANCE(53);
END_STATE();
case 41:
ACCEPT_TOKEN(ts_builtin_sym_end);
END_STATE();
case 42:
ACCEPT_TOKEN(anon_sym_LT);
if (lookahead == 'C' ||
lookahead == 'c') ADVANCE(32);
END_STATE();
case 43:
ACCEPT_TOKEN(aux_sym_keycode_token1);
if (lookahead == '>') ADVANCE(89);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r') ADVANCE(43);
END_STATE();
case 44:
ACCEPT_TOKEN(aux_sym_keycode_token1);
if (lookahead == '\n' ||
lookahead == '\r') ADVANCE(90);
if (('\t' <= lookahead && lookahead <= '\f') ||
lookahead == ' ') ADVANCE(44);
if (lookahead != 0 &&
lookahead != '>') ADVANCE(45);
END_STATE();
case 45:
ACCEPT_TOKEN(aux_sym_keycode_token1);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r' &&
lookahead != '>') ADVANCE(45);
END_STATE();
case 46:
ACCEPT_TOKEN(anon_sym_GT);
END_STATE();
case 47:
ACCEPT_TOKEN(sym__not_keycode);
if (lookahead == 'f') ADVANCE(74);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r' &&
lookahead != '"' &&
lookahead != '(' &&
lookahead != ':' &&
lookahead != '<') ADVANCE(53);
END_STATE();
case 48:
ACCEPT_TOKEN(sym__not_keycode);
if (lookahead == 'i') ADVANCE(49);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r' &&
lookahead != '"' &&
lookahead != '(' &&
lookahead != ':' &&
lookahead != '<') ADVANCE(53);
END_STATE();
case 49:
ACCEPT_TOKEN(sym__not_keycode);
if (lookahead == 'n') ADVANCE(51);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r' &&
lookahead != '"' &&
lookahead != '(' &&
lookahead != ':' &&
lookahead != '<') ADVANCE(53);
END_STATE();
case 50:
ACCEPT_TOKEN(sym__not_keycode);
if (lookahead == 'r') ADVANCE(48);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r' &&
lookahead != '"' &&
lookahead != '(' &&
lookahead != ':' &&
lookahead != '<') ADVANCE(53);
END_STATE();
case 51:
ACCEPT_TOKEN(sym__not_keycode);
if (lookahead == 't') ADVANCE(47);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r' &&
lookahead != '"' &&
lookahead != '(' &&
lookahead != ':' &&
lookahead != '<') ADVANCE(53);
END_STATE();
case 52:
ACCEPT_TOKEN(sym__not_keycode);
if (lookahead == '\n' ||
lookahead == '\r') ADVANCE(90);
if (('\t' <= lookahead && lookahead <= '\f') ||
lookahead == ' ') ADVANCE(52);
if (lookahead != 0 &&
lookahead != '"' &&
lookahead != '(' &&
lookahead != ':' &&
lookahead != '<') ADVANCE(53);
END_STATE();
case 53:
ACCEPT_TOKEN(sym__not_keycode);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r' &&
lookahead != '"' &&
lookahead != '(' &&
lookahead != ':' &&
lookahead != '<') ADVANCE(53);
END_STATE();
case 54:
ACCEPT_TOKEN(anon_sym_COLON_PERCENT);
END_STATE();
case 55:
ACCEPT_TOKEN(aux_sym__range_s_command_token1);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r') ADVANCE(55);
END_STATE();
case 56:
ACCEPT_TOKEN(aux_sym__vimgrep_token1);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r') ADVANCE(56);
END_STATE();
case 57:
ACCEPT_TOKEN(anon_sym_COLON_DOT);
END_STATE();
case 58:
ACCEPT_TOKEN(anon_sym_lua);
END_STATE();
case 59:
ACCEPT_TOKEN(anon_sym_lua);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(88);
END_STATE();
case 60:
ACCEPT_TOKEN(aux_sym__cmd_rhs_token1);
END_STATE();
case 61:
ACCEPT_TOKEN(anon_sym_COLON);
if (lookahead == '%') ADVANCE(54);
if (lookahead == '.') ADVANCE(57);
if (lookahead == 'v') ADVANCE(21);
END_STATE();
case 62:
ACCEPT_TOKEN(anon_sym_COLON);
if (lookahead == '.') ADVANCE(57);
END_STATE();
case 63:
ACCEPT_TOKEN(aux_sym__colon_rhs_token1);
END_STATE();
case 64:
ACCEPT_TOKEN(aux_sym__first_command_token1);
if (lookahead == '<') ADVANCE(9);
if (lookahead != 0 &&
lookahead != '\\' &&
lookahead != '|') ADVANCE(67);
END_STATE();
case 65:
ACCEPT_TOKEN(aux_sym__first_command_token1);
if (lookahead == '\n' ||
lookahead == '\r') ADVANCE(67);
if (lookahead == '<' ||
lookahead == '\\' ||
lookahead == '|') ADVANCE(89);
if (lookahead != 0) ADVANCE(65);
END_STATE();
case 66:
ACCEPT_TOKEN(aux_sym__first_command_token1);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(66);
if (lookahead != 0 &&
lookahead != '<' &&
lookahead != '\\' &&
lookahead != '|') ADVANCE(67);
END_STATE();
case 67:
ACCEPT_TOKEN(aux_sym__first_command_token1);
if (lookahead != 0 &&
lookahead != '<' &&
lookahead != '\\' &&
lookahead != '|') ADVANCE(67);
END_STATE();
case 68:
ACCEPT_TOKEN(anon_sym_SQUOTE_LT_COMMA_SQUOTE_GT);
END_STATE();
case 69:
ACCEPT_TOKEN(aux_sym__cr_token1);
END_STATE();
case 70:
ACCEPT_TOKEN(anon_sym_BSLASH_PIPE);
END_STATE();
case 71:
ACCEPT_TOKEN(anon_sym_PIPE);
END_STATE();
case 72:
ACCEPT_TOKEN(aux_sym__pipe_token1);
END_STATE();
case 73:
ACCEPT_TOKEN(anon_sym_printf);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(88);
END_STATE();
case 74:
ACCEPT_TOKEN(anon_sym_printf);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r' &&
lookahead != '"' &&
lookahead != '(' &&
lookahead != ':' &&
lookahead != '<') ADVANCE(53);
END_STATE();
case 75:
ACCEPT_TOKEN(anon_sym_LPAREN);
END_STATE();
case 76:
ACCEPT_TOKEN(anon_sym_COMMA);
END_STATE();
case 77:
ACCEPT_TOKEN(anon_sym_RPAREN);
END_STATE();
case 78:
ACCEPT_TOKEN(anon_sym_SQUOTE);
END_STATE();
case 79:
ACCEPT_TOKEN(sym_string_content);
if (lookahead == '\'') ADVANCE(89);
if (lookahead == '\n' ||
lookahead == '\r') ADVANCE(81);
if (lookahead != 0) ADVANCE(79);
END_STATE();
case 80:
ACCEPT_TOKEN(sym_string_content);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(80);
if (lookahead != 0 &&
lookahead != '\'') ADVANCE(81);
END_STATE();
case 81:
ACCEPT_TOKEN(sym_string_content);
if (lookahead != 0 &&
lookahead != '\'') ADVANCE(81);
END_STATE();
case 82:
ACCEPT_TOKEN(sym_scope);
END_STATE();
case 83:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'a') ADVANCE(59);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('b' <= lookahead && lookahead <= 'z')) ADVANCE(88);
END_STATE();
case 84:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'f') ADVANCE(73);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(88);
END_STATE();
case 85:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'i') ADVANCE(86);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(88);
END_STATE();
case 86:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 'n') ADVANCE(87);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(88);
END_STATE();
case 87:
ACCEPT_TOKEN(sym_identifier);
if (lookahead == 't') ADVANCE(84);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(88);
END_STATE();
case 88:
ACCEPT_TOKEN(sym_identifier);
if (('0' <= lookahead && lookahead <= '9') ||
('A' <= lookahead && lookahead <= 'Z') ||
lookahead == '_' ||
('a' <= lookahead && lookahead <= 'z')) ADVANCE(88);
END_STATE();
case 89:
ACCEPT_TOKEN(sym_comment);
if (lookahead != 0 &&
lookahead != '\n' &&
lookahead != '\r') ADVANCE(89);
END_STATE();
case 90:
ACCEPT_TOKEN(sym__blank);
if (('\t' <= lookahead && lookahead <= '\r') ||
lookahead == ' ') ADVANCE(90);
END_STATE();
default:
return false;
}
}
static const TSLexerMode ts_lex_modes[STATE_COUNT] = {
[0] = {.lex_state = 0},
[1] = {.lex_state = 1},
[2] = {.lex_state = 40},
[3] = {.lex_state = 40},
[4] = {.lex_state = 39},
[5] = {.lex_state = 2},
[6] = {.lex_state = 2},
[7] = {.lex_state = 2},
[8] = {.lex_state = 2},
[9] = {.lex_state = 2},
[10] = {.lex_state = 2},
[11] = {.lex_state = 40},
[12] = {.lex_state = 40},
[13] = {.lex_state = 40},
[14] = {.lex_state = 40},
[15] = {.lex_state = 40},
[16] = {.lex_state = 40},
[17] = {.lex_state = 40},
[18] = {.lex_state = 2},
[19] = {.lex_state = 40},
[20] = {.lex_state = 2},
[21] = {.lex_state = 4},
[22] = {.lex_state = 2},
[23] = {.lex_state = 2},
[24] = {.lex_state = 2},
[25] = {.lex_state = 0},
[26] = {.lex_state = 0},
[27] = {.lex_state = 0},
[28] = {.lex_state = 0},
[29] = {.lex_state = 0},
[30] = {.lex_state = 0},
[31] = {.lex_state = 5},
[32] = {.lex_state = 2},
[33] = {.lex_state = 5},
[34] = {.lex_state = 6},
[35] = {.lex_state = 0},
[36] = {.lex_state = 5},
[37] = {.lex_state = 0},
[38] = {.lex_state = 0},
[39] = {.lex_state = 7},
[40] = {.lex_state = 0},
[41] = {.lex_state = 0},
[42] = {.lex_state = 0},
[43] = {.lex_state = 0},
[44] = {.lex_state = 0},
[45] = {.lex_state = 0},
[46] = {.lex_state = 0},
[47] = {.lex_state = 0},
[48] = {.lex_state = 2},
[49] = {.lex_state = 5},
[50] = {.lex_state = 3},
[51] = {.lex_state = 0},
[52] = {.lex_state = 0},
[53] = {.lex_state = 0},
[54] = {.lex_state = 2},
};
static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
[STATE(0)] = {
[ts_builtin_sym_end] = ACTIONS(1),
[anon_sym_LT] = ACTIONS(1),
[anon_sym_GT] = ACTIONS(1),
[anon_sym_COLON_PERCENT] = ACTIONS(1),
[aux_sym__vimgrep_token1] = ACTIONS(1),
[anon_sym_COLON_DOT] = ACTIONS(1),
[anon_sym_lua] = ACTIONS(1),
[aux_sym__cmd_rhs_token1] = ACTIONS(1),
[anon_sym_COLON] = ACTIONS(1),
[anon_sym_BSLASH_PIPE] = ACTIONS(1),
[anon_sym_PIPE] = ACTIONS(1),
[anon_sym_printf] = ACTIONS(1),
[anon_sym_LPAREN] = ACTIONS(1),
[anon_sym_COMMA] = ACTIONS(1),
[anon_sym_RPAREN] = ACTIONS(1),
[anon_sym_SQUOTE] = ACTIONS(1),
[sym_scope] = ACTIONS(1),
[sym_identifier] = ACTIONS(1),
[sym_comment] = ACTIONS(3),
[sym__blank] = ACTIONS(3),
},
[STATE(1)] = {
[sym_map_side] = STATE(53),
[sym_keycode] = STATE(2),
[sym__lua_cur_line] = STATE(2),
[sym__cmd_rhs] = STATE(2),
[sym__colon_rhs] = STATE(2),
[sym__first_command] = STATE(7),
[sym_expression] = STATE(47),
[sym_printf] = STATE(41),
[aux_sym_map_side_repeat1] = STATE(2),
[anon_sym_LT] = ACTIONS(5),
[sym__not_keycode] = ACTIONS(7),
[anon_sym_COLON_DOT] = ACTIONS(9),
[aux_sym__cmd_rhs_token1] = ACTIONS(11),
[anon_sym_COLON] = ACTIONS(13),
[anon_sym_printf] = ACTIONS(15),
[sym_comment] = ACTIONS(3),
[sym__blank] = ACTIONS(17),
},
};
static const uint16_t ts_small_parse_table[] = {
[0] = 10,
ACTIONS(3), 1,
sym_comment,
ACTIONS(5), 1,
anon_sym_LT,
ACTIONS(9), 1,
anon_sym_COLON_DOT,
ACTIONS(11), 1,
aux_sym__cmd_rhs_token1,
ACTIONS(13), 1,
anon_sym_COLON,
ACTIONS(17), 1,
sym__blank,
ACTIONS(19), 1,
ts_builtin_sym_end,
ACTIONS(21), 1,
sym__not_keycode,
STATE(7), 1,
sym__first_command,
STATE(3), 5,
sym_keycode,
sym__lua_cur_line,
sym__cmd_rhs,
sym__colon_rhs,
aux_sym_map_side_repeat1,
[35] = 10,
ACTIONS(3), 1,
sym_comment,
ACTIONS(17), 1,
sym__blank,
ACTIONS(23), 1,
ts_builtin_sym_end,
ACTIONS(25), 1,
anon_sym_LT,
ACTIONS(28), 1,
sym__not_keycode,
ACTIONS(31), 1,
anon_sym_COLON_DOT,
ACTIONS(34), 1,
aux_sym__cmd_rhs_token1,
ACTIONS(37), 1,
anon_sym_COLON,
STATE(7), 1,
sym__first_command,
STATE(3), 5,
sym_keycode,
sym__lua_cur_line,
sym__cmd_rhs,
sym__colon_rhs,
aux_sym_map_side_repeat1,
[70] = 7,
ACTIONS(3), 1,
sym_comment,
ACTIONS(17), 1,
sym__blank,
ACTIONS(44), 1,
anon_sym_COLON_PERCENT,
ACTIONS(46), 1,
aux_sym__vimgrep_token1,
STATE(43), 2,
sym__range_s_command,
sym__vimgrep,
ACTIONS(40), 3,
ts_builtin_sym_end,
anon_sym_COLON_DOT,
aux_sym__cmd_rhs_token1,
ACTIONS(42), 3,
anon_sym_LT,
sym__not_keycode,
anon_sym_COLON,
[97] = 6,
ACTIONS(48), 1,
aux_sym__cr_token1,
STATE(16), 1,
sym__cr,
STATE(18), 1,
aux_sym__cmd_rhs_repeat1,
STATE(31), 1,
sym__pipe,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(50), 3,
anon_sym_BSLASH_PIPE,
anon_sym_PIPE,
aux_sym__pipe_token1,
[119] = 6,
ACTIONS(52), 1,
aux_sym__cr_token1,
STATE(5), 1,
aux_sym__cmd_rhs_repeat1,
STATE(19), 1,
sym__cr,
STATE(31), 1,
sym__pipe,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(50), 3,
anon_sym_BSLASH_PIPE,
anon_sym_PIPE,
aux_sym__pipe_token1,
[141] = 6,
ACTIONS(54), 1,
aux_sym__cr_token1,
STATE(9), 1,
aux_sym__cmd_rhs_repeat1,
STATE(12), 1,
sym__cr,
STATE(31), 1,
sym__pipe,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(50), 3,
anon_sym_BSLASH_PIPE,
anon_sym_PIPE,
aux_sym__pipe_token1,
[163] = 6,
ACTIONS(56), 1,
aux_sym__cr_token1,
STATE(10), 1,
aux_sym__cmd_rhs_repeat1,
STATE(11), 1,
sym__cr,
STATE(31), 1,
sym__pipe,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(50), 3,
anon_sym_BSLASH_PIPE,
anon_sym_PIPE,
aux_sym__pipe_token1,
[185] = 6,
ACTIONS(58), 1,
aux_sym__cr_token1,
STATE(17), 1,
sym__cr,
STATE(18), 1,
aux_sym__cmd_rhs_repeat1,
STATE(31), 1,
sym__pipe,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(50), 3,
anon_sym_BSLASH_PIPE,
anon_sym_PIPE,
aux_sym__pipe_token1,
[207] = 6,
ACTIONS(60), 1,
aux_sym__cr_token1,
STATE(15), 1,
sym__cr,
STATE(18), 1,
aux_sym__cmd_rhs_repeat1,
STATE(31), 1,
sym__pipe,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(50), 3,
anon_sym_BSLASH_PIPE,
anon_sym_PIPE,
aux_sym__pipe_token1,
[229] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(17), 1,
sym__blank,
ACTIONS(62), 3,
ts_builtin_sym_end,
anon_sym_COLON_DOT,
aux_sym__cmd_rhs_token1,
ACTIONS(64), 3,
anon_sym_LT,
sym__not_keycode,
anon_sym_COLON,
[246] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(17), 1,
sym__blank,
ACTIONS(66), 3,
ts_builtin_sym_end,
anon_sym_COLON_DOT,
aux_sym__cmd_rhs_token1,
ACTIONS(68), 3,
anon_sym_LT,
sym__not_keycode,
anon_sym_COLON,
[263] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(17), 1,
sym__blank,
ACTIONS(70), 3,
ts_builtin_sym_end,
anon_sym_COLON_DOT,
aux_sym__cmd_rhs_token1,
ACTIONS(72), 3,
anon_sym_LT,
sym__not_keycode,
anon_sym_COLON,
[280] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(17), 1,
sym__blank,
ACTIONS(74), 3,
ts_builtin_sym_end,
anon_sym_COLON_DOT,
aux_sym__cmd_rhs_token1,
ACTIONS(76), 3,
anon_sym_LT,
sym__not_keycode,
anon_sym_COLON,
[297] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(17), 1,
sym__blank,
ACTIONS(78), 3,
ts_builtin_sym_end,
anon_sym_COLON_DOT,
aux_sym__cmd_rhs_token1,
ACTIONS(80), 3,
anon_sym_LT,
sym__not_keycode,
anon_sym_COLON,
[314] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(17), 1,
sym__blank,
ACTIONS(82), 3,
ts_builtin_sym_end,
anon_sym_COLON_DOT,
aux_sym__cmd_rhs_token1,
ACTIONS(84), 3,
anon_sym_LT,
sym__not_keycode,
anon_sym_COLON,
[331] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(17), 1,
sym__blank,
ACTIONS(86), 3,
ts_builtin_sym_end,
anon_sym_COLON_DOT,
aux_sym__cmd_rhs_token1,
ACTIONS(88), 3,
anon_sym_LT,
sym__not_keycode,
anon_sym_COLON,
[348] = 5,
ACTIONS(90), 1,
aux_sym__cr_token1,
STATE(18), 1,
aux_sym__cmd_rhs_repeat1,
STATE(31), 1,
sym__pipe,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(92), 3,
anon_sym_BSLASH_PIPE,
anon_sym_PIPE,
aux_sym__pipe_token1,
[367] = 4,
ACTIONS(3), 1,
sym_comment,
ACTIONS(17), 1,
sym__blank,
ACTIONS(95), 3,
ts_builtin_sym_end,
anon_sym_COLON_DOT,
aux_sym__cmd_rhs_token1,
ACTIONS(97), 3,
anon_sym_LT,
sym__not_keycode,
anon_sym_COLON,
[384] = 2,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(99), 4,
aux_sym__cr_token1,
anon_sym_BSLASH_PIPE,
anon_sym_PIPE,
aux_sym__pipe_token1,
[395] = 5,
ACTIONS(101), 1,
aux_sym__colon_rhs_token1,
ACTIONS(103), 1,
aux_sym__first_command_token1,
ACTIONS(105), 1,
anon_sym_SQUOTE_LT_COMMA_SQUOTE_GT,
STATE(49), 1,
sym__range,
ACTIONS(17), 2,
sym_comment,
sym__blank,
[412] = 2,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(107), 4,
aux_sym__cr_token1,
anon_sym_BSLASH_PIPE,
anon_sym_PIPE,
aux_sym__pipe_token1,
[423] = 2,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(109), 4,
aux_sym__cr_token1,
anon_sym_BSLASH_PIPE,
anon_sym_PIPE,
aux_sym__pipe_token1,
[434] = 2,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(90), 4,
aux_sym__cr_token1,
anon_sym_BSLASH_PIPE,
anon_sym_PIPE,
aux_sym__pipe_token1,
[445] = 4,
ACTIONS(111), 1,
anon_sym_RPAREN,
ACTIONS(113), 1,
anon_sym_SQUOTE,
STATE(27), 1,
sym_string,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[459] = 3,
ACTIONS(115), 1,
sym_scope,
ACTIONS(3), 2,
sym_comment,
sym__blank,
STATE(38), 2,
sym__argument,
sym_scoped_identifier,
[471] = 4,
ACTIONS(117), 1,
anon_sym_COMMA,
ACTIONS(119), 1,
anon_sym_RPAREN,
STATE(28), 1,
aux_sym_printf_repeat1,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[485] = 4,
ACTIONS(117), 1,
anon_sym_COMMA,
ACTIONS(121), 1,
anon_sym_RPAREN,
STATE(29), 1,
aux_sym_printf_repeat1,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[499] = 4,
ACTIONS(123), 1,
anon_sym_COMMA,
ACTIONS(126), 1,
anon_sym_RPAREN,
STATE(29), 1,
aux_sym_printf_repeat1,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[513] = 2,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(128), 2,
anon_sym_COMMA,
anon_sym_RPAREN,
[522] = 3,
ACTIONS(130), 1,
aux_sym__first_command_token1,
STATE(24), 1,
sym_command,
ACTIONS(17), 2,
sym_comment,
sym__blank,
[533] = 3,
ACTIONS(132), 1,
aux_sym__cr_token1,
STATE(13), 1,
sym__cr,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[544] = 3,
ACTIONS(130), 1,
aux_sym__first_command_token1,
STATE(6), 1,
sym_command,
ACTIONS(17), 2,
sym_comment,
sym__blank,
[555] = 3,
ACTIONS(134), 1,
anon_sym_SQUOTE,
ACTIONS(136), 1,
sym_string_content,
ACTIONS(17), 2,
sym_comment,
sym__blank,
[566] = 2,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(138), 2,
anon_sym_COMMA,
anon_sym_RPAREN,
[575] = 3,
ACTIONS(130), 1,
aux_sym__first_command_token1,
STATE(8), 1,
sym_command,
ACTIONS(17), 2,
sym_comment,
sym__blank,
[586] = 2,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(140), 2,
anon_sym_COMMA,
anon_sym_RPAREN,
[595] = 2,
ACTIONS(3), 2,
sym_comment,
sym__blank,
ACTIONS(126), 2,
anon_sym_COMMA,
anon_sym_RPAREN,
[604] = 2,
ACTIONS(142), 1,
aux_sym_keycode_token1,
ACTIONS(17), 2,
sym_comment,
sym__blank,
[612] = 2,
ACTIONS(144), 1,
anon_sym_GT,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[620] = 2,
ACTIONS(146), 1,
ts_builtin_sym_end,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[628] = 2,
ACTIONS(148), 1,
anon_sym_LPAREN,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[636] = 2,
ACTIONS(150), 1,
ts_builtin_sym_end,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[644] = 2,
ACTIONS(152), 1,
anon_sym_SQUOTE,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[652] = 2,
ACTIONS(154), 1,
ts_builtin_sym_end,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[660] = 2,
ACTIONS(156), 1,
ts_builtin_sym_end,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[668] = 2,
ACTIONS(19), 1,
ts_builtin_sym_end,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[676] = 2,
ACTIONS(158), 1,
anon_sym_lua,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[684] = 2,
ACTIONS(160), 1,
aux_sym__first_command_token1,
ACTIONS(17), 2,
sym_comment,
sym__blank,
[692] = 2,
ACTIONS(162), 1,
sym_identifier,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[700] = 2,
ACTIONS(164), 1,
ts_builtin_sym_end,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[708] = 2,
ACTIONS(166), 1,
ts_builtin_sym_end,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[716] = 2,
ACTIONS(168), 1,
ts_builtin_sym_end,
ACTIONS(3), 2,
sym_comment,
sym__blank,
[724] = 2,
ACTIONS(170), 1,
aux_sym__range_s_command_token1,
ACTIONS(3), 2,
sym_comment,
sym__blank,
};
static const uint32_t ts_small_parse_table_map[] = {
[SMALL_STATE(2)] = 0,
[SMALL_STATE(3)] = 35,
[SMALL_STATE(4)] = 70,
[SMALL_STATE(5)] = 97,
[SMALL_STATE(6)] = 119,
[SMALL_STATE(7)] = 141,
[SMALL_STATE(8)] = 163,
[SMALL_STATE(9)] = 185,
[SMALL_STATE(10)] = 207,
[SMALL_STATE(11)] = 229,
[SMALL_STATE(12)] = 246,
[SMALL_STATE(13)] = 263,
[SMALL_STATE(14)] = 280,
[SMALL_STATE(15)] = 297,
[SMALL_STATE(16)] = 314,
[SMALL_STATE(17)] = 331,
[SMALL_STATE(18)] = 348,
[SMALL_STATE(19)] = 367,
[SMALL_STATE(20)] = 384,
[SMALL_STATE(21)] = 395,
[SMALL_STATE(22)] = 412,
[SMALL_STATE(23)] = 423,
[SMALL_STATE(24)] = 434,
[SMALL_STATE(25)] = 445,
[SMALL_STATE(26)] = 459,
[SMALL_STATE(27)] = 471,
[SMALL_STATE(28)] = 485,
[SMALL_STATE(29)] = 499,
[SMALL_STATE(30)] = 513,
[SMALL_STATE(31)] = 522,
[SMALL_STATE(32)] = 533,
[SMALL_STATE(33)] = 544,
[SMALL_STATE(34)] = 555,
[SMALL_STATE(35)] = 566,
[SMALL_STATE(36)] = 575,
[SMALL_STATE(37)] = 586,
[SMALL_STATE(38)] = 595,
[SMALL_STATE(39)] = 604,
[SMALL_STATE(40)] = 612,
[SMALL_STATE(41)] = 620,
[SMALL_STATE(42)] = 628,
[SMALL_STATE(43)] = 636,
[SMALL_STATE(44)] = 644,
[SMALL_STATE(45)] = 652,
[SMALL_STATE(46)] = 660,
[SMALL_STATE(47)] = 668,
[SMALL_STATE(48)] = 676,
[SMALL_STATE(49)] = 684,
[SMALL_STATE(50)] = 692,
[SMALL_STATE(51)] = 700,
[SMALL_STATE(52)] = 708,
[SMALL_STATE(53)] = 716,
[SMALL_STATE(54)] = 724,
};
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 = false}}, SHIFT(39),
[7] = {.entry = {.count = 1, .reusable = false}}, SHIFT(4),
[9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48),
[11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36),
[13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(21),
[15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(42),
[17] = {.entry = {.count = 1, .reusable = false}}, SHIFT_EXTRA(),
[19] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_side, 1, 0, 0),
[21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(3),
[23] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_map_side_repeat1, 2, 0, 0),
[25] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_map_side_repeat1, 2, 0, 0), SHIFT_REPEAT(39),
[28] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_map_side_repeat1, 2, 0, 0), SHIFT_REPEAT(3),
[31] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_map_side_repeat1, 2, 0, 0), SHIFT_REPEAT(48),
[34] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_map_side_repeat1, 2, 0, 0), SHIFT_REPEAT(36),
[37] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_map_side_repeat1, 2, 0, 0), SHIFT_REPEAT(21),
[40] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_map_side_repeat1, 1, 0, 0),
[42] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_map_side_repeat1, 1, 0, 0),
[44] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54),
[46] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43),
[48] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
[50] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31),
[52] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19),
[54] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12),
[56] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11),
[58] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17),
[60] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
[62] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__cmd_rhs, 3, 0, 0),
[64] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__cmd_rhs, 3, 0, 0),
[66] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_rhs, 2, 0, 0),
[68] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__colon_rhs, 2, 0, 0),
[70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__lua_cur_line, 3, 0, 0),
[72] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__lua_cur_line, 3, 0, 0),
[74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_keycode, 3, 0, 0),
[76] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_keycode, 3, 0, 0),
[78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__cmd_rhs, 4, 0, 0),
[80] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__cmd_rhs, 4, 0, 0),
[82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_rhs, 5, 0, 0),
[84] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__colon_rhs, 5, 0, 0),
[86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_rhs, 3, 0, 0),
[88] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__colon_rhs, 3, 0, 0),
[90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__cmd_rhs_repeat1, 2, 0, 0),
[92] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__cmd_rhs_repeat1, 2, 0, 0), SHIFT_REPEAT(31),
[95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_rhs, 4, 0, 0),
[97] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__colon_rhs, 4, 0, 0),
[99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__first_command, 2, 0, 0),
[101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33),
[103] = {.entry = {.count = 1, .reusable = false}}, SHIFT(20),
[105] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49),
[107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__first_command, 3, 0, 0),
[109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_command, 1, 0, 0),
[111] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45),
[113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34),
[115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50),
[117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26),
[119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46),
[121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52),
[123] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_printf_repeat1, 2, 0, 0), SHIFT_REPEAT(26),
[126] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_printf_repeat1, 2, 0, 0),
[128] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_scoped_identifier, 2, 0, 0),
[130] = {.entry = {.count = 1, .reusable = false}}, SHIFT(23),
[132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13),
[134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35),
[136] = {.entry = {.count = 1, .reusable = false}}, SHIFT(44),
[138] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 2, 0, 0),
[140] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_string, 3, 0, 0),
[142] = {.entry = {.count = 1, .reusable = false}}, SHIFT(40),
[144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14),
[146] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_expression, 1, 0, 0),
[148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25),
[150] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_side, 2, 0, 0),
[152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37),
[154] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_printf, 3, 0, 0),
[156] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_printf, 4, 0, 0),
[158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32),
[160] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22),
[162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30),
[164] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__range_s_command, 2, 0, 0),
[166] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_printf, 5, 0, 0),
[168] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(),
[170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51),
};
#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_vim_map_side(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 = "vim_map_side",
.max_reserved_word_set_size = 0,
.metadata = {
.major_version = 0,
.minor_version = 1,
.patch_version = 3,
},
};
return &language;
}
#ifdef __cplusplus
}
#endif