From a0406c89066c4668317381184e3dd744ae8c24df Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 14 Jul 2017 17:14:23 -0700 Subject: [PATCH] Fix distinction between numeric args and redirect file descriptors --- corpus/commands.txt | 21 +- grammar.js | 12 +- src/grammar.json | 44 +- src/parser.c | 17914 +++++++++++++++++++++++------------------- src/scanner.cc | 39 +- 5 files changed, 9743 insertions(+), 8287 deletions(-) diff --git a/corpus/commands.txt b/corpus/commands.txt index 0c3741b..ade9ad1 100644 --- a/corpus/commands.txt +++ b/corpus/commands.txt @@ -23,7 +23,7 @@ cat -n file1.txt file2.txt (command (command_name) (argument) (argument) (argument))) =============================== -Commands with string arguments +Commands with quoted arguments =============================== echo "hello $(whoami), this is $(uname)" @@ -37,6 +37,17 @@ echo 'hi' (command_substitution (command (command_name))))) (command (command_name) (single_quoted_argument))) +=============================== +Commands with numeric arguments +=============================== + +exit 1 + +--- + +(program + (command (command_name) (argument))) + =================================== Commands with environment variables =================================== @@ -99,7 +110,7 @@ File redirects =============================== whoami > /dev/null -cat a b 2> /dev/null +cat a b > /dev/null 2>&1 whoami --- @@ -107,14 +118,14 @@ cat a b 2> /dev/null (program (command (command_name) - (file_redirect (file_name))) + (file_redirect (argument))) (command (command_name) (argument) (argument) - (file_redirect (file_descriptor) (file_name))) + (file_redirect (argument))) (command - (file_redirect (file_descriptor) (file_descriptor)) + (file_redirect (file_descriptor) (argument)) (command_name))) =============================== diff --git a/grammar.js b/grammar.js index c10adff..d64a9d1 100644 --- a/grammar.js +++ b/grammar.js @@ -7,7 +7,8 @@ module.exports = grammar({ $._simple_heredoc, $._heredoc_beginning, $._heredoc_middle, - $._heredoc_end + $._heredoc_end, + $.file_descriptor ], extras: $ => [ @@ -171,11 +172,8 @@ module.exports = grammar({ file_redirect: $ => seq( optional($.file_descriptor), - choice('<', '>', '<&', '>&'), - choice( - $.file_descriptor, - rename($.word, 'file_name') - ) + choice('<', '>', '>>', '&>', '&>>', '<&', '>&'), + $.value ), heredoc_redirect: $ => seq( @@ -196,8 +194,6 @@ module.exports = grammar({ ) ), - file_descriptor: $ => token(prec(1, /\d+/)), - leading_word: $ => /[^"\\\s#=|;:{}()]+/, word: $ => /[^"#\\\s$<>{}&;()]+/, diff --git a/src/grammar.json b/src/grammar.json index 4f437a2..5b5252d 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -646,6 +646,18 @@ "type": "STRING", "value": ">" }, + { + "type": "STRING", + "value": ">>" + }, + { + "type": "STRING", + "value": "&>" + }, + { + "type": "STRING", + "value": "&>>" + }, { "type": "STRING", "value": "<&" @@ -657,21 +669,8 @@ ] }, { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "file_descriptor" - }, - { - "type": "RENAME", - "content": { - "type": "SYMBOL", - "name": "word" - }, - "value": "file_name" - } - ] + "type": "SYMBOL", + "name": "value" } ] }, @@ -739,17 +738,6 @@ } ] }, - "file_descriptor": { - "type": "TOKEN", - "content": { - "type": "PREC", - "value": 1, - "content": { - "type": "PATTERN", - "value": "\\d+" - } - } - }, "leading_word": { "type": "PATTERN", "value": "[^\"\\\\\\s#=|;:{}()]+" @@ -819,6 +807,10 @@ { "type": "SYMBOL", "name": "_heredoc_end" + }, + { + "type": "SYMBOL", + "name": "file_descriptor" } ], "inline": [ diff --git a/src/parser.c b/src/parser.c index e0a9e9b..2f82d11 100644 --- a/src/parser.c +++ b/src/parser.c @@ -4,10 +4,10 @@ #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #define LANGUAGE_VERSION 3 -#define STATE_COUNT 374 -#define SYMBOL_COUNT 78 -#define TOKEN_COUNT 49 -#define EXTERNAL_TOKEN_COUNT 4 +#define STATE_COUNT 429 +#define SYMBOL_COUNT 81 +#define TOKEN_COUNT 52 +#define EXTERNAL_TOKEN_COUNT 5 #define MAX_RENAME_SEQUENCE_LENGTH 7 enum { @@ -15,84 +15,86 @@ enum { sym__heredoc_beginning = 2, sym__heredoc_middle = 3, sym__heredoc_end = 4, - anon_sym_while = 5, - anon_sym_do = 6, - anon_sym_done = 7, - anon_sym_if = 8, - anon_sym_then = 9, - anon_sym_fi = 10, - anon_sym_elif = 11, - anon_sym_else = 12, - anon_sym_case = 13, - anon_sym_in = 14, - anon_sym_esac = 15, - anon_sym_RPAREN = 16, - anon_sym_SEMI_SEMI = 17, - anon_sym_LBRACK = 18, - anon_sym_RBRACK = 19, - anon_sym_LBRACK_LBRACK = 20, - anon_sym_RBRACK_RBRACK = 21, - aux_sym_SLASH_BSLASHs_PLUS_SLASH = 22, - anon_sym_PIPE = 23, - anon_sym_PIPE_AMP = 24, - anon_sym_AMP_AMP = 25, - anon_sym_PIPE_PIPE = 26, - anon_sym_EQ = 27, - anon_sym_DQUOTE = 28, - sym__quoted_chars = 29, - sym_single_quoted_argument = 30, - anon_sym_DOLLAR = 31, - anon_sym_DOLLAR_LBRACE = 32, - anon_sym_COLON = 33, - anon_sym_COLON_QMARK = 34, - anon_sym_RBRACE = 35, - anon_sym_DOLLAR_LPAREN = 36, - anon_sym_LT = 37, - anon_sym_GT = 38, - anon_sym_LT_AMP = 39, - anon_sym_GT_AMP = 40, - anon_sym_LT_LT = 41, - anon_sym_LT_LT_DASH = 42, - sym_file_descriptor = 43, - sym_leading_word = 44, - sym_word = 45, - sym_comment = 46, - anon_sym_SEMI = 47, - anon_sym_LF = 48, - sym_program = 49, - sym__terminated_statement = 50, - sym_while_statement = 51, - sym_do_group = 52, - sym_if_statement = 53, - sym_elif_clause = 54, - sym_else_clause = 55, - sym_case_statement = 56, - sym_case_item = 57, - sym_bracket_command = 58, - sym_command = 59, - sym_pipeline = 60, - sym_list = 61, - sym_environment_variable_assignment = 62, - sym_quoted_argument = 63, - sym_expansion = 64, - sym_operator_expansion = 65, - sym_command_substitution = 66, - sym_file_redirect = 67, - sym_heredoc_redirect = 68, - sym_heredoc = 69, - aux_sym_program_repeat1 = 70, - aux_sym_if_statement_repeat1 = 71, - aux_sym_case_statement_repeat1 = 72, - aux_sym_bracket_command_repeat1 = 73, - aux_sym_command_repeat1 = 74, - aux_sym_command_repeat2 = 75, - aux_sym_quoted_argument_repeat1 = 76, - aux_sym_heredoc_repeat1 = 77, - rename_sym_1 = 78, - rename_sym_argument = 79, - rename_sym_command_name = 80, - rename_sym_file_name = 81, - rename_sym_variable_name = 82, + sym_file_descriptor = 5, + anon_sym_while = 6, + anon_sym_do = 7, + anon_sym_done = 8, + anon_sym_if = 9, + anon_sym_then = 10, + anon_sym_fi = 11, + anon_sym_elif = 12, + anon_sym_else = 13, + anon_sym_case = 14, + anon_sym_in = 15, + anon_sym_esac = 16, + anon_sym_RPAREN = 17, + anon_sym_SEMI_SEMI = 18, + anon_sym_LBRACK = 19, + anon_sym_RBRACK = 20, + anon_sym_LBRACK_LBRACK = 21, + anon_sym_RBRACK_RBRACK = 22, + aux_sym_SLASH_BSLASHs_PLUS_SLASH = 23, + anon_sym_PIPE = 24, + anon_sym_PIPE_AMP = 25, + anon_sym_AMP_AMP = 26, + anon_sym_PIPE_PIPE = 27, + anon_sym_EQ = 28, + anon_sym_DQUOTE = 29, + sym__quoted_chars = 30, + sym_single_quoted_argument = 31, + anon_sym_DOLLAR = 32, + anon_sym_DOLLAR_LBRACE = 33, + anon_sym_COLON = 34, + anon_sym_COLON_QMARK = 35, + anon_sym_RBRACE = 36, + anon_sym_DOLLAR_LPAREN = 37, + anon_sym_LT = 38, + anon_sym_GT = 39, + anon_sym_GT_GT = 40, + anon_sym_AMP_GT = 41, + anon_sym_AMP_GT_GT = 42, + anon_sym_LT_AMP = 43, + anon_sym_GT_AMP = 44, + anon_sym_LT_LT = 45, + anon_sym_LT_LT_DASH = 46, + sym_leading_word = 47, + sym_word = 48, + sym_comment = 49, + anon_sym_SEMI = 50, + anon_sym_LF = 51, + sym_program = 52, + sym__terminated_statement = 53, + sym_while_statement = 54, + sym_do_group = 55, + sym_if_statement = 56, + sym_elif_clause = 57, + sym_else_clause = 58, + sym_case_statement = 59, + sym_case_item = 60, + sym_bracket_command = 61, + sym_command = 62, + sym_pipeline = 63, + sym_list = 64, + sym_environment_variable_assignment = 65, + sym_quoted_argument = 66, + sym_expansion = 67, + sym_operator_expansion = 68, + sym_command_substitution = 69, + sym_file_redirect = 70, + sym_heredoc_redirect = 71, + sym_heredoc = 72, + aux_sym_program_repeat1 = 73, + aux_sym_if_statement_repeat1 = 74, + aux_sym_case_statement_repeat1 = 75, + aux_sym_bracket_command_repeat1 = 76, + aux_sym_command_repeat1 = 77, + aux_sym_command_repeat2 = 78, + aux_sym_quoted_argument_repeat1 = 79, + aux_sym_heredoc_repeat1 = 80, + rename_sym_1 = 81, + rename_sym_argument = 82, + rename_sym_command_name = 83, + rename_sym_variable_name = 84, }; static const char *ts_symbol_names[] = { @@ -100,6 +102,7 @@ static const char *ts_symbol_names[] = { [sym__heredoc_beginning] = "_heredoc_beginning", [sym__heredoc_middle] = "_heredoc_middle", [sym__heredoc_end] = "_heredoc_end", + [sym_file_descriptor] = "file_descriptor", [ts_builtin_sym_end] = "END", [anon_sym_while] = "while", [anon_sym_do] = "do", @@ -135,11 +138,13 @@ static const char *ts_symbol_names[] = { [anon_sym_DOLLAR_LPAREN] = "$(", [anon_sym_LT] = "<", [anon_sym_GT] = ">", + [anon_sym_GT_GT] = ">>", + [anon_sym_AMP_GT] = "&>", + [anon_sym_AMP_GT_GT] = "&>>", [anon_sym_LT_AMP] = "<&", [anon_sym_GT_AMP] = ">&", [anon_sym_LT_LT] = "<<", [anon_sym_LT_LT_DASH] = "<<-", - [sym_file_descriptor] = "file_descriptor", [sym_leading_word] = "leading_word", [sym_word] = "word", [sym_comment] = "comment", @@ -177,7 +182,6 @@ static const char *ts_symbol_names[] = { [rename_sym_1] = "", [rename_sym_argument] = "argument", [rename_sym_command_name] = "command_name", - [rename_sym_file_name] = "file_name", [rename_sym_variable_name] = "variable_name", }; @@ -206,6 +210,12 @@ static const TSSymbolMetadata ts_symbol_metadata[SYMBOL_COUNT] = { .structural = true, .extra = false, }, + [sym_file_descriptor] = { + .visible = true, + .named = true, + .structural = true, + .extra = false, + }, [ts_builtin_sym_end] = { .visible = false, .named = true, @@ -416,6 +426,24 @@ static const TSSymbolMetadata ts_symbol_metadata[SYMBOL_COUNT] = { .structural = true, .extra = false, }, + [anon_sym_GT_GT] = { + .visible = true, + .named = false, + .structural = true, + .extra = false, + }, + [anon_sym_AMP_GT] = { + .visible = true, + .named = false, + .structural = true, + .extra = false, + }, + [anon_sym_AMP_GT_GT] = { + .visible = true, + .named = false, + .structural = true, + .extra = false, + }, [anon_sym_LT_AMP] = { .visible = true, .named = false, @@ -440,12 +468,6 @@ static const TSSymbolMetadata ts_symbol_metadata[SYMBOL_COUNT] = { .structural = true, .extra = false, }, - [sym_file_descriptor] = { - .visible = true, - .named = true, - .structural = true, - .extra = false, - }, [sym_leading_word] = { .visible = true, .named = true, @@ -652,7 +674,7 @@ static const TSSymbolMetadata ts_symbol_metadata[SYMBOL_COUNT] = { }, }; -static TSSymbol ts_rename_sequences[25][MAX_RENAME_SEQUENCE_LENGTH] = { +static TSSymbol ts_rename_sequences[24][MAX_RENAME_SEQUENCE_LENGTH] = { [1] = { [0] = rename_sym_command_name, }, @@ -660,7 +682,7 @@ static TSSymbol ts_rename_sequences[25][MAX_RENAME_SEQUENCE_LENGTH] = { [0] = rename_sym_argument, }, [3] = { - [1] = rename_sym_file_name, + [1] = rename_sym_argument, }, [4] = { [0] = rename_sym_command_name, @@ -669,62 +691,59 @@ static TSSymbol ts_rename_sequences[25][MAX_RENAME_SEQUENCE_LENGTH] = { [1] = rename_sym_command_name, }, [6] = { - [1] = rename_sym_variable_name, + [2] = rename_sym_argument, }, [7] = { - [1] = rename_sym_argument, + [1] = rename_sym_variable_name, }, [8] = { - [2] = rename_sym_file_name, + [0] = rename_sym_command_name, }, [9] = { - [0] = rename_sym_command_name, + [0] = rename_sym_variable_name, }, [10] = { [0] = rename_sym_variable_name, - }, - [11] = { - [0] = rename_sym_variable_name, [2] = rename_sym_argument, }, - [12] = { + [11] = { [1] = rename_sym_command_name, }, - [13] = { + [12] = { [1] = rename_sym_variable_name, }, - [14] = { + [13] = { [0] = rename_sym_command_name, }, - [15] = { + [14] = { [1] = rename_sym_command_name, }, - [16] = { + [15] = { [1] = rename_sym_argument, }, - [17] = { + [16] = { [1] = rename_sym_command_name, }, - [18] = { + [17] = { [0] = rename_sym_argument, }, + [18] = { + [1] = rename_sym_variable_name, + }, [19] = { [1] = rename_sym_variable_name, - }, - [20] = { - [1] = rename_sym_variable_name, [3] = rename_sym_argument, }, - [21] = { + [20] = { [1] = rename_sym_argument, }, - [22] = { + [21] = { [0] = rename_sym_argument, }, - [23] = { + [22] = { [1] = rename_sym_argument, }, - [24] = { + [23] = { [0] = rename_sym_argument, }, }; @@ -744,48 +763,46 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '&') ADVANCE(7); if (lookahead == ')') - ADVANCE(9); + ADVANCE(11); if (lookahead == ':') - ADVANCE(10); - if (lookahead == ';') ADVANCE(12); + if (lookahead == ';') + ADVANCE(14); if (lookahead == '<') - ADVANCE(13); + ADVANCE(15); if (lookahead == '=') - ADVANCE(17); + ADVANCE(19); if (lookahead == '>') - ADVANCE(18); - if (lookahead == '[') ADVANCE(20); + if (lookahead == '[') + ADVANCE(23); if (lookahead == '\\') - SKIP(21); + SKIP(24); if (lookahead == ']') - ADVANCE(22); + ADVANCE(25); if (lookahead == 'c') - ADVANCE(24); + ADVANCE(27); if (lookahead == 'd') - ADVANCE(28); + ADVANCE(31); if (lookahead == 'e') - ADVANCE(32); + ADVANCE(35); if (lookahead == 'f') - ADVANCE(41); + ADVANCE(44); if (lookahead == 'i') - ADVANCE(43); - if (lookahead == 't') ADVANCE(46); + if (lookahead == 't') + ADVANCE(49); if (lookahead == 'w') - ADVANCE(50); + ADVANCE(53); if (lookahead == '|') - ADVANCE(55); + ADVANCE(58); if (lookahead == '}') - ADVANCE(57); + ADVANCE(60); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') SKIP(0); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(58); END_STATE(); case 1: ACCEPT_TOKEN(ts_builtin_sym_end); @@ -815,278 +832,310 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { case 7: if (lookahead == '&') ADVANCE(8); + if (lookahead == '>') + ADVANCE(9); END_STATE(); case 8: ACCEPT_TOKEN(anon_sym_AMP_AMP); END_STATE(); case 9: - ACCEPT_TOKEN(anon_sym_RPAREN); + ACCEPT_TOKEN(anon_sym_AMP_GT); + if (lookahead == '>') + ADVANCE(10); END_STATE(); case 10: - ACCEPT_TOKEN(anon_sym_COLON); - if (lookahead == '?') - ADVANCE(11); + ACCEPT_TOKEN(anon_sym_AMP_GT_GT); END_STATE(); case 11: - ACCEPT_TOKEN(anon_sym_COLON_QMARK); + ACCEPT_TOKEN(anon_sym_RPAREN); END_STATE(); case 12: - ACCEPT_TOKEN(anon_sym_SEMI); + ACCEPT_TOKEN(anon_sym_COLON); + if (lookahead == '?') + ADVANCE(13); END_STATE(); case 13: - ACCEPT_TOKEN(anon_sym_LT); - if (lookahead == '&') - ADVANCE(14); - if (lookahead == '<') - ADVANCE(15); + ACCEPT_TOKEN(anon_sym_COLON_QMARK); END_STATE(); case 14: - ACCEPT_TOKEN(anon_sym_LT_AMP); + ACCEPT_TOKEN(anon_sym_SEMI); END_STATE(); case 15: - ACCEPT_TOKEN(anon_sym_LT_LT); - if (lookahead == '-') + ACCEPT_TOKEN(anon_sym_LT); + if (lookahead == '&') ADVANCE(16); + if (lookahead == '<') + ADVANCE(17); END_STATE(); case 16: - ACCEPT_TOKEN(anon_sym_LT_LT_DASH); + ACCEPT_TOKEN(anon_sym_LT_AMP); END_STATE(); case 17: - ACCEPT_TOKEN(anon_sym_EQ); + ACCEPT_TOKEN(anon_sym_LT_LT); + if (lookahead == '-') + ADVANCE(18); END_STATE(); case 18: - ACCEPT_TOKEN(anon_sym_GT); - if (lookahead == '&') - ADVANCE(19); + ACCEPT_TOKEN(anon_sym_LT_LT_DASH); END_STATE(); case 19: - ACCEPT_TOKEN(anon_sym_GT_AMP); + ACCEPT_TOKEN(anon_sym_EQ); END_STATE(); case 20: - ACCEPT_TOKEN(anon_sym_LBRACK); + ACCEPT_TOKEN(anon_sym_GT); + if (lookahead == '&') + ADVANCE(21); + if (lookahead == '>') + ADVANCE(22); END_STATE(); case 21: + ACCEPT_TOKEN(anon_sym_GT_AMP); + END_STATE(); + case 22: + ACCEPT_TOKEN(anon_sym_GT_GT); + END_STATE(); + case 23: + ACCEPT_TOKEN(anon_sym_LBRACK); + END_STATE(); + case 24: if (lookahead == '\n') SKIP(0); END_STATE(); - case 22: + case 25: ACCEPT_TOKEN(anon_sym_RBRACK); if (lookahead == ']') - ADVANCE(23); - END_STATE(); - case 23: - ACCEPT_TOKEN(anon_sym_RBRACK_RBRACK); - END_STATE(); - case 24: - if (lookahead == 'a') - ADVANCE(25); - END_STATE(); - case 25: - if (lookahead == 's') ADVANCE(26); END_STATE(); case 26: - if (lookahead == 'e') - ADVANCE(27); + ACCEPT_TOKEN(anon_sym_RBRACK_RBRACK); END_STATE(); case 27: - ACCEPT_TOKEN(anon_sym_case); + if (lookahead == 'a') + ADVANCE(28); END_STATE(); case 28: - if (lookahead == 'o') + if (lookahead == 's') ADVANCE(29); END_STATE(); case 29: - ACCEPT_TOKEN(anon_sym_do); - if (lookahead == 'n') + if (lookahead == 'e') ADVANCE(30); END_STATE(); case 30: - if (lookahead == 'e') - ADVANCE(31); + ACCEPT_TOKEN(anon_sym_case); END_STATE(); case 31: - ACCEPT_TOKEN(anon_sym_done); + if (lookahead == 'o') + ADVANCE(32); END_STATE(); case 32: - if (lookahead == 'l') + ACCEPT_TOKEN(anon_sym_do); + if (lookahead == 'n') ADVANCE(33); - if (lookahead == 's') - ADVANCE(38); END_STATE(); case 33: - if (lookahead == 'i') + if (lookahead == 'e') ADVANCE(34); - if (lookahead == 's') - ADVANCE(36); END_STATE(); case 34: - if (lookahead == 'f') - ADVANCE(35); + ACCEPT_TOKEN(anon_sym_done); END_STATE(); case 35: - ACCEPT_TOKEN(anon_sym_elif); + if (lookahead == 'l') + ADVANCE(36); + if (lookahead == 's') + ADVANCE(41); END_STATE(); case 36: - if (lookahead == 'e') + if (lookahead == 'i') ADVANCE(37); - END_STATE(); - case 37: - ACCEPT_TOKEN(anon_sym_else); - END_STATE(); - case 38: - if (lookahead == 'a') + if (lookahead == 's') ADVANCE(39); END_STATE(); + case 37: + if (lookahead == 'f') + ADVANCE(38); + END_STATE(); + case 38: + ACCEPT_TOKEN(anon_sym_elif); + END_STATE(); case 39: - if (lookahead == 'c') + if (lookahead == 'e') ADVANCE(40); END_STATE(); case 40: - ACCEPT_TOKEN(anon_sym_esac); + ACCEPT_TOKEN(anon_sym_else); END_STATE(); case 41: - if (lookahead == 'i') + if (lookahead == 'a') ADVANCE(42); END_STATE(); case 42: - ACCEPT_TOKEN(anon_sym_fi); + if (lookahead == 'c') + ADVANCE(43); END_STATE(); case 43: - if (lookahead == 'f') - ADVANCE(44); - if (lookahead == 'n') - ADVANCE(45); + ACCEPT_TOKEN(anon_sym_esac); END_STATE(); case 44: - ACCEPT_TOKEN(anon_sym_if); + if (lookahead == 'i') + ADVANCE(45); END_STATE(); case 45: - ACCEPT_TOKEN(anon_sym_in); + ACCEPT_TOKEN(anon_sym_fi); END_STATE(); case 46: - if (lookahead == 'h') + if (lookahead == 'f') ADVANCE(47); - END_STATE(); - case 47: - if (lookahead == 'e') + if (lookahead == 'n') ADVANCE(48); END_STATE(); + case 47: + ACCEPT_TOKEN(anon_sym_if); + END_STATE(); case 48: - if (lookahead == 'n') - ADVANCE(49); + ACCEPT_TOKEN(anon_sym_in); END_STATE(); case 49: - ACCEPT_TOKEN(anon_sym_then); + if (lookahead == 'h') + ADVANCE(50); END_STATE(); case 50: - if (lookahead == 'h') + if (lookahead == 'e') ADVANCE(51); END_STATE(); case 51: - if (lookahead == 'i') + if (lookahead == 'n') ADVANCE(52); END_STATE(); case 52: - if (lookahead == 'l') - ADVANCE(53); + ACCEPT_TOKEN(anon_sym_then); END_STATE(); case 53: - if (lookahead == 'e') + if (lookahead == 'h') ADVANCE(54); END_STATE(); case 54: - ACCEPT_TOKEN(anon_sym_while); + if (lookahead == 'i') + ADVANCE(55); END_STATE(); case 55: - ACCEPT_TOKEN(anon_sym_PIPE); - if (lookahead == '|') + if (lookahead == 'l') ADVANCE(56); END_STATE(); case 56: - ACCEPT_TOKEN(anon_sym_PIPE_PIPE); + if (lookahead == 'e') + ADVANCE(57); END_STATE(); case 57: - ACCEPT_TOKEN(anon_sym_RBRACE); + ACCEPT_TOKEN(anon_sym_while); END_STATE(); case 58: - ACCEPT_TOKEN(sym_file_descriptor); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(58); + ACCEPT_TOKEN(anon_sym_PIPE); + if (lookahead == '|') + ADVANCE(59); END_STATE(); case 59: + ACCEPT_TOKEN(anon_sym_PIPE_PIPE); + END_STATE(); + case 60: + ACCEPT_TOKEN(anon_sym_RBRACE); + END_STATE(); + case 61: if (lookahead == 0) ADVANCE(1); if (lookahead == '#') ADVANCE(3); + if (lookahead == '&') + ADVANCE(62); if (lookahead == '<') - ADVANCE(60); + ADVANCE(66); if (lookahead == '>') - ADVANCE(63); - if (lookahead == '[') - ADVANCE(65); - if (lookahead == '\\') - SKIP(67); - if (lookahead == 'c') ADVANCE(68); - if (lookahead == 'i') - ADVANCE(72); - if (lookahead == 'w') + if (lookahead == '[') + ADVANCE(71); + if (lookahead == '\\') + SKIP(73); + if (lookahead == 'c') ADVANCE(74); + if (lookahead == 'i') + ADVANCE(78); + if (lookahead == 'w') + ADVANCE(80); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(59); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(79); + SKIP(61); if (lookahead != '\"' && lookahead != '#' && lookahead != '(' && lookahead != ')' && - (lookahead < '0' || lookahead > '>') && + (lookahead < ':' || lookahead > '>') && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 60: - ACCEPT_TOKEN(anon_sym_LT); - if (lookahead == '&') - ADVANCE(61); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 61: - ACCEPT_TOKEN(anon_sym_LT_AMP); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); case 62: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == '>') + ADVANCE(63); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '>' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 63: + ACCEPT_TOKEN(anon_sym_AMP_GT); + if (lookahead == '>') + ADVANCE(64); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '>' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 64: + ACCEPT_TOKEN(anon_sym_AMP_GT_GT); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 65: ACCEPT_TOKEN(sym_leading_word); if (lookahead != 0 && lookahead != '\t' && @@ -1102,12 +1151,12 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 63: - ACCEPT_TOKEN(anon_sym_GT); + case 66: + ACCEPT_TOKEN(anon_sym_LT); if (lookahead == '&') - ADVANCE(64); + ADVANCE(67); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -1122,9 +1171,50 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 64: + case 67: + ACCEPT_TOKEN(anon_sym_LT_AMP); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 68: + ACCEPT_TOKEN(anon_sym_GT); + if (lookahead == '&') + ADVANCE(69); + if (lookahead == '>') + ADVANCE(70); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '>' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 69: ACCEPT_TOKEN(anon_sym_GT_AMP); if (lookahead != 0 && lookahead != '\t' && @@ -1140,12 +1230,30 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 65: + case 70: + ACCEPT_TOKEN(anon_sym_GT_GT); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 71: ACCEPT_TOKEN(anon_sym_LBRACK); if (lookahead == '[') - ADVANCE(66); + ADVANCE(72); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -1161,9 +1269,9 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '[' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 66: + case 72: ACCEPT_TOKEN(anon_sym_LBRACK_LBRACK); if (lookahead != 0 && lookahead != '\t' && @@ -1179,131 +1287,15 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 67: - if (lookahead == '\n') - SKIP(59); - END_STATE(); - case 68: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'a') - ADVANCE(69); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 69: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 's') - ADVANCE(70); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 70: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'e') - ADVANCE(71); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 71: - ACCEPT_TOKEN(anon_sym_case); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 72: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'f') - ADVANCE(73); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); case 73: - ACCEPT_TOKEN(anon_sym_if); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + if (lookahead == '\n') + SKIP(61); END_STATE(); case 74: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'h') + if (lookahead == 'a') ADVANCE(75); if (lookahead != 0 && lookahead != '\t' && @@ -1319,11 +1311,11 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); case 75: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'i') + if (lookahead == 's') ADVANCE(76); if (lookahead != 0 && lookahead != '\t' && @@ -1339,11 +1331,11 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); case 76: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'l') + if (lookahead == 'e') ADVANCE(77); if (lookahead != 0 && lookahead != '\t' && @@ -1359,12 +1351,10 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); case 77: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'e') - ADVANCE(78); + ACCEPT_TOKEN(anon_sym_case); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -1379,9 +1369,127 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); case 78: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'f') + ADVANCE(79); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 79: + ACCEPT_TOKEN(anon_sym_if); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 80: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'h') + ADVANCE(81); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 81: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'i') + ADVANCE(82); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 82: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'l') + ADVANCE(83); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 83: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'e') + ADVANCE(84); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 84: ACCEPT_TOKEN(anon_sym_while); if (lookahead != 0 && lookahead != '\t' && @@ -1397,51 +1505,76 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 79: - ACCEPT_TOKEN(sym_file_descriptor); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(79); - END_STATE(); - case 80: + case 85: if (lookahead == '#') ADVANCE(3); + if (lookahead == '&') + ADVANCE(86); if (lookahead == '<') - ADVANCE(60); + ADVANCE(87); if (lookahead == '>') - ADVANCE(63); - if (lookahead == '[') - ADVANCE(65); + ADVANCE(20); if (lookahead == '\\') - SKIP(81); - if (lookahead == 'c') - ADVANCE(68); - if (lookahead == 'i') - ADVANCE(72); - if (lookahead == 'w') - ADVANCE(74); + SKIP(88); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(80); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(79); + SKIP(85); + END_STATE(); + case 86: + if (lookahead == '>') + ADVANCE(9); + END_STATE(); + case 87: + ACCEPT_TOKEN(anon_sym_LT); + if (lookahead == '&') + ADVANCE(16); + END_STATE(); + case 88: + if (lookahead == '\n') + SKIP(85); + END_STATE(); + case 89: + if (lookahead == '#') + ADVANCE(3); + if (lookahead == '&') + ADVANCE(62); + if (lookahead == '<') + ADVANCE(66); + if (lookahead == '>') + ADVANCE(68); + if (lookahead == '[') + ADVANCE(71); + if (lookahead == '\\') + SKIP(90); + if (lookahead == 'c') + ADVANCE(74); + if (lookahead == 'i') + ADVANCE(78); + if (lookahead == 'w') + ADVANCE(80); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ') + SKIP(89); if (lookahead != 0 && lookahead != '\"' && lookahead != '#' && lookahead != '(' && lookahead != ')' && - (lookahead < '0' || lookahead > '>') && + (lookahead < ':' || lookahead > '>') && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 81: + case 90: if (lookahead == '\n') - SKIP(80); + SKIP(89); END_STATE(); - case 82: + case 91: if (lookahead == '\"') ADVANCE(2); if (lookahead == '#') @@ -1449,14 +1582,14 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '$') ADVANCE(4); if (lookahead == '\'') - ADVANCE(83); + ADVANCE(92); if (lookahead == '\\') - SKIP(88); + SKIP(97); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(82); + SKIP(91); if (lookahead != 0 && (lookahead < '&' || lookahead > ')') && lookahead != ';' && @@ -1464,12 +1597,12 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '>' && lookahead != '{' && lookahead != '}') - ADVANCE(85); + ADVANCE(94); END_STATE(); - case 83: + case 92: ACCEPT_TOKEN(sym_word); if (lookahead == '\'') - ADVANCE(84); + ADVANCE(93); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -1482,11 +1615,11 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '\\' || lookahead == '{' || lookahead == '}') - ADVANCE(86); + ADVANCE(95); if (lookahead != 0) - ADVANCE(83); + ADVANCE(92); END_STATE(); - case 84: + case 93: ACCEPT_TOKEN(sym_single_quoted_argument); if (lookahead != 0 && lookahead != '\t' && @@ -1503,9 +1636,9 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '\\' && lookahead != '{' && lookahead != '}') - ADVANCE(85); + ADVANCE(94); END_STATE(); - case 85: + case 94: ACCEPT_TOKEN(sym_word); if (lookahead != 0 && lookahead != '\t' && @@ -1522,267 +1655,150 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '\\' && lookahead != '{' && lookahead != '}') - ADVANCE(85); - END_STATE(); - case 86: - if (lookahead == '\'') - ADVANCE(87); - if (lookahead != 0) - ADVANCE(86); - END_STATE(); - case 87: - ACCEPT_TOKEN(sym_single_quoted_argument); - END_STATE(); - case 88: - if (lookahead == '\n') - SKIP(82); - END_STATE(); - case 89: - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '\\') - SKIP(90); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') - SKIP(89); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(91); - if (lookahead != 0 && - (lookahead < '\"' || lookahead > '$') && - lookahead != '&' && - lookahead != '(' && - lookahead != ')' && - lookahead != ';' && - lookahead != '<' && - lookahead != '>' && - lookahead != '{' && - lookahead != '}') - ADVANCE(85); - END_STATE(); - case 90: - if (lookahead == '\n') - SKIP(89); - END_STATE(); - case 91: - ACCEPT_TOKEN(sym_file_descriptor); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(91); - END_STATE(); - case 92: - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '<') - ADVANCE(93); - if (lookahead == '>') - ADVANCE(18); - if (lookahead == '\\') - SKIP(94); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') - SKIP(92); - END_STATE(); - case 93: - ACCEPT_TOKEN(anon_sym_LT); - if (lookahead == '&') - ADVANCE(14); - END_STATE(); - case 94: - if (lookahead == '\n') - SKIP(92); + ADVANCE(94); END_STATE(); case 95: - if (lookahead == '\n') + if (lookahead == '\'') ADVANCE(96); + if (lookahead != 0) + ADVANCE(95); + END_STATE(); + case 96: + ACCEPT_TOKEN(sym_single_quoted_argument); + END_STATE(); + case 97: + if (lookahead == '\n') + SKIP(91); + END_STATE(); + case 98: + if (lookahead == '\n') + ADVANCE(99); if (lookahead == '#') ADVANCE(3); if (lookahead == '&') ADVANCE(7); if (lookahead == ';') - ADVANCE(98); - if (lookahead == '<') - ADVANCE(13); - if (lookahead == '=') - ADVANCE(17); - if (lookahead == '>') - ADVANCE(18); - if (lookahead == '\\') - SKIP(100); - if (lookahead == '|') ADVANCE(101); + if (lookahead == '<') + ADVANCE(15); + if (lookahead == '=') + ADVANCE(19); + if (lookahead == '>') + ADVANCE(20); + if (lookahead == '\\') + SKIP(103); + if (lookahead == '|') + ADVANCE(104); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ') - ADVANCE(97); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(58); - END_STATE(); - case 96: - ACCEPT_TOKEN(anon_sym_LF); - if (lookahead == '\n') - ADVANCE(96); - if (lookahead == '\t' || - lookahead == '\r' || - lookahead == ' ') - ADVANCE(97); - END_STATE(); - case 97: - ACCEPT_TOKEN(aux_sym_SLASH_BSLASHs_PLUS_SLASH); - if (lookahead == '\n') - ADVANCE(96); - if (lookahead == '\t' || - lookahead == '\r' || - lookahead == ' ') - ADVANCE(97); - END_STATE(); - case 98: - ACCEPT_TOKEN(anon_sym_SEMI); - if (lookahead == ';') - ADVANCE(99); + ADVANCE(100); END_STATE(); case 99: - ACCEPT_TOKEN(anon_sym_SEMI_SEMI); + ACCEPT_TOKEN(anon_sym_LF); + if (lookahead == '\n') + ADVANCE(99); + if (lookahead == '\t' || + lookahead == '\r' || + lookahead == ' ') + ADVANCE(100); END_STATE(); case 100: + ACCEPT_TOKEN(aux_sym_SLASH_BSLASHs_PLUS_SLASH); if (lookahead == '\n') - SKIP(95); + ADVANCE(99); + if (lookahead == '\t' || + lookahead == '\r' || + lookahead == ' ') + ADVANCE(100); END_STATE(); case 101: - ACCEPT_TOKEN(anon_sym_PIPE); - if (lookahead == '&') + ACCEPT_TOKEN(anon_sym_SEMI); + if (lookahead == ';') ADVANCE(102); - if (lookahead == '|') - ADVANCE(56); END_STATE(); case 102: - ACCEPT_TOKEN(anon_sym_PIPE_AMP); + ACCEPT_TOKEN(anon_sym_SEMI_SEMI); END_STATE(); case 103: - if (lookahead == 0) - ADVANCE(1); - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '\\') - SKIP(104); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') - SKIP(103); + if (lookahead == '\n') + SKIP(98); END_STATE(); case 104: - if (lookahead == '\n') - SKIP(103); + ACCEPT_TOKEN(anon_sym_PIPE); + if (lookahead == '&') + ADVANCE(105); + if (lookahead == '|') + ADVANCE(59); END_STATE(); case 105: + ACCEPT_TOKEN(anon_sym_PIPE_AMP); + END_STATE(); + case 106: if (lookahead == 0) ADVANCE(1); if (lookahead == '#') ADVANCE(3); - if (lookahead == '<') - ADVANCE(60); - if (lookahead == '>') - ADVANCE(63); - if (lookahead == '[') - ADVANCE(65); if (lookahead == '\\') - SKIP(106); - if (lookahead == 'c') - ADVANCE(68); - if (lookahead == 'd') - ADVANCE(107); - if (lookahead == 'e') - ADVANCE(111); - if (lookahead == 'f') - ADVANCE(117); - if (lookahead == 'i') - ADVANCE(72); - if (lookahead == 'w') - ADVANCE(74); + SKIP(107); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(105); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(79); + SKIP(106); + END_STATE(); + case 107: + if (lookahead == '\n') + SKIP(106); + END_STATE(); + case 108: + if (lookahead == 0) + ADVANCE(1); + if (lookahead == '#') + ADVANCE(3); + if (lookahead == '&') + ADVANCE(62); + if (lookahead == '<') + ADVANCE(66); + if (lookahead == '>') + ADVANCE(68); + if (lookahead == '[') + ADVANCE(71); + if (lookahead == '\\') + SKIP(109); + if (lookahead == 'c') + ADVANCE(74); + if (lookahead == 'd') + ADVANCE(110); + if (lookahead == 'e') + ADVANCE(114); + if (lookahead == 'f') + ADVANCE(120); + if (lookahead == 'i') + ADVANCE(78); + if (lookahead == 'w') + ADVANCE(80); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ') + SKIP(108); if (lookahead != '\"' && lookahead != '#' && lookahead != '(' && lookahead != ')' && - (lookahead < '0' || lookahead > '>') && + (lookahead < ':' || lookahead > '>') && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 106: - if (lookahead == '\n') - SKIP(105); - END_STATE(); - case 107: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'o') - ADVANCE(108); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 108: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'n') - ADVANCE(109); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); case 109: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'e') - ADVANCE(110); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + if (lookahead == '\n') + SKIP(108); END_STATE(); case 110: - ACCEPT_TOKEN(anon_sym_done); + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'o') + ADVANCE(111); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -1797,11 +1813,11 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); case 111: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'l') + if (lookahead == 'n') ADVANCE(112); if (lookahead != 0 && lookahead != '\t' && @@ -1817,13 +1833,49 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); case 112: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'i') + if (lookahead == 'e') ADVANCE(113); - if (lookahead == 's') + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 113: + ACCEPT_TOKEN(anon_sym_done); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 114: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'l') ADVANCE(115); if (lookahead != 0 && lookahead != '\t' && @@ -1839,87 +1891,13 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 113: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'f') - ADVANCE(114); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 114: - ACCEPT_TOKEN(anon_sym_elif); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); case 115: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'e') - ADVANCE(116); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 116: - ACCEPT_TOKEN(anon_sym_else); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - lookahead != ':' && - lookahead != ';' && - lookahead != '=' && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 117: ACCEPT_TOKEN(sym_leading_word); if (lookahead == 'i') + ADVANCE(116); + if (lookahead == 's') ADVANCE(118); if (lookahead != 0 && lookahead != '\t' && @@ -1935,9 +1913,105 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); + END_STATE(); + case 116: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'f') + ADVANCE(117); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 117: + ACCEPT_TOKEN(anon_sym_elif); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); END_STATE(); case 118: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'e') + ADVANCE(119); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 119: + ACCEPT_TOKEN(anon_sym_else); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 120: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'i') + ADVANCE(121); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + lookahead != ':' && + lookahead != ';' && + lookahead != '=' && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 121: ACCEPT_TOKEN(anon_sym_fi); if (lookahead != 0 && lookahead != '\t' && @@ -1953,69 +2027,73 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 119: - if (lookahead == '\n') - ADVANCE(120); - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '&') - ADVANCE(7); - if (lookahead == ';') - ADVANCE(98); - if (lookahead == '\\') - SKIP(121); - if (lookahead == '|') - ADVANCE(101); - if (lookahead == '\t' || - lookahead == '\r' || - lookahead == ' ') - SKIP(119); - END_STATE(); - case 120: - ACCEPT_TOKEN(anon_sym_LF); - END_STATE(); - case 121: - if (lookahead == '\n') - SKIP(119); + ADVANCE(65); END_STATE(); case 122: if (lookahead == '\n') - ADVANCE(120); + ADVANCE(123); if (lookahead == '#') ADVANCE(3); if (lookahead == '&') - ADVANCE(123); + ADVANCE(124); if (lookahead == ';') - ADVANCE(98); - if (lookahead == '<') - ADVANCE(60); - if (lookahead == '>') - ADVANCE(63); + ADVANCE(101); if (lookahead == '\\') SKIP(125); if (lookahead == '|') - ADVANCE(101); + ADVANCE(104); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ') SKIP(122); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(79); + END_STATE(); + case 123: + ACCEPT_TOKEN(anon_sym_LF); + END_STATE(); + case 124: + if (lookahead == '&') + ADVANCE(8); + END_STATE(); + case 125: + if (lookahead == '\n') + SKIP(122); + END_STATE(); + case 126: + if (lookahead == '\n') + ADVANCE(123); + if (lookahead == '#') + ADVANCE(3); + if (lookahead == '&') + ADVANCE(127); + if (lookahead == ';') + ADVANCE(101); + if (lookahead == '<') + ADVANCE(66); + if (lookahead == '>') + ADVANCE(68); + if (lookahead == '\\') + SKIP(129); + if (lookahead == '|') + ADVANCE(104); + if (lookahead == '\t' || + lookahead == '\r' || + lookahead == ' ') + SKIP(126); if (lookahead != 0 && lookahead != '\"' && lookahead != '#' && lookahead != '(' && lookahead != ')' && - (lookahead < '0' || lookahead > '>') && + (lookahead < ':' || lookahead > '>') && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 123: + case 127: ACCEPT_TOKEN(sym_leading_word); if (lookahead == '&') - ADVANCE(124); + ADVANCE(128); + if (lookahead == '>') + ADVANCE(63); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -2028,11 +2106,12 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != ':' && lookahead != ';' && lookahead != '=' && + lookahead != '>' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 124: + case 128: ACCEPT_TOKEN(anon_sym_AMP_AMP); if (lookahead != 0 && lookahead != '\t' && @@ -2048,72 +2127,48 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 125: + case 129: if (lookahead == '\n') - SKIP(122); + SKIP(126); END_STATE(); - case 126: + case 130: if (lookahead == '#') ADVANCE(3); + if (lookahead == '&') + ADVANCE(62); if (lookahead == '<') - ADVANCE(60); + ADVANCE(66); if (lookahead == '>') - ADVANCE(63); + ADVANCE(68); if (lookahead == '\\') - SKIP(127); + SKIP(131); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(126); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(79); + SKIP(130); if (lookahead != 0 && lookahead != '\"' && lookahead != '#' && lookahead != '(' && lookahead != ')' && - (lookahead < '0' || lookahead > '>') && + (lookahead < ':' || lookahead > '>') && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 127: - if (lookahead == '\n') - SKIP(126); - END_STATE(); - case 128: - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '\\') - SKIP(129); - if (lookahead == 'd') - ADVANCE(130); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') - SKIP(128); - END_STATE(); - case 129: - if (lookahead == '\n') - SKIP(128); - END_STATE(); - case 130: - if (lookahead == 'o') - ADVANCE(131); + ADVANCE(65); END_STATE(); case 131: - ACCEPT_TOKEN(anon_sym_do); + if (lookahead == '\n') + SKIP(130); END_STATE(); case 132: if (lookahead == '#') ADVANCE(3); if (lookahead == '\\') SKIP(133); - if (lookahead == 't') - ADVANCE(46); + if (lookahead == 'd') + ADVANCE(134); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -2125,97 +2180,121 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { SKIP(132); END_STATE(); case 134: - if (lookahead == '\"') - ADVANCE(2); - if (lookahead == '#') + if (lookahead == 'o') ADVANCE(135); - if (lookahead == '$') - ADVANCE(4); + END_STATE(); + case 135: + ACCEPT_TOKEN(anon_sym_do); + END_STATE(); + case 136: + if (lookahead == '#') + ADVANCE(3); if (lookahead == '\\') - ADVANCE(137); + SKIP(137); + if (lookahead == 't') + ADVANCE(49); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - ADVANCE(138); - if (lookahead != 0) - ADVANCE(136); + SKIP(136); END_STATE(); - case 135: + case 137: + if (lookahead == '\n') + SKIP(136); + END_STATE(); + case 138: + if (lookahead == '\"') + ADVANCE(2); + if (lookahead == '#') + ADVANCE(139); + if (lookahead == '$') + ADVANCE(4); + if (lookahead == '\\') + ADVANCE(141); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ') + ADVANCE(142); + if (lookahead != 0) + ADVANCE(140); + END_STATE(); + case 139: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '\n') - ADVANCE(136); + ADVANCE(140); if (lookahead == '\"' || lookahead == '$') ADVANCE(3); if (lookahead != 0) - ADVANCE(135); + ADVANCE(139); END_STATE(); - case 136: + case 140: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead != 0 && lookahead != '\"' && lookahead != '$') - ADVANCE(136); + ADVANCE(140); END_STATE(); - case 137: + case 141: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '\n') - ADVANCE(138); + ADVANCE(142); if (lookahead != 0 && lookahead != '\"' && lookahead != '$') - ADVANCE(136); + ADVANCE(140); END_STATE(); - case 138: + case 142: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '#') - ADVANCE(135); + ADVANCE(139); if (lookahead == '\\') - ADVANCE(137); + ADVANCE(141); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - ADVANCE(138); + ADVANCE(142); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(136); + ADVANCE(140); END_STATE(); - case 139: + case 143: if (lookahead == '\n') - ADVANCE(120); + ADVANCE(123); if (lookahead == '#') ADVANCE(3); if (lookahead == ';') - ADVANCE(98); + ADVANCE(101); if (lookahead == '\\') - SKIP(140); + SKIP(144); if (lookahead == 'i') - ADVANCE(141); + ADVANCE(145); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ') - SKIP(139); + SKIP(143); END_STATE(); - case 140: + case 144: if (lookahead == '\n') - SKIP(139); + SKIP(143); END_STATE(); - case 141: + case 145: if (lookahead == 'n') - ADVANCE(45); + ADVANCE(48); END_STATE(); - case 142: + case 146: if (lookahead == '#') ADVANCE(3); if (lookahead == '\\') - SKIP(143); + SKIP(147); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(142); + SKIP(146); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$') && lookahead != '&' && @@ -2226,22 +2305,22 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '>' && lookahead != '{' && lookahead != '}') - ADVANCE(85); + ADVANCE(94); END_STATE(); - case 143: + case 147: if (lookahead == '\n') - SKIP(142); + SKIP(146); END_STATE(); - case 144: + case 148: if (lookahead == '#') ADVANCE(3); if (lookahead == '\\') - SKIP(145); + SKIP(149); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(144); + SKIP(148); if (lookahead != 0 && lookahead != '\"' && lookahead != '#' && @@ -2251,90 +2330,11 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != ';' && lookahead != '=' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 145: - if (lookahead == '\n') - SKIP(144); - END_STATE(); - case 146: - if (lookahead == '\"') - ADVANCE(2); - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '$') - ADVANCE(4); - if (lookahead == '\'') - ADVANCE(83); - if (lookahead == ')') - ADVANCE(9); - if (lookahead == '<') - ADVANCE(13); - if (lookahead == '>') - ADVANCE(18); - if (lookahead == '\\') - SKIP(147); - if (lookahead == ']') - ADVANCE(148); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') - SKIP(146); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(91); - if (lookahead != 0 && - (lookahead < '&' || lookahead > ')') && - lookahead != ';' && - lookahead != '<' && - lookahead != '{' && - lookahead != '}') - ADVANCE(85); - END_STATE(); - case 147: - if (lookahead == '\n') - SKIP(146); - END_STATE(); - case 148: - ACCEPT_TOKEN(anon_sym_RBRACK); - if (lookahead == ']') - ADVANCE(149); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '&' && - lookahead != '(' && - lookahead != ')' && - lookahead != ';' && - lookahead != '<' && - lookahead != '>' && - lookahead != '\\' && - lookahead != ']' && - lookahead != '{' && - lookahead != '}') - ADVANCE(85); + ADVANCE(65); END_STATE(); case 149: - ACCEPT_TOKEN(anon_sym_RBRACK_RBRACK); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '&' && - lookahead != '(' && - lookahead != ')' && - lookahead != ';' && - lookahead != '<' && - lookahead != '>' && - lookahead != '\\' && - lookahead != '{' && - lookahead != '}') - ADVANCE(85); + if (lookahead == '\n') + SKIP(148); END_STATE(); case 150: if (lookahead == '\"') @@ -2344,7 +2344,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '$') ADVANCE(4); if (lookahead == '\'') - ADVANCE(83); + ADVANCE(92); if (lookahead == '\\') SKIP(151); if (lookahead == ']') @@ -2361,7 +2361,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '>' && lookahead != '{' && lookahead != '}') - ADVANCE(85); + ADVANCE(94); END_STATE(); case 151: if (lookahead == '\n') @@ -2369,58 +2369,8 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 152: ACCEPT_TOKEN(anon_sym_RBRACK); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '&' && - lookahead != '(' && - lookahead != ')' && - lookahead != ';' && - lookahead != '<' && - lookahead != '>' && - lookahead != '\\' && - lookahead != '{' && - lookahead != '}') - ADVANCE(85); - END_STATE(); - case 153: - if (lookahead == '\"') - ADVANCE(2); - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '$') - ADVANCE(4); - if (lookahead == '\'') - ADVANCE(83); - if (lookahead == '\\') - SKIP(154); if (lookahead == ']') - ADVANCE(155); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') - SKIP(153); - if (lookahead != 0 && - (lookahead < '&' || lookahead > ')') && - lookahead != ';' && - lookahead != '<' && - lookahead != '>' && - lookahead != '{' && - lookahead != '}') - ADVANCE(85); - END_STATE(); - case 154: - if (lookahead == '\n') - SKIP(153); - END_STATE(); - case 155: - ACCEPT_TOKEN(sym_word); - if (lookahead == ']') - ADVANCE(149); + ADVANCE(153); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -2437,11 +2387,133 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != ']' && lookahead != '{' && lookahead != '}') - ADVANCE(85); + ADVANCE(94); + END_STATE(); + case 153: + ACCEPT_TOKEN(anon_sym_RBRACK_RBRACK); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '&' && + lookahead != '(' && + lookahead != ')' && + lookahead != ';' && + lookahead != '<' && + lookahead != '>' && + lookahead != '\\' && + lookahead != '{' && + lookahead != '}') + ADVANCE(94); + END_STATE(); + case 154: + if (lookahead == '\"') + ADVANCE(2); + if (lookahead == '#') + ADVANCE(3); + if (lookahead == '$') + ADVANCE(4); + if (lookahead == '\'') + ADVANCE(92); + if (lookahead == '\\') + SKIP(155); + if (lookahead == ']') + ADVANCE(156); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ') + SKIP(154); + if (lookahead != 0 && + (lookahead < '&' || lookahead > ')') && + lookahead != ';' && + lookahead != '<' && + lookahead != '>' && + lookahead != '{' && + lookahead != '}') + ADVANCE(94); + END_STATE(); + case 155: + if (lookahead == '\n') + SKIP(154); END_STATE(); case 156: + ACCEPT_TOKEN(anon_sym_RBRACK); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '&' && + lookahead != '(' && + lookahead != ')' && + lookahead != ';' && + lookahead != '<' && + lookahead != '>' && + lookahead != '\\' && + lookahead != '{' && + lookahead != '}') + ADVANCE(94); + END_STATE(); + case 157: + if (lookahead == '\"') + ADVANCE(2); + if (lookahead == '#') + ADVANCE(3); + if (lookahead == '$') + ADVANCE(4); + if (lookahead == '\'') + ADVANCE(92); + if (lookahead == '\\') + SKIP(158); + if (lookahead == ']') + ADVANCE(159); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ') + SKIP(157); + if (lookahead != 0 && + (lookahead < '&' || lookahead > ')') && + lookahead != ';' && + lookahead != '<' && + lookahead != '>' && + lookahead != '{' && + lookahead != '}') + ADVANCE(94); + END_STATE(); + case 158: if (lookahead == '\n') - ADVANCE(120); + SKIP(157); + END_STATE(); + case 159: + ACCEPT_TOKEN(sym_word); + if (lookahead == ']') + ADVANCE(153); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '&' && + lookahead != '(' && + lookahead != ')' && + lookahead != ';' && + lookahead != '<' && + lookahead != '>' && + lookahead != '\\' && + lookahead != ']' && + lookahead != '{' && + lookahead != '}') + ADVANCE(94); + END_STATE(); + case 160: + if (lookahead == '\n') + ADVANCE(123); if (lookahead == '\"') ADVANCE(2); if (lookahead == '#') @@ -2451,38 +2523,36 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '&') ADVANCE(7); if (lookahead == '\'') - ADVANCE(83); + ADVANCE(92); if (lookahead == ';') - ADVANCE(98); + ADVANCE(101); if (lookahead == '<') - ADVANCE(13); + ADVANCE(15); if (lookahead == '>') - ADVANCE(18); + ADVANCE(20); if (lookahead == '\\') - SKIP(157); + SKIP(161); if (lookahead == '|') - ADVANCE(158); + ADVANCE(162); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ') - SKIP(156); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(91); + SKIP(160); if (lookahead != 0 && (lookahead < '&' || lookahead > ')') && (lookahead < '{' || lookahead > '}')) - ADVANCE(85); + ADVANCE(94); END_STATE(); - case 157: + case 161: if (lookahead == '\n') - SKIP(156); + SKIP(160); END_STATE(); - case 158: + case 162: ACCEPT_TOKEN(anon_sym_PIPE); if (lookahead == '&') - ADVANCE(102); + ADVANCE(105); if (lookahead == '|') - ADVANCE(159); + ADVANCE(163); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -2496,9 +2566,9 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '>' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(85); + ADVANCE(94); END_STATE(); - case 159: + case 163: ACCEPT_TOKEN(anon_sym_PIPE_PIPE); if (lookahead != 0 && lookahead != '\t' && @@ -2515,76 +2585,18 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '\\' && lookahead != '{' && lookahead != '}') - ADVANCE(85); + ADVANCE(94); END_STATE(); - case 160: + case 164: if (lookahead == '#') ADVANCE(3); if (lookahead == '\\') - SKIP(161); + SKIP(165); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(160); - END_STATE(); - case 161: - if (lookahead == '\n') - SKIP(160); - END_STATE(); - case 162: - if (lookahead == '\n') - ADVANCE(120); - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '&') - ADVANCE(7); - if (lookahead == ')') - ADVANCE(9); - if (lookahead == ';') - ADVANCE(98); - if (lookahead == '<') - ADVANCE(13); - if (lookahead == '>') - ADVANCE(18); - if (lookahead == '\\') - SKIP(163); - if (lookahead == '|') - ADVANCE(101); - if (lookahead == '\t' || - lookahead == '\r' || - lookahead == ' ') - SKIP(162); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(58); - END_STATE(); - case 163: - if (lookahead == '\n') - SKIP(162); - END_STATE(); - case 164: - if (lookahead == '\n') - ADVANCE(120); - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '&') - ADVANCE(7); - if (lookahead == ';') - ADVANCE(98); - if (lookahead == '<') - ADVANCE(13); - if (lookahead == '>') - ADVANCE(18); - if (lookahead == '\\') - SKIP(165); - if (lookahead == '|') - ADVANCE(101); - if (lookahead == '\t' || - lookahead == '\r' || - lookahead == ' ') SKIP(164); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(58); END_STATE(); case 165: if (lookahead == '\n') @@ -2592,163 +2604,156 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 166: if (lookahead == '\n') - ADVANCE(167); + ADVANCE(123); if (lookahead == '#') ADVANCE(3); if (lookahead == '&') ADVANCE(7); if (lookahead == ')') - ADVANCE(9); + ADVANCE(11); if (lookahead == ';') - ADVANCE(98); - if (lookahead == '<') - ADVANCE(13); - if (lookahead == '=') - ADVANCE(17); - if (lookahead == '>') - ADVANCE(18); - if (lookahead == '\\') - SKIP(169); - if (lookahead == '|') ADVANCE(101); + if (lookahead == '<') + ADVANCE(15); + if (lookahead == '>') + ADVANCE(20); + if (lookahead == '\\') + SKIP(167); + if (lookahead == '|') + ADVANCE(104); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ') - ADVANCE(168); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(58); + SKIP(166); END_STATE(); case 167: - ACCEPT_TOKEN(anon_sym_LF); - if (lookahead == '\n') - ADVANCE(167); - if (lookahead == '\t' || - lookahead == '\r' || - lookahead == ' ') - ADVANCE(168); - END_STATE(); - case 168: - ACCEPT_TOKEN(aux_sym_SLASH_BSLASHs_PLUS_SLASH); - if (lookahead == '\n') - ADVANCE(167); - if (lookahead == '\t' || - lookahead == '\r' || - lookahead == ' ') - ADVANCE(168); - END_STATE(); - case 169: if (lookahead == '\n') SKIP(166); END_STATE(); - case 170: + case 168: + if (lookahead == '\n') + ADVANCE(123); if (lookahead == '#') ADVANCE(3); + if (lookahead == '&') + ADVANCE(7); + if (lookahead == ';') + ADVANCE(101); if (lookahead == '<') - ADVANCE(60); + ADVANCE(15); if (lookahead == '>') - ADVANCE(63); - if (lookahead == '[') - ADVANCE(65); + ADVANCE(20); if (lookahead == '\\') - SKIP(171); - if (lookahead == 'c') - ADVANCE(68); - if (lookahead == 'd') - ADVANCE(107); - if (lookahead == 'i') - ADVANCE(72); - if (lookahead == 'w') - ADVANCE(74); + SKIP(169); + if (lookahead == '|') + ADVANCE(104); if (lookahead == '\t' || - lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(170); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(79); - if (lookahead != 0 && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - (lookahead < '0' || lookahead > '>') && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + SKIP(168); END_STATE(); - case 171: + case 169: if (lookahead == '\n') - SKIP(170); + SKIP(168); END_STATE(); - case 172: + case 170: + if (lookahead == '\n') + ADVANCE(171); if (lookahead == '#') ADVANCE(3); + if (lookahead == '&') + ADVANCE(7); + if (lookahead == ')') + ADVANCE(11); + if (lookahead == ';') + ADVANCE(101); + if (lookahead == '<') + ADVANCE(15); + if (lookahead == '=') + ADVANCE(19); + if (lookahead == '>') + ADVANCE(20); if (lookahead == '\\') SKIP(173); - if (lookahead == 'd') - ADVANCE(130); - if (lookahead == 't') - ADVANCE(46); + if (lookahead == '|') + ADVANCE(104); if (lookahead == '\t' || - lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(172); + ADVANCE(172); + END_STATE(); + case 171: + ACCEPT_TOKEN(anon_sym_LF); + if (lookahead == '\n') + ADVANCE(171); + if (lookahead == '\t' || + lookahead == '\r' || + lookahead == ' ') + ADVANCE(172); + END_STATE(); + case 172: + ACCEPT_TOKEN(aux_sym_SLASH_BSLASHs_PLUS_SLASH); + if (lookahead == '\n') + ADVANCE(171); + if (lookahead == '\t' || + lookahead == '\r' || + lookahead == ' ') + ADVANCE(172); END_STATE(); case 173: if (lookahead == '\n') - SKIP(172); + SKIP(170); END_STATE(); case 174: if (lookahead == '#') ADVANCE(3); + if (lookahead == '&') + ADVANCE(62); if (lookahead == '<') - ADVANCE(60); + ADVANCE(66); if (lookahead == '>') - ADVANCE(63); + ADVANCE(68); if (lookahead == '[') - ADVANCE(65); + ADVANCE(71); if (lookahead == '\\') SKIP(175); if (lookahead == 'c') - ADVANCE(68); - if (lookahead == 'e') - ADVANCE(111); - if (lookahead == 'f') - ADVANCE(117); - if (lookahead == 'i') - ADVANCE(72); - if (lookahead == 'w') ADVANCE(74); + if (lookahead == 'd') + ADVANCE(110); + if (lookahead == 'i') + ADVANCE(78); + if (lookahead == 'w') + ADVANCE(80); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') SKIP(174); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(79); if (lookahead != 0 && lookahead != '\"' && lookahead != '#' && lookahead != '(' && lookahead != ')' && - (lookahead < '0' || lookahead > '>') && + (lookahead < ':' || lookahead > '>') && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); case 175: if (lookahead == '\n') SKIP(174); END_STATE(); case 176: - if (lookahead == '\n') - ADVANCE(120); if (lookahead == '#') ADVANCE(3); - if (lookahead == ';') - ADVANCE(98); if (lookahead == '\\') SKIP(177); + if (lookahead == 'd') + ADVANCE(134); + if (lookahead == 't') + ADVANCE(49); if (lookahead == '\t' || + lookahead == '\n' || lookahead == '\r' || lookahead == ' ') SKIP(176); @@ -2760,33 +2765,54 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { case 178: if (lookahead == '#') ADVANCE(3); + if (lookahead == '&') + ADVANCE(62); + if (lookahead == '<') + ADVANCE(66); + if (lookahead == '>') + ADVANCE(68); + if (lookahead == '[') + ADVANCE(71); if (lookahead == '\\') SKIP(179); + if (lookahead == 'c') + ADVANCE(74); + if (lookahead == 'e') + ADVANCE(114); + if (lookahead == 'f') + ADVANCE(120); if (lookahead == 'i') - ADVANCE(141); + ADVANCE(78); + if (lookahead == 'w') + ADVANCE(80); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') SKIP(178); + if (lookahead != 0 && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); END_STATE(); case 179: if (lookahead == '\n') SKIP(178); END_STATE(); case 180: + if (lookahead == '\n') + ADVANCE(123); if (lookahead == '#') ADVANCE(3); - if (lookahead == ':') - ADVANCE(10); - if (lookahead == '=') - ADVANCE(17); + if (lookahead == ';') + ADVANCE(101); if (lookahead == '\\') SKIP(181); - if (lookahead == '}') - ADVANCE(57); if (lookahead == '\t' || - lookahead == '\n' || lookahead == '\r' || lookahead == ' ') SKIP(180); @@ -2798,54 +2824,92 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { case 182: if (lookahead == '#') ADVANCE(3); - if (lookahead == ')') - ADVANCE(9); - if (lookahead == '<') - ADVANCE(13); - if (lookahead == '=') - ADVANCE(17); - if (lookahead == '>') - ADVANCE(18); if (lookahead == '\\') SKIP(183); + if (lookahead == 'i') + ADVANCE(145); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - ADVANCE(184); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(58); + SKIP(182); END_STATE(); case 183: if (lookahead == '\n') SKIP(182); END_STATE(); case 184: + if (lookahead == '#') + ADVANCE(3); + if (lookahead == ':') + ADVANCE(12); + if (lookahead == '=') + ADVANCE(19); + if (lookahead == '\\') + SKIP(185); + if (lookahead == '}') + ADVANCE(60); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ') + SKIP(184); + END_STATE(); + case 185: + if (lookahead == '\n') + SKIP(184); + END_STATE(); + case 186: + if (lookahead == '#') + ADVANCE(3); + if (lookahead == '&') + ADVANCE(86); + if (lookahead == ')') + ADVANCE(11); + if (lookahead == '<') + ADVANCE(15); + if (lookahead == '=') + ADVANCE(19); + if (lookahead == '>') + ADVANCE(20); + if (lookahead == '\\') + SKIP(187); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ') + ADVANCE(188); + END_STATE(); + case 187: + if (lookahead == '\n') + SKIP(186); + END_STATE(); + case 188: ACCEPT_TOKEN(aux_sym_SLASH_BSLASHs_PLUS_SLASH); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - ADVANCE(184); + ADVANCE(188); END_STATE(); - case 185: + case 189: if (lookahead == '#') ADVANCE(3); if (lookahead == ')') - ADVANCE(9); + ADVANCE(11); if (lookahead == '\\') - SKIP(186); + SKIP(190); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(185); + SKIP(189); END_STATE(); - case 186: + case 190: if (lookahead == '\n') - SKIP(185); + SKIP(189); END_STATE(); - case 187: + case 191: if (lookahead == '\"') ADVANCE(2); if (lookahead == '#') @@ -2853,40 +2917,35 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '$') ADVANCE(4); if (lookahead == '\'') - ADVANCE(83); + ADVANCE(92); if (lookahead == ')') - ADVANCE(9); - if (lookahead == '<') - ADVANCE(13); - if (lookahead == '>') - ADVANCE(18); + ADVANCE(11); if (lookahead == '\\') - SKIP(188); + SKIP(192); if (lookahead == ']') - ADVANCE(148); + ADVANCE(152); if (lookahead == '}') - ADVANCE(57); + ADVANCE(60); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(187); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(91); + SKIP(191); if (lookahead != 0 && (lookahead < '&' || lookahead > ')') && lookahead != ';' && lookahead != '<' && + lookahead != '>' && lookahead != '{') - ADVANCE(85); + ADVANCE(94); END_STATE(); - case 188: + case 192: if (lookahead == '\n') - SKIP(187); + SKIP(191); END_STATE(); - case 189: + case 193: if (lookahead == '\n') - ADVANCE(120); + ADVANCE(123); if (lookahead == '\"') ADVANCE(2); if (lookahead == '#') @@ -2896,136 +2955,134 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '&') ADVANCE(7); if (lookahead == '\'') - ADVANCE(83); + ADVANCE(92); if (lookahead == ')') - ADVANCE(9); + ADVANCE(11); if (lookahead == ';') - ADVANCE(98); + ADVANCE(101); if (lookahead == '<') - ADVANCE(13); + ADVANCE(15); if (lookahead == '>') - ADVANCE(18); + ADVANCE(20); if (lookahead == '\\') - SKIP(190); + SKIP(194); if (lookahead == '|') - ADVANCE(158); + ADVANCE(162); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ') - SKIP(189); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(91); + SKIP(193); if (lookahead != 0 && (lookahead < '&' || lookahead > ')') && (lookahead < '{' || lookahead > '}')) - ADVANCE(85); + ADVANCE(94); END_STATE(); - case 190: + case 194: if (lookahead == '\n') - SKIP(189); + SKIP(193); END_STATE(); - case 191: + case 195: if (lookahead == '#') ADVANCE(3); if (lookahead == '$') - ADVANCE(192); + ADVANCE(196); if (lookahead == '\\') - SKIP(193); + SKIP(197); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(191); + SKIP(195); END_STATE(); - case 192: + case 196: ACCEPT_TOKEN(anon_sym_DOLLAR); if (lookahead == '{') ADVANCE(6); END_STATE(); - case 193: + case 197: if (lookahead == '\n') - SKIP(191); + SKIP(195); END_STATE(); - case 194: + case 198: if (lookahead == '#') ADVANCE(3); + if (lookahead == '&') + ADVANCE(62); if (lookahead == '<') - ADVANCE(60); + ADVANCE(66); if (lookahead == '>') - ADVANCE(63); - if (lookahead == '[') - ADVANCE(65); - if (lookahead == '\\') - SKIP(195); - if (lookahead == 'c') ADVANCE(68); - if (lookahead == 'f') - ADVANCE(117); - if (lookahead == 'i') - ADVANCE(72); - if (lookahead == 'w') + if (lookahead == '[') + ADVANCE(71); + if (lookahead == '\\') + SKIP(199); + if (lookahead == 'c') ADVANCE(74); + if (lookahead == 'f') + ADVANCE(120); + if (lookahead == 'i') + ADVANCE(78); + if (lookahead == 'w') + ADVANCE(80); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(194); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(79); + SKIP(198); if (lookahead != 0 && lookahead != '\"' && lookahead != '#' && lookahead != '(' && lookahead != ')' && - (lookahead < '0' || lookahead > '>') && + (lookahead < ':' || lookahead > '>') && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); - END_STATE(); - case 195: - if (lookahead == '\n') - SKIP(194); - END_STATE(); - case 196: - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '\\') - SKIP(197); - if (lookahead == 'e') - ADVANCE(198); - if (lookahead == 'f') - ADVANCE(41); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') - SKIP(196); - END_STATE(); - case 197: - if (lookahead == '\n') - SKIP(196); - END_STATE(); - case 198: - if (lookahead == 'l') - ADVANCE(33); + ADVANCE(65); END_STATE(); case 199: + if (lookahead == '\n') + SKIP(198); + END_STATE(); + case 200: if (lookahead == '#') ADVANCE(3); if (lookahead == '\\') - SKIP(200); + SKIP(201); + if (lookahead == 'e') + ADVANCE(202); if (lookahead == 'f') - ADVANCE(41); + ADVANCE(44); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(199); - END_STATE(); - case 200: - if (lookahead == '\n') - SKIP(199); + SKIP(200); END_STATE(); case 201: + if (lookahead == '\n') + SKIP(200); + END_STATE(); + case 202: + if (lookahead == 'l') + ADVANCE(36); + END_STATE(); + case 203: + if (lookahead == '#') + ADVANCE(3); + if (lookahead == '\\') + SKIP(204); + if (lookahead == 'f') + ADVANCE(44); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ') + SKIP(203); + END_STATE(); + case 204: + if (lookahead == '\n') + SKIP(203); + END_STATE(); + case 205: if (lookahead == '\"') ADVANCE(2); if (lookahead == '#') @@ -3033,16 +3090,16 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '$') ADVANCE(4); if (lookahead == '\'') - ADVANCE(83); + ADVANCE(92); if (lookahead == '\\') - SKIP(202); + SKIP(206); if (lookahead == 'e') - ADVANCE(203); + ADVANCE(207); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(201); + SKIP(205); if (lookahead != 0 && (lookahead < '&' || lookahead > ')') && lookahead != ';' && @@ -3050,76 +3107,76 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '>' && lookahead != '{' && lookahead != '}') - ADVANCE(85); - END_STATE(); - case 202: - if (lookahead == '\n') - SKIP(201); - END_STATE(); - case 203: - ACCEPT_TOKEN(sym_word); - if (lookahead == 's') - ADVANCE(204); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '&' && - lookahead != '(' && - lookahead != ')' && - lookahead != ';' && - lookahead != '<' && - lookahead != '>' && - lookahead != '\\' && - lookahead != '{' && - lookahead != '}') - ADVANCE(85); - END_STATE(); - case 204: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'a') - ADVANCE(205); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '&' && - lookahead != '(' && - lookahead != ')' && - lookahead != ';' && - lookahead != '<' && - lookahead != '>' && - lookahead != '\\' && - lookahead != '{' && - lookahead != '}') - ADVANCE(85); - END_STATE(); - case 205: - ACCEPT_TOKEN(sym_word); - if (lookahead == 'c') - ADVANCE(206); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '&' && - lookahead != '(' && - lookahead != ')' && - lookahead != ';' && - lookahead != '<' && - lookahead != '>' && - lookahead != '\\' && - lookahead != '{' && - lookahead != '}') - ADVANCE(85); + ADVANCE(94); END_STATE(); case 206: + if (lookahead == '\n') + SKIP(205); + END_STATE(); + case 207: + ACCEPT_TOKEN(sym_word); + if (lookahead == 's') + ADVANCE(208); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '&' && + lookahead != '(' && + lookahead != ')' && + lookahead != ';' && + lookahead != '<' && + lookahead != '>' && + lookahead != '\\' && + lookahead != '{' && + lookahead != '}') + ADVANCE(94); + END_STATE(); + case 208: + ACCEPT_TOKEN(sym_word); + if (lookahead == 'a') + ADVANCE(209); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '&' && + lookahead != '(' && + lookahead != ')' && + lookahead != ';' && + lookahead != '<' && + lookahead != '>' && + lookahead != '\\' && + lookahead != '{' && + lookahead != '}') + ADVANCE(94); + END_STATE(); + case 209: + ACCEPT_TOKEN(sym_word); + if (lookahead == 'c') + ADVANCE(210); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '&' && + lookahead != '(' && + lookahead != ')' && + lookahead != ';' && + lookahead != '<' && + lookahead != '>' && + lookahead != '\\' && + lookahead != '{' && + lookahead != '}') + ADVANCE(94); + END_STATE(); + case 210: ACCEPT_TOKEN(anon_sym_esac); if (lookahead != 0 && lookahead != '\t' && @@ -3136,100 +3193,39 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '\\' && lookahead != '{' && lookahead != '}') - ADVANCE(85); + ADVANCE(94); END_STATE(); - case 207: + case 211: if (lookahead == '\"') ADVANCE(2); if (lookahead == '#') ADVANCE(3); if (lookahead == '$') ADVANCE(4); + if (lookahead == '&') + ADVANCE(86); if (lookahead == '\'') - ADVANCE(83); + ADVANCE(92); if (lookahead == ')') - ADVANCE(9); + ADVANCE(11); if (lookahead == '<') - ADVANCE(13); + ADVANCE(15); if (lookahead == '>') - ADVANCE(18); + ADVANCE(20); if (lookahead == '\\') - SKIP(208); + SKIP(212); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(207); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(91); + SKIP(211); if (lookahead != 0 && (lookahead < '&' || lookahead > ')') && lookahead != ';' && lookahead != '<' && lookahead != '{' && lookahead != '}') - ADVANCE(85); - END_STATE(); - case 208: - if (lookahead == '\n') - SKIP(207); - END_STATE(); - case 209: - if (lookahead == '#') - ADVANCE(3); - if (lookahead == ')') - ADVANCE(9); - if (lookahead == '<') - ADVANCE(13); - if (lookahead == '>') - ADVANCE(18); - if (lookahead == '\\') - SKIP(210); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') - SKIP(209); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(58); - END_STATE(); - case 210: - if (lookahead == '\n') - SKIP(209); - END_STATE(); - case 211: - if (lookahead == '\n') - ADVANCE(120); - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '&') - ADVANCE(123); - if (lookahead == ';') - ADVANCE(98); - if (lookahead == '<') - ADVANCE(60); - if (lookahead == '>') - ADVANCE(63); - if (lookahead == '\\') - SKIP(212); - if (lookahead == '|') - ADVANCE(101); - if (lookahead == '}') - ADVANCE(57); - if (lookahead == '\t' || - lookahead == '\r' || - lookahead == ' ') - SKIP(211); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(79); - if (lookahead != 0 && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - (lookahead < '0' || lookahead > '>') && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(94); END_STATE(); case 212: if (lookahead == '\n') @@ -3238,10 +3234,16 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { case 213: if (lookahead == '#') ADVANCE(3); + if (lookahead == '&') + ADVANCE(86); + if (lookahead == ')') + ADVANCE(11); + if (lookahead == '<') + ADVANCE(15); + if (lookahead == '>') + ADVANCE(20); if (lookahead == '\\') SKIP(214); - if (lookahead == '}') - ADVANCE(57); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -3253,50 +3255,101 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { SKIP(213); END_STATE(); case 215: + if (lookahead == '\n') + ADVANCE(123); + if (lookahead == '#') + ADVANCE(3); + if (lookahead == '&') + ADVANCE(127); + if (lookahead == ';') + ADVANCE(101); + if (lookahead == '<') + ADVANCE(66); + if (lookahead == '>') + ADVANCE(68); + if (lookahead == '\\') + SKIP(216); + if (lookahead == '|') + ADVANCE(104); + if (lookahead == '}') + ADVANCE(60); + if (lookahead == '\t' || + lookahead == '\r' || + lookahead == ' ') + SKIP(215); + if (lookahead != 0 && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 216: + if (lookahead == '\n') + SKIP(215); + END_STATE(); + case 217: + if (lookahead == '#') + ADVANCE(3); + if (lookahead == '\\') + SKIP(218); + if (lookahead == '}') + ADVANCE(60); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ') + SKIP(217); + END_STATE(); + case 218: + if (lookahead == '\n') + SKIP(217); + END_STATE(); + case 219: if (lookahead == '\"') ADVANCE(2); if (lookahead == '#') ADVANCE(3); if (lookahead == '$') - ADVANCE(216); + ADVANCE(220); if (lookahead == '&') ADVANCE(62); if (lookahead == '\'') - ADVANCE(217); + ADVANCE(221); if (lookahead == ';') - ADVANCE(222); - if (lookahead == '<') - ADVANCE(60); - if (lookahead == '>') - ADVANCE(63); - if (lookahead == '[') - ADVANCE(223); - if (lookahead == '\\') - SKIP(225); - if (lookahead == 'c') ADVANCE(226); - if (lookahead == 'e') + if (lookahead == '<') + ADVANCE(66); + if (lookahead == '>') + ADVANCE(68); + if (lookahead == '[') + ADVANCE(227); + if (lookahead == '\\') + SKIP(229); + if (lookahead == 'c') ADVANCE(230); - if (lookahead == 'i') + if (lookahead == 'e') ADVANCE(234); + if (lookahead == 'i') + ADVANCE(238); if (lookahead == 'w') - ADVANCE(236); + ADVANCE(240); if ((':' <= lookahead && lookahead <= '=') || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(215); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(241); + SKIP(219); if (lookahead != 0 && (lookahead < '&' || lookahead > ')') && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); - case 216: + case 220: ACCEPT_TOKEN(anon_sym_DOLLAR); if (lookahead == '(') ADVANCE(5); @@ -3316,20 +3369,20 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 217: + case 221: ACCEPT_TOKEN(sym_leading_word); if (lookahead == '\'') - ADVANCE(218); + ADVANCE(222); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(83); + ADVANCE(92); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(220); + ADVANCE(224); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -3341,20 +3394,20 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(86); + ADVANCE(95); if (lookahead != 0) - ADVANCE(217); + ADVANCE(221); END_STATE(); - case 218: + case 222: ACCEPT_TOKEN(sym_single_quoted_argument); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3366,18 +3419,18 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); - case 219: + case 223: ACCEPT_TOKEN(sym_leading_word); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3389,12 +3442,12 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); - case 220: + case 224: ACCEPT_TOKEN(sym_leading_word); if (lookahead == '\'') - ADVANCE(221); + ADVANCE(225); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -3408,11 +3461,11 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '=' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(86); + ADVANCE(95); if (lookahead != 0) - ADVANCE(220); + ADVANCE(224); END_STATE(); - case 221: + case 225: ACCEPT_TOKEN(sym_single_quoted_argument); if (lookahead != 0 && lookahead != '\t' && @@ -3428,24 +3481,24 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 222: + case 226: if (lookahead == ';') - ADVANCE(99); + ADVANCE(102); END_STATE(); - case 223: + case 227: ACCEPT_TOKEN(anon_sym_LBRACK); if (lookahead == '[') - ADVANCE(224); + ADVANCE(228); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3458,18 +3511,18 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '[' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); - case 224: + case 228: ACCEPT_TOKEN(anon_sym_LBRACK_LBRACK); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3481,122 +3534,24 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 225: - if (lookahead == '\n') - SKIP(215); - END_STATE(); - case 226: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'a') - ADVANCE(227); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 227: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 's') - ADVANCE(228); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 228: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'e') - ADVANCE(229); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 229: - ACCEPT_TOKEN(anon_sym_case); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + if (lookahead == '\n') + SKIP(219); END_STATE(); case 230: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 's') + if (lookahead == 'a') ADVANCE(231); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3608,20 +3563,20 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 231: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'a') + if (lookahead == 's') ADVANCE(232); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3633,20 +3588,20 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 232: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'c') + if (lookahead == 'e') ADVANCE(233); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3658,18 +3613,18 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 233: - ACCEPT_TOKEN(anon_sym_esac); + ACCEPT_TOKEN(anon_sym_case); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3681,20 +3636,20 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 234: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'f') + if (lookahead == 's') ADVANCE(235); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3706,18 +3661,20 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 235: - ACCEPT_TOKEN(anon_sym_if); + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'a') + ADVANCE(236); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3729,20 +3686,20 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 236: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'h') + if (lookahead == 'c') ADVANCE(237); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3754,20 +3711,18 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 237: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'i') - ADVANCE(238); + ACCEPT_TOKEN(anon_sym_esac); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3779,20 +3734,20 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 238: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'l') + if (lookahead == 'f') ADVANCE(239); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3804,20 +3759,18 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 239: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'e') - ADVANCE(240); + ACCEPT_TOKEN(anon_sym_if); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3829,18 +3782,118 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 240: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'h') + ADVANCE(241); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 241: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'i') + ADVANCE(242); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 242: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'l') + ADVANCE(243); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 243: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'e') + ADVANCE(244); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 244: ACCEPT_TOKEN(anon_sym_while); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3852,14 +3905,9 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); - case 241: - ACCEPT_TOKEN(sym_file_descriptor); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(241); - END_STATE(); - case 242: + case 245: if (lookahead == 0) ADVANCE(1); if (lookahead == '\"') @@ -3867,115 +3915,63 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '#') ADVANCE(3); if (lookahead == '$') - ADVANCE(216); + ADVANCE(220); if (lookahead == '&') ADVANCE(62); if (lookahead == '\'') - ADVANCE(217); + ADVANCE(221); if (lookahead == ';') - ADVANCE(222); - if (lookahead == '<') - ADVANCE(60); - if (lookahead == '>') - ADVANCE(63); - if (lookahead == '[') - ADVANCE(223); - if (lookahead == '\\') - SKIP(243); - if (lookahead == 'c') ADVANCE(226); + if (lookahead == '<') + ADVANCE(66); + if (lookahead == '>') + ADVANCE(68); + if (lookahead == '[') + ADVANCE(227); + if (lookahead == '\\') + SKIP(246); + if (lookahead == 'c') + ADVANCE(230); if (lookahead == 'd') - ADVANCE(244); + ADVANCE(247); if (lookahead == 'e') - ADVANCE(248); + ADVANCE(251); if (lookahead == 'f') - ADVANCE(254); + ADVANCE(257); if (lookahead == 'i') - ADVANCE(234); + ADVANCE(238); if (lookahead == 't') - ADVANCE(256); + ADVANCE(259); if (lookahead == 'w') - ADVANCE(236); + ADVANCE(240); if ((':' <= lookahead && lookahead <= '=') || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(242); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(241); + SKIP(245); if ((lookahead < '&' || lookahead > ')') && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 243: - if (lookahead == '\n') - SKIP(242); - END_STATE(); - case 244: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'o') - ADVANCE(245); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 245: - ACCEPT_TOKEN(anon_sym_do); - if (lookahead == 'n') - ADVANCE(246); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 246: + if (lookahead == '\n') + SKIP(245); + END_STATE(); + case 247: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'e') - ADVANCE(247); + if (lookahead == 'o') + ADVANCE(248); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -3987,18 +3983,68 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); - case 247: + case 248: + ACCEPT_TOKEN(anon_sym_do); + if (lookahead == 'n') + ADVANCE(249); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 249: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'e') + ADVANCE(250); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 250: ACCEPT_TOKEN(anon_sym_done); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -4010,97 +4056,22 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 248: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'l') - ADVANCE(249); - if (lookahead == 's') - ADVANCE(231); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 249: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'i') - ADVANCE(250); - if (lookahead == 's') - ADVANCE(252); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 250: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'f') - ADVANCE(251); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 251: - ACCEPT_TOKEN(anon_sym_elif); + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'l') + ADVANCE(252); + if (lookahead == 's') + ADVANCE(235); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -4112,68 +4083,22 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 252: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'e') - ADVANCE(253); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 253: - ACCEPT_TOKEN(anon_sym_else); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 254: ACCEPT_TOKEN(sym_leading_word); if (lookahead == 'i') + ADVANCE(253); + if (lookahead == 's') ADVANCE(255); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -4185,18 +4110,68 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); + END_STATE(); + case 253: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'f') + ADVANCE(254); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 254: + ACCEPT_TOKEN(anon_sym_elif); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); END_STATE(); case 255: - ACCEPT_TOKEN(anon_sym_fi); + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'e') + ADVANCE(256); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -4208,20 +4183,18 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 256: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'h') - ADVANCE(257); + ACCEPT_TOKEN(anon_sym_else); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -4233,20 +4206,20 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 257: ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'e') + if (lookahead == 'i') ADVANCE(258); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -4258,20 +4231,18 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 258: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'n') - ADVANCE(259); + ACCEPT_TOKEN(anon_sym_fi); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -4283,18 +4254,93 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 259: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'h') + ADVANCE(260); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 260: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'e') + ADVANCE(261); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 261: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'n') + ADVANCE(262); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 262: ACCEPT_TOKEN(anon_sym_then); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -4306,9 +4352,9 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); - case 260: + case 263: if (lookahead == 0) ADVANCE(1); if (lookahead == '\"') @@ -4316,286 +4362,207 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '#') ADVANCE(3); if (lookahead == '$') - ADVANCE(216); + ADVANCE(220); if (lookahead == '&') ADVANCE(62); if (lookahead == '\'') - ADVANCE(217); + ADVANCE(221); if (lookahead == ';') - ADVANCE(222); - if (lookahead == '<') - ADVANCE(60); - if (lookahead == '>') - ADVANCE(63); - if (lookahead == '[') - ADVANCE(223); - if (lookahead == '\\') - SKIP(261); - if (lookahead == 'c') ADVANCE(226); + if (lookahead == '<') + ADVANCE(66); + if (lookahead == '>') + ADVANCE(68); + if (lookahead == '[') + ADVANCE(227); + if (lookahead == '\\') + SKIP(264); + if (lookahead == 'c') + ADVANCE(230); if (lookahead == 'd') - ADVANCE(262); + ADVANCE(265); if (lookahead == 'e') - ADVANCE(248); + ADVANCE(251); if (lookahead == 'f') - ADVANCE(254); + ADVANCE(257); if (lookahead == 'i') - ADVANCE(234); + ADVANCE(238); if (lookahead == 'w') - ADVANCE(236); + ADVANCE(240); if ((':' <= lookahead && lookahead <= '=') || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || lookahead == ' ') - SKIP(260); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(241); + SKIP(263); if ((lookahead < '&' || lookahead > ')') && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 261: - if (lookahead == '\n') - SKIP(260); - END_STATE(); - case 262: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'o') - ADVANCE(263); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 263: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'n') - ADVANCE(246); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); case 264: if (lookahead == '\n') - ADVANCE(265); + SKIP(263); + END_STATE(); + case 265: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'o') + ADVANCE(266); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 266: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'n') + ADVANCE(249); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 267: + if (lookahead == '\n') + ADVANCE(268); if (lookahead == '\"') ADVANCE(2); if (lookahead == '#') - ADVANCE(135); + ADVANCE(139); if (lookahead == '$') - ADVANCE(216); + ADVANCE(220); if (lookahead == '&') - ADVANCE(266); - if (lookahead == '\'') ADVANCE(269); + if (lookahead == '\'') + ADVANCE(274); if (lookahead == ')') - ADVANCE(275); + ADVANCE(280); if (lookahead == ';') - ADVANCE(276); + ADVANCE(281); if (lookahead == '<') - ADVANCE(278); + ADVANCE(283); if (lookahead == '>') - ADVANCE(282); + ADVANCE(287); if (lookahead == '[') - ADVANCE(284); - if (lookahead == '\\') - ADVANCE(286); - if (lookahead == ']') - ADVANCE(288); - if (lookahead == 'c') ADVANCE(290); - if (lookahead == 'e') + if (lookahead == '\\') + ADVANCE(292); + if (lookahead == ']') ADVANCE(294); + if (lookahead == 'c') + ADVANCE(296); + if (lookahead == 'e') + ADVANCE(300); if (lookahead == 'i') - ADVANCE(298); + ADVANCE(304); if (lookahead == 'w') - ADVANCE(301); + ADVANCE(307); if (lookahead == '|') - ADVANCE(306); + ADVANCE(312); if (lookahead == '}') - ADVANCE(309); + ADVANCE(315); if (lookahead == '(' || lookahead == '{') - ADVANCE(136); + ADVANCE(140); if ((':' <= lookahead && lookahead <= '=')) - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ') - ADVANCE(287); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(310); + ADVANCE(293); if (lookahead != 0) - ADVANCE(270); - END_STATE(); - case 265: - ACCEPT_TOKEN(anon_sym_LF); - if (lookahead == '\n') - ADVANCE(265); - if (lookahead == '#') - ADVANCE(135); - if (lookahead == '&') - ADVANCE(266); - if (lookahead == '\'') - ADVANCE(269); - if (lookahead == ')') ADVANCE(275); - if (lookahead == ';') - ADVANCE(276); - if (lookahead == '<') - ADVANCE(278); - if (lookahead == '>') - ADVANCE(282); - if (lookahead == '[') - ADVANCE(284); - if (lookahead == '\\') - ADVANCE(286); - if (lookahead == ']') - ADVANCE(288); - if (lookahead == 'c') - ADVANCE(290); - if (lookahead == 'e') - ADVANCE(294); - if (lookahead == 'i') - ADVANCE(298); - if (lookahead == 'w') - ADVANCE(301); - if (lookahead == '|') - ADVANCE(306); - if (lookahead == '}') - ADVANCE(309); - if (lookahead == '(' || - lookahead == '{') - ADVANCE(136); - if ((':' <= lookahead && lookahead <= '=')) - ADVANCE(271); - if (lookahead == '\t' || - lookahead == '\r' || - lookahead == ' ') - ADVANCE(287); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(310); - if (lookahead != 0 && - (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); - END_STATE(); - case 266: - ACCEPT_TOKEN(sym__quoted_chars); - if (lookahead == '$') - ADVANCE(62); - if (lookahead == '&') - ADVANCE(267); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ' || - lookahead == '#' || - lookahead == '(' || - lookahead == ')' || - lookahead == ':' || - lookahead == ';' || - lookahead == '=' || - lookahead == '\\' || - ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); - if (lookahead != 0 && - (lookahead < '\"' || lookahead > '$')) - ADVANCE(268); - END_STATE(); - case 267: - ACCEPT_TOKEN(anon_sym_AMP_AMP); - if (lookahead == '$') - ADVANCE(62); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ' || - lookahead == '#' || - lookahead == '(' || - lookahead == ')' || - lookahead == ':' || - lookahead == ';' || - lookahead == '=' || - lookahead == '\\' || - ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); - if (lookahead != 0 && - (lookahead < '\"' || lookahead > '$')) - ADVANCE(268); END_STATE(); case 268: - ACCEPT_TOKEN(sym__quoted_chars); - if (lookahead == '$') - ADVANCE(62); + ACCEPT_TOKEN(anon_sym_LF); + if (lookahead == '\n') + ADVANCE(268); + if (lookahead == '#') + ADVANCE(139); + if (lookahead == '&') + ADVANCE(269); + if (lookahead == '\'') + ADVANCE(274); + if (lookahead == ')') + ADVANCE(280); + if (lookahead == ';') + ADVANCE(281); + if (lookahead == '<') + ADVANCE(283); + if (lookahead == '>') + ADVANCE(287); + if (lookahead == '[') + ADVANCE(290); + if (lookahead == '\\') + ADVANCE(292); + if (lookahead == ']') + ADVANCE(294); + if (lookahead == 'c') + ADVANCE(296); + if (lookahead == 'e') + ADVANCE(300); + if (lookahead == 'i') + ADVANCE(304); + if (lookahead == 'w') + ADVANCE(307); + if (lookahead == '|') + ADVANCE(312); + if (lookahead == '}') + ADVANCE(315); + if (lookahead == '(' || + lookahead == '{') + ADVANCE(140); + if ((':' <= lookahead && lookahead <= '=')) + ADVANCE(276); if (lookahead == '\t' || - lookahead == '\n' || lookahead == '\r' || - lookahead == ' ' || - lookahead == '#' || - lookahead == '(' || - lookahead == ')' || - lookahead == ':' || - lookahead == ';' || - lookahead == '=' || - lookahead == '\\' || - ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + lookahead == ' ') + ADVANCE(293); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(268); + ADVANCE(275); END_STATE(); case 269: ACCEPT_TOKEN(sym__quoted_chars); - if (lookahead == '\"') - ADVANCE(86); if (lookahead == '$') - ADVANCE(220); - if (lookahead == '\'') + ADVANCE(65); + if (lookahead == '&') ADVANCE(270); - if (lookahead == '&' || - lookahead == '<' || - lookahead == '>') + if (lookahead == '>') ADVANCE(272); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(274); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -4603,41 +4570,160 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '#' || lookahead == '(' || lookahead == ')' || + lookahead == ':' || lookahead == ';' || - lookahead == '\\' || - ('{' <= lookahead && lookahead <= '}')) - ADVANCE(273); - if (lookahead != 0) - ADVANCE(269); - END_STATE(); - case 270: - ACCEPT_TOKEN(sym__quoted_chars); - if (lookahead == '$') - ADVANCE(62); - if (lookahead == '&' || - lookahead == '<' || - lookahead == '>') - ADVANCE(268); - if (lookahead == ':' || lookahead == '=' || - lookahead == '|') - ADVANCE(271); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ' || - lookahead == '#' || - lookahead == '(' || - lookahead == ')' || - lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(271); + END_STATE(); + case 270: + ACCEPT_TOKEN(anon_sym_AMP_AMP); + if (lookahead == '$') + ADVANCE(65); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ':' || + lookahead == ';' || + lookahead == '=' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); + if (lookahead != 0 && + (lookahead < '\"' || lookahead > '$')) + ADVANCE(271); END_STATE(); case 271: + ACCEPT_TOKEN(sym__quoted_chars); + if (lookahead == '$') + ADVANCE(65); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ':' || + lookahead == ';' || + lookahead == '=' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); + if (lookahead != 0 && + (lookahead < '\"' || lookahead > '$')) + ADVANCE(271); + END_STATE(); + case 272: + ACCEPT_TOKEN(anon_sym_AMP_GT); + if (lookahead == '$') + ADVANCE(65); + if (lookahead == '>') + ADVANCE(273); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ':' || + lookahead == ';' || + lookahead == '=' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); + if (lookahead != 0 && + (lookahead < '\"' || lookahead > '$')) + ADVANCE(271); + END_STATE(); + case 273: + ACCEPT_TOKEN(anon_sym_AMP_GT_GT); + if (lookahead == '$') + ADVANCE(65); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ':' || + lookahead == ';' || + lookahead == '=' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); + if (lookahead != 0 && + (lookahead < '\"' || lookahead > '$')) + ADVANCE(271); + END_STATE(); + case 274: + ACCEPT_TOKEN(sym__quoted_chars); + if (lookahead == '\"') + ADVANCE(95); + if (lookahead == '$') + ADVANCE(224); + if (lookahead == '\'') + ADVANCE(275); + if (lookahead == '&' || + lookahead == '<' || + lookahead == '>') + ADVANCE(277); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(279); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ';' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(278); + if (lookahead != 0) + ADVANCE(274); + END_STATE(); + case 275: + ACCEPT_TOKEN(sym__quoted_chars); + if (lookahead == '$') + ADVANCE(65); + if (lookahead == '&' || + lookahead == '<' || + lookahead == '>') + ADVANCE(271); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(276); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ';' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); + if (lookahead != 0 && + (lookahead < '\"' || lookahead > '$')) + ADVANCE(275); + END_STATE(); + case 276: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '\t' || lookahead == '\n' || @@ -4653,19 +4739,19 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '\\' || lookahead == '{' || lookahead == '}') - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(271); + ADVANCE(276); END_STATE(); - case 272: + case 277: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '\"') - ADVANCE(86); + ADVANCE(95); if (lookahead == '$') - ADVANCE(220); + ADVANCE(224); if (lookahead == '\'') - ADVANCE(268); + ADVANCE(271); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -4678,27 +4764,27 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '=' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(273); + ADVANCE(278); if (lookahead != 0) - ADVANCE(272); + ADVANCE(277); END_STATE(); - case 273: + case 278: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '\'') - ADVANCE(136); + ADVANCE(140); if (lookahead == '\"' || lookahead == '$') - ADVANCE(86); + ADVANCE(95); if (lookahead != 0) - ADVANCE(273); + ADVANCE(278); END_STATE(); - case 274: + case 279: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '\'') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\"' || lookahead == '$') - ADVANCE(86); + ADVANCE(95); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -4711,41 +4797,41 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '\\' || lookahead == '{' || lookahead == '}') - ADVANCE(273); + ADVANCE(278); if (lookahead != 0) - ADVANCE(274); + ADVANCE(279); END_STATE(); - case 275: + case 280: ACCEPT_TOKEN(anon_sym_RPAREN); if (lookahead != 0 && lookahead != '\"' && lookahead != '$') - ADVANCE(136); + ADVANCE(140); END_STATE(); - case 276: + case 281: ACCEPT_TOKEN(anon_sym_SEMI); if (lookahead == ';') - ADVANCE(277); + ADVANCE(282); if (lookahead != 0 && lookahead != '\"' && lookahead != '$') - ADVANCE(136); + ADVANCE(140); END_STATE(); - case 277: + case 282: ACCEPT_TOKEN(anon_sym_SEMI_SEMI); if (lookahead != 0 && lookahead != '\"' && lookahead != '$') - ADVANCE(136); + ADVANCE(140); END_STATE(); - case 278: + case 283: ACCEPT_TOKEN(anon_sym_LT); if (lookahead == '$') - ADVANCE(62); + ADVANCE(65); if (lookahead == '&') - ADVANCE(279); + ADVANCE(284); if (lookahead == '<') - ADVANCE(280); + ADVANCE(285); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -4756,134 +4842,15 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (':' <= lookahead && lookahead <= '=') || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(268); - END_STATE(); - case 279: - ACCEPT_TOKEN(anon_sym_LT_AMP); - if (lookahead == '$') - ADVANCE(62); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ' || - lookahead == '#' || - lookahead == '(' || - lookahead == ')' || - lookahead == ':' || - lookahead == ';' || - lookahead == '=' || - lookahead == '\\' || - ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); - if (lookahead != 0 && - (lookahead < '\"' || lookahead > '$')) - ADVANCE(268); - END_STATE(); - case 280: - ACCEPT_TOKEN(anon_sym_LT_LT); - if (lookahead == '$') - ADVANCE(62); - if (lookahead == '-') - ADVANCE(281); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ' || - lookahead == '#' || - lookahead == '(' || - lookahead == ')' || - lookahead == ':' || - lookahead == ';' || - lookahead == '=' || - lookahead == '\\' || - ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); - if (lookahead != 0 && - (lookahead < '\"' || lookahead > '$')) - ADVANCE(268); - END_STATE(); - case 281: - ACCEPT_TOKEN(anon_sym_LT_LT_DASH); - if (lookahead == '$') - ADVANCE(62); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ' || - lookahead == '#' || - lookahead == '(' || - lookahead == ')' || - lookahead == ':' || - lookahead == ';' || - lookahead == '=' || - lookahead == '\\' || - ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); - if (lookahead != 0 && - (lookahead < '\"' || lookahead > '$')) - ADVANCE(268); - END_STATE(); - case 282: - ACCEPT_TOKEN(anon_sym_GT); - if (lookahead == '$') - ADVANCE(62); - if (lookahead == '&') - ADVANCE(283); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ' || - lookahead == '#' || - lookahead == '(' || - lookahead == ')' || - lookahead == ':' || - lookahead == ';' || - lookahead == '=' || - lookahead == '\\' || - ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); - if (lookahead != 0 && - (lookahead < '\"' || lookahead > '$')) - ADVANCE(268); - END_STATE(); - case 283: - ACCEPT_TOKEN(anon_sym_GT_AMP); - if (lookahead == '$') - ADVANCE(62); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ' || - lookahead == '#' || - lookahead == '(' || - lookahead == ')' || - lookahead == ':' || - lookahead == ';' || - lookahead == '=' || - lookahead == '\\' || - ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); - if (lookahead != 0 && - (lookahead < '\"' || lookahead > '$')) - ADVANCE(268); + ADVANCE(271); END_STATE(); case 284: - ACCEPT_TOKEN(anon_sym_LBRACK); + ACCEPT_TOKEN(anon_sym_LT_AMP); if (lookahead == '$') - ADVANCE(62); - if (lookahead == '[') - ADVANCE(285); - if (lookahead == '&' || - lookahead == '<' || - lookahead == '>') - ADVANCE(268); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(271); + ADVANCE(65); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -4891,26 +4858,22 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '#' || lookahead == '(' || lookahead == ')' || + lookahead == ':' || lookahead == ';' || + lookahead == '=' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(271); END_STATE(); case 285: - ACCEPT_TOKEN(anon_sym_LBRACK_LBRACK); + ACCEPT_TOKEN(anon_sym_LT_LT); if (lookahead == '$') - ADVANCE(62); - if (lookahead == '&' || - lookahead == '<' || - lookahead == '>') - ADVANCE(268); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(271); + ADVANCE(65); + if (lookahead == '-') + ADVANCE(286); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -4918,88 +4881,66 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '#' || lookahead == '(' || lookahead == ')' || + lookahead == ':' || lookahead == ';' || + lookahead == '=' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(271); END_STATE(); case 286: - ACCEPT_TOKEN(sym__quoted_chars); - if (lookahead == '\n') - ADVANCE(287); + ACCEPT_TOKEN(anon_sym_LT_LT_DASH); + if (lookahead == '$') + ADVANCE(65); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ':' || + lookahead == ';' || + lookahead == '=' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); if (lookahead != 0 && - lookahead != '\"' && - lookahead != '$') - ADVANCE(136); + (lookahead < '\"' || lookahead > '$')) + ADVANCE(271); END_STATE(); case 287: - ACCEPT_TOKEN(sym__quoted_chars); - if (lookahead == '\n') - ADVANCE(265); - if (lookahead == '#') - ADVANCE(135); + ACCEPT_TOKEN(anon_sym_GT); + if (lookahead == '$') + ADVANCE(65); if (lookahead == '&') - ADVANCE(266); - if (lookahead == '\'') - ADVANCE(269); - if (lookahead == ')') - ADVANCE(275); - if (lookahead == ';') - ADVANCE(276); - if (lookahead == '<') - ADVANCE(278); - if (lookahead == '>') - ADVANCE(282); - if (lookahead == '[') - ADVANCE(284); - if (lookahead == '\\') - ADVANCE(286); - if (lookahead == ']') ADVANCE(288); - if (lookahead == 'c') - ADVANCE(290); - if (lookahead == 'e') - ADVANCE(294); - if (lookahead == 'i') - ADVANCE(298); - if (lookahead == 'w') - ADVANCE(301); - if (lookahead == '|') - ADVANCE(306); - if (lookahead == '}') - ADVANCE(309); - if (lookahead == '(' || - lookahead == '{') - ADVANCE(136); - if ((':' <= lookahead && lookahead <= '=')) - ADVANCE(271); + if (lookahead == '>') + ADVANCE(289); if (lookahead == '\t' || + lookahead == '\n' || lookahead == '\r' || - lookahead == ' ') - ADVANCE(287); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(310); + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ':' || + lookahead == ';' || + lookahead == '=' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(271); END_STATE(); case 288: - ACCEPT_TOKEN(anon_sym_RBRACK); + ACCEPT_TOKEN(anon_sym_GT_AMP); if (lookahead == '$') - ADVANCE(62); - if (lookahead == ']') - ADVANCE(289); - if (lookahead == '&' || - lookahead == '<' || - lookahead == '>') - ADVANCE(268); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(271); + ADVANCE(65); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5007,26 +4948,20 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '#' || lookahead == '(' || lookahead == ')' || + lookahead == ':' || lookahead == ';' || + lookahead == '=' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(271); END_STATE(); case 289: - ACCEPT_TOKEN(anon_sym_RBRACK_RBRACK); + ACCEPT_TOKEN(anon_sym_GT_GT); if (lookahead == '$') - ADVANCE(62); - if (lookahead == '&' || - lookahead == '<' || - lookahead == '>') - ADVANCE(268); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(271); + ADVANCE(65); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5034,28 +4969,30 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '#' || lookahead == '(' || lookahead == ')' || + lookahead == ':' || lookahead == ';' || + lookahead == '=' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(271); END_STATE(); case 290: - ACCEPT_TOKEN(sym__quoted_chars); + ACCEPT_TOKEN(anon_sym_LBRACK); if (lookahead == '$') - ADVANCE(62); - if (lookahead == 'a') + ADVANCE(65); + if (lookahead == '[') ADVANCE(291); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5066,25 +5003,23 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 291: - ACCEPT_TOKEN(sym__quoted_chars); + ACCEPT_TOKEN(anon_sym_LBRACK_LBRACK); if (lookahead == '$') - ADVANCE(62); - if (lookahead == 's') - ADVANCE(292); + ADVANCE(65); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5095,81 +5030,83 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 292: ACCEPT_TOKEN(sym__quoted_chars); - if (lookahead == '$') - ADVANCE(62); - if (lookahead == 'e') + if (lookahead == '\n') ADVANCE(293); - if (lookahead == '&' || - lookahead == '<' || - lookahead == '>') - ADVANCE(268); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(271); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ' || - lookahead == '#' || - lookahead == '(' || - lookahead == ')' || - lookahead == ';' || - lookahead == '\\' || - ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); if (lookahead != 0 && - (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + lookahead != '\"' && + lookahead != '$') + ADVANCE(140); END_STATE(); case 293: - ACCEPT_TOKEN(anon_sym_case); - if (lookahead == '$') - ADVANCE(62); - if (lookahead == '&' || - lookahead == '<' || - lookahead == '>') + ACCEPT_TOKEN(sym__quoted_chars); + if (lookahead == '\n') ADVANCE(268); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(271); + if (lookahead == '#') + ADVANCE(139); + if (lookahead == '&') + ADVANCE(269); + if (lookahead == '\'') + ADVANCE(274); + if (lookahead == ')') + ADVANCE(280); + if (lookahead == ';') + ADVANCE(281); + if (lookahead == '<') + ADVANCE(283); + if (lookahead == '>') + ADVANCE(287); + if (lookahead == '[') + ADVANCE(290); + if (lookahead == '\\') + ADVANCE(292); + if (lookahead == ']') + ADVANCE(294); + if (lookahead == 'c') + ADVANCE(296); + if (lookahead == 'e') + ADVANCE(300); + if (lookahead == 'i') + ADVANCE(304); + if (lookahead == 'w') + ADVANCE(307); + if (lookahead == '|') + ADVANCE(312); + if (lookahead == '}') + ADVANCE(315); + if (lookahead == '(' || + lookahead == '{') + ADVANCE(140); + if ((':' <= lookahead && lookahead <= '=')) + ADVANCE(276); if (lookahead == '\t' || - lookahead == '\n' || lookahead == '\r' || - lookahead == ' ' || - lookahead == '#' || - lookahead == '(' || - lookahead == ')' || - lookahead == ';' || - lookahead == '\\' || - ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + lookahead == ' ') + ADVANCE(293); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 294: - ACCEPT_TOKEN(sym__quoted_chars); + ACCEPT_TOKEN(anon_sym_RBRACK); if (lookahead == '$') - ADVANCE(62); - if (lookahead == 's') + ADVANCE(65); + if (lookahead == ']') ADVANCE(295); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5180,25 +5117,23 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 295: - ACCEPT_TOKEN(sym__quoted_chars); + ACCEPT_TOKEN(anon_sym_RBRACK_RBRACK); if (lookahead == '$') - ADVANCE(62); - if (lookahead == 'a') - ADVANCE(296); + ADVANCE(65); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5209,25 +5144,25 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 296: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '$') - ADVANCE(62); - if (lookahead == 'c') + ADVANCE(65); + if (lookahead == 'a') ADVANCE(297); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5238,23 +5173,25 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 297: - ACCEPT_TOKEN(anon_sym_esac); + ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '$') - ADVANCE(62); + ADVANCE(65); + if (lookahead == 's') + ADVANCE(298); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5265,27 +5202,25 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 298: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '$') - ADVANCE(62); - if (lookahead == 'f') + ADVANCE(65); + if (lookahead == 'e') ADVANCE(299); - if (lookahead == 'n') - ADVANCE(300); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5296,23 +5231,23 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 299: - ACCEPT_TOKEN(anon_sym_if); + ACCEPT_TOKEN(anon_sym_case); if (lookahead == '$') - ADVANCE(62); + ADVANCE(65); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5323,23 +5258,25 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 300: - ACCEPT_TOKEN(anon_sym_in); + ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '$') - ADVANCE(62); + ADVANCE(65); + if (lookahead == 's') + ADVANCE(301); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5350,25 +5287,25 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 301: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '$') - ADVANCE(62); - if (lookahead == 'h') + ADVANCE(65); + if (lookahead == 'a') ADVANCE(302); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5379,25 +5316,25 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 302: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '$') - ADVANCE(62); - if (lookahead == 'i') + ADVANCE(65); + if (lookahead == 'c') ADVANCE(303); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5408,25 +5345,23 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 303: - ACCEPT_TOKEN(sym__quoted_chars); + ACCEPT_TOKEN(anon_sym_esac); if (lookahead == '$') - ADVANCE(62); - if (lookahead == 'l') - ADVANCE(304); + ADVANCE(65); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5437,25 +5372,27 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 304: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '$') - ADVANCE(62); - if (lookahead == 'e') + ADVANCE(65); + if (lookahead == 'f') ADVANCE(305); + if (lookahead == 'n') + ADVANCE(306); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5466,23 +5403,23 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 305: - ACCEPT_TOKEN(anon_sym_while); + ACCEPT_TOKEN(anon_sym_if); if (lookahead == '$') - ADVANCE(62); + ADVANCE(65); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5493,17 +5430,187 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); case 306: + ACCEPT_TOKEN(anon_sym_in); + if (lookahead == '$') + ADVANCE(65); + if (lookahead == '&' || + lookahead == '<' || + lookahead == '>') + ADVANCE(271); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(276); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ';' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); + if (lookahead != 0 && + (lookahead < '\"' || lookahead > '$')) + ADVANCE(275); + END_STATE(); + case 307: + ACCEPT_TOKEN(sym__quoted_chars); + if (lookahead == '$') + ADVANCE(65); + if (lookahead == 'h') + ADVANCE(308); + if (lookahead == '&' || + lookahead == '<' || + lookahead == '>') + ADVANCE(271); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(276); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ';' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); + if (lookahead != 0 && + (lookahead < '\"' || lookahead > '$')) + ADVANCE(275); + END_STATE(); + case 308: + ACCEPT_TOKEN(sym__quoted_chars); + if (lookahead == '$') + ADVANCE(65); + if (lookahead == 'i') + ADVANCE(309); + if (lookahead == '&' || + lookahead == '<' || + lookahead == '>') + ADVANCE(271); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(276); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ';' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); + if (lookahead != 0 && + (lookahead < '\"' || lookahead > '$')) + ADVANCE(275); + END_STATE(); + case 309: + ACCEPT_TOKEN(sym__quoted_chars); + if (lookahead == '$') + ADVANCE(65); + if (lookahead == 'l') + ADVANCE(310); + if (lookahead == '&' || + lookahead == '<' || + lookahead == '>') + ADVANCE(271); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(276); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ';' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); + if (lookahead != 0 && + (lookahead < '\"' || lookahead > '$')) + ADVANCE(275); + END_STATE(); + case 310: + ACCEPT_TOKEN(sym__quoted_chars); + if (lookahead == '$') + ADVANCE(65); + if (lookahead == 'e') + ADVANCE(311); + if (lookahead == '&' || + lookahead == '<' || + lookahead == '>') + ADVANCE(271); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(276); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ';' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); + if (lookahead != 0 && + (lookahead < '\"' || lookahead > '$')) + ADVANCE(275); + END_STATE(); + case 311: + ACCEPT_TOKEN(anon_sym_while); + if (lookahead == '$') + ADVANCE(65); + if (lookahead == '&' || + lookahead == '<' || + lookahead == '>') + ADVANCE(271); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(276); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ' || + lookahead == '#' || + lookahead == '(' || + lookahead == ')' || + lookahead == ';' || + lookahead == '\\' || + ('{' <= lookahead && lookahead <= '}')) + ADVANCE(140); + if (lookahead != 0 && + (lookahead < '\"' || lookahead > '$')) + ADVANCE(275); + END_STATE(); + case 312: ACCEPT_TOKEN(anon_sym_PIPE); if (lookahead == '&') - ADVANCE(307); + ADVANCE(313); if (lookahead == '|') - ADVANCE(308); + ADVANCE(314); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5516,19 +5623,19 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '>' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(271); + ADVANCE(276); END_STATE(); - case 307: + case 313: ACCEPT_TOKEN(anon_sym_PIPE_AMP); if (lookahead != 0 && lookahead != '\"' && lookahead != '$') - ADVANCE(136); + ADVANCE(140); END_STATE(); - case 308: + case 314: ACCEPT_TOKEN(anon_sym_PIPE_PIPE); if (lookahead == '\t' || lookahead == '\n' || @@ -5544,177 +5651,166 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == '\\' || lookahead == '{' || lookahead == '}') - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(271); + ADVANCE(276); END_STATE(); - case 309: + case 315: ACCEPT_TOKEN(anon_sym_RBRACE); if (lookahead != 0 && lookahead != '\"' && lookahead != '$') - ADVANCE(136); + ADVANCE(140); END_STATE(); - case 310: - ACCEPT_TOKEN(sym_file_descriptor); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(310); - END_STATE(); - case 311: + case 316: if (lookahead == '\n') - ADVANCE(312); + ADVANCE(317); if (lookahead == '\"') ADVANCE(2); if (lookahead == '#') - ADVANCE(135); + ADVANCE(139); if (lookahead == '$') - ADVANCE(216); + ADVANCE(220); if (lookahead == '&') - ADVANCE(266); - if (lookahead == '\'') ADVANCE(269); + if (lookahead == '\'') + ADVANCE(274); if (lookahead == ')') - ADVANCE(275); + ADVANCE(280); if (lookahead == ';') - ADVANCE(276); + ADVANCE(281); if (lookahead == '<') - ADVANCE(278); + ADVANCE(283); if (lookahead == '>') - ADVANCE(282); + ADVANCE(287); if (lookahead == '\\') - ADVANCE(313); + ADVANCE(318); if (lookahead == ']') - ADVANCE(288); + ADVANCE(294); if (lookahead == 'i') - ADVANCE(315); + ADVANCE(320); if (lookahead == '|') - ADVANCE(306); + ADVANCE(312); if (lookahead == '}') - ADVANCE(309); + ADVANCE(315); if (lookahead == '(' || lookahead == '{') - ADVANCE(136); + ADVANCE(140); if ((':' <= lookahead && lookahead <= '=')) - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ') - ADVANCE(314); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(310); + ADVANCE(319); if (lookahead != 0) - ADVANCE(270); + ADVANCE(275); END_STATE(); - case 312: + case 317: ACCEPT_TOKEN(anon_sym_LF); if (lookahead == '\n') - ADVANCE(312); + ADVANCE(317); if (lookahead == '#') - ADVANCE(135); + ADVANCE(139); if (lookahead == '&') - ADVANCE(266); - if (lookahead == '\'') ADVANCE(269); + if (lookahead == '\'') + ADVANCE(274); if (lookahead == ')') - ADVANCE(275); + ADVANCE(280); if (lookahead == ';') - ADVANCE(276); + ADVANCE(281); if (lookahead == '<') - ADVANCE(278); + ADVANCE(283); if (lookahead == '>') - ADVANCE(282); + ADVANCE(287); if (lookahead == '\\') - ADVANCE(313); + ADVANCE(318); if (lookahead == ']') - ADVANCE(288); + ADVANCE(294); if (lookahead == 'i') - ADVANCE(315); + ADVANCE(320); if (lookahead == '|') - ADVANCE(306); + ADVANCE(312); if (lookahead == '}') - ADVANCE(309); + ADVANCE(315); if (lookahead == '(' || lookahead == '{') - ADVANCE(136); + ADVANCE(140); if ((':' <= lookahead && lookahead <= '=')) - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ') - ADVANCE(314); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(310); + ADVANCE(319); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); - case 313: + case 318: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '\n') - ADVANCE(314); + ADVANCE(319); if (lookahead != 0 && lookahead != '\"' && lookahead != '$') - ADVANCE(136); + ADVANCE(140); END_STATE(); - case 314: + case 319: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '\n') - ADVANCE(312); + ADVANCE(317); if (lookahead == '#') - ADVANCE(135); + ADVANCE(139); if (lookahead == '&') - ADVANCE(266); - if (lookahead == '\'') ADVANCE(269); + if (lookahead == '\'') + ADVANCE(274); if (lookahead == ')') - ADVANCE(275); + ADVANCE(280); if (lookahead == ';') - ADVANCE(276); + ADVANCE(281); if (lookahead == '<') - ADVANCE(278); + ADVANCE(283); if (lookahead == '>') - ADVANCE(282); + ADVANCE(287); if (lookahead == '\\') - ADVANCE(313); + ADVANCE(318); if (lookahead == ']') - ADVANCE(288); + ADVANCE(294); if (lookahead == 'i') - ADVANCE(315); + ADVANCE(320); if (lookahead == '|') - ADVANCE(306); + ADVANCE(312); if (lookahead == '}') - ADVANCE(309); + ADVANCE(315); if (lookahead == '(' || lookahead == '{') - ADVANCE(136); + ADVANCE(140); if ((':' <= lookahead && lookahead <= '=')) - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ') - ADVANCE(314); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(310); + ADVANCE(319); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); - case 315: + case 320: ACCEPT_TOKEN(sym__quoted_chars); if (lookahead == '$') - ADVANCE(62); + ADVANCE(65); if (lookahead == 'n') - ADVANCE(300); + ADVANCE(306); if (lookahead == '&' || lookahead == '<' || lookahead == '>') - ADVANCE(268); + ADVANCE(271); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(271); + ADVANCE(276); if (lookahead == '\t' || lookahead == '\n' || lookahead == '\r' || @@ -5725,51 +5821,186 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead == ';' || lookahead == '\\' || ('{' <= lookahead && lookahead <= '}')) - ADVANCE(136); + ADVANCE(140); if (lookahead != 0 && (lookahead < '\"' || lookahead > '$')) - ADVANCE(270); + ADVANCE(275); END_STATE(); - case 316: + case 321: + if (lookahead == 0) + ADVANCE(1); + if (lookahead == '\"') + ADVANCE(2); + if (lookahead == '#') + ADVANCE(3); + if (lookahead == '$') + ADVANCE(220); + if (lookahead == '&') + ADVANCE(62); + if (lookahead == '\'') + ADVANCE(221); + if (lookahead == ';') + ADVANCE(226); + if (lookahead == '<') + ADVANCE(66); + if (lookahead == '>') + ADVANCE(68); + if (lookahead == '[') + ADVANCE(227); + if (lookahead == '\\') + SKIP(322); + if (lookahead == 'c') + ADVANCE(230); + if (lookahead == 'd') + ADVANCE(247); + if (lookahead == 'e') + ADVANCE(251); + if (lookahead == 'f') + ADVANCE(257); + if (lookahead == 'i') + ADVANCE(323); + if (lookahead == 't') + ADVANCE(259); + if (lookahead == 'w') + ADVANCE(240); + if ((':' <= lookahead && lookahead <= '=') || + lookahead == '|') + ADVANCE(94); + if (lookahead == '\t' || + lookahead == '\n' || + lookahead == '\r' || + lookahead == ' ') + SKIP(321); + if ((lookahead < '&' || lookahead > ')') && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 322: if (lookahead == '\n') - ADVANCE(120); + SKIP(321); + END_STATE(); + case 323: + ACCEPT_TOKEN(sym_leading_word); + if (lookahead == 'f') + ADVANCE(239); + if (lookahead == 'n') + ADVANCE(324); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 324: + ACCEPT_TOKEN(anon_sym_in); + if (lookahead == ':' || + lookahead == '=' || + lookahead == '|') + ADVANCE(94); + if (lookahead == '$' || + lookahead == '&' || + ('<' <= lookahead && lookahead <= '>')) + ADVANCE(65); + if (lookahead != 0 && + lookahead != '\t' && + lookahead != '\n' && + lookahead != '\r' && + lookahead != ' ' && + (lookahead < '\"' || lookahead > '$') && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + lookahead != '\\' && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 325: + if (lookahead == '\n') + ADVANCE(123); if (lookahead == '#') ADVANCE(3); if (lookahead == '&') - ADVANCE(123); + ADVANCE(124); if (lookahead == ')') - ADVANCE(9); + ADVANCE(11); if (lookahead == ';') - ADVANCE(98); - if (lookahead == '<') - ADVANCE(317); - if (lookahead == '>') - ADVANCE(63); - if (lookahead == '\\') - SKIP(320); - if (lookahead == '|') ADVANCE(101); + if (lookahead == '\\') + SKIP(326); + if (lookahead == '|') + ADVANCE(104); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ') - SKIP(316); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(79); - if (lookahead != 0 && - lookahead != '\"' && - lookahead != '#' && - lookahead != '(' && - lookahead != ')' && - (lookahead < '0' || lookahead > '>') && - (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + SKIP(325); END_STATE(); - case 317: + case 326: + if (lookahead == '\n') + SKIP(325); + END_STATE(); + case 327: + if (lookahead == '\n') + ADVANCE(123); + if (lookahead == '\"') + ADVANCE(2); + if (lookahead == '#') + ADVANCE(3); + if (lookahead == '$') + ADVANCE(220); + if (lookahead == '&') + ADVANCE(127); + if (lookahead == '\'') + ADVANCE(221); + if (lookahead == ')') + ADVANCE(11); + if (lookahead == ';') + ADVANCE(101); + if (lookahead == '<') + ADVANCE(328); + if (lookahead == '>') + ADVANCE(68); + if (lookahead == '\\') + SKIP(331); + if (lookahead == ']') + ADVANCE(332); + if (lookahead == 'i') + ADVANCE(334); + if (lookahead == '|') + ADVANCE(162); + if (lookahead == '}') + ADVANCE(60); + if ((':' <= lookahead && lookahead <= '=')) + ADVANCE(94); + if (lookahead == '\t' || + lookahead == '\r' || + lookahead == ' ') + SKIP(327); + if (lookahead != 0 && + (lookahead < '&' || lookahead > ')') && + (lookahead < '{' || lookahead > '}')) + ADVANCE(223); + END_STATE(); + case 328: ACCEPT_TOKEN(anon_sym_LT); if (lookahead == '&') - ADVANCE(61); + ADVANCE(67); if (lookahead == '<') - ADVANCE(318); + ADVANCE(329); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -5782,12 +6013,12 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '=') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 318: + case 329: ACCEPT_TOKEN(anon_sym_LT_LT); if (lookahead == '-') - ADVANCE(319); + ADVANCE(330); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -5802,9 +6033,9 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 319: + case 330: ACCEPT_TOKEN(anon_sym_LT_LT_DASH); if (lookahead != 0 && lookahead != '\t' && @@ -5820,201 +6051,24 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '=' && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(62); + ADVANCE(65); END_STATE(); - case 320: - if (lookahead == '\n') - SKIP(316); - END_STATE(); - case 321: - if (lookahead == 0) - ADVANCE(1); - if (lookahead == '\"') - ADVANCE(2); - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '$') - ADVANCE(216); - if (lookahead == '&') - ADVANCE(62); - if (lookahead == '\'') - ADVANCE(217); - if (lookahead == ';') - ADVANCE(222); - if (lookahead == '<') - ADVANCE(60); - if (lookahead == '>') - ADVANCE(63); - if (lookahead == '[') - ADVANCE(223); - if (lookahead == '\\') - SKIP(322); - if (lookahead == 'c') - ADVANCE(226); - if (lookahead == 'd') - ADVANCE(244); - if (lookahead == 'e') - ADVANCE(248); - if (lookahead == 'f') - ADVANCE(254); - if (lookahead == 'i') - ADVANCE(323); - if (lookahead == 't') - ADVANCE(256); - if (lookahead == 'w') - ADVANCE(236); - if ((':' <= lookahead && lookahead <= '=') || - lookahead == '|') - ADVANCE(85); - if (lookahead == '\t' || - lookahead == '\n' || - lookahead == '\r' || - lookahead == ' ') - SKIP(321); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(241); - if ((lookahead < '&' || lookahead > ')') && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 322: - if (lookahead == '\n') - SKIP(321); - END_STATE(); - case 323: - ACCEPT_TOKEN(sym_leading_word); - if (lookahead == 'f') - ADVANCE(235); - if (lookahead == 'n') - ADVANCE(324); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 324: - ACCEPT_TOKEN(anon_sym_in); - if (lookahead == ':' || - lookahead == '=' || - lookahead == '|') - ADVANCE(85); - if (lookahead == '$' || - lookahead == '&' || - ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); - if (lookahead != 0 && - lookahead != '\t' && - lookahead != '\n' && - lookahead != '\r' && - lookahead != ' ' && - (lookahead < '\"' || lookahead > '$') && - lookahead != '(' && - lookahead != ')' && - (lookahead < ':' || lookahead > '>') && - lookahead != '\\' && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 325: - if (lookahead == '\n') - ADVANCE(120); - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '&') - ADVANCE(7); - if (lookahead == ')') - ADVANCE(9); - if (lookahead == ';') - ADVANCE(98); - if (lookahead == '\\') - SKIP(326); - if (lookahead == '|') - ADVANCE(101); - if (lookahead == '\t' || - lookahead == '\r' || - lookahead == ' ') - SKIP(325); - END_STATE(); - case 326: - if (lookahead == '\n') - SKIP(325); - END_STATE(); - case 327: - if (lookahead == '\n') - ADVANCE(120); - if (lookahead == '\"') - ADVANCE(2); - if (lookahead == '#') - ADVANCE(3); - if (lookahead == '$') - ADVANCE(216); - if (lookahead == '&') - ADVANCE(123); - if (lookahead == '\'') - ADVANCE(217); - if (lookahead == ')') - ADVANCE(9); - if (lookahead == ';') - ADVANCE(98); - if (lookahead == '<') - ADVANCE(317); - if (lookahead == '>') - ADVANCE(63); - if (lookahead == '\\') - SKIP(328); - if (lookahead == ']') - ADVANCE(329); - if (lookahead == 'i') - ADVANCE(331); - if (lookahead == '|') - ADVANCE(158); - if (lookahead == '}') - ADVANCE(57); - if ((':' <= lookahead && lookahead <= '=')) - ADVANCE(85); - if (lookahead == '\t' || - lookahead == '\r' || - lookahead == ' ') - SKIP(327); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(241); - if (lookahead != 0 && - (lookahead < '&' || lookahead > ')') && - (lookahead < '{' || lookahead > '}')) - ADVANCE(219); - END_STATE(); - case 328: + case 331: if (lookahead == '\n') SKIP(327); END_STATE(); - case 329: + case 332: ACCEPT_TOKEN(anon_sym_RBRACK); if (lookahead == ']') - ADVANCE(330); + ADVANCE(333); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -6027,18 +6081,18 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '\\' && lookahead != ']' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); - case 330: + case 333: ACCEPT_TOKEN(anon_sym_RBRACK_RBRACK); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -6050,20 +6104,20 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); - case 331: + case 334: ACCEPT_TOKEN(sym_leading_word); if (lookahead == 'n') ADVANCE(324); if (lookahead == ':' || lookahead == '=' || lookahead == '|') - ADVANCE(85); + ADVANCE(94); if (lookahead == '$' || lookahead == '&' || ('<' <= lookahead && lookahead <= '>')) - ADVANCE(62); + ADVANCE(65); if (lookahead != 0 && lookahead != '\t' && lookahead != '\n' && @@ -6075,11 +6129,47 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { (lookahead < ':' || lookahead > '>') && lookahead != '\\' && (lookahead < '{' || lookahead > '}')) - ADVANCE(219); + ADVANCE(223); END_STATE(); - case 332: + case 335: if (lookahead == '\n') - ADVANCE(120); + ADVANCE(123); + if (lookahead == '#') + ADVANCE(3); + if (lookahead == '&') + ADVANCE(127); + if (lookahead == ')') + ADVANCE(11); + if (lookahead == ';') + ADVANCE(101); + if (lookahead == '<') + ADVANCE(328); + if (lookahead == '>') + ADVANCE(68); + if (lookahead == '\\') + SKIP(336); + if (lookahead == '|') + ADVANCE(104); + if (lookahead == '\t' || + lookahead == '\r' || + lookahead == ' ') + SKIP(335); + if (lookahead != 0 && + lookahead != '\"' && + lookahead != '#' && + lookahead != '(' && + lookahead != ')' && + (lookahead < ':' || lookahead > '>') && + (lookahead < '{' || lookahead > '}')) + ADVANCE(65); + END_STATE(); + case 336: + if (lookahead == '\n') + SKIP(335); + END_STATE(); + case 337: + if (lookahead == '\n') + ADVANCE(123); if (lookahead == '\"') ADVANCE(2); if (lookahead == '#') @@ -6089,35 +6179,33 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '&') ADVANCE(7); if (lookahead == '\'') - ADVANCE(83); + ADVANCE(92); if (lookahead == ')') - ADVANCE(9); + ADVANCE(11); if (lookahead == ';') - ADVANCE(98); + ADVANCE(101); if (lookahead == '<') - ADVANCE(13); + ADVANCE(15); if (lookahead == '>') - ADVANCE(18); + ADVANCE(20); if (lookahead == '\\') - SKIP(333); + SKIP(338); if (lookahead == ']') - ADVANCE(148); + ADVANCE(152); if (lookahead == '|') - ADVANCE(158); + ADVANCE(162); if (lookahead == '\t' || lookahead == '\r' || lookahead == ' ') - SKIP(332); - if (('0' <= lookahead && lookahead <= '9')) - ADVANCE(91); + SKIP(337); if (lookahead != 0 && (lookahead < '&' || lookahead > ')') && (lookahead < '{' || lookahead > '}')) - ADVANCE(85); + ADVANCE(94); END_STATE(); - case 333: + case 338: if (lookahead == '\n') - SKIP(332); + SKIP(337); END_STATE(); default: return false; @@ -6126,379 +6214,434 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { static TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0, .external_lex_state = 1}, - [1] = {.lex_state = 59}, - [2] = {.lex_state = 80}, - [3] = {.lex_state = 80}, - [4] = {.lex_state = 82}, - [5] = {.lex_state = 82}, - [6] = {.lex_state = 82}, - [7] = {.lex_state = 89}, - [8] = {.lex_state = 92}, - [9] = {.lex_state = 95}, - [10] = {.lex_state = 103}, - [11] = {.lex_state = 105}, - [12] = {.lex_state = 119}, - [13] = {.lex_state = 122}, - [14] = {.lex_state = 126}, - [15] = {.lex_state = 59}, - [16] = {.lex_state = 126}, - [17] = {.lex_state = 128}, - [18] = {.lex_state = 119}, + [1] = {.lex_state = 61, .external_lex_state = 2}, + [2] = {.lex_state = 85}, + [3] = {.lex_state = 89, .external_lex_state = 2}, + [4] = {.lex_state = 89, .external_lex_state = 2}, + [5] = {.lex_state = 91}, + [6] = {.lex_state = 91}, + [7] = {.lex_state = 91}, + [8] = {.lex_state = 91}, + [9] = {.lex_state = 98, .external_lex_state = 2}, + [10] = {.lex_state = 106}, + [11] = {.lex_state = 108, .external_lex_state = 2}, + [12] = {.lex_state = 122}, + [13] = {.lex_state = 126, .external_lex_state = 2}, + [14] = {.lex_state = 130, .external_lex_state = 2}, + [15] = {.lex_state = 61, .external_lex_state = 2}, + [16] = {.lex_state = 130, .external_lex_state = 2}, + [17] = {.lex_state = 91}, + [18] = {.lex_state = 132}, [19] = {.lex_state = 122}, - [20] = {.lex_state = 132}, - [21] = {.lex_state = 134}, - [22] = {.lex_state = 139}, - [23] = {.lex_state = 142}, - [24] = {.lex_state = 144}, - [25] = {.lex_state = 126}, - [26] = {.lex_state = 139}, - [27] = {.lex_state = 134}, - [28] = {.lex_state = 146}, - [29] = {.lex_state = 142}, - [30] = {.lex_state = 144}, - [31] = {.lex_state = 126}, - [32] = {.lex_state = 146}, + [20] = {.lex_state = 126, .external_lex_state = 2}, + [21] = {.lex_state = 136}, + [22] = {.lex_state = 138}, + [23] = {.lex_state = 143}, + [24] = {.lex_state = 146}, + [25] = {.lex_state = 148}, + [26] = {.lex_state = 130, .external_lex_state = 2}, + [27] = {.lex_state = 143}, + [28] = {.lex_state = 138}, + [29] = {.lex_state = 150}, + [30] = {.lex_state = 146}, + [31] = {.lex_state = 148}, + [32] = {.lex_state = 130, .external_lex_state = 2}, [33] = {.lex_state = 150}, - [34] = {.lex_state = 153}, - [35] = {.lex_state = 126}, - [36] = {.lex_state = 126}, - [37] = {.lex_state = 89}, - [38] = {.lex_state = 156}, - [39] = {.lex_state = 82}, - [40] = {.lex_state = 89}, - [41] = {.lex_state = 160, .external_lex_state = 2}, - [42] = {.lex_state = 92}, - [43] = {.lex_state = 162}, - [44] = {.lex_state = 164}, - [45] = {.lex_state = 105}, - [46] = {.lex_state = 80}, - [47] = {.lex_state = 80}, - [48] = {.lex_state = 105}, - [49] = {.lex_state = 166}, - [50] = {.lex_state = 126}, - [51] = {.lex_state = 170}, - [52] = {.lex_state = 119}, - [53] = {.lex_state = 172}, - [54] = {.lex_state = 174}, - [55] = {.lex_state = 139}, - [56] = {.lex_state = 134}, - [57] = {.lex_state = 142}, - [58] = {.lex_state = 144}, - [59] = {.lex_state = 126}, - [60] = {.lex_state = 134}, - [61] = {.lex_state = 176}, - [62] = {.lex_state = 178}, - [63] = {.lex_state = 139}, - [64] = {.lex_state = 180}, - [65] = {.lex_state = 182}, - [66] = {.lex_state = 185}, - [67] = {.lex_state = 126}, - [68] = {.lex_state = 176}, - [69] = {.lex_state = 178}, - [70] = {.lex_state = 187}, - [71] = {.lex_state = 134}, - [72] = {.lex_state = 187}, - [73] = {.lex_state = 180}, - [74] = {.lex_state = 185}, - [75] = {.lex_state = 119}, - [76] = {.lex_state = 146}, - [77] = {.lex_state = 146}, - [78] = {.lex_state = 126}, - [79] = {.lex_state = 126}, - [80] = {.lex_state = 134}, - [81] = {.lex_state = 189}, - [82] = {.lex_state = 142}, - [83] = {.lex_state = 144}, - [84] = {.lex_state = 126}, - [85] = {.lex_state = 189}, - [86] = {.lex_state = 156}, - [87] = {.lex_state = 164}, - [88] = {.lex_state = 134}, - [89] = {.lex_state = 122}, - [90] = {.lex_state = 142}, - [91] = {.lex_state = 144}, - [92] = {.lex_state = 126}, - [93] = {.lex_state = 122}, - [94] = {.lex_state = 162}, - [95] = {.lex_state = 162}, - [96] = {.lex_state = 162}, - [97] = {.lex_state = 191, .external_lex_state = 3}, - [98] = {.lex_state = 162}, - [99] = {.lex_state = 89}, - [100] = {.lex_state = 162}, - [101] = {.lex_state = 119}, - [102] = {.lex_state = 122}, - [103] = {.lex_state = 119}, - [104] = {.lex_state = 122}, - [105] = {.lex_state = 189}, - [106] = {.lex_state = 82}, - [107] = {.lex_state = 162}, - [108] = {.lex_state = 119}, - [109] = {.lex_state = 170}, - [110] = {.lex_state = 119}, - [111] = {.lex_state = 80}, - [112] = {.lex_state = 194}, - [113] = {.lex_state = 196}, - [114] = {.lex_state = 199}, - [115] = {.lex_state = 174}, - [116] = {.lex_state = 196}, - [117] = {.lex_state = 134}, - [118] = {.lex_state = 180}, - [119] = {.lex_state = 185}, - [120] = {.lex_state = 139}, - [121] = {.lex_state = 134}, - [122] = {.lex_state = 201}, - [123] = {.lex_state = 176}, - [124] = {.lex_state = 82}, - [125] = {.lex_state = 139}, - [126] = {.lex_state = 207}, - [127] = {.lex_state = 89}, - [128] = {.lex_state = 160, .external_lex_state = 2}, - [129] = {.lex_state = 92}, - [130] = {.lex_state = 209}, - [131] = {.lex_state = 209}, - [132] = {.lex_state = 139}, - [133] = {.lex_state = 182}, - [134] = {.lex_state = 201}, - [135] = {.lex_state = 176}, - [136] = {.lex_state = 187}, - [137] = {.lex_state = 82}, - [138] = {.lex_state = 187}, - [139] = {.lex_state = 187}, - [140] = {.lex_state = 189}, - [141] = {.lex_state = 134}, - [142] = {.lex_state = 189}, - [143] = {.lex_state = 180}, - [144] = {.lex_state = 185}, - [145] = {.lex_state = 189}, - [146] = {.lex_state = 189}, - [147] = {.lex_state = 164}, - [148] = {.lex_state = 211}, - [149] = {.lex_state = 134}, - [150] = {.lex_state = 211}, - [151] = {.lex_state = 180}, - [152] = {.lex_state = 185}, - [153] = {.lex_state = 191, .external_lex_state = 3}, - [154] = {.lex_state = 162}, - [155] = {.lex_state = 142}, - [156] = {.lex_state = 144}, - [157] = {.lex_state = 191, .external_lex_state = 3}, - [158] = {.lex_state = 162}, - [159] = {.lex_state = 162}, - [160] = {.lex_state = 189}, - [161] = {.lex_state = 162}, - [162] = {.lex_state = 134}, - [163] = {.lex_state = 126}, - [164] = {.lex_state = 142}, - [165] = {.lex_state = 144}, - [166] = {.lex_state = 126}, - [167] = {.lex_state = 126}, - [168] = {.lex_state = 119}, - [169] = {.lex_state = 132}, - [170] = {.lex_state = 194}, - [171] = {.lex_state = 119}, - [172] = {.lex_state = 199}, - [173] = {.lex_state = 196}, - [174] = {.lex_state = 196}, - [175] = {.lex_state = 82}, - [176] = {.lex_state = 134}, - [177] = {.lex_state = 134}, - [178] = {.lex_state = 119}, - [179] = {.lex_state = 185}, - [180] = {.lex_state = 185}, - [181] = {.lex_state = 201}, - [182] = {.lex_state = 201}, - [183] = {.lex_state = 201}, - [184] = {.lex_state = 213}, - [185] = {.lex_state = 213}, - [186] = {.lex_state = 207}, - [187] = {.lex_state = 209}, - [188] = {.lex_state = 209}, - [189] = {.lex_state = 209}, - [190] = {.lex_state = 209}, - [191] = {.lex_state = 191, .external_lex_state = 3}, - [192] = {.lex_state = 209}, - [193] = {.lex_state = 89}, - [194] = {.lex_state = 209}, - [195] = {.lex_state = 207}, - [196] = {.lex_state = 209}, - [197] = {.lex_state = 119}, - [198] = {.lex_state = 201}, - [199] = {.lex_state = 201}, - [200] = {.lex_state = 213}, - [201] = {.lex_state = 213}, - [202] = {.lex_state = 189}, - [203] = {.lex_state = 82}, - [204] = {.lex_state = 189}, - [205] = {.lex_state = 189}, - [206] = {.lex_state = 211}, - [207] = {.lex_state = 82}, - [208] = {.lex_state = 211}, - [209] = {.lex_state = 211}, - [210] = {.lex_state = 191, .external_lex_state = 3}, - [211] = {.lex_state = 180}, - [212] = {.lex_state = 191, .external_lex_state = 3}, - [213] = {.lex_state = 162}, - [214] = {.lex_state = 162}, - [215] = {.lex_state = 126}, - [216] = {.lex_state = 134}, - [217] = {.lex_state = 126}, - [218] = {.lex_state = 180}, - [219] = {.lex_state = 185}, - [220] = {.lex_state = 174}, - [221] = {.lex_state = 119}, - [222] = {.lex_state = 199}, - [223] = {.lex_state = 213}, - [224] = {.lex_state = 213}, - [225] = {.lex_state = 215}, - [226] = {.lex_state = 215}, - [227] = {.lex_state = 119}, - [228] = {.lex_state = 201}, - [229] = {.lex_state = 201}, - [230] = {.lex_state = 139}, - [231] = {.lex_state = 139}, - [232] = {.lex_state = 209}, - [233] = {.lex_state = 209}, - [234] = {.lex_state = 191, .external_lex_state = 3}, - [235] = {.lex_state = 209}, - [236] = {.lex_state = 209}, - [237] = {.lex_state = 207}, - [238] = {.lex_state = 209}, - [239] = {.lex_state = 119}, - [240] = {.lex_state = 201}, - [241] = {.lex_state = 187}, - [242] = {.lex_state = 187}, - [243] = {.lex_state = 213}, - [244] = {.lex_state = 213}, - [245] = {.lex_state = 213}, - [246] = {.lex_state = 213}, - [247] = {.lex_state = 82}, - [248] = {.lex_state = 191, .external_lex_state = 3}, - [249] = {.lex_state = 126}, - [250] = {.lex_state = 82}, - [251] = {.lex_state = 126}, - [252] = {.lex_state = 126}, - [253] = {.lex_state = 174}, - [254] = {.lex_state = 119}, - [255] = {.lex_state = 134}, - [256] = {.lex_state = 134}, - [257] = {.lex_state = 201}, - [258] = {.lex_state = 215}, - [259] = {.lex_state = 119}, - [260] = {.lex_state = 122}, - [261] = {.lex_state = 215}, - [262] = {.lex_state = 201}, - [263] = {.lex_state = 215}, - [264] = {.lex_state = 119}, - [265] = {.lex_state = 209}, - [266] = {.lex_state = 209}, - [267] = {.lex_state = 119}, - [268] = {.lex_state = 189}, - [269] = {.lex_state = 189}, - [270] = {.lex_state = 211}, - [271] = {.lex_state = 211}, - [272] = {.lex_state = 213}, - [273] = {.lex_state = 213}, - [274] = {.lex_state = 213}, - [275] = {.lex_state = 213}, - [276] = {.lex_state = 242}, - [277] = {.lex_state = 201}, - [278] = {.lex_state = 260}, - [279] = {.lex_state = 201}, - [280] = {.lex_state = 191, .external_lex_state = 3}, - [281] = {.lex_state = 191, .external_lex_state = 3}, - [282] = {.lex_state = 126}, - [283] = {.lex_state = 126}, - [284] = {.lex_state = 119}, - [285] = {.lex_state = 174}, - [286] = {.lex_state = 119}, - [287] = {.lex_state = 176}, - [288] = {.lex_state = 119}, - [289] = {.lex_state = 264}, - [290] = {.lex_state = 82}, - [291] = {.lex_state = 311}, - [292] = {.lex_state = 142}, - [293] = {.lex_state = 144}, - [294] = {.lex_state = 82}, - [295] = {.lex_state = 311, .external_lex_state = 3}, - [296] = {.lex_state = 126}, - [297] = {.lex_state = 89}, - [298] = {.lex_state = 316}, - [299] = {.lex_state = 321}, - [300] = {.lex_state = 191, .external_lex_state = 3}, - [301] = {.lex_state = 162}, - [302] = {.lex_state = 242}, - [303] = {.lex_state = 119}, - [304] = {.lex_state = 196}, - [305] = {.lex_state = 199}, - [306] = {.lex_state = 201}, - [307] = {.lex_state = 325}, - [308] = {.lex_state = 122}, - [309] = {.lex_state = 327}, - [310] = {.lex_state = 311, .external_lex_state = 3}, - [311] = {.lex_state = 311}, - [312] = {.lex_state = 316}, - [313] = {.lex_state = 162}, - [314] = {.lex_state = 260}, - [315] = {.lex_state = 196}, - [316] = {.lex_state = 201}, - [317] = {.lex_state = 332}, - [318] = {.lex_state = 162}, - [319] = {.lex_state = 134}, - [320] = {.lex_state = 174}, - [321] = {.lex_state = 201}, - [322] = {.lex_state = 201}, - [323] = {.lex_state = 215}, - [324] = {.lex_state = 211}, - [325] = {.lex_state = 211}, - [326] = {.lex_state = 327}, - [327] = {.lex_state = 311, .external_lex_state = 3}, - [328] = {.lex_state = 180}, - [329] = {.lex_state = 213}, - [330] = {.lex_state = 213}, - [331] = {.lex_state = 185}, - [332] = {.lex_state = 316}, - [333] = {.lex_state = 316}, - [334] = {.lex_state = 89}, - [335] = {.lex_state = 176}, - [336] = {.lex_state = 119}, - [337] = {.lex_state = 119}, - [338] = {.lex_state = 311}, - [339] = {.lex_state = 311, .external_lex_state = 3}, - [340] = {.lex_state = 201}, - [341] = {.lex_state = 119}, - [342] = {.lex_state = 199}, - [343] = {.lex_state = 119}, - [344] = {.lex_state = 134}, - [345] = {.lex_state = 332}, - [346] = {.lex_state = 142}, - [347] = {.lex_state = 144}, - [348] = {.lex_state = 126}, - [349] = {.lex_state = 332}, - [350] = {.lex_state = 162}, - [351] = {.lex_state = 327}, - [352] = {.lex_state = 311, .external_lex_state = 3}, - [353] = {.lex_state = 311, .external_lex_state = 3}, - [354] = {.lex_state = 316}, - [355] = {.lex_state = 316}, - [356] = {.lex_state = 201}, - [357] = {.lex_state = 119}, - [358] = {.lex_state = 332}, - [359] = {.lex_state = 134}, - [360] = {.lex_state = 332}, - [361] = {.lex_state = 180}, - [362] = {.lex_state = 185}, - [363] = {.lex_state = 119}, - [364] = {.lex_state = 201}, - [365] = {.lex_state = 332}, - [366] = {.lex_state = 82}, - [367] = {.lex_state = 332}, - [368] = {.lex_state = 332}, - [369] = {.lex_state = 119}, - [370] = {.lex_state = 213}, - [371] = {.lex_state = 213}, - [372] = {.lex_state = 332}, - [373] = {.lex_state = 332}, + [34] = {.lex_state = 154}, + [35] = {.lex_state = 157}, + [36] = {.lex_state = 138}, + [37] = {.lex_state = 130, .external_lex_state = 2}, + [38] = {.lex_state = 146}, + [39] = {.lex_state = 148}, + [40] = {.lex_state = 130, .external_lex_state = 2}, + [41] = {.lex_state = 130, .external_lex_state = 2}, + [42] = {.lex_state = 85}, + [43] = {.lex_state = 160, .external_lex_state = 2}, + [44] = {.lex_state = 91}, + [45] = {.lex_state = 91}, + [46] = {.lex_state = 164, .external_lex_state = 3}, + [47] = {.lex_state = 166, .external_lex_state = 2}, + [48] = {.lex_state = 168, .external_lex_state = 2}, + [49] = {.lex_state = 108, .external_lex_state = 2}, + [50] = {.lex_state = 89, .external_lex_state = 2}, + [51] = {.lex_state = 89, .external_lex_state = 2}, + [52] = {.lex_state = 108, .external_lex_state = 2}, + [53] = {.lex_state = 170, .external_lex_state = 2}, + [54] = {.lex_state = 130, .external_lex_state = 2}, + [55] = {.lex_state = 130, .external_lex_state = 2}, + [56] = {.lex_state = 130, .external_lex_state = 2}, + [57] = {.lex_state = 174, .external_lex_state = 2}, + [58] = {.lex_state = 122}, + [59] = {.lex_state = 176}, + [60] = {.lex_state = 178, .external_lex_state = 2}, + [61] = {.lex_state = 143}, + [62] = {.lex_state = 138}, + [63] = {.lex_state = 146}, + [64] = {.lex_state = 148}, + [65] = {.lex_state = 130, .external_lex_state = 2}, + [66] = {.lex_state = 138}, + [67] = {.lex_state = 180}, + [68] = {.lex_state = 182}, + [69] = {.lex_state = 143}, + [70] = {.lex_state = 184}, + [71] = {.lex_state = 186, .external_lex_state = 2}, + [72] = {.lex_state = 189}, + [73] = {.lex_state = 130, .external_lex_state = 2}, + [74] = {.lex_state = 180}, + [75] = {.lex_state = 182}, + [76] = {.lex_state = 191}, + [77] = {.lex_state = 138}, + [78] = {.lex_state = 191}, + [79] = {.lex_state = 184}, + [80] = {.lex_state = 189}, + [81] = {.lex_state = 122}, + [82] = {.lex_state = 150}, + [83] = {.lex_state = 150}, + [84] = {.lex_state = 130, .external_lex_state = 2}, + [85] = {.lex_state = 138}, + [86] = {.lex_state = 130, .external_lex_state = 2}, + [87] = {.lex_state = 184}, + [88] = {.lex_state = 189}, + [89] = {.lex_state = 91}, + [90] = {.lex_state = 138}, + [91] = {.lex_state = 193, .external_lex_state = 2}, + [92] = {.lex_state = 146}, + [93] = {.lex_state = 148}, + [94] = {.lex_state = 130, .external_lex_state = 2}, + [95] = {.lex_state = 193, .external_lex_state = 2}, + [96] = {.lex_state = 160, .external_lex_state = 2}, + [97] = {.lex_state = 168, .external_lex_state = 2}, + [98] = {.lex_state = 138}, + [99] = {.lex_state = 126, .external_lex_state = 2}, + [100] = {.lex_state = 146}, + [101] = {.lex_state = 148}, + [102] = {.lex_state = 130, .external_lex_state = 2}, + [103] = {.lex_state = 126, .external_lex_state = 2}, + [104] = {.lex_state = 138}, + [105] = {.lex_state = 166, .external_lex_state = 2}, + [106] = {.lex_state = 146}, + [107] = {.lex_state = 148}, + [108] = {.lex_state = 130, .external_lex_state = 2}, + [109] = {.lex_state = 166, .external_lex_state = 2}, + [110] = {.lex_state = 166, .external_lex_state = 2}, + [111] = {.lex_state = 195, .external_lex_state = 4}, + [112] = {.lex_state = 166, .external_lex_state = 2}, + [113] = {.lex_state = 166, .external_lex_state = 2}, + [114] = {.lex_state = 122}, + [115] = {.lex_state = 126, .external_lex_state = 2}, + [116] = {.lex_state = 122}, + [117] = {.lex_state = 126, .external_lex_state = 2}, + [118] = {.lex_state = 193, .external_lex_state = 2}, + [119] = {.lex_state = 91}, + [120] = {.lex_state = 166, .external_lex_state = 2}, + [121] = {.lex_state = 122}, + [122] = {.lex_state = 174, .external_lex_state = 2}, + [123] = {.lex_state = 122}, + [124] = {.lex_state = 89, .external_lex_state = 2}, + [125] = {.lex_state = 198, .external_lex_state = 2}, + [126] = {.lex_state = 200}, + [127] = {.lex_state = 203}, + [128] = {.lex_state = 178, .external_lex_state = 2}, + [129] = {.lex_state = 200}, + [130] = {.lex_state = 138}, + [131] = {.lex_state = 184}, + [132] = {.lex_state = 189}, + [133] = {.lex_state = 143}, + [134] = {.lex_state = 138}, + [135] = {.lex_state = 205}, + [136] = {.lex_state = 180}, + [137] = {.lex_state = 91}, + [138] = {.lex_state = 143}, + [139] = {.lex_state = 85}, + [140] = {.lex_state = 211, .external_lex_state = 2}, + [141] = {.lex_state = 91}, + [142] = {.lex_state = 164, .external_lex_state = 3}, + [143] = {.lex_state = 213, .external_lex_state = 2}, + [144] = {.lex_state = 213, .external_lex_state = 2}, + [145] = {.lex_state = 143}, + [146] = {.lex_state = 186, .external_lex_state = 2}, + [147] = {.lex_state = 205}, + [148] = {.lex_state = 180}, + [149] = {.lex_state = 191}, + [150] = {.lex_state = 91}, + [151] = {.lex_state = 191}, + [152] = {.lex_state = 191}, + [153] = {.lex_state = 130, .external_lex_state = 2}, + [154] = {.lex_state = 91}, + [155] = {.lex_state = 130, .external_lex_state = 2}, + [156] = {.lex_state = 130, .external_lex_state = 2}, + [157] = {.lex_state = 166, .external_lex_state = 2}, + [158] = {.lex_state = 166, .external_lex_state = 2}, + [159] = {.lex_state = 193, .external_lex_state = 2}, + [160] = {.lex_state = 138}, + [161] = {.lex_state = 193, .external_lex_state = 2}, + [162] = {.lex_state = 184}, + [163] = {.lex_state = 189}, + [164] = {.lex_state = 193, .external_lex_state = 2}, + [165] = {.lex_state = 193, .external_lex_state = 2}, + [166] = {.lex_state = 168, .external_lex_state = 2}, + [167] = {.lex_state = 215, .external_lex_state = 2}, + [168] = {.lex_state = 138}, + [169] = {.lex_state = 215, .external_lex_state = 2}, + [170] = {.lex_state = 184}, + [171] = {.lex_state = 189}, + [172] = {.lex_state = 166, .external_lex_state = 2}, + [173] = {.lex_state = 138}, + [174] = {.lex_state = 166, .external_lex_state = 2}, + [175] = {.lex_state = 184}, + [176] = {.lex_state = 189}, + [177] = {.lex_state = 195, .external_lex_state = 4}, + [178] = {.lex_state = 166, .external_lex_state = 2}, + [179] = {.lex_state = 146}, + [180] = {.lex_state = 148}, + [181] = {.lex_state = 195, .external_lex_state = 4}, + [182] = {.lex_state = 193, .external_lex_state = 2}, + [183] = {.lex_state = 166, .external_lex_state = 2}, + [184] = {.lex_state = 130, .external_lex_state = 2}, + [185] = {.lex_state = 130, .external_lex_state = 2}, + [186] = {.lex_state = 122}, + [187] = {.lex_state = 136}, + [188] = {.lex_state = 198, .external_lex_state = 2}, + [189] = {.lex_state = 122}, + [190] = {.lex_state = 203}, + [191] = {.lex_state = 200}, + [192] = {.lex_state = 200}, + [193] = {.lex_state = 91}, + [194] = {.lex_state = 138}, + [195] = {.lex_state = 138}, + [196] = {.lex_state = 122}, + [197] = {.lex_state = 189}, + [198] = {.lex_state = 189}, + [199] = {.lex_state = 205}, + [200] = {.lex_state = 205}, + [201] = {.lex_state = 205}, + [202] = {.lex_state = 217}, + [203] = {.lex_state = 217}, + [204] = {.lex_state = 91}, + [205] = {.lex_state = 138}, + [206] = {.lex_state = 211, .external_lex_state = 2}, + [207] = {.lex_state = 146}, + [208] = {.lex_state = 148}, + [209] = {.lex_state = 130, .external_lex_state = 2}, + [210] = {.lex_state = 211, .external_lex_state = 2}, + [211] = {.lex_state = 211, .external_lex_state = 2}, + [212] = {.lex_state = 213, .external_lex_state = 2}, + [213] = {.lex_state = 213, .external_lex_state = 2}, + [214] = {.lex_state = 213, .external_lex_state = 2}, + [215] = {.lex_state = 213, .external_lex_state = 2}, + [216] = {.lex_state = 195, .external_lex_state = 4}, + [217] = {.lex_state = 213, .external_lex_state = 2}, + [218] = {.lex_state = 213, .external_lex_state = 2}, + [219] = {.lex_state = 211, .external_lex_state = 2}, + [220] = {.lex_state = 213, .external_lex_state = 2}, + [221] = {.lex_state = 122}, + [222] = {.lex_state = 205}, + [223] = {.lex_state = 205}, + [224] = {.lex_state = 217}, + [225] = {.lex_state = 217}, + [226] = {.lex_state = 217}, + [227] = {.lex_state = 217}, + [228] = {.lex_state = 193, .external_lex_state = 2}, + [229] = {.lex_state = 91}, + [230] = {.lex_state = 193, .external_lex_state = 2}, + [231] = {.lex_state = 193, .external_lex_state = 2}, + [232] = {.lex_state = 215, .external_lex_state = 2}, + [233] = {.lex_state = 91}, + [234] = {.lex_state = 215, .external_lex_state = 2}, + [235] = {.lex_state = 215, .external_lex_state = 2}, + [236] = {.lex_state = 166, .external_lex_state = 2}, + [237] = {.lex_state = 91}, + [238] = {.lex_state = 166, .external_lex_state = 2}, + [239] = {.lex_state = 166, .external_lex_state = 2}, + [240] = {.lex_state = 195, .external_lex_state = 4}, + [241] = {.lex_state = 184}, + [242] = {.lex_state = 195, .external_lex_state = 4}, + [243] = {.lex_state = 166, .external_lex_state = 2}, + [244] = {.lex_state = 166, .external_lex_state = 2}, + [245] = {.lex_state = 178, .external_lex_state = 2}, + [246] = {.lex_state = 122}, + [247] = {.lex_state = 203}, + [248] = {.lex_state = 217}, + [249] = {.lex_state = 217}, + [250] = {.lex_state = 219, .external_lex_state = 2}, + [251] = {.lex_state = 219, .external_lex_state = 2}, + [252] = {.lex_state = 122}, + [253] = {.lex_state = 205}, + [254] = {.lex_state = 205}, + [255] = {.lex_state = 143}, + [256] = {.lex_state = 143}, + [257] = {.lex_state = 213, .external_lex_state = 2}, + [258] = {.lex_state = 213, .external_lex_state = 2}, + [259] = {.lex_state = 211, .external_lex_state = 2}, + [260] = {.lex_state = 138}, + [261] = {.lex_state = 211, .external_lex_state = 2}, + [262] = {.lex_state = 184}, + [263] = {.lex_state = 189}, + [264] = {.lex_state = 211, .external_lex_state = 2}, + [265] = {.lex_state = 211, .external_lex_state = 2}, + [266] = {.lex_state = 213, .external_lex_state = 2}, + [267] = {.lex_state = 213, .external_lex_state = 2}, + [268] = {.lex_state = 195, .external_lex_state = 4}, + [269] = {.lex_state = 211, .external_lex_state = 2}, + [270] = {.lex_state = 213, .external_lex_state = 2}, + [271] = {.lex_state = 122}, + [272] = {.lex_state = 205}, + [273] = {.lex_state = 191}, + [274] = {.lex_state = 191}, + [275] = {.lex_state = 130, .external_lex_state = 2}, + [276] = {.lex_state = 130, .external_lex_state = 2}, + [277] = {.lex_state = 217}, + [278] = {.lex_state = 217}, + [279] = {.lex_state = 217}, + [280] = {.lex_state = 217}, + [281] = {.lex_state = 217}, + [282] = {.lex_state = 217}, + [283] = {.lex_state = 91}, + [284] = {.lex_state = 195, .external_lex_state = 4}, + [285] = {.lex_state = 178, .external_lex_state = 2}, + [286] = {.lex_state = 122}, + [287] = {.lex_state = 138}, + [288] = {.lex_state = 138}, + [289] = {.lex_state = 205}, + [290] = {.lex_state = 219, .external_lex_state = 2}, + [291] = {.lex_state = 122}, + [292] = {.lex_state = 126, .external_lex_state = 2}, + [293] = {.lex_state = 219, .external_lex_state = 2}, + [294] = {.lex_state = 205}, + [295] = {.lex_state = 219, .external_lex_state = 2}, + [296] = {.lex_state = 122}, + [297] = {.lex_state = 211, .external_lex_state = 2}, + [298] = {.lex_state = 91}, + [299] = {.lex_state = 211, .external_lex_state = 2}, + [300] = {.lex_state = 211, .external_lex_state = 2}, + [301] = {.lex_state = 213, .external_lex_state = 2}, + [302] = {.lex_state = 213, .external_lex_state = 2}, + [303] = {.lex_state = 122}, + [304] = {.lex_state = 193, .external_lex_state = 2}, + [305] = {.lex_state = 193, .external_lex_state = 2}, + [306] = {.lex_state = 215, .external_lex_state = 2}, + [307] = {.lex_state = 215, .external_lex_state = 2}, + [308] = {.lex_state = 166, .external_lex_state = 2}, + [309] = {.lex_state = 166, .external_lex_state = 2}, + [310] = {.lex_state = 217}, + [311] = {.lex_state = 217}, + [312] = {.lex_state = 245, .external_lex_state = 2}, + [313] = {.lex_state = 205}, + [314] = {.lex_state = 263, .external_lex_state = 2}, + [315] = {.lex_state = 205}, + [316] = {.lex_state = 217}, + [317] = {.lex_state = 217}, + [318] = {.lex_state = 195, .external_lex_state = 4}, + [319] = {.lex_state = 195, .external_lex_state = 4}, + [320] = {.lex_state = 211, .external_lex_state = 2}, + [321] = {.lex_state = 211, .external_lex_state = 2}, + [322] = {.lex_state = 122}, + [323] = {.lex_state = 178, .external_lex_state = 2}, + [324] = {.lex_state = 122}, + [325] = {.lex_state = 180}, + [326] = {.lex_state = 122}, + [327] = {.lex_state = 267, .external_lex_state = 2}, + [328] = {.lex_state = 91}, + [329] = {.lex_state = 316, .external_lex_state = 2}, + [330] = {.lex_state = 146}, + [331] = {.lex_state = 148}, + [332] = {.lex_state = 91}, + [333] = {.lex_state = 316, .external_lex_state = 5}, + [334] = {.lex_state = 130, .external_lex_state = 2}, + [335] = {.lex_state = 91}, + [336] = {.lex_state = 321, .external_lex_state = 2}, + [337] = {.lex_state = 195, .external_lex_state = 4}, + [338] = {.lex_state = 166, .external_lex_state = 2}, + [339] = {.lex_state = 85}, + [340] = {.lex_state = 245, .external_lex_state = 2}, + [341] = {.lex_state = 122}, + [342] = {.lex_state = 200}, + [343] = {.lex_state = 203}, + [344] = {.lex_state = 205}, + [345] = {.lex_state = 325}, + [346] = {.lex_state = 126, .external_lex_state = 2}, + [347] = {.lex_state = 327, .external_lex_state = 2}, + [348] = {.lex_state = 316, .external_lex_state = 5}, + [349] = {.lex_state = 316, .external_lex_state = 2}, + [350] = {.lex_state = 335, .external_lex_state = 2}, + [351] = {.lex_state = 166, .external_lex_state = 2}, + [352] = {.lex_state = 263, .external_lex_state = 2}, + [353] = {.lex_state = 200}, + [354] = {.lex_state = 205}, + [355] = {.lex_state = 337, .external_lex_state = 2}, + [356] = {.lex_state = 166, .external_lex_state = 2}, + [357] = {.lex_state = 138}, + [358] = {.lex_state = 178, .external_lex_state = 2}, + [359] = {.lex_state = 205}, + [360] = {.lex_state = 205}, + [361] = {.lex_state = 219, .external_lex_state = 2}, + [362] = {.lex_state = 215, .external_lex_state = 2}, + [363] = {.lex_state = 215, .external_lex_state = 2}, + [364] = {.lex_state = 327, .external_lex_state = 2}, + [365] = {.lex_state = 316, .external_lex_state = 5}, + [366] = {.lex_state = 184}, + [367] = {.lex_state = 217}, + [368] = {.lex_state = 217}, + [369] = {.lex_state = 189}, + [370] = {.lex_state = 138}, + [371] = {.lex_state = 335, .external_lex_state = 2}, + [372] = {.lex_state = 146}, + [373] = {.lex_state = 148}, + [374] = {.lex_state = 130, .external_lex_state = 2}, + [375] = {.lex_state = 335, .external_lex_state = 2}, + [376] = {.lex_state = 180}, + [377] = {.lex_state = 122}, + [378] = {.lex_state = 91}, + [379] = {.lex_state = 122}, + [380] = {.lex_state = 316, .external_lex_state = 2}, + [381] = {.lex_state = 316, .external_lex_state = 5}, + [382] = {.lex_state = 205}, + [383] = {.lex_state = 122}, + [384] = {.lex_state = 203}, + [385] = {.lex_state = 122}, + [386] = {.lex_state = 138}, + [387] = {.lex_state = 337, .external_lex_state = 2}, + [388] = {.lex_state = 146}, + [389] = {.lex_state = 148}, + [390] = {.lex_state = 130, .external_lex_state = 2}, + [391] = {.lex_state = 337, .external_lex_state = 2}, + [392] = {.lex_state = 166, .external_lex_state = 2}, + [393] = {.lex_state = 327, .external_lex_state = 2}, + [394] = {.lex_state = 316, .external_lex_state = 5}, + [395] = {.lex_state = 316, .external_lex_state = 5}, + [396] = {.lex_state = 335, .external_lex_state = 2}, + [397] = {.lex_state = 138}, + [398] = {.lex_state = 335, .external_lex_state = 2}, + [399] = {.lex_state = 184}, + [400] = {.lex_state = 189}, + [401] = {.lex_state = 205}, + [402] = {.lex_state = 335, .external_lex_state = 2}, + [403] = {.lex_state = 335, .external_lex_state = 2}, + [404] = {.lex_state = 122}, + [405] = {.lex_state = 337, .external_lex_state = 2}, + [406] = {.lex_state = 138}, + [407] = {.lex_state = 337, .external_lex_state = 2}, + [408] = {.lex_state = 184}, + [409] = {.lex_state = 189}, + [410] = {.lex_state = 335, .external_lex_state = 2}, + [411] = {.lex_state = 91}, + [412] = {.lex_state = 335, .external_lex_state = 2}, + [413] = {.lex_state = 335, .external_lex_state = 2}, + [414] = {.lex_state = 122}, + [415] = {.lex_state = 205}, + [416] = {.lex_state = 337, .external_lex_state = 2}, + [417] = {.lex_state = 91}, + [418] = {.lex_state = 337, .external_lex_state = 2}, + [419] = {.lex_state = 337, .external_lex_state = 2}, + [420] = {.lex_state = 217}, + [421] = {.lex_state = 217}, + [422] = {.lex_state = 122}, + [423] = {.lex_state = 217}, + [424] = {.lex_state = 217}, + [425] = {.lex_state = 335, .external_lex_state = 2}, + [426] = {.lex_state = 335, .external_lex_state = 2}, + [427] = {.lex_state = 337, .external_lex_state = 2}, + [428] = {.lex_state = 337, .external_lex_state = 2}, }; enum { @@ -6506,6 +6649,7 @@ enum { ts_external_token__heredoc_beginning, ts_external_token__heredoc_middle, ts_external_token__heredoc_end, + ts_external_token_file_descriptor, }; static TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = { @@ -6513,94 +6657,107 @@ static TSSymbol ts_external_scanner_symbol_map[EXTERNAL_TOKEN_COUNT] = { [ts_external_token__heredoc_beginning] = sym__heredoc_beginning, [ts_external_token__heredoc_middle] = sym__heredoc_middle, [ts_external_token__heredoc_end] = sym__heredoc_end, + [ts_external_token_file_descriptor] = sym_file_descriptor, }; -static bool ts_external_scanner_states[4][EXTERNAL_TOKEN_COUNT] = { +static bool ts_external_scanner_states[6][EXTERNAL_TOKEN_COUNT] = { [1] = { [ts_external_token__simple_heredoc] = true, [ts_external_token__heredoc_beginning] = true, [ts_external_token__heredoc_middle] = true, [ts_external_token__heredoc_end] = true, + [ts_external_token_file_descriptor] = true, }, [2] = { + [ts_external_token_file_descriptor] = true, + }, + [3] = { [ts_external_token__simple_heredoc] = true, [ts_external_token__heredoc_beginning] = true, }, - [3] = { + [4] = { [ts_external_token__heredoc_middle] = true, [ts_external_token__heredoc_end] = true, }, + [5] = { + [ts_external_token__heredoc_middle] = true, + [ts_external_token__heredoc_end] = true, + [ts_external_token_file_descriptor] = true, + }, }; static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [0] = { [sym_program] = STATE(10), - [sym__terminated_statement] = STATE(302), - [sym_while_statement] = STATE(303), - [sym_do_group] = STATE(52), - [sym_if_statement] = STATE(303), - [sym_elif_clause] = STATE(304), - [sym_else_clause] = STATE(305), - [sym_case_statement] = STATE(303), - [sym_case_item] = STATE(306), - [sym_bracket_command] = STATE(303), - [sym_command] = STATE(307), - [sym_pipeline] = STATE(303), - [sym_list] = STATE(303), - [sym_environment_variable_assignment] = STATE(308), - [sym_quoted_argument] = STATE(309), - [sym_expansion] = STATE(310), - [sym_operator_expansion] = STATE(310), - [sym_command_substitution] = STATE(311), - [sym_file_redirect] = STATE(312), - [sym_heredoc_redirect] = STATE(313), - [sym_heredoc] = STATE(98), - [aux_sym_program_repeat1] = STATE(314), - [aux_sym_if_statement_repeat1] = STATE(315), - [aux_sym_case_statement_repeat1] = STATE(316), - [aux_sym_bracket_command_repeat1] = STATE(317), + [sym__terminated_statement] = STATE(340), + [sym_while_statement] = STATE(341), + [sym_do_group] = STATE(58), + [sym_if_statement] = STATE(341), + [sym_elif_clause] = STATE(342), + [sym_else_clause] = STATE(343), + [sym_case_statement] = STATE(341), + [sym_case_item] = STATE(344), + [sym_bracket_command] = STATE(341), + [sym_command] = STATE(345), + [sym_pipeline] = STATE(341), + [sym_list] = STATE(341), + [sym_environment_variable_assignment] = STATE(346), + [sym_quoted_argument] = STATE(347), + [sym_expansion] = STATE(348), + [sym_operator_expansion] = STATE(348), + [sym_command_substitution] = STATE(349), + [sym_file_redirect] = STATE(350), + [sym_heredoc_redirect] = STATE(351), + [sym_heredoc] = STATE(112), + [aux_sym_program_repeat1] = STATE(352), + [aux_sym_if_statement_repeat1] = STATE(353), + [aux_sym_case_statement_repeat1] = STATE(354), + [aux_sym_bracket_command_repeat1] = STATE(355), [aux_sym_command_repeat1] = STATE(16), - [aux_sym_command_repeat2] = STATE(318), - [aux_sym_quoted_argument_repeat1] = STATE(319), - [aux_sym_heredoc_repeat1] = STATE(157), + [aux_sym_command_repeat2] = STATE(356), + [aux_sym_quoted_argument_repeat1] = STATE(357), + [aux_sym_heredoc_repeat1] = STATE(181), [sym__simple_heredoc] = ACTIONS(1), [sym__heredoc_beginning] = ACTIONS(3), [sym__heredoc_middle] = ACTIONS(5), [sym__heredoc_end] = ACTIONS(7), - [ts_builtin_sym_end] = ACTIONS(9), - [anon_sym_while] = ACTIONS(11), - [anon_sym_do] = ACTIONS(13), - [anon_sym_done] = ACTIONS(15), - [anon_sym_if] = ACTIONS(17), - [anon_sym_then] = ACTIONS(19), - [anon_sym_fi] = ACTIONS(21), - [anon_sym_elif] = ACTIONS(23), - [anon_sym_else] = ACTIONS(25), - [anon_sym_case] = ACTIONS(27), - [anon_sym_in] = ACTIONS(29), - [anon_sym_esac] = ACTIONS(31), - [anon_sym_RPAREN] = ACTIONS(33), - [anon_sym_LBRACK] = ACTIONS(35), - [anon_sym_RBRACK] = ACTIONS(37), - [anon_sym_RBRACK_RBRACK] = ACTIONS(39), - [anon_sym_PIPE] = ACTIONS(41), - [anon_sym_AMP_AMP] = ACTIONS(43), - [anon_sym_PIPE_PIPE] = ACTIONS(43), - [anon_sym_EQ] = ACTIONS(45), - [anon_sym_DQUOTE] = ACTIONS(47), - [anon_sym_DOLLAR] = ACTIONS(49), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(51), - [anon_sym_COLON] = ACTIONS(53), - [anon_sym_COLON_QMARK] = ACTIONS(55), - [anon_sym_RBRACE] = ACTIONS(57), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(59), - [anon_sym_LT] = ACTIONS(61), - [anon_sym_GT] = ACTIONS(61), - [anon_sym_LT_AMP] = ACTIONS(63), - [anon_sym_GT_AMP] = ACTIONS(63), - [anon_sym_LT_LT] = ACTIONS(65), - [anon_sym_LT_LT_DASH] = ACTIONS(67), - [sym_file_descriptor] = ACTIONS(69), + [sym_file_descriptor] = ACTIONS(9), + [ts_builtin_sym_end] = ACTIONS(11), + [anon_sym_while] = ACTIONS(13), + [anon_sym_do] = ACTIONS(15), + [anon_sym_done] = ACTIONS(17), + [anon_sym_if] = ACTIONS(19), + [anon_sym_then] = ACTIONS(21), + [anon_sym_fi] = ACTIONS(23), + [anon_sym_elif] = ACTIONS(25), + [anon_sym_else] = ACTIONS(27), + [anon_sym_case] = ACTIONS(29), + [anon_sym_in] = ACTIONS(31), + [anon_sym_esac] = ACTIONS(33), + [anon_sym_RPAREN] = ACTIONS(35), + [anon_sym_LBRACK] = ACTIONS(37), + [anon_sym_RBRACK] = ACTIONS(39), + [anon_sym_RBRACK_RBRACK] = ACTIONS(41), + [anon_sym_PIPE] = ACTIONS(43), + [anon_sym_AMP_AMP] = ACTIONS(45), + [anon_sym_PIPE_PIPE] = ACTIONS(45), + [anon_sym_EQ] = ACTIONS(47), + [anon_sym_DQUOTE] = ACTIONS(49), + [anon_sym_DOLLAR] = ACTIONS(51), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(53), + [anon_sym_COLON] = ACTIONS(55), + [anon_sym_COLON_QMARK] = ACTIONS(57), + [anon_sym_RBRACE] = ACTIONS(59), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(61), + [anon_sym_LT] = ACTIONS(63), + [anon_sym_GT] = ACTIONS(63), + [anon_sym_GT_GT] = ACTIONS(65), + [anon_sym_AMP_GT] = ACTIONS(63), + [anon_sym_AMP_GT_GT] = ACTIONS(65), + [anon_sym_LT_AMP] = ACTIONS(65), + [anon_sym_GT_AMP] = ACTIONS(65), + [anon_sym_LT_LT] = ACTIONS(67), + [anon_sym_LT_LT_DASH] = ACTIONS(69), [sym_comment] = ACTIONS(71), [anon_sym_SEMI] = ACTIONS(73), }, @@ -6618,205 +6775,237 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_file_redirect] = STATE(14), [aux_sym_program_repeat1] = STATE(15), [aux_sym_command_repeat1] = STATE(16), - [ts_builtin_sym_end] = ACTIONS(75), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), + [sym_file_descriptor] = ACTIONS(75), + [ts_builtin_sym_end] = ACTIONS(77), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, [2] = { - [sym__terminated_statement] = STATE(17), - [sym_while_statement] = STATE(18), - [sym_if_statement] = STATE(18), - [sym_case_statement] = STATE(18), - [sym_bracket_command] = STATE(18), - [sym_command] = STATE(18), - [sym_pipeline] = STATE(18), - [sym_list] = STATE(18), - [sym_environment_variable_assignment] = STATE(19), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(91), + [anon_sym_LT] = ACTIONS(93), + [anon_sym_GT] = ACTIONS(93), + [anon_sym_GT_GT] = ACTIONS(95), + [anon_sym_AMP_GT] = ACTIONS(93), + [anon_sym_AMP_GT_GT] = ACTIONS(95), + [anon_sym_LT_AMP] = ACTIONS(95), + [anon_sym_GT_AMP] = ACTIONS(95), [sym_comment] = ACTIONS(71), }, [3] = { - [sym__terminated_statement] = STATE(20), - [sym_while_statement] = STATE(18), - [sym_if_statement] = STATE(18), - [sym_case_statement] = STATE(18), - [sym_bracket_command] = STATE(18), - [sym_command] = STATE(18), - [sym_pipeline] = STATE(18), - [sym_list] = STATE(18), - [sym_environment_variable_assignment] = STATE(19), + [sym__terminated_statement] = STATE(18), + [sym_while_statement] = STATE(19), + [sym_if_statement] = STATE(19), + [sym_case_statement] = STATE(19), + [sym_bracket_command] = STATE(19), + [sym_command] = STATE(19), + [sym_pipeline] = STATE(19), + [sym_list] = STATE(19), + [sym_environment_variable_assignment] = STATE(20), [sym_file_redirect] = STATE(14), [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, [4] = { - [sym_quoted_argument] = STATE(22), - [sym_expansion] = STATE(22), - [sym_operator_expansion] = STATE(22), - [sym_command_substitution] = STATE(22), - [anon_sym_DQUOTE] = ACTIONS(93), - [sym_single_quoted_argument] = ACTIONS(95), - [anon_sym_DOLLAR] = ACTIONS(97), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(99), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(101), - [sym_word] = ACTIONS(103), + [sym__terminated_statement] = STATE(21), + [sym_while_statement] = STATE(19), + [sym_if_statement] = STATE(19), + [sym_case_statement] = STATE(19), + [sym_bracket_command] = STATE(19), + [sym_command] = STATE(19), + [sym_pipeline] = STATE(19), + [sym_list] = STATE(19), + [sym_environment_variable_assignment] = STATE(20), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(16), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, [5] = { - [sym_quoted_argument] = STATE(28), - [sym_expansion] = STATE(28), - [sym_operator_expansion] = STATE(28), - [sym_command_substitution] = STATE(28), - [aux_sym_bracket_command_repeat1] = STATE(33), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(107), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(115), + [sym_quoted_argument] = STATE(23), + [sym_expansion] = STATE(23), + [sym_operator_expansion] = STATE(23), + [sym_command_substitution] = STATE(23), + [anon_sym_DQUOTE] = ACTIONS(97), + [sym_single_quoted_argument] = ACTIONS(99), + [anon_sym_DOLLAR] = ACTIONS(101), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(103), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(105), + [sym_word] = ACTIONS(107), [sym_comment] = ACTIONS(71), }, [6] = { - [sym_quoted_argument] = STATE(28), - [sym_expansion] = STATE(28), - [sym_operator_expansion] = STATE(28), - [sym_command_substitution] = STATE(28), + [sym_quoted_argument] = STATE(29), + [sym_expansion] = STATE(29), + [sym_operator_expansion] = STATE(29), + [sym_command_substitution] = STATE(29), [aux_sym_bracket_command_repeat1] = STATE(34), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(107), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(115), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(111), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(119), [sym_comment] = ACTIONS(71), }, [7] = { - [sym_file_descriptor] = ACTIONS(117), + [sym_quoted_argument] = STATE(29), + [sym_expansion] = STATE(29), + [sym_operator_expansion] = STATE(29), + [sym_command_substitution] = STATE(29), + [aux_sym_bracket_command_repeat1] = STATE(35), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(111), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), [sym_word] = ACTIONS(119), [sym_comment] = ACTIONS(71), }, [8] = { - [anon_sym_LT] = ACTIONS(121), - [anon_sym_GT] = ACTIONS(121), - [anon_sym_LT_AMP] = ACTIONS(123), - [anon_sym_GT_AMP] = ACTIONS(123), + [sym_quoted_argument] = STATE(37), + [sym_expansion] = STATE(37), + [sym_operator_expansion] = STATE(37), + [sym_command_substitution] = STATE(37), + [anon_sym_DQUOTE] = ACTIONS(121), + [sym_single_quoted_argument] = ACTIONS(123), + [anon_sym_DOLLAR] = ACTIONS(125), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(127), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(129), + [sym_word] = ACTIONS(131), [sym_comment] = ACTIONS(71), }, [9] = { - [sym_file_redirect] = STATE(43), - [sym_heredoc_redirect] = STATE(43), - [aux_sym_command_repeat2] = STATE(44), - [anon_sym_SEMI_SEMI] = ACTIONS(125), - [aux_sym_SLASH_BSLASHs_PLUS_SLASH] = ACTIONS(127), - [anon_sym_PIPE] = ACTIONS(125), - [anon_sym_PIPE_AMP] = ACTIONS(125), - [anon_sym_AMP_AMP] = ACTIONS(125), - [anon_sym_PIPE_PIPE] = ACTIONS(125), - [anon_sym_EQ] = ACTIONS(129), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(125), - [anon_sym_LF] = ACTIONS(125), + [sym_file_redirect] = STATE(47), + [sym_heredoc_redirect] = STATE(47), + [aux_sym_command_repeat2] = STATE(48), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_SEMI_SEMI] = ACTIONS(135), + [aux_sym_SLASH_BSLASHs_PLUS_SLASH] = ACTIONS(137), + [anon_sym_PIPE] = ACTIONS(135), + [anon_sym_PIPE_AMP] = ACTIONS(135), + [anon_sym_AMP_AMP] = ACTIONS(135), + [anon_sym_PIPE_PIPE] = ACTIONS(135), + [anon_sym_EQ] = ACTIONS(139), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(135), + [anon_sym_LF] = ACTIONS(135), }, [10] = { - [ts_builtin_sym_end] = ACTIONS(139), + [ts_builtin_sym_end] = ACTIONS(147), [sym_comment] = ACTIONS(71), }, [11] = { - [ts_builtin_sym_end] = ACTIONS(141), - [anon_sym_while] = ACTIONS(143), - [anon_sym_done] = ACTIONS(143), - [anon_sym_if] = ACTIONS(143), - [anon_sym_fi] = ACTIONS(143), - [anon_sym_elif] = ACTIONS(143), - [anon_sym_else] = ACTIONS(143), - [anon_sym_case] = ACTIONS(143), - [anon_sym_LBRACK] = ACTIONS(143), - [anon_sym_LBRACK_LBRACK] = ACTIONS(143), - [anon_sym_LT] = ACTIONS(143), - [anon_sym_GT] = ACTIONS(143), - [anon_sym_LT_AMP] = ACTIONS(143), - [anon_sym_GT_AMP] = ACTIONS(143), - [sym_file_descriptor] = ACTIONS(143), - [sym_leading_word] = ACTIONS(145), + [sym_file_descriptor] = ACTIONS(149), + [ts_builtin_sym_end] = ACTIONS(149), + [anon_sym_while] = ACTIONS(151), + [anon_sym_done] = ACTIONS(151), + [anon_sym_if] = ACTIONS(151), + [anon_sym_fi] = ACTIONS(151), + [anon_sym_elif] = ACTIONS(151), + [anon_sym_else] = ACTIONS(151), + [anon_sym_case] = ACTIONS(151), + [anon_sym_LBRACK] = ACTIONS(151), + [anon_sym_LBRACK_LBRACK] = ACTIONS(151), + [anon_sym_LT] = ACTIONS(151), + [anon_sym_GT] = ACTIONS(151), + [anon_sym_GT_GT] = ACTIONS(151), + [anon_sym_AMP_GT] = ACTIONS(151), + [anon_sym_AMP_GT_GT] = ACTIONS(151), + [anon_sym_LT_AMP] = ACTIONS(151), + [anon_sym_GT_AMP] = ACTIONS(151), + [sym_leading_word] = ACTIONS(153), [sym_comment] = ACTIONS(71), }, [12] = { - [anon_sym_SEMI_SEMI] = ACTIONS(147), - [anon_sym_PIPE] = ACTIONS(149), - [anon_sym_PIPE_AMP] = ACTIONS(149), - [anon_sym_AMP_AMP] = ACTIONS(151), - [anon_sym_PIPE_PIPE] = ACTIONS(151), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(147), - [anon_sym_LF] = ACTIONS(147), + [anon_sym_SEMI_SEMI] = ACTIONS(155), + [anon_sym_PIPE] = ACTIONS(157), + [anon_sym_PIPE_AMP] = ACTIONS(157), + [anon_sym_AMP_AMP] = ACTIONS(159), + [anon_sym_PIPE_PIPE] = ACTIONS(159), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(155), + [anon_sym_LF] = ACTIONS(155), }, [13] = { - [anon_sym_SEMI_SEMI] = ACTIONS(147), - [anon_sym_PIPE] = ACTIONS(149), - [anon_sym_PIPE_AMP] = ACTIONS(149), - [anon_sym_AMP_AMP] = ACTIONS(151), - [anon_sym_PIPE_PIPE] = ACTIONS(151), - [anon_sym_LT] = ACTIONS(153), - [anon_sym_GT] = ACTIONS(153), - [anon_sym_LT_AMP] = ACTIONS(153), - [anon_sym_GT_AMP] = ACTIONS(153), - [sym_file_descriptor] = ACTIONS(153), - [sym_leading_word] = ACTIONS(153), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(147), - [anon_sym_LF] = ACTIONS(147), + [sym_file_descriptor] = ACTIONS(161), + [anon_sym_SEMI_SEMI] = ACTIONS(155), + [anon_sym_PIPE] = ACTIONS(157), + [anon_sym_PIPE_AMP] = ACTIONS(157), + [anon_sym_AMP_AMP] = ACTIONS(159), + [anon_sym_PIPE_PIPE] = ACTIONS(159), + [anon_sym_LT] = ACTIONS(163), + [anon_sym_GT] = ACTIONS(163), + [anon_sym_GT_GT] = ACTIONS(163), + [anon_sym_AMP_GT] = ACTIONS(163), + [anon_sym_AMP_GT_GT] = ACTIONS(163), + [anon_sym_LT_AMP] = ACTIONS(163), + [anon_sym_GT_AMP] = ACTIONS(163), + [sym_leading_word] = ACTIONS(163), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(155), + [anon_sym_LF] = ACTIONS(155), }, [14] = { - [anon_sym_LT] = ACTIONS(155), - [anon_sym_GT] = ACTIONS(155), - [anon_sym_LT_AMP] = ACTIONS(155), - [anon_sym_GT_AMP] = ACTIONS(155), - [sym_file_descriptor] = ACTIONS(155), - [sym_leading_word] = ACTIONS(153), + [sym_file_descriptor] = ACTIONS(161), + [anon_sym_LT] = ACTIONS(165), + [anon_sym_GT] = ACTIONS(165), + [anon_sym_GT_GT] = ACTIONS(165), + [anon_sym_AMP_GT] = ACTIONS(165), + [anon_sym_AMP_GT_GT] = ACTIONS(165), + [anon_sym_LT_AMP] = ACTIONS(165), + [anon_sym_GT_AMP] = ACTIONS(165), + [sym_leading_word] = ACTIONS(163), [sym_comment] = ACTIONS(71), }, [15] = { - [sym__terminated_statement] = STATE(48), + [sym__terminated_statement] = STATE(52), [sym_while_statement] = STATE(12), [sym_if_statement] = STATE(12), [sym_case_statement] = STATE(12), @@ -6827,500 +7016,567 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_environment_variable_assignment] = STATE(13), [sym_file_redirect] = STATE(14), [aux_sym_command_repeat1] = STATE(16), - [ts_builtin_sym_end] = ACTIONS(157), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), + [sym_file_descriptor] = ACTIONS(75), + [ts_builtin_sym_end] = ACTIONS(167), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, [16] = { - [sym_environment_variable_assignment] = STATE(50), - [sym_file_redirect] = STATE(50), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(159), + [sym_environment_variable_assignment] = STATE(54), + [sym_file_redirect] = STATE(54), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(169), [sym_comment] = ACTIONS(71), }, [17] = { - [sym_do_group] = STATE(52), - [anon_sym_do] = ACTIONS(161), + [sym_quoted_argument] = STATE(55), + [sym_expansion] = STATE(55), + [sym_operator_expansion] = STATE(55), + [sym_command_substitution] = STATE(55), + [anon_sym_DQUOTE] = ACTIONS(121), + [sym_single_quoted_argument] = ACTIONS(171), + [anon_sym_DOLLAR] = ACTIONS(125), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(127), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(129), + [sym_word] = ACTIONS(173), [sym_comment] = ACTIONS(71), }, [18] = { - [anon_sym_SEMI_SEMI] = ACTIONS(163), - [anon_sym_PIPE] = ACTIONS(149), - [anon_sym_PIPE_AMP] = ACTIONS(149), - [anon_sym_AMP_AMP] = ACTIONS(151), - [anon_sym_PIPE_PIPE] = ACTIONS(151), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(163), - [anon_sym_LF] = ACTIONS(163), + [sym_do_group] = STATE(58), + [anon_sym_do] = ACTIONS(175), + [sym_comment] = ACTIONS(71), }, [19] = { - [anon_sym_SEMI_SEMI] = ACTIONS(163), - [anon_sym_PIPE] = ACTIONS(149), - [anon_sym_PIPE_AMP] = ACTIONS(149), - [anon_sym_AMP_AMP] = ACTIONS(151), - [anon_sym_PIPE_PIPE] = ACTIONS(151), - [anon_sym_LT] = ACTIONS(153), - [anon_sym_GT] = ACTIONS(153), - [anon_sym_LT_AMP] = ACTIONS(153), - [anon_sym_GT_AMP] = ACTIONS(153), - [sym_file_descriptor] = ACTIONS(153), - [sym_leading_word] = ACTIONS(153), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(163), - [anon_sym_LF] = ACTIONS(163), + [anon_sym_SEMI_SEMI] = ACTIONS(177), + [anon_sym_PIPE] = ACTIONS(157), + [anon_sym_PIPE_AMP] = ACTIONS(157), + [anon_sym_AMP_AMP] = ACTIONS(159), + [anon_sym_PIPE_PIPE] = ACTIONS(159), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(177), + [anon_sym_LF] = ACTIONS(177), }, [20] = { - [anon_sym_then] = ACTIONS(165), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(161), + [anon_sym_SEMI_SEMI] = ACTIONS(177), + [anon_sym_PIPE] = ACTIONS(157), + [anon_sym_PIPE_AMP] = ACTIONS(157), + [anon_sym_AMP_AMP] = ACTIONS(159), + [anon_sym_PIPE_PIPE] = ACTIONS(159), + [anon_sym_LT] = ACTIONS(163), + [anon_sym_GT] = ACTIONS(163), + [anon_sym_GT_GT] = ACTIONS(163), + [anon_sym_AMP_GT] = ACTIONS(163), + [anon_sym_AMP_GT_GT] = ACTIONS(163), + [anon_sym_LT_AMP] = ACTIONS(163), + [anon_sym_GT_AMP] = ACTIONS(163), + [sym_leading_word] = ACTIONS(163), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(177), + [anon_sym_LF] = ACTIONS(177), }, [21] = { - [sym_expansion] = STATE(56), - [sym_operator_expansion] = STATE(56), - [sym_command_substitution] = STATE(56), - [aux_sym_quoted_argument_repeat1] = STATE(60), - [anon_sym_DQUOTE] = ACTIONS(167), - [sym__quoted_chars] = ACTIONS(169), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), - }, - [22] = { - [anon_sym_in] = ACTIONS(177), - [anon_sym_SEMI_SEMI] = ACTIONS(179), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(179), - [anon_sym_LF] = ACTIONS(179), - }, - [23] = { - [sym_word] = ACTIONS(181), + [anon_sym_then] = ACTIONS(179), [sym_comment] = ACTIONS(71), }, + [22] = { + [sym_expansion] = STATE(62), + [sym_operator_expansion] = STATE(62), + [sym_command_substitution] = STATE(62), + [aux_sym_quoted_argument_repeat1] = STATE(66), + [anon_sym_DQUOTE] = ACTIONS(181), + [sym__quoted_chars] = ACTIONS(183), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), + }, + [23] = { + [anon_sym_in] = ACTIONS(191), + [anon_sym_SEMI_SEMI] = ACTIONS(193), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(193), + [anon_sym_LF] = ACTIONS(193), + }, [24] = { - [sym_leading_word] = ACTIONS(183), + [sym_word] = ACTIONS(195), [sym_comment] = ACTIONS(71), }, [25] = { - [sym_command] = STATE(66), - [sym_environment_variable_assignment] = STATE(14), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(67), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(185), + [sym_leading_word] = ACTIONS(197), [sym_comment] = ACTIONS(71), }, [26] = { - [anon_sym_in] = ACTIONS(187), - [anon_sym_SEMI_SEMI] = ACTIONS(189), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(189), - [anon_sym_LF] = ACTIONS(189), - }, - [27] = { - [sym_expansion] = STATE(56), - [sym_operator_expansion] = STATE(56), - [sym_command_substitution] = STATE(56), - [aux_sym_quoted_argument_repeat1] = STATE(71), - [anon_sym_DQUOTE] = ACTIONS(191), - [sym__quoted_chars] = ACTIONS(169), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), - }, - [28] = { - [anon_sym_RPAREN] = ACTIONS(193), - [anon_sym_RBRACK] = ACTIONS(195), - [anon_sym_RBRACK_RBRACK] = ACTIONS(195), - [anon_sym_DQUOTE] = ACTIONS(193), - [sym_single_quoted_argument] = ACTIONS(195), - [anon_sym_DOLLAR] = ACTIONS(195), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(193), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(193), - [anon_sym_LT] = ACTIONS(195), - [anon_sym_GT] = ACTIONS(195), - [anon_sym_LT_AMP] = ACTIONS(193), - [anon_sym_GT_AMP] = ACTIONS(193), - [anon_sym_LT_LT] = ACTIONS(195), - [anon_sym_LT_LT_DASH] = ACTIONS(193), - [sym_file_descriptor] = ACTIONS(195), - [sym_word] = ACTIONS(197), + [sym_command] = STATE(72), + [sym_environment_variable_assignment] = STATE(14), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(73), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(199), [sym_comment] = ACTIONS(71), }, + [27] = { + [anon_sym_in] = ACTIONS(201), + [anon_sym_SEMI_SEMI] = ACTIONS(203), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(203), + [anon_sym_LF] = ACTIONS(203), + }, + [28] = { + [sym_expansion] = STATE(62), + [sym_operator_expansion] = STATE(62), + [sym_command_substitution] = STATE(62), + [aux_sym_quoted_argument_repeat1] = STATE(77), + [anon_sym_DQUOTE] = ACTIONS(205), + [sym__quoted_chars] = ACTIONS(183), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), + }, [29] = { - [sym_word] = ACTIONS(199), + [anon_sym_RBRACK] = ACTIONS(207), + [anon_sym_RBRACK_RBRACK] = ACTIONS(207), + [anon_sym_DQUOTE] = ACTIONS(209), + [sym_single_quoted_argument] = ACTIONS(207), + [anon_sym_DOLLAR] = ACTIONS(207), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(209), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(209), + [sym_word] = ACTIONS(211), [sym_comment] = ACTIONS(71), }, [30] = { - [sym_leading_word] = ACTIONS(201), + [sym_word] = ACTIONS(213), [sym_comment] = ACTIONS(71), }, [31] = { - [sym_command] = STATE(74), - [sym_environment_variable_assignment] = STATE(14), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(67), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(185), + [sym_leading_word] = ACTIONS(215), [sym_comment] = ACTIONS(71), }, [32] = { - [anon_sym_RPAREN] = ACTIONS(203), - [anon_sym_RBRACK] = ACTIONS(205), - [anon_sym_RBRACK_RBRACK] = ACTIONS(205), - [anon_sym_DQUOTE] = ACTIONS(203), - [sym_single_quoted_argument] = ACTIONS(205), - [anon_sym_DOLLAR] = ACTIONS(205), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(203), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(203), - [anon_sym_LT] = ACTIONS(205), - [anon_sym_GT] = ACTIONS(205), - [anon_sym_LT_AMP] = ACTIONS(203), - [anon_sym_GT_AMP] = ACTIONS(203), - [anon_sym_LT_LT] = ACTIONS(205), - [anon_sym_LT_LT_DASH] = ACTIONS(203), - [sym_file_descriptor] = ACTIONS(205), - [sym_word] = ACTIONS(207), + [sym_command] = STATE(80), + [sym_environment_variable_assignment] = STATE(14), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(73), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(199), [sym_comment] = ACTIONS(71), }, [33] = { - [sym_quoted_argument] = STATE(76), - [sym_expansion] = STATE(76), - [sym_operator_expansion] = STATE(76), - [sym_command_substitution] = STATE(76), - [anon_sym_RBRACK] = ACTIONS(209), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(211), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(213), + [anon_sym_RBRACK] = ACTIONS(217), + [anon_sym_RBRACK_RBRACK] = ACTIONS(217), + [anon_sym_DQUOTE] = ACTIONS(219), + [sym_single_quoted_argument] = ACTIONS(217), + [anon_sym_DOLLAR] = ACTIONS(217), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(219), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(219), + [sym_word] = ACTIONS(221), [sym_comment] = ACTIONS(71), }, [34] = { - [sym_quoted_argument] = STATE(76), - [sym_expansion] = STATE(76), - [sym_operator_expansion] = STATE(76), - [sym_command_substitution] = STATE(76), - [anon_sym_RBRACK_RBRACK] = ACTIONS(209), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(211), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(213), + [sym_quoted_argument] = STATE(82), + [sym_expansion] = STATE(82), + [sym_operator_expansion] = STATE(82), + [sym_command_substitution] = STATE(82), + [anon_sym_RBRACK] = ACTIONS(223), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(225), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(227), [sym_comment] = ACTIONS(71), }, [35] = { - [anon_sym_LT] = ACTIONS(215), - [anon_sym_GT] = ACTIONS(215), - [anon_sym_LT_AMP] = ACTIONS(215), - [anon_sym_GT_AMP] = ACTIONS(215), - [sym_file_descriptor] = ACTIONS(215), - [sym_leading_word] = ACTIONS(217), + [sym_quoted_argument] = STATE(82), + [sym_expansion] = STATE(82), + [sym_operator_expansion] = STATE(82), + [sym_command_substitution] = STATE(82), + [anon_sym_RBRACK_RBRACK] = ACTIONS(223), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(225), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(227), [sym_comment] = ACTIONS(71), }, [36] = { - [anon_sym_LT] = ACTIONS(219), - [anon_sym_GT] = ACTIONS(219), - [anon_sym_LT_AMP] = ACTIONS(219), - [anon_sym_GT_AMP] = ACTIONS(219), - [sym_file_descriptor] = ACTIONS(219), - [sym_leading_word] = ACTIONS(221), - [sym_comment] = ACTIONS(71), + [sym_expansion] = STATE(62), + [sym_operator_expansion] = STATE(62), + [sym_command_substitution] = STATE(62), + [aux_sym_quoted_argument_repeat1] = STATE(85), + [anon_sym_DQUOTE] = ACTIONS(229), + [sym__quoted_chars] = ACTIONS(183), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), }, [37] = { - [sym_file_descriptor] = ACTIONS(223), - [sym_word] = ACTIONS(225), + [sym_file_descriptor] = ACTIONS(231), + [anon_sym_LT] = ACTIONS(233), + [anon_sym_GT] = ACTIONS(233), + [anon_sym_GT_GT] = ACTIONS(233), + [anon_sym_AMP_GT] = ACTIONS(233), + [anon_sym_AMP_GT_GT] = ACTIONS(233), + [anon_sym_LT_AMP] = ACTIONS(233), + [anon_sym_GT_AMP] = ACTIONS(233), + [sym_leading_word] = ACTIONS(235), [sym_comment] = ACTIONS(71), }, [38] = { - [sym_quoted_argument] = STATE(81), - [sym_expansion] = STATE(81), - [sym_operator_expansion] = STATE(81), - [sym_command_substitution] = STATE(81), - [sym_file_redirect] = STATE(43), - [sym_heredoc_redirect] = STATE(43), - [aux_sym_bracket_command_repeat1] = STATE(86), - [aux_sym_command_repeat2] = STATE(87), - [anon_sym_SEMI_SEMI] = ACTIONS(227), - [anon_sym_PIPE] = ACTIONS(227), - [anon_sym_PIPE_AMP] = ACTIONS(227), - [anon_sym_AMP_AMP] = ACTIONS(227), - [anon_sym_PIPE_PIPE] = ACTIONS(227), - [anon_sym_DQUOTE] = ACTIONS(229), - [sym_single_quoted_argument] = ACTIONS(231), - [anon_sym_DOLLAR] = ACTIONS(233), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(235), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(237), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_word] = ACTIONS(239), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(227), - [anon_sym_LF] = ACTIONS(227), + [sym_word] = ACTIONS(237), + [sym_comment] = ACTIONS(71), }, [39] = { - [sym_quoted_argument] = STATE(89), - [sym_expansion] = STATE(89), - [sym_operator_expansion] = STATE(89), - [sym_command_substitution] = STATE(89), - [anon_sym_DQUOTE] = ACTIONS(241), - [sym_single_quoted_argument] = ACTIONS(243), - [anon_sym_DOLLAR] = ACTIONS(245), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(247), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(249), - [sym_word] = ACTIONS(251), + [sym_leading_word] = ACTIONS(239), [sym_comment] = ACTIONS(71), }, [40] = { - [sym_file_descriptor] = ACTIONS(253), - [sym_word] = ACTIONS(255), + [sym_command] = STATE(88), + [sym_environment_variable_assignment] = STATE(14), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(73), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(199), [sym_comment] = ACTIONS(71), }, [41] = { - [sym_heredoc] = STATE(98), - [sym__simple_heredoc] = ACTIONS(257), - [sym__heredoc_beginning] = ACTIONS(259), + [sym_file_descriptor] = ACTIONS(241), + [anon_sym_LT] = ACTIONS(243), + [anon_sym_GT] = ACTIONS(243), + [anon_sym_GT_GT] = ACTIONS(243), + [anon_sym_AMP_GT] = ACTIONS(243), + [anon_sym_AMP_GT_GT] = ACTIONS(243), + [anon_sym_LT_AMP] = ACTIONS(243), + [anon_sym_GT_AMP] = ACTIONS(243), + [sym_leading_word] = ACTIONS(245), [sym_comment] = ACTIONS(71), }, [42] = { - [anon_sym_LT] = ACTIONS(261), - [anon_sym_GT] = ACTIONS(261), - [anon_sym_LT_AMP] = ACTIONS(263), - [anon_sym_GT_AMP] = ACTIONS(263), + [anon_sym_LT] = ACTIONS(247), + [anon_sym_GT] = ACTIONS(247), + [anon_sym_GT_GT] = ACTIONS(249), + [anon_sym_AMP_GT] = ACTIONS(247), + [anon_sym_AMP_GT_GT] = ACTIONS(249), + [anon_sym_LT_AMP] = ACTIONS(249), + [anon_sym_GT_AMP] = ACTIONS(249), [sym_comment] = ACTIONS(71), }, [43] = { - [anon_sym_RPAREN] = ACTIONS(265), - [anon_sym_SEMI_SEMI] = ACTIONS(265), - [anon_sym_PIPE] = ACTIONS(265), - [anon_sym_PIPE_AMP] = ACTIONS(265), - [anon_sym_AMP_AMP] = ACTIONS(265), - [anon_sym_PIPE_PIPE] = ACTIONS(265), - [anon_sym_LT] = ACTIONS(265), - [anon_sym_GT] = ACTIONS(265), - [anon_sym_LT_AMP] = ACTIONS(265), - [anon_sym_GT_AMP] = ACTIONS(265), - [anon_sym_LT_LT] = ACTIONS(265), - [anon_sym_LT_LT_DASH] = ACTIONS(265), - [sym_file_descriptor] = ACTIONS(265), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(265), - [anon_sym_LF] = ACTIONS(265), + [sym_quoted_argument] = STATE(91), + [sym_expansion] = STATE(91), + [sym_operator_expansion] = STATE(91), + [sym_command_substitution] = STATE(91), + [sym_file_redirect] = STATE(47), + [sym_heredoc_redirect] = STATE(47), + [aux_sym_bracket_command_repeat1] = STATE(96), + [aux_sym_command_repeat2] = STATE(97), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_SEMI_SEMI] = ACTIONS(251), + [anon_sym_PIPE] = ACTIONS(251), + [anon_sym_PIPE_AMP] = ACTIONS(251), + [anon_sym_AMP_AMP] = ACTIONS(251), + [anon_sym_PIPE_PIPE] = ACTIONS(251), + [anon_sym_DQUOTE] = ACTIONS(253), + [sym_single_quoted_argument] = ACTIONS(255), + [anon_sym_DOLLAR] = ACTIONS(257), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(259), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(261), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_word] = ACTIONS(263), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(251), + [anon_sym_LF] = ACTIONS(251), }, [44] = { - [sym_file_redirect] = STATE(100), - [sym_heredoc_redirect] = STATE(100), - [anon_sym_SEMI_SEMI] = ACTIONS(227), - [anon_sym_PIPE] = ACTIONS(227), - [anon_sym_PIPE_AMP] = ACTIONS(227), - [anon_sym_AMP_AMP] = ACTIONS(227), - [anon_sym_PIPE_PIPE] = ACTIONS(227), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(227), - [anon_sym_LF] = ACTIONS(227), + [sym_quoted_argument] = STATE(99), + [sym_expansion] = STATE(99), + [sym_operator_expansion] = STATE(99), + [sym_command_substitution] = STATE(99), + [anon_sym_DQUOTE] = ACTIONS(265), + [sym_single_quoted_argument] = ACTIONS(267), + [anon_sym_DOLLAR] = ACTIONS(269), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(271), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(273), + [sym_word] = ACTIONS(275), + [sym_comment] = ACTIONS(71), }, [45] = { - [ts_builtin_sym_end] = ACTIONS(267), - [anon_sym_while] = ACTIONS(269), - [anon_sym_done] = ACTIONS(269), - [anon_sym_if] = ACTIONS(269), - [anon_sym_fi] = ACTIONS(269), - [anon_sym_elif] = ACTIONS(269), - [anon_sym_else] = ACTIONS(269), - [anon_sym_case] = ACTIONS(269), - [anon_sym_LBRACK] = ACTIONS(269), - [anon_sym_LBRACK_LBRACK] = ACTIONS(269), - [anon_sym_LT] = ACTIONS(269), - [anon_sym_GT] = ACTIONS(269), - [anon_sym_LT_AMP] = ACTIONS(269), - [anon_sym_GT_AMP] = ACTIONS(269), - [sym_file_descriptor] = ACTIONS(269), - [sym_leading_word] = ACTIONS(271), + [sym_quoted_argument] = STATE(105), + [sym_expansion] = STATE(105), + [sym_operator_expansion] = STATE(105), + [sym_command_substitution] = STATE(105), + [anon_sym_DQUOTE] = ACTIONS(277), + [sym_single_quoted_argument] = ACTIONS(279), + [anon_sym_DOLLAR] = ACTIONS(281), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(283), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(285), + [sym_word] = ACTIONS(287), [sym_comment] = ACTIONS(71), }, [46] = { - [sym_while_statement] = STATE(101), - [sym_if_statement] = STATE(101), - [sym_case_statement] = STATE(101), - [sym_bracket_command] = STATE(101), - [sym_command] = STATE(101), - [sym_pipeline] = STATE(101), - [sym_list] = STATE(101), - [sym_environment_variable_assignment] = STATE(102), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(91), + [sym_heredoc] = STATE(112), + [sym__simple_heredoc] = ACTIONS(289), + [sym__heredoc_beginning] = ACTIONS(291), [sym_comment] = ACTIONS(71), }, [47] = { - [sym_while_statement] = STATE(103), - [sym_if_statement] = STATE(103), - [sym_case_statement] = STATE(103), - [sym_bracket_command] = STATE(103), - [sym_command] = STATE(103), - [sym_pipeline] = STATE(103), - [sym_list] = STATE(103), - [sym_environment_variable_assignment] = STATE(104), + [sym_file_descriptor] = ACTIONS(293), + [anon_sym_RPAREN] = ACTIONS(295), + [anon_sym_SEMI_SEMI] = ACTIONS(295), + [anon_sym_PIPE] = ACTIONS(295), + [anon_sym_PIPE_AMP] = ACTIONS(295), + [anon_sym_AMP_AMP] = ACTIONS(295), + [anon_sym_PIPE_PIPE] = ACTIONS(295), + [anon_sym_LT] = ACTIONS(295), + [anon_sym_GT] = ACTIONS(295), + [anon_sym_GT_GT] = ACTIONS(295), + [anon_sym_AMP_GT] = ACTIONS(295), + [anon_sym_AMP_GT_GT] = ACTIONS(295), + [anon_sym_LT_AMP] = ACTIONS(295), + [anon_sym_GT_AMP] = ACTIONS(295), + [anon_sym_LT_LT] = ACTIONS(295), + [anon_sym_LT_LT_DASH] = ACTIONS(295), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(295), + [anon_sym_LF] = ACTIONS(295), + }, + [48] = { + [sym_file_redirect] = STATE(113), + [sym_heredoc_redirect] = STATE(113), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_SEMI_SEMI] = ACTIONS(251), + [anon_sym_PIPE] = ACTIONS(251), + [anon_sym_PIPE_AMP] = ACTIONS(251), + [anon_sym_AMP_AMP] = ACTIONS(251), + [anon_sym_PIPE_PIPE] = ACTIONS(251), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(251), + [anon_sym_LF] = ACTIONS(251), + }, + [49] = { + [sym_file_descriptor] = ACTIONS(297), + [ts_builtin_sym_end] = ACTIONS(297), + [anon_sym_while] = ACTIONS(299), + [anon_sym_done] = ACTIONS(299), + [anon_sym_if] = ACTIONS(299), + [anon_sym_fi] = ACTIONS(299), + [anon_sym_elif] = ACTIONS(299), + [anon_sym_else] = ACTIONS(299), + [anon_sym_case] = ACTIONS(299), + [anon_sym_LBRACK] = ACTIONS(299), + [anon_sym_LBRACK_LBRACK] = ACTIONS(299), + [anon_sym_LT] = ACTIONS(299), + [anon_sym_GT] = ACTIONS(299), + [anon_sym_GT_GT] = ACTIONS(299), + [anon_sym_AMP_GT] = ACTIONS(299), + [anon_sym_AMP_GT_GT] = ACTIONS(299), + [anon_sym_LT_AMP] = ACTIONS(299), + [anon_sym_GT_AMP] = ACTIONS(299), + [sym_leading_word] = ACTIONS(301), + [sym_comment] = ACTIONS(71), + }, + [50] = { + [sym_while_statement] = STATE(114), + [sym_if_statement] = STATE(114), + [sym_case_statement] = STATE(114), + [sym_bracket_command] = STATE(114), + [sym_command] = STATE(114), + [sym_pipeline] = STATE(114), + [sym_list] = STATE(114), + [sym_environment_variable_assignment] = STATE(115), [sym_file_redirect] = STATE(14), [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, - [48] = { - [ts_builtin_sym_end] = ACTIONS(273), - [anon_sym_while] = ACTIONS(275), - [anon_sym_done] = ACTIONS(275), - [anon_sym_if] = ACTIONS(275), - [anon_sym_fi] = ACTIONS(275), - [anon_sym_elif] = ACTIONS(275), - [anon_sym_else] = ACTIONS(275), - [anon_sym_case] = ACTIONS(275), - [anon_sym_LBRACK] = ACTIONS(275), - [anon_sym_LBRACK_LBRACK] = ACTIONS(275), - [anon_sym_LT] = ACTIONS(275), - [anon_sym_GT] = ACTIONS(275), - [anon_sym_LT_AMP] = ACTIONS(275), - [anon_sym_GT_AMP] = ACTIONS(275), - [sym_file_descriptor] = ACTIONS(275), - [sym_leading_word] = ACTIONS(277), - [sym_comment] = ACTIONS(71), - }, - [49] = { - [sym_file_redirect] = STATE(43), - [sym_heredoc_redirect] = STATE(43), - [aux_sym_command_repeat2] = STATE(107), - [anon_sym_RPAREN] = ACTIONS(279), - [anon_sym_SEMI_SEMI] = ACTIONS(279), - [aux_sym_SLASH_BSLASHs_PLUS_SLASH] = ACTIONS(281), - [anon_sym_PIPE] = ACTIONS(279), - [anon_sym_PIPE_AMP] = ACTIONS(279), - [anon_sym_AMP_AMP] = ACTIONS(279), - [anon_sym_PIPE_PIPE] = ACTIONS(279), - [anon_sym_EQ] = ACTIONS(283), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(279), - [anon_sym_LF] = ACTIONS(279), - }, - [50] = { - [anon_sym_LT] = ACTIONS(285), - [anon_sym_GT] = ACTIONS(285), - [anon_sym_LT_AMP] = ACTIONS(285), - [anon_sym_GT_AMP] = ACTIONS(285), - [sym_file_descriptor] = ACTIONS(285), - [sym_leading_word] = ACTIONS(287), - [sym_comment] = ACTIONS(71), - }, [51] = { - [sym__terminated_statement] = STATE(11), - [sym_while_statement] = STATE(12), - [sym_if_statement] = STATE(12), - [sym_case_statement] = STATE(12), - [sym_bracket_command] = STATE(12), - [sym_command] = STATE(12), - [sym_pipeline] = STATE(12), - [sym_list] = STATE(12), - [sym_environment_variable_assignment] = STATE(13), + [sym_while_statement] = STATE(116), + [sym_if_statement] = STATE(116), + [sym_case_statement] = STATE(116), + [sym_bracket_command] = STATE(116), + [sym_command] = STATE(116), + [sym_pipeline] = STATE(116), + [sym_list] = STATE(116), + [sym_environment_variable_assignment] = STATE(117), [sym_file_redirect] = STATE(14), - [aux_sym_program_repeat1] = STATE(109), [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_done] = ACTIONS(289), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, [52] = { - [anon_sym_SEMI_SEMI] = ACTIONS(291), - [anon_sym_PIPE] = ACTIONS(291), - [anon_sym_PIPE_AMP] = ACTIONS(291), - [anon_sym_AMP_AMP] = ACTIONS(291), - [anon_sym_PIPE_PIPE] = ACTIONS(291), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(291), - [anon_sym_LF] = ACTIONS(291), - }, - [53] = { - [anon_sym_do] = ACTIONS(267), - [anon_sym_then] = ACTIONS(267), + [sym_file_descriptor] = ACTIONS(303), + [ts_builtin_sym_end] = ACTIONS(303), + [anon_sym_while] = ACTIONS(305), + [anon_sym_done] = ACTIONS(305), + [anon_sym_if] = ACTIONS(305), + [anon_sym_fi] = ACTIONS(305), + [anon_sym_elif] = ACTIONS(305), + [anon_sym_else] = ACTIONS(305), + [anon_sym_case] = ACTIONS(305), + [anon_sym_LBRACK] = ACTIONS(305), + [anon_sym_LBRACK_LBRACK] = ACTIONS(305), + [anon_sym_LT] = ACTIONS(305), + [anon_sym_GT] = ACTIONS(305), + [anon_sym_GT_GT] = ACTIONS(305), + [anon_sym_AMP_GT] = ACTIONS(305), + [anon_sym_AMP_GT_GT] = ACTIONS(305), + [anon_sym_LT_AMP] = ACTIONS(305), + [anon_sym_GT_AMP] = ACTIONS(305), + [sym_leading_word] = ACTIONS(307), [sym_comment] = ACTIONS(71), }, + [53] = { + [sym_file_redirect] = STATE(47), + [sym_heredoc_redirect] = STATE(47), + [aux_sym_command_repeat2] = STATE(120), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_RPAREN] = ACTIONS(309), + [anon_sym_SEMI_SEMI] = ACTIONS(309), + [aux_sym_SLASH_BSLASHs_PLUS_SLASH] = ACTIONS(311), + [anon_sym_PIPE] = ACTIONS(309), + [anon_sym_PIPE_AMP] = ACTIONS(309), + [anon_sym_AMP_AMP] = ACTIONS(309), + [anon_sym_PIPE_PIPE] = ACTIONS(309), + [anon_sym_EQ] = ACTIONS(313), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(309), + [anon_sym_LF] = ACTIONS(309), + }, [54] = { + [sym_file_descriptor] = ACTIONS(315), + [anon_sym_LT] = ACTIONS(317), + [anon_sym_GT] = ACTIONS(317), + [anon_sym_GT_GT] = ACTIONS(317), + [anon_sym_AMP_GT] = ACTIONS(317), + [anon_sym_AMP_GT_GT] = ACTIONS(317), + [anon_sym_LT_AMP] = ACTIONS(317), + [anon_sym_GT_AMP] = ACTIONS(317), + [sym_leading_word] = ACTIONS(319), + [sym_comment] = ACTIONS(71), + }, + [55] = { + [sym_file_descriptor] = ACTIONS(321), + [anon_sym_LT] = ACTIONS(323), + [anon_sym_GT] = ACTIONS(323), + [anon_sym_GT_GT] = ACTIONS(323), + [anon_sym_AMP_GT] = ACTIONS(323), + [anon_sym_AMP_GT_GT] = ACTIONS(323), + [anon_sym_LT_AMP] = ACTIONS(323), + [anon_sym_GT_AMP] = ACTIONS(323), + [sym_leading_word] = ACTIONS(325), + [sym_comment] = ACTIONS(71), + }, + [56] = { + [sym_file_descriptor] = ACTIONS(327), + [anon_sym_LT] = ACTIONS(329), + [anon_sym_GT] = ACTIONS(329), + [anon_sym_GT_GT] = ACTIONS(329), + [anon_sym_AMP_GT] = ACTIONS(329), + [anon_sym_AMP_GT_GT] = ACTIONS(329), + [anon_sym_LT_AMP] = ACTIONS(329), + [anon_sym_GT_AMP] = ACTIONS(329), + [sym_leading_word] = ACTIONS(331), + [sym_comment] = ACTIONS(71), + }, + [57] = { [sym__terminated_statement] = STATE(11), [sym_while_statement] = STATE(12), [sym_if_statement] = STATE(12), - [sym_elif_clause] = STATE(113), - [sym_else_clause] = STATE(114), [sym_case_statement] = STATE(12), [sym_bracket_command] = STATE(12), [sym_command] = STATE(12), @@ -7328,694 +7584,846 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_list] = STATE(12), [sym_environment_variable_assignment] = STATE(13), [sym_file_redirect] = STATE(14), - [aux_sym_program_repeat1] = STATE(115), - [aux_sym_if_statement_repeat1] = STATE(116), + [aux_sym_program_repeat1] = STATE(122), [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_fi] = ACTIONS(293), - [anon_sym_elif] = ACTIONS(295), - [anon_sym_else] = ACTIONS(297), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_done] = ACTIONS(333), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, - [55] = { - [anon_sym_in] = ACTIONS(299), - [anon_sym_SEMI_SEMI] = ACTIONS(299), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(299), - [anon_sym_LF] = ACTIONS(299), - }, - [56] = { - [anon_sym_DQUOTE] = ACTIONS(301), - [sym__quoted_chars] = ACTIONS(303), - [anon_sym_DOLLAR] = ACTIONS(301), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(301), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(301), - [sym_comment] = ACTIONS(137), - }, - [57] = { - [sym_word] = ACTIONS(305), - [sym_comment] = ACTIONS(71), - }, [58] = { - [sym_leading_word] = ACTIONS(307), - [sym_comment] = ACTIONS(71), + [anon_sym_SEMI_SEMI] = ACTIONS(335), + [anon_sym_PIPE] = ACTIONS(335), + [anon_sym_PIPE_AMP] = ACTIONS(335), + [anon_sym_AMP_AMP] = ACTIONS(335), + [anon_sym_PIPE_PIPE] = ACTIONS(335), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(335), + [anon_sym_LF] = ACTIONS(335), }, [59] = { - [sym_command] = STATE(119), - [sym_environment_variable_assignment] = STATE(14), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(67), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(185), + [anon_sym_do] = ACTIONS(297), + [anon_sym_then] = ACTIONS(297), [sym_comment] = ACTIONS(71), }, [60] = { - [sym_expansion] = STATE(121), - [sym_operator_expansion] = STATE(121), - [sym_command_substitution] = STATE(121), - [anon_sym_DQUOTE] = ACTIONS(309), - [sym__quoted_chars] = ACTIONS(311), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), - }, - [61] = { - [anon_sym_SEMI_SEMI] = ACTIONS(313), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(313), - [anon_sym_LF] = ACTIONS(313), - }, - [62] = { - [anon_sym_in] = ACTIONS(315), + [sym__terminated_statement] = STATE(11), + [sym_while_statement] = STATE(12), + [sym_if_statement] = STATE(12), + [sym_elif_clause] = STATE(126), + [sym_else_clause] = STATE(127), + [sym_case_statement] = STATE(12), + [sym_bracket_command] = STATE(12), + [sym_command] = STATE(12), + [sym_pipeline] = STATE(12), + [sym_list] = STATE(12), + [sym_environment_variable_assignment] = STATE(13), + [sym_file_redirect] = STATE(14), + [aux_sym_program_repeat1] = STATE(128), + [aux_sym_if_statement_repeat1] = STATE(129), + [aux_sym_command_repeat1] = STATE(16), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_fi] = ACTIONS(337), + [anon_sym_elif] = ACTIONS(339), + [anon_sym_else] = ACTIONS(341), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, + [61] = { + [anon_sym_in] = ACTIONS(343), + [anon_sym_SEMI_SEMI] = ACTIONS(343), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(343), + [anon_sym_LF] = ACTIONS(343), + }, + [62] = { + [anon_sym_DQUOTE] = ACTIONS(345), + [sym__quoted_chars] = ACTIONS(347), + [anon_sym_DOLLAR] = ACTIONS(345), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(345), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(345), + [sym_comment] = ACTIONS(145), + }, [63] = { - [anon_sym_in] = ACTIONS(317), - [anon_sym_SEMI_SEMI] = ACTIONS(317), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(317), - [anon_sym_LF] = ACTIONS(317), + [sym_word] = ACTIONS(349), + [sym_comment] = ACTIONS(71), }, [64] = { - [anon_sym_EQ] = ACTIONS(319), - [anon_sym_COLON] = ACTIONS(321), - [anon_sym_COLON_QMARK] = ACTIONS(319), - [anon_sym_RBRACE] = ACTIONS(323), + [sym_leading_word] = ACTIONS(351), [sym_comment] = ACTIONS(71), }, [65] = { - [sym_file_redirect] = STATE(130), - [sym_heredoc_redirect] = STATE(130), - [aux_sym_command_repeat2] = STATE(131), - [anon_sym_RPAREN] = ACTIONS(125), - [aux_sym_SLASH_BSLASHs_PLUS_SLASH] = ACTIONS(325), - [anon_sym_EQ] = ACTIONS(283), - [anon_sym_LT] = ACTIONS(327), - [anon_sym_GT] = ACTIONS(327), - [anon_sym_LT_AMP] = ACTIONS(327), - [anon_sym_GT_AMP] = ACTIONS(327), - [anon_sym_LT_LT] = ACTIONS(329), - [anon_sym_LT_LT_DASH] = ACTIONS(329), - [sym_file_descriptor] = ACTIONS(331), - [sym_comment] = ACTIONS(137), + [sym_command] = STATE(132), + [sym_environment_variable_assignment] = STATE(14), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(73), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(199), + [sym_comment] = ACTIONS(71), }, [66] = { - [anon_sym_RPAREN] = ACTIONS(333), - [sym_comment] = ACTIONS(71), + [sym_expansion] = STATE(134), + [sym_operator_expansion] = STATE(134), + [sym_command_substitution] = STATE(134), + [anon_sym_DQUOTE] = ACTIONS(353), + [sym__quoted_chars] = ACTIONS(355), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), }, [67] = { - [sym_environment_variable_assignment] = STATE(50), - [sym_file_redirect] = STATE(50), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(335), - [sym_comment] = ACTIONS(71), + [anon_sym_SEMI_SEMI] = ACTIONS(357), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(357), + [anon_sym_LF] = ACTIONS(357), }, [68] = { - [anon_sym_SEMI_SEMI] = ACTIONS(337), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(337), - [anon_sym_LF] = ACTIONS(337), - }, - [69] = { - [anon_sym_in] = ACTIONS(339), + [anon_sym_in] = ACTIONS(359), [sym_comment] = ACTIONS(71), }, + [69] = { + [anon_sym_in] = ACTIONS(361), + [anon_sym_SEMI_SEMI] = ACTIONS(361), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(361), + [anon_sym_LF] = ACTIONS(361), + }, [70] = { - [anon_sym_RPAREN] = ACTIONS(341), - [anon_sym_RBRACK] = ACTIONS(343), - [anon_sym_RBRACK_RBRACK] = ACTIONS(343), - [anon_sym_DQUOTE] = ACTIONS(341), - [sym_single_quoted_argument] = ACTIONS(343), - [anon_sym_DOLLAR] = ACTIONS(343), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(341), - [anon_sym_RBRACE] = ACTIONS(341), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(341), - [anon_sym_LT] = ACTIONS(343), - [anon_sym_GT] = ACTIONS(343), - [anon_sym_LT_AMP] = ACTIONS(341), - [anon_sym_GT_AMP] = ACTIONS(341), - [anon_sym_LT_LT] = ACTIONS(343), - [anon_sym_LT_LT_DASH] = ACTIONS(341), - [sym_file_descriptor] = ACTIONS(343), - [sym_word] = ACTIONS(299), + [anon_sym_EQ] = ACTIONS(363), + [anon_sym_COLON] = ACTIONS(365), + [anon_sym_COLON_QMARK] = ACTIONS(363), + [anon_sym_RBRACE] = ACTIONS(367), [sym_comment] = ACTIONS(71), }, [71] = { - [sym_expansion] = STATE(121), - [sym_operator_expansion] = STATE(121), - [sym_command_substitution] = STATE(121), - [anon_sym_DQUOTE] = ACTIONS(345), - [sym__quoted_chars] = ACTIONS(311), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), + [sym_file_redirect] = STATE(143), + [sym_heredoc_redirect] = STATE(143), + [aux_sym_command_repeat2] = STATE(144), + [sym_file_descriptor] = ACTIONS(369), + [anon_sym_RPAREN] = ACTIONS(135), + [aux_sym_SLASH_BSLASHs_PLUS_SLASH] = ACTIONS(371), + [anon_sym_EQ] = ACTIONS(313), + [anon_sym_LT] = ACTIONS(373), + [anon_sym_GT] = ACTIONS(373), + [anon_sym_GT_GT] = ACTIONS(373), + [anon_sym_AMP_GT] = ACTIONS(373), + [anon_sym_AMP_GT_GT] = ACTIONS(373), + [anon_sym_LT_AMP] = ACTIONS(373), + [anon_sym_GT_AMP] = ACTIONS(373), + [anon_sym_LT_LT] = ACTIONS(375), + [anon_sym_LT_LT_DASH] = ACTIONS(375), + [sym_comment] = ACTIONS(145), }, [72] = { - [anon_sym_RPAREN] = ACTIONS(347), - [anon_sym_RBRACK] = ACTIONS(349), - [anon_sym_RBRACK_RBRACK] = ACTIONS(349), - [anon_sym_DQUOTE] = ACTIONS(347), - [sym_single_quoted_argument] = ACTIONS(349), - [anon_sym_DOLLAR] = ACTIONS(349), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(347), - [anon_sym_RBRACE] = ACTIONS(347), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(347), - [anon_sym_LT] = ACTIONS(349), - [anon_sym_GT] = ACTIONS(349), - [anon_sym_LT_AMP] = ACTIONS(347), - [anon_sym_GT_AMP] = ACTIONS(347), - [anon_sym_LT_LT] = ACTIONS(349), - [anon_sym_LT_LT_DASH] = ACTIONS(347), - [sym_file_descriptor] = ACTIONS(349), - [sym_word] = ACTIONS(317), + [anon_sym_RPAREN] = ACTIONS(377), [sym_comment] = ACTIONS(71), }, [73] = { - [anon_sym_EQ] = ACTIONS(351), - [anon_sym_COLON] = ACTIONS(353), - [anon_sym_COLON_QMARK] = ACTIONS(351), - [anon_sym_RBRACE] = ACTIONS(355), - [sym_comment] = ACTIONS(71), - }, - [74] = { - [anon_sym_RPAREN] = ACTIONS(357), - [sym_comment] = ACTIONS(71), - }, - [75] = { - [anon_sym_SEMI_SEMI] = ACTIONS(359), - [anon_sym_PIPE] = ACTIONS(359), - [anon_sym_PIPE_AMP] = ACTIONS(359), - [anon_sym_AMP_AMP] = ACTIONS(359), - [anon_sym_PIPE_PIPE] = ACTIONS(359), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(359), - [anon_sym_LF] = ACTIONS(359), - }, - [76] = { - [anon_sym_RPAREN] = ACTIONS(361), - [anon_sym_RBRACK] = ACTIONS(363), - [anon_sym_RBRACK_RBRACK] = ACTIONS(363), - [anon_sym_DQUOTE] = ACTIONS(361), - [sym_single_quoted_argument] = ACTIONS(363), - [anon_sym_DOLLAR] = ACTIONS(363), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(361), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(361), - [anon_sym_LT] = ACTIONS(363), - [anon_sym_GT] = ACTIONS(363), - [anon_sym_LT_AMP] = ACTIONS(361), - [anon_sym_GT_AMP] = ACTIONS(361), - [anon_sym_LT_LT] = ACTIONS(363), - [anon_sym_LT_LT_DASH] = ACTIONS(361), - [sym_file_descriptor] = ACTIONS(363), - [sym_word] = ACTIONS(365), - [sym_comment] = ACTIONS(71), - }, - [77] = { - [anon_sym_RPAREN] = ACTIONS(367), - [anon_sym_RBRACK] = ACTIONS(369), - [anon_sym_RBRACK_RBRACK] = ACTIONS(369), - [anon_sym_DQUOTE] = ACTIONS(367), - [sym_single_quoted_argument] = ACTIONS(369), - [anon_sym_DOLLAR] = ACTIONS(369), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(367), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(367), - [anon_sym_LT] = ACTIONS(369), - [anon_sym_GT] = ACTIONS(369), - [anon_sym_LT_AMP] = ACTIONS(367), - [anon_sym_GT_AMP] = ACTIONS(367), - [anon_sym_LT_LT] = ACTIONS(369), - [anon_sym_LT_LT_DASH] = ACTIONS(367), - [sym_file_descriptor] = ACTIONS(369), - [sym_word] = ACTIONS(371), - [sym_comment] = ACTIONS(71), - }, - [78] = { - [anon_sym_LT] = ACTIONS(373), - [anon_sym_GT] = ACTIONS(373), - [anon_sym_LT_AMP] = ACTIONS(373), - [anon_sym_GT_AMP] = ACTIONS(373), - [sym_file_descriptor] = ACTIONS(373), - [sym_leading_word] = ACTIONS(375), - [sym_comment] = ACTIONS(71), - }, - [79] = { - [anon_sym_LT] = ACTIONS(377), - [anon_sym_GT] = ACTIONS(377), - [anon_sym_LT_AMP] = ACTIONS(377), - [anon_sym_GT_AMP] = ACTIONS(377), - [sym_file_descriptor] = ACTIONS(377), + [sym_environment_variable_assignment] = STATE(54), + [sym_file_redirect] = STATE(54), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(379), [sym_comment] = ACTIONS(71), }, + [74] = { + [anon_sym_SEMI_SEMI] = ACTIONS(381), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(381), + [anon_sym_LF] = ACTIONS(381), + }, + [75] = { + [anon_sym_in] = ACTIONS(383), + [sym_comment] = ACTIONS(71), + }, + [76] = { + [anon_sym_RPAREN] = ACTIONS(385), + [anon_sym_RBRACK] = ACTIONS(387), + [anon_sym_RBRACK_RBRACK] = ACTIONS(387), + [anon_sym_DQUOTE] = ACTIONS(385), + [sym_single_quoted_argument] = ACTIONS(387), + [anon_sym_DOLLAR] = ACTIONS(387), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(385), + [anon_sym_RBRACE] = ACTIONS(385), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(385), + [sym_word] = ACTIONS(343), + [sym_comment] = ACTIONS(71), + }, + [77] = { + [sym_expansion] = STATE(134), + [sym_operator_expansion] = STATE(134), + [sym_command_substitution] = STATE(134), + [anon_sym_DQUOTE] = ACTIONS(389), + [sym__quoted_chars] = ACTIONS(355), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), + }, + [78] = { + [anon_sym_RPAREN] = ACTIONS(391), + [anon_sym_RBRACK] = ACTIONS(393), + [anon_sym_RBRACK_RBRACK] = ACTIONS(393), + [anon_sym_DQUOTE] = ACTIONS(391), + [sym_single_quoted_argument] = ACTIONS(393), + [anon_sym_DOLLAR] = ACTIONS(393), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(391), + [anon_sym_RBRACE] = ACTIONS(391), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(391), + [sym_word] = ACTIONS(361), + [sym_comment] = ACTIONS(71), + }, + [79] = { + [anon_sym_EQ] = ACTIONS(395), + [anon_sym_COLON] = ACTIONS(397), + [anon_sym_COLON_QMARK] = ACTIONS(395), + [anon_sym_RBRACE] = ACTIONS(399), + [sym_comment] = ACTIONS(71), + }, [80] = { - [sym_expansion] = STATE(56), - [sym_operator_expansion] = STATE(56), - [sym_command_substitution] = STATE(56), - [aux_sym_quoted_argument_repeat1] = STATE(141), - [anon_sym_DQUOTE] = ACTIONS(381), - [sym__quoted_chars] = ACTIONS(169), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), + [anon_sym_RPAREN] = ACTIONS(401), + [sym_comment] = ACTIONS(71), }, [81] = { - [anon_sym_RPAREN] = ACTIONS(197), - [anon_sym_SEMI_SEMI] = ACTIONS(197), - [anon_sym_PIPE] = ACTIONS(197), - [anon_sym_PIPE_AMP] = ACTIONS(197), - [anon_sym_AMP_AMP] = ACTIONS(197), - [anon_sym_PIPE_PIPE] = ACTIONS(197), - [anon_sym_DQUOTE] = ACTIONS(197), - [sym_single_quoted_argument] = ACTIONS(197), - [anon_sym_DOLLAR] = ACTIONS(197), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(197), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(197), - [anon_sym_LT] = ACTIONS(197), - [anon_sym_GT] = ACTIONS(197), - [anon_sym_LT_AMP] = ACTIONS(197), - [anon_sym_GT_AMP] = ACTIONS(197), - [anon_sym_LT_LT] = ACTIONS(197), - [anon_sym_LT_LT_DASH] = ACTIONS(197), - [sym_file_descriptor] = ACTIONS(197), - [sym_word] = ACTIONS(197), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(197), - [anon_sym_LF] = ACTIONS(197), + [anon_sym_SEMI_SEMI] = ACTIONS(403), + [anon_sym_PIPE] = ACTIONS(403), + [anon_sym_PIPE_AMP] = ACTIONS(403), + [anon_sym_AMP_AMP] = ACTIONS(403), + [anon_sym_PIPE_PIPE] = ACTIONS(403), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(403), + [anon_sym_LF] = ACTIONS(403), }, [82] = { - [sym_word] = ACTIONS(383), + [anon_sym_RBRACK] = ACTIONS(405), + [anon_sym_RBRACK_RBRACK] = ACTIONS(405), + [anon_sym_DQUOTE] = ACTIONS(407), + [sym_single_quoted_argument] = ACTIONS(405), + [anon_sym_DOLLAR] = ACTIONS(405), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(407), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(407), + [sym_word] = ACTIONS(409), [sym_comment] = ACTIONS(71), }, [83] = { - [sym_leading_word] = ACTIONS(385), + [anon_sym_RBRACK] = ACTIONS(411), + [anon_sym_RBRACK_RBRACK] = ACTIONS(411), + [anon_sym_DQUOTE] = ACTIONS(413), + [sym_single_quoted_argument] = ACTIONS(411), + [anon_sym_DOLLAR] = ACTIONS(411), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(413), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(413), + [sym_word] = ACTIONS(415), [sym_comment] = ACTIONS(71), }, [84] = { - [sym_command] = STATE(144), - [sym_environment_variable_assignment] = STATE(14), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(67), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(185), + [sym_file_descriptor] = ACTIONS(385), + [anon_sym_LT] = ACTIONS(387), + [anon_sym_GT] = ACTIONS(387), + [anon_sym_GT_GT] = ACTIONS(387), + [anon_sym_AMP_GT] = ACTIONS(387), + [anon_sym_AMP_GT_GT] = ACTIONS(387), + [anon_sym_LT_AMP] = ACTIONS(387), + [anon_sym_GT_AMP] = ACTIONS(387), + [sym_leading_word] = ACTIONS(343), [sym_comment] = ACTIONS(71), }, [85] = { - [anon_sym_RPAREN] = ACTIONS(207), - [anon_sym_SEMI_SEMI] = ACTIONS(207), - [anon_sym_PIPE] = ACTIONS(207), - [anon_sym_PIPE_AMP] = ACTIONS(207), - [anon_sym_AMP_AMP] = ACTIONS(207), - [anon_sym_PIPE_PIPE] = ACTIONS(207), - [anon_sym_DQUOTE] = ACTIONS(207), - [sym_single_quoted_argument] = ACTIONS(207), - [anon_sym_DOLLAR] = ACTIONS(207), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(207), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(207), - [anon_sym_LT] = ACTIONS(207), - [anon_sym_GT] = ACTIONS(207), - [anon_sym_LT_AMP] = ACTIONS(207), - [anon_sym_GT_AMP] = ACTIONS(207), - [anon_sym_LT_LT] = ACTIONS(207), - [anon_sym_LT_LT_DASH] = ACTIONS(207), - [sym_file_descriptor] = ACTIONS(207), - [sym_word] = ACTIONS(207), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(207), - [anon_sym_LF] = ACTIONS(207), + [sym_expansion] = STATE(134), + [sym_operator_expansion] = STATE(134), + [sym_command_substitution] = STATE(134), + [anon_sym_DQUOTE] = ACTIONS(417), + [sym__quoted_chars] = ACTIONS(355), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), }, [86] = { - [sym_quoted_argument] = STATE(145), - [sym_expansion] = STATE(145), - [sym_operator_expansion] = STATE(145), - [sym_command_substitution] = STATE(145), - [sym_file_redirect] = STATE(43), - [sym_heredoc_redirect] = STATE(43), - [aux_sym_command_repeat2] = STATE(147), - [anon_sym_SEMI_SEMI] = ACTIONS(387), - [anon_sym_PIPE] = ACTIONS(387), - [anon_sym_PIPE_AMP] = ACTIONS(387), - [anon_sym_AMP_AMP] = ACTIONS(387), - [anon_sym_PIPE_PIPE] = ACTIONS(387), - [anon_sym_DQUOTE] = ACTIONS(229), - [sym_single_quoted_argument] = ACTIONS(389), - [anon_sym_DOLLAR] = ACTIONS(233), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(235), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(237), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_word] = ACTIONS(391), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(387), - [anon_sym_LF] = ACTIONS(387), + [sym_file_descriptor] = ACTIONS(391), + [anon_sym_LT] = ACTIONS(393), + [anon_sym_GT] = ACTIONS(393), + [anon_sym_GT_GT] = ACTIONS(393), + [anon_sym_AMP_GT] = ACTIONS(393), + [anon_sym_AMP_GT_GT] = ACTIONS(393), + [anon_sym_LT_AMP] = ACTIONS(393), + [anon_sym_GT_AMP] = ACTIONS(393), + [sym_leading_word] = ACTIONS(361), + [sym_comment] = ACTIONS(71), }, [87] = { - [sym_file_redirect] = STATE(100), - [sym_heredoc_redirect] = STATE(100), - [anon_sym_SEMI_SEMI] = ACTIONS(387), - [anon_sym_PIPE] = ACTIONS(387), - [anon_sym_PIPE_AMP] = ACTIONS(387), - [anon_sym_AMP_AMP] = ACTIONS(387), - [anon_sym_PIPE_PIPE] = ACTIONS(387), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(387), - [anon_sym_LF] = ACTIONS(387), + [anon_sym_EQ] = ACTIONS(419), + [anon_sym_COLON] = ACTIONS(421), + [anon_sym_COLON_QMARK] = ACTIONS(419), + [anon_sym_RBRACE] = ACTIONS(423), + [sym_comment] = ACTIONS(71), }, [88] = { - [sym_expansion] = STATE(56), - [sym_operator_expansion] = STATE(56), - [sym_command_substitution] = STATE(56), - [aux_sym_quoted_argument_repeat1] = STATE(149), - [anon_sym_DQUOTE] = ACTIONS(393), - [sym__quoted_chars] = ACTIONS(169), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), + [anon_sym_RPAREN] = ACTIONS(425), + [sym_comment] = ACTIONS(71), }, [89] = { - [anon_sym_SEMI_SEMI] = ACTIONS(395), - [anon_sym_PIPE] = ACTIONS(395), - [anon_sym_PIPE_AMP] = ACTIONS(395), - [anon_sym_AMP_AMP] = ACTIONS(395), - [anon_sym_PIPE_PIPE] = ACTIONS(395), - [anon_sym_LT] = ACTIONS(395), - [anon_sym_GT] = ACTIONS(395), - [anon_sym_LT_AMP] = ACTIONS(395), - [anon_sym_GT_AMP] = ACTIONS(395), - [sym_file_descriptor] = ACTIONS(395), - [sym_leading_word] = ACTIONS(395), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(395), - [anon_sym_LF] = ACTIONS(395), + [sym_quoted_argument] = STATE(157), + [sym_expansion] = STATE(157), + [sym_operator_expansion] = STATE(157), + [sym_command_substitution] = STATE(157), + [anon_sym_DQUOTE] = ACTIONS(277), + [sym_single_quoted_argument] = ACTIONS(427), + [anon_sym_DOLLAR] = ACTIONS(281), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(283), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(285), + [sym_word] = ACTIONS(429), + [sym_comment] = ACTIONS(71), }, [90] = { - [sym_word] = ACTIONS(397), - [sym_comment] = ACTIONS(71), + [sym_expansion] = STATE(62), + [sym_operator_expansion] = STATE(62), + [sym_command_substitution] = STATE(62), + [aux_sym_quoted_argument_repeat1] = STATE(160), + [anon_sym_DQUOTE] = ACTIONS(431), + [sym__quoted_chars] = ACTIONS(183), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), }, [91] = { - [sym_leading_word] = ACTIONS(399), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(209), + [anon_sym_RPAREN] = ACTIONS(211), + [anon_sym_SEMI_SEMI] = ACTIONS(211), + [anon_sym_PIPE] = ACTIONS(211), + [anon_sym_PIPE_AMP] = ACTIONS(211), + [anon_sym_AMP_AMP] = ACTIONS(211), + [anon_sym_PIPE_PIPE] = ACTIONS(211), + [anon_sym_DQUOTE] = ACTIONS(211), + [sym_single_quoted_argument] = ACTIONS(211), + [anon_sym_DOLLAR] = ACTIONS(211), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(211), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(211), + [anon_sym_LT] = ACTIONS(211), + [anon_sym_GT] = ACTIONS(211), + [anon_sym_GT_GT] = ACTIONS(211), + [anon_sym_AMP_GT] = ACTIONS(211), + [anon_sym_AMP_GT_GT] = ACTIONS(211), + [anon_sym_LT_AMP] = ACTIONS(211), + [anon_sym_GT_AMP] = ACTIONS(211), + [anon_sym_LT_LT] = ACTIONS(211), + [anon_sym_LT_LT_DASH] = ACTIONS(211), + [sym_word] = ACTIONS(211), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(211), + [anon_sym_LF] = ACTIONS(211), }, [92] = { - [sym_command] = STATE(152), - [sym_environment_variable_assignment] = STATE(14), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(67), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(185), + [sym_word] = ACTIONS(433), [sym_comment] = ACTIONS(71), }, [93] = { - [anon_sym_SEMI_SEMI] = ACTIONS(401), - [anon_sym_PIPE] = ACTIONS(401), - [anon_sym_PIPE_AMP] = ACTIONS(401), - [anon_sym_AMP_AMP] = ACTIONS(401), - [anon_sym_PIPE_PIPE] = ACTIONS(401), - [anon_sym_LT] = ACTIONS(401), - [anon_sym_GT] = ACTIONS(401), - [anon_sym_LT_AMP] = ACTIONS(401), - [anon_sym_GT_AMP] = ACTIONS(401), - [sym_file_descriptor] = ACTIONS(401), - [sym_leading_word] = ACTIONS(401), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(401), - [anon_sym_LF] = ACTIONS(401), + [sym_leading_word] = ACTIONS(435), + [sym_comment] = ACTIONS(71), }, [94] = { - [anon_sym_RPAREN] = ACTIONS(217), - [anon_sym_SEMI_SEMI] = ACTIONS(217), - [anon_sym_PIPE] = ACTIONS(217), - [anon_sym_PIPE_AMP] = ACTIONS(217), - [anon_sym_AMP_AMP] = ACTIONS(217), - [anon_sym_PIPE_PIPE] = ACTIONS(217), - [anon_sym_LT] = ACTIONS(217), - [anon_sym_GT] = ACTIONS(217), - [anon_sym_LT_AMP] = ACTIONS(217), - [anon_sym_GT_AMP] = ACTIONS(217), - [anon_sym_LT_LT] = ACTIONS(217), - [anon_sym_LT_LT_DASH] = ACTIONS(217), - [sym_file_descriptor] = ACTIONS(217), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(217), - [anon_sym_LF] = ACTIONS(217), + [sym_command] = STATE(163), + [sym_environment_variable_assignment] = STATE(14), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(73), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(199), + [sym_comment] = ACTIONS(71), }, [95] = { + [sym_file_descriptor] = ACTIONS(219), [anon_sym_RPAREN] = ACTIONS(221), [anon_sym_SEMI_SEMI] = ACTIONS(221), [anon_sym_PIPE] = ACTIONS(221), [anon_sym_PIPE_AMP] = ACTIONS(221), [anon_sym_AMP_AMP] = ACTIONS(221), [anon_sym_PIPE_PIPE] = ACTIONS(221), + [anon_sym_DQUOTE] = ACTIONS(221), + [sym_single_quoted_argument] = ACTIONS(221), + [anon_sym_DOLLAR] = ACTIONS(221), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(221), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(221), [anon_sym_LT] = ACTIONS(221), [anon_sym_GT] = ACTIONS(221), + [anon_sym_GT_GT] = ACTIONS(221), + [anon_sym_AMP_GT] = ACTIONS(221), + [anon_sym_AMP_GT_GT] = ACTIONS(221), [anon_sym_LT_AMP] = ACTIONS(221), [anon_sym_GT_AMP] = ACTIONS(221), [anon_sym_LT_LT] = ACTIONS(221), [anon_sym_LT_LT_DASH] = ACTIONS(221), - [sym_file_descriptor] = ACTIONS(221), - [sym_comment] = ACTIONS(137), + [sym_word] = ACTIONS(221), + [sym_comment] = ACTIONS(145), [anon_sym_SEMI] = ACTIONS(221), [anon_sym_LF] = ACTIONS(221), }, [96] = { - [anon_sym_RPAREN] = ACTIONS(403), - [anon_sym_SEMI_SEMI] = ACTIONS(403), - [anon_sym_PIPE] = ACTIONS(403), - [anon_sym_PIPE_AMP] = ACTIONS(403), - [anon_sym_AMP_AMP] = ACTIONS(403), - [anon_sym_PIPE_PIPE] = ACTIONS(403), - [anon_sym_LT] = ACTIONS(403), - [anon_sym_GT] = ACTIONS(403), - [anon_sym_LT_AMP] = ACTIONS(403), - [anon_sym_GT_AMP] = ACTIONS(403), - [anon_sym_LT_LT] = ACTIONS(403), - [anon_sym_LT_LT_DASH] = ACTIONS(403), - [sym_file_descriptor] = ACTIONS(403), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(403), - [anon_sym_LF] = ACTIONS(403), + [sym_quoted_argument] = STATE(164), + [sym_expansion] = STATE(164), + [sym_operator_expansion] = STATE(164), + [sym_command_substitution] = STATE(164), + [sym_file_redirect] = STATE(47), + [sym_heredoc_redirect] = STATE(47), + [aux_sym_command_repeat2] = STATE(166), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_SEMI_SEMI] = ACTIONS(437), + [anon_sym_PIPE] = ACTIONS(437), + [anon_sym_PIPE_AMP] = ACTIONS(437), + [anon_sym_AMP_AMP] = ACTIONS(437), + [anon_sym_PIPE_PIPE] = ACTIONS(437), + [anon_sym_DQUOTE] = ACTIONS(253), + [sym_single_quoted_argument] = ACTIONS(439), + [anon_sym_DOLLAR] = ACTIONS(257), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(259), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(261), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_word] = ACTIONS(441), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(437), + [anon_sym_LF] = ACTIONS(437), }, [97] = { - [sym_expansion] = STATE(153), - [sym_operator_expansion] = STATE(153), - [aux_sym_heredoc_repeat1] = STATE(157), - [sym__heredoc_middle] = ACTIONS(405), - [sym__heredoc_end] = ACTIONS(407), - [anon_sym_DOLLAR] = ACTIONS(409), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(411), - [sym_comment] = ACTIONS(71), + [sym_file_redirect] = STATE(113), + [sym_heredoc_redirect] = STATE(113), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_SEMI_SEMI] = ACTIONS(437), + [anon_sym_PIPE] = ACTIONS(437), + [anon_sym_PIPE_AMP] = ACTIONS(437), + [anon_sym_AMP_AMP] = ACTIONS(437), + [anon_sym_PIPE_PIPE] = ACTIONS(437), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(437), + [anon_sym_LF] = ACTIONS(437), }, [98] = { - [anon_sym_RPAREN] = ACTIONS(413), - [anon_sym_SEMI_SEMI] = ACTIONS(413), - [anon_sym_PIPE] = ACTIONS(413), - [anon_sym_PIPE_AMP] = ACTIONS(413), - [anon_sym_AMP_AMP] = ACTIONS(413), - [anon_sym_PIPE_PIPE] = ACTIONS(413), - [anon_sym_LT] = ACTIONS(413), - [anon_sym_GT] = ACTIONS(413), - [anon_sym_LT_AMP] = ACTIONS(413), - [anon_sym_GT_AMP] = ACTIONS(413), - [anon_sym_LT_LT] = ACTIONS(413), - [anon_sym_LT_LT_DASH] = ACTIONS(413), - [sym_file_descriptor] = ACTIONS(413), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(413), - [anon_sym_LF] = ACTIONS(413), + [sym_expansion] = STATE(62), + [sym_operator_expansion] = STATE(62), + [sym_command_substitution] = STATE(62), + [aux_sym_quoted_argument_repeat1] = STATE(168), + [anon_sym_DQUOTE] = ACTIONS(443), + [sym__quoted_chars] = ACTIONS(183), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), }, [99] = { - [sym_file_descriptor] = ACTIONS(415), - [sym_word] = ACTIONS(417), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(445), + [anon_sym_SEMI_SEMI] = ACTIONS(447), + [anon_sym_PIPE] = ACTIONS(447), + [anon_sym_PIPE_AMP] = ACTIONS(447), + [anon_sym_AMP_AMP] = ACTIONS(447), + [anon_sym_PIPE_PIPE] = ACTIONS(447), + [anon_sym_LT] = ACTIONS(447), + [anon_sym_GT] = ACTIONS(447), + [anon_sym_GT_GT] = ACTIONS(447), + [anon_sym_AMP_GT] = ACTIONS(447), + [anon_sym_AMP_GT_GT] = ACTIONS(447), + [anon_sym_LT_AMP] = ACTIONS(447), + [anon_sym_GT_AMP] = ACTIONS(447), + [sym_leading_word] = ACTIONS(447), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(447), + [anon_sym_LF] = ACTIONS(447), }, [100] = { - [anon_sym_RPAREN] = ACTIONS(419), - [anon_sym_SEMI_SEMI] = ACTIONS(419), - [anon_sym_PIPE] = ACTIONS(419), - [anon_sym_PIPE_AMP] = ACTIONS(419), - [anon_sym_AMP_AMP] = ACTIONS(419), - [anon_sym_PIPE_PIPE] = ACTIONS(419), - [anon_sym_LT] = ACTIONS(419), - [anon_sym_GT] = ACTIONS(419), - [anon_sym_LT_AMP] = ACTIONS(419), - [anon_sym_GT_AMP] = ACTIONS(419), - [anon_sym_LT_LT] = ACTIONS(419), - [anon_sym_LT_LT_DASH] = ACTIONS(419), - [sym_file_descriptor] = ACTIONS(419), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(419), - [anon_sym_LF] = ACTIONS(419), + [sym_word] = ACTIONS(449), + [sym_comment] = ACTIONS(71), }, [101] = { - [anon_sym_SEMI_SEMI] = ACTIONS(421), - [anon_sym_PIPE] = ACTIONS(421), - [anon_sym_PIPE_AMP] = ACTIONS(421), - [anon_sym_AMP_AMP] = ACTIONS(421), - [anon_sym_PIPE_PIPE] = ACTIONS(421), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(421), - [anon_sym_LF] = ACTIONS(421), + [sym_leading_word] = ACTIONS(451), + [sym_comment] = ACTIONS(71), }, [102] = { - [anon_sym_SEMI_SEMI] = ACTIONS(421), - [anon_sym_PIPE] = ACTIONS(421), - [anon_sym_PIPE_AMP] = ACTIONS(421), - [anon_sym_AMP_AMP] = ACTIONS(421), - [anon_sym_PIPE_PIPE] = ACTIONS(421), - [anon_sym_LT] = ACTIONS(153), - [anon_sym_GT] = ACTIONS(153), - [anon_sym_LT_AMP] = ACTIONS(153), - [anon_sym_GT_AMP] = ACTIONS(153), - [sym_file_descriptor] = ACTIONS(153), - [sym_leading_word] = ACTIONS(153), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(421), - [anon_sym_LF] = ACTIONS(421), + [sym_command] = STATE(171), + [sym_environment_variable_assignment] = STATE(14), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(73), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(199), + [sym_comment] = ACTIONS(71), }, [103] = { - [anon_sym_SEMI_SEMI] = ACTIONS(423), - [anon_sym_PIPE] = ACTIONS(149), - [anon_sym_PIPE_AMP] = ACTIONS(149), - [anon_sym_AMP_AMP] = ACTIONS(423), - [anon_sym_PIPE_PIPE] = ACTIONS(423), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(423), - [anon_sym_LF] = ACTIONS(423), + [sym_file_descriptor] = ACTIONS(453), + [anon_sym_SEMI_SEMI] = ACTIONS(455), + [anon_sym_PIPE] = ACTIONS(455), + [anon_sym_PIPE_AMP] = ACTIONS(455), + [anon_sym_AMP_AMP] = ACTIONS(455), + [anon_sym_PIPE_PIPE] = ACTIONS(455), + [anon_sym_LT] = ACTIONS(455), + [anon_sym_GT] = ACTIONS(455), + [anon_sym_GT_GT] = ACTIONS(455), + [anon_sym_AMP_GT] = ACTIONS(455), + [anon_sym_AMP_GT_GT] = ACTIONS(455), + [anon_sym_LT_AMP] = ACTIONS(455), + [anon_sym_GT_AMP] = ACTIONS(455), + [sym_leading_word] = ACTIONS(455), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(455), + [anon_sym_LF] = ACTIONS(455), }, [104] = { - [anon_sym_SEMI_SEMI] = ACTIONS(423), - [anon_sym_PIPE] = ACTIONS(149), - [anon_sym_PIPE_AMP] = ACTIONS(149), - [anon_sym_AMP_AMP] = ACTIONS(423), - [anon_sym_PIPE_PIPE] = ACTIONS(423), - [anon_sym_LT] = ACTIONS(153), - [anon_sym_GT] = ACTIONS(153), - [anon_sym_LT_AMP] = ACTIONS(153), - [anon_sym_GT_AMP] = ACTIONS(153), - [sym_file_descriptor] = ACTIONS(153), - [sym_leading_word] = ACTIONS(153), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(423), - [anon_sym_LF] = ACTIONS(423), + [sym_expansion] = STATE(62), + [sym_operator_expansion] = STATE(62), + [sym_command_substitution] = STATE(62), + [aux_sym_quoted_argument_repeat1] = STATE(173), + [anon_sym_DQUOTE] = ACTIONS(457), + [sym__quoted_chars] = ACTIONS(183), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), }, [105] = { - [sym_quoted_argument] = STATE(81), - [sym_expansion] = STATE(81), - [sym_operator_expansion] = STATE(81), - [sym_command_substitution] = STATE(81), - [sym_file_redirect] = STATE(43), - [sym_heredoc_redirect] = STATE(43), - [aux_sym_bracket_command_repeat1] = STATE(160), - [aux_sym_command_repeat2] = STATE(161), - [anon_sym_RPAREN] = ACTIONS(425), - [anon_sym_SEMI_SEMI] = ACTIONS(425), - [anon_sym_PIPE] = ACTIONS(425), - [anon_sym_PIPE_AMP] = ACTIONS(425), - [anon_sym_AMP_AMP] = ACTIONS(425), - [anon_sym_PIPE_PIPE] = ACTIONS(425), - [anon_sym_DQUOTE] = ACTIONS(229), - [sym_single_quoted_argument] = ACTIONS(231), - [anon_sym_DOLLAR] = ACTIONS(233), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(235), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(237), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_word] = ACTIONS(239), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(425), - [anon_sym_LF] = ACTIONS(425), + [sym_file_descriptor] = ACTIONS(231), + [anon_sym_RPAREN] = ACTIONS(235), + [anon_sym_SEMI_SEMI] = ACTIONS(235), + [anon_sym_PIPE] = ACTIONS(235), + [anon_sym_PIPE_AMP] = ACTIONS(235), + [anon_sym_AMP_AMP] = ACTIONS(235), + [anon_sym_PIPE_PIPE] = ACTIONS(235), + [anon_sym_LT] = ACTIONS(235), + [anon_sym_GT] = ACTIONS(235), + [anon_sym_GT_GT] = ACTIONS(235), + [anon_sym_AMP_GT] = ACTIONS(235), + [anon_sym_AMP_GT_GT] = ACTIONS(235), + [anon_sym_LT_AMP] = ACTIONS(235), + [anon_sym_GT_AMP] = ACTIONS(235), + [anon_sym_LT_LT] = ACTIONS(235), + [anon_sym_LT_LT_DASH] = ACTIONS(235), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(235), + [anon_sym_LF] = ACTIONS(235), }, [106] = { - [sym_quoted_argument] = STATE(163), - [sym_expansion] = STATE(163), - [sym_operator_expansion] = STATE(163), - [sym_command_substitution] = STATE(163), - [anon_sym_DQUOTE] = ACTIONS(427), - [sym_single_quoted_argument] = ACTIONS(429), - [anon_sym_DOLLAR] = ACTIONS(431), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(433), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(435), - [sym_word] = ACTIONS(437), + [sym_word] = ACTIONS(459), [sym_comment] = ACTIONS(71), }, [107] = { - [sym_file_redirect] = STATE(100), - [sym_heredoc_redirect] = STATE(100), - [anon_sym_RPAREN] = ACTIONS(425), - [anon_sym_SEMI_SEMI] = ACTIONS(425), - [anon_sym_PIPE] = ACTIONS(425), - [anon_sym_PIPE_AMP] = ACTIONS(425), - [anon_sym_AMP_AMP] = ACTIONS(425), - [anon_sym_PIPE_PIPE] = ACTIONS(425), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(425), - [anon_sym_LF] = ACTIONS(425), + [sym_leading_word] = ACTIONS(461), + [sym_comment] = ACTIONS(71), }, [108] = { - [anon_sym_SEMI_SEMI] = ACTIONS(439), - [anon_sym_PIPE] = ACTIONS(439), - [anon_sym_PIPE_AMP] = ACTIONS(439), - [anon_sym_AMP_AMP] = ACTIONS(439), - [anon_sym_PIPE_PIPE] = ACTIONS(439), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(439), - [anon_sym_LF] = ACTIONS(439), + [sym_command] = STATE(176), + [sym_environment_variable_assignment] = STATE(14), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(73), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(199), + [sym_comment] = ACTIONS(71), }, [109] = { - [sym__terminated_statement] = STATE(48), + [sym_file_descriptor] = ACTIONS(241), + [anon_sym_RPAREN] = ACTIONS(245), + [anon_sym_SEMI_SEMI] = ACTIONS(245), + [anon_sym_PIPE] = ACTIONS(245), + [anon_sym_PIPE_AMP] = ACTIONS(245), + [anon_sym_AMP_AMP] = ACTIONS(245), + [anon_sym_PIPE_PIPE] = ACTIONS(245), + [anon_sym_LT] = ACTIONS(245), + [anon_sym_GT] = ACTIONS(245), + [anon_sym_GT_GT] = ACTIONS(245), + [anon_sym_AMP_GT] = ACTIONS(245), + [anon_sym_AMP_GT_GT] = ACTIONS(245), + [anon_sym_LT_AMP] = ACTIONS(245), + [anon_sym_GT_AMP] = ACTIONS(245), + [anon_sym_LT_LT] = ACTIONS(245), + [anon_sym_LT_LT_DASH] = ACTIONS(245), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(245), + [anon_sym_LF] = ACTIONS(245), + }, + [110] = { + [sym_file_descriptor] = ACTIONS(463), + [anon_sym_RPAREN] = ACTIONS(465), + [anon_sym_SEMI_SEMI] = ACTIONS(465), + [anon_sym_PIPE] = ACTIONS(465), + [anon_sym_PIPE_AMP] = ACTIONS(465), + [anon_sym_AMP_AMP] = ACTIONS(465), + [anon_sym_PIPE_PIPE] = ACTIONS(465), + [anon_sym_LT] = ACTIONS(465), + [anon_sym_GT] = ACTIONS(465), + [anon_sym_GT_GT] = ACTIONS(465), + [anon_sym_AMP_GT] = ACTIONS(465), + [anon_sym_AMP_GT_GT] = ACTIONS(465), + [anon_sym_LT_AMP] = ACTIONS(465), + [anon_sym_GT_AMP] = ACTIONS(465), + [anon_sym_LT_LT] = ACTIONS(465), + [anon_sym_LT_LT_DASH] = ACTIONS(465), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(465), + [anon_sym_LF] = ACTIONS(465), + }, + [111] = { + [sym_expansion] = STATE(177), + [sym_operator_expansion] = STATE(177), + [aux_sym_heredoc_repeat1] = STATE(181), + [sym__heredoc_middle] = ACTIONS(467), + [sym__heredoc_end] = ACTIONS(469), + [anon_sym_DOLLAR] = ACTIONS(471), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(473), + [sym_comment] = ACTIONS(71), + }, + [112] = { + [sym_file_descriptor] = ACTIONS(475), + [anon_sym_RPAREN] = ACTIONS(477), + [anon_sym_SEMI_SEMI] = ACTIONS(477), + [anon_sym_PIPE] = ACTIONS(477), + [anon_sym_PIPE_AMP] = ACTIONS(477), + [anon_sym_AMP_AMP] = ACTIONS(477), + [anon_sym_PIPE_PIPE] = ACTIONS(477), + [anon_sym_LT] = ACTIONS(477), + [anon_sym_GT] = ACTIONS(477), + [anon_sym_GT_GT] = ACTIONS(477), + [anon_sym_AMP_GT] = ACTIONS(477), + [anon_sym_AMP_GT_GT] = ACTIONS(477), + [anon_sym_LT_AMP] = ACTIONS(477), + [anon_sym_GT_AMP] = ACTIONS(477), + [anon_sym_LT_LT] = ACTIONS(477), + [anon_sym_LT_LT_DASH] = ACTIONS(477), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(477), + [anon_sym_LF] = ACTIONS(477), + }, + [113] = { + [sym_file_descriptor] = ACTIONS(479), + [anon_sym_RPAREN] = ACTIONS(481), + [anon_sym_SEMI_SEMI] = ACTIONS(481), + [anon_sym_PIPE] = ACTIONS(481), + [anon_sym_PIPE_AMP] = ACTIONS(481), + [anon_sym_AMP_AMP] = ACTIONS(481), + [anon_sym_PIPE_PIPE] = ACTIONS(481), + [anon_sym_LT] = ACTIONS(481), + [anon_sym_GT] = ACTIONS(481), + [anon_sym_GT_GT] = ACTIONS(481), + [anon_sym_AMP_GT] = ACTIONS(481), + [anon_sym_AMP_GT_GT] = ACTIONS(481), + [anon_sym_LT_AMP] = ACTIONS(481), + [anon_sym_GT_AMP] = ACTIONS(481), + [anon_sym_LT_LT] = ACTIONS(481), + [anon_sym_LT_LT_DASH] = ACTIONS(481), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(481), + [anon_sym_LF] = ACTIONS(481), + }, + [114] = { + [anon_sym_SEMI_SEMI] = ACTIONS(483), + [anon_sym_PIPE] = ACTIONS(483), + [anon_sym_PIPE_AMP] = ACTIONS(483), + [anon_sym_AMP_AMP] = ACTIONS(483), + [anon_sym_PIPE_PIPE] = ACTIONS(483), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(483), + [anon_sym_LF] = ACTIONS(483), + }, + [115] = { + [sym_file_descriptor] = ACTIONS(161), + [anon_sym_SEMI_SEMI] = ACTIONS(483), + [anon_sym_PIPE] = ACTIONS(483), + [anon_sym_PIPE_AMP] = ACTIONS(483), + [anon_sym_AMP_AMP] = ACTIONS(483), + [anon_sym_PIPE_PIPE] = ACTIONS(483), + [anon_sym_LT] = ACTIONS(163), + [anon_sym_GT] = ACTIONS(163), + [anon_sym_GT_GT] = ACTIONS(163), + [anon_sym_AMP_GT] = ACTIONS(163), + [anon_sym_AMP_GT_GT] = ACTIONS(163), + [anon_sym_LT_AMP] = ACTIONS(163), + [anon_sym_GT_AMP] = ACTIONS(163), + [sym_leading_word] = ACTIONS(163), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(483), + [anon_sym_LF] = ACTIONS(483), + }, + [116] = { + [anon_sym_SEMI_SEMI] = ACTIONS(485), + [anon_sym_PIPE] = ACTIONS(157), + [anon_sym_PIPE_AMP] = ACTIONS(157), + [anon_sym_AMP_AMP] = ACTIONS(485), + [anon_sym_PIPE_PIPE] = ACTIONS(485), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(485), + [anon_sym_LF] = ACTIONS(485), + }, + [117] = { + [sym_file_descriptor] = ACTIONS(161), + [anon_sym_SEMI_SEMI] = ACTIONS(485), + [anon_sym_PIPE] = ACTIONS(157), + [anon_sym_PIPE_AMP] = ACTIONS(157), + [anon_sym_AMP_AMP] = ACTIONS(485), + [anon_sym_PIPE_PIPE] = ACTIONS(485), + [anon_sym_LT] = ACTIONS(163), + [anon_sym_GT] = ACTIONS(163), + [anon_sym_GT_GT] = ACTIONS(163), + [anon_sym_AMP_GT] = ACTIONS(163), + [anon_sym_AMP_GT_GT] = ACTIONS(163), + [anon_sym_LT_AMP] = ACTIONS(163), + [anon_sym_GT_AMP] = ACTIONS(163), + [sym_leading_word] = ACTIONS(163), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(485), + [anon_sym_LF] = ACTIONS(485), + }, + [118] = { + [sym_quoted_argument] = STATE(91), + [sym_expansion] = STATE(91), + [sym_operator_expansion] = STATE(91), + [sym_command_substitution] = STATE(91), + [sym_file_redirect] = STATE(47), + [sym_heredoc_redirect] = STATE(47), + [aux_sym_bracket_command_repeat1] = STATE(182), + [aux_sym_command_repeat2] = STATE(183), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_RPAREN] = ACTIONS(487), + [anon_sym_SEMI_SEMI] = ACTIONS(487), + [anon_sym_PIPE] = ACTIONS(487), + [anon_sym_PIPE_AMP] = ACTIONS(487), + [anon_sym_AMP_AMP] = ACTIONS(487), + [anon_sym_PIPE_PIPE] = ACTIONS(487), + [anon_sym_DQUOTE] = ACTIONS(253), + [sym_single_quoted_argument] = ACTIONS(255), + [anon_sym_DOLLAR] = ACTIONS(257), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(259), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(261), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_word] = ACTIONS(263), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(487), + [anon_sym_LF] = ACTIONS(487), + }, + [119] = { + [sym_quoted_argument] = STATE(184), + [sym_expansion] = STATE(184), + [sym_operator_expansion] = STATE(184), + [sym_command_substitution] = STATE(184), + [anon_sym_DQUOTE] = ACTIONS(121), + [sym_single_quoted_argument] = ACTIONS(489), + [anon_sym_DOLLAR] = ACTIONS(125), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(127), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(129), + [sym_word] = ACTIONS(491), + [sym_comment] = ACTIONS(71), + }, + [120] = { + [sym_file_redirect] = STATE(113), + [sym_heredoc_redirect] = STATE(113), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_RPAREN] = ACTIONS(487), + [anon_sym_SEMI_SEMI] = ACTIONS(487), + [anon_sym_PIPE] = ACTIONS(487), + [anon_sym_PIPE_AMP] = ACTIONS(487), + [anon_sym_AMP_AMP] = ACTIONS(487), + [anon_sym_PIPE_PIPE] = ACTIONS(487), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(487), + [anon_sym_LF] = ACTIONS(487), + }, + [121] = { + [anon_sym_SEMI_SEMI] = ACTIONS(493), + [anon_sym_PIPE] = ACTIONS(493), + [anon_sym_PIPE_AMP] = ACTIONS(493), + [anon_sym_AMP_AMP] = ACTIONS(493), + [anon_sym_PIPE_PIPE] = ACTIONS(493), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(493), + [anon_sym_LF] = ACTIONS(493), + }, + [122] = { + [sym__terminated_statement] = STATE(52), [sym_while_statement] = STATE(12), [sym_if_statement] = STATE(12), [sym_case_statement] = STATE(12), @@ -8026,56 +8434,62 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_environment_variable_assignment] = STATE(13), [sym_file_redirect] = STATE(14), [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_done] = ACTIONS(441), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_done] = ACTIONS(495), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, - [110] = { - [anon_sym_SEMI_SEMI] = ACTIONS(443), - [anon_sym_PIPE] = ACTIONS(443), - [anon_sym_PIPE_AMP] = ACTIONS(443), - [anon_sym_AMP_AMP] = ACTIONS(443), - [anon_sym_PIPE_PIPE] = ACTIONS(443), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(443), - [anon_sym_LF] = ACTIONS(443), + [123] = { + [anon_sym_SEMI_SEMI] = ACTIONS(497), + [anon_sym_PIPE] = ACTIONS(497), + [anon_sym_PIPE_AMP] = ACTIONS(497), + [anon_sym_AMP_AMP] = ACTIONS(497), + [anon_sym_PIPE_PIPE] = ACTIONS(497), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(497), + [anon_sym_LF] = ACTIONS(497), }, - [111] = { - [sym__terminated_statement] = STATE(169), - [sym_while_statement] = STATE(18), - [sym_if_statement] = STATE(18), - [sym_case_statement] = STATE(18), - [sym_bracket_command] = STATE(18), - [sym_command] = STATE(18), - [sym_pipeline] = STATE(18), - [sym_list] = STATE(18), - [sym_environment_variable_assignment] = STATE(19), + [124] = { + [sym__terminated_statement] = STATE(187), + [sym_while_statement] = STATE(19), + [sym_if_statement] = STATE(19), + [sym_case_statement] = STATE(19), + [sym_bracket_command] = STATE(19), + [sym_command] = STATE(19), + [sym_pipeline] = STATE(19), + [sym_list] = STATE(19), + [sym_environment_variable_assignment] = STATE(20), [sym_file_redirect] = STATE(14), [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, - [112] = { + [125] = { [sym__terminated_statement] = STATE(11), [sym_while_statement] = STATE(12), [sym_if_statement] = STATE(12), @@ -8086,721 +8500,851 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_list] = STATE(12), [sym_environment_variable_assignment] = STATE(13), [sym_file_redirect] = STATE(14), - [aux_sym_program_repeat1] = STATE(170), + [aux_sym_program_repeat1] = STATE(188), [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_fi] = ACTIONS(445), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_fi] = ACTIONS(499), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, - [113] = { - [anon_sym_fi] = ACTIONS(447), - [anon_sym_elif] = ACTIONS(447), - [anon_sym_else] = ACTIONS(447), - [sym_comment] = ACTIONS(71), - }, - [114] = { - [anon_sym_fi] = ACTIONS(449), - [sym_comment] = ACTIONS(71), - }, - [115] = { - [sym__terminated_statement] = STATE(48), - [sym_while_statement] = STATE(12), - [sym_if_statement] = STATE(12), - [sym_elif_clause] = STATE(113), - [sym_else_clause] = STATE(172), - [sym_case_statement] = STATE(12), - [sym_bracket_command] = STATE(12), - [sym_command] = STATE(12), - [sym_pipeline] = STATE(12), - [sym_list] = STATE(12), - [sym_environment_variable_assignment] = STATE(13), - [sym_file_redirect] = STATE(14), - [aux_sym_if_statement_repeat1] = STATE(173), - [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_fi] = ACTIONS(451), - [anon_sym_elif] = ACTIONS(295), - [anon_sym_else] = ACTIONS(297), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(91), - [sym_comment] = ACTIONS(71), - }, - [116] = { - [sym_elif_clause] = STATE(174), - [sym_else_clause] = STATE(172), - [anon_sym_fi] = ACTIONS(449), - [anon_sym_elif] = ACTIONS(453), - [anon_sym_else] = ACTIONS(455), - [sym_comment] = ACTIONS(71), - }, - [117] = { - [anon_sym_DQUOTE] = ACTIONS(317), - [sym__quoted_chars] = ACTIONS(349), - [anon_sym_DOLLAR] = ACTIONS(317), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(317), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(317), - [sym_comment] = ACTIONS(137), - }, - [118] = { - [anon_sym_EQ] = ACTIONS(457), - [anon_sym_COLON] = ACTIONS(459), - [anon_sym_COLON_QMARK] = ACTIONS(457), - [anon_sym_RBRACE] = ACTIONS(461), - [sym_comment] = ACTIONS(71), - }, - [119] = { - [anon_sym_RPAREN] = ACTIONS(463), - [sym_comment] = ACTIONS(71), - }, - [120] = { - [anon_sym_in] = ACTIONS(465), - [anon_sym_SEMI_SEMI] = ACTIONS(465), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(465), - [anon_sym_LF] = ACTIONS(465), - }, - [121] = { - [anon_sym_DQUOTE] = ACTIONS(467), - [sym__quoted_chars] = ACTIONS(469), - [anon_sym_DOLLAR] = ACTIONS(467), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(467), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(467), - [sym_comment] = ACTIONS(137), - }, - [122] = { - [sym_case_item] = STATE(181), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [aux_sym_case_statement_repeat1] = STATE(182), - [anon_sym_esac] = ACTIONS(471), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(473), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(475), - [sym_comment] = ACTIONS(71), - }, - [123] = { - [anon_sym_SEMI_SEMI] = ACTIONS(477), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(477), - [anon_sym_LF] = ACTIONS(477), - }, - [124] = { - [sym_quoted_argument] = STATE(184), - [sym_expansion] = STATE(184), - [sym_operator_expansion] = STATE(184), - [sym_command_substitution] = STATE(184), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(479), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(481), - [sym_comment] = ACTIONS(71), - }, - [125] = { - [anon_sym_in] = ACTIONS(483), - [anon_sym_SEMI_SEMI] = ACTIONS(483), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(483), - [anon_sym_LF] = ACTIONS(483), - }, [126] = { - [sym_quoted_argument] = STATE(28), - [sym_expansion] = STATE(28), - [sym_operator_expansion] = STATE(28), - [sym_command_substitution] = STATE(28), - [sym_file_redirect] = STATE(130), - [sym_heredoc_redirect] = STATE(130), - [aux_sym_bracket_command_repeat1] = STATE(186), - [aux_sym_command_repeat2] = STATE(187), - [anon_sym_RPAREN] = ACTIONS(485), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(107), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [anon_sym_LT] = ACTIONS(487), - [anon_sym_GT] = ACTIONS(487), - [anon_sym_LT_AMP] = ACTIONS(489), - [anon_sym_GT_AMP] = ACTIONS(489), - [anon_sym_LT_LT] = ACTIONS(491), - [anon_sym_LT_LT_DASH] = ACTIONS(493), - [sym_file_descriptor] = ACTIONS(495), - [sym_word] = ACTIONS(115), + [anon_sym_fi] = ACTIONS(501), + [anon_sym_elif] = ACTIONS(501), + [anon_sym_else] = ACTIONS(501), [sym_comment] = ACTIONS(71), }, [127] = { - [sym_file_descriptor] = ACTIONS(497), - [sym_word] = ACTIONS(499), + [anon_sym_fi] = ACTIONS(503), [sym_comment] = ACTIONS(71), }, [128] = { - [sym_heredoc] = STATE(192), - [sym__simple_heredoc] = ACTIONS(501), - [sym__heredoc_beginning] = ACTIONS(503), + [sym__terminated_statement] = STATE(52), + [sym_while_statement] = STATE(12), + [sym_if_statement] = STATE(12), + [sym_elif_clause] = STATE(126), + [sym_else_clause] = STATE(190), + [sym_case_statement] = STATE(12), + [sym_bracket_command] = STATE(12), + [sym_command] = STATE(12), + [sym_pipeline] = STATE(12), + [sym_list] = STATE(12), + [sym_environment_variable_assignment] = STATE(13), + [sym_file_redirect] = STATE(14), + [aux_sym_if_statement_repeat1] = STATE(191), + [aux_sym_command_repeat1] = STATE(16), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_fi] = ACTIONS(505), + [anon_sym_elif] = ACTIONS(339), + [anon_sym_else] = ACTIONS(341), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, [129] = { - [anon_sym_LT] = ACTIONS(505), - [anon_sym_GT] = ACTIONS(505), - [anon_sym_LT_AMP] = ACTIONS(507), - [anon_sym_GT_AMP] = ACTIONS(507), + [sym_elif_clause] = STATE(192), + [sym_else_clause] = STATE(190), + [anon_sym_fi] = ACTIONS(503), + [anon_sym_elif] = ACTIONS(507), + [anon_sym_else] = ACTIONS(509), [sym_comment] = ACTIONS(71), }, [130] = { - [anon_sym_RPAREN] = ACTIONS(509), - [anon_sym_LT] = ACTIONS(511), - [anon_sym_GT] = ACTIONS(511), - [anon_sym_LT_AMP] = ACTIONS(509), - [anon_sym_GT_AMP] = ACTIONS(509), - [anon_sym_LT_LT] = ACTIONS(511), - [anon_sym_LT_LT_DASH] = ACTIONS(509), - [sym_file_descriptor] = ACTIONS(511), - [sym_comment] = ACTIONS(71), + [anon_sym_DQUOTE] = ACTIONS(361), + [sym__quoted_chars] = ACTIONS(393), + [anon_sym_DOLLAR] = ACTIONS(361), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(361), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(361), + [sym_comment] = ACTIONS(145), }, [131] = { - [sym_file_redirect] = STATE(194), - [sym_heredoc_redirect] = STATE(194), - [anon_sym_RPAREN] = ACTIONS(485), - [anon_sym_LT] = ACTIONS(487), - [anon_sym_GT] = ACTIONS(487), - [anon_sym_LT_AMP] = ACTIONS(489), - [anon_sym_GT_AMP] = ACTIONS(489), - [anon_sym_LT_LT] = ACTIONS(491), - [anon_sym_LT_LT_DASH] = ACTIONS(493), - [sym_file_descriptor] = ACTIONS(495), + [anon_sym_EQ] = ACTIONS(511), + [anon_sym_COLON] = ACTIONS(513), + [anon_sym_COLON_QMARK] = ACTIONS(511), + [anon_sym_RBRACE] = ACTIONS(515), [sym_comment] = ACTIONS(71), }, [132] = { - [anon_sym_in] = ACTIONS(513), - [anon_sym_SEMI_SEMI] = ACTIONS(513), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(513), - [anon_sym_LF] = ACTIONS(513), - }, - [133] = { - [sym_file_redirect] = STATE(130), - [sym_heredoc_redirect] = STATE(130), - [aux_sym_command_repeat2] = STATE(196), - [anon_sym_RPAREN] = ACTIONS(279), - [aux_sym_SLASH_BSLASHs_PLUS_SLASH] = ACTIONS(515), - [anon_sym_EQ] = ACTIONS(283), - [anon_sym_LT] = ACTIONS(327), - [anon_sym_GT] = ACTIONS(327), - [anon_sym_LT_AMP] = ACTIONS(327), - [anon_sym_GT_AMP] = ACTIONS(327), - [anon_sym_LT_LT] = ACTIONS(329), - [anon_sym_LT_LT_DASH] = ACTIONS(329), - [sym_file_descriptor] = ACTIONS(331), - [sym_comment] = ACTIONS(137), - }, - [134] = { - [sym_case_item] = STATE(181), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [aux_sym_case_statement_repeat1] = STATE(198), - [anon_sym_esac] = ACTIONS(517), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(473), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(475), + [anon_sym_RPAREN] = ACTIONS(517), [sym_comment] = ACTIONS(71), }, - [135] = { + [133] = { + [anon_sym_in] = ACTIONS(519), [anon_sym_SEMI_SEMI] = ACTIONS(519), - [sym_comment] = ACTIONS(137), + [sym_comment] = ACTIONS(145), [anon_sym_SEMI] = ACTIONS(519), [anon_sym_LF] = ACTIONS(519), }, - [136] = { - [anon_sym_RPAREN] = ACTIONS(521), - [anon_sym_RBRACK] = ACTIONS(523), - [anon_sym_RBRACK_RBRACK] = ACTIONS(523), + [134] = { [anon_sym_DQUOTE] = ACTIONS(521), - [sym_single_quoted_argument] = ACTIONS(523), - [anon_sym_DOLLAR] = ACTIONS(523), + [sym__quoted_chars] = ACTIONS(523), + [anon_sym_DOLLAR] = ACTIONS(521), [anon_sym_DOLLAR_LBRACE] = ACTIONS(521), - [anon_sym_RBRACE] = ACTIONS(521), [anon_sym_DOLLAR_LPAREN] = ACTIONS(521), - [anon_sym_LT] = ACTIONS(523), - [anon_sym_GT] = ACTIONS(523), - [anon_sym_LT_AMP] = ACTIONS(521), - [anon_sym_GT_AMP] = ACTIONS(521), - [anon_sym_LT_LT] = ACTIONS(523), - [anon_sym_LT_LT_DASH] = ACTIONS(521), - [sym_file_descriptor] = ACTIONS(523), - [sym_word] = ACTIONS(465), + [sym_comment] = ACTIONS(145), + }, + [135] = { + [sym_case_item] = STATE(199), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [aux_sym_case_statement_repeat1] = STATE(200), + [anon_sym_esac] = ACTIONS(525), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(527), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(529), [sym_comment] = ACTIONS(71), }, + [136] = { + [anon_sym_SEMI_SEMI] = ACTIONS(531), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(531), + [anon_sym_LF] = ACTIONS(531), + }, [137] = { - [sym_quoted_argument] = STATE(200), - [sym_expansion] = STATE(200), - [sym_operator_expansion] = STATE(200), - [sym_command_substitution] = STATE(200), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(525), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(527), + [sym_quoted_argument] = STATE(202), + [sym_expansion] = STATE(202), + [sym_operator_expansion] = STATE(202), + [sym_command_substitution] = STATE(202), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(533), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(535), [sym_comment] = ACTIONS(71), }, [138] = { - [anon_sym_RPAREN] = ACTIONS(529), - [anon_sym_RBRACK] = ACTIONS(531), - [anon_sym_RBRACK_RBRACK] = ACTIONS(531), - [anon_sym_DQUOTE] = ACTIONS(529), - [sym_single_quoted_argument] = ACTIONS(531), - [anon_sym_DOLLAR] = ACTIONS(531), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(529), - [anon_sym_RBRACE] = ACTIONS(529), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(529), - [anon_sym_LT] = ACTIONS(531), - [anon_sym_GT] = ACTIONS(531), - [anon_sym_LT_AMP] = ACTIONS(529), - [anon_sym_GT_AMP] = ACTIONS(529), - [anon_sym_LT_LT] = ACTIONS(531), - [anon_sym_LT_LT_DASH] = ACTIONS(529), - [sym_file_descriptor] = ACTIONS(531), - [sym_word] = ACTIONS(483), - [sym_comment] = ACTIONS(71), + [anon_sym_in] = ACTIONS(537), + [anon_sym_SEMI_SEMI] = ACTIONS(537), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(537), + [anon_sym_LF] = ACTIONS(537), }, [139] = { - [anon_sym_RPAREN] = ACTIONS(533), - [anon_sym_RBRACK] = ACTIONS(535), - [anon_sym_RBRACK_RBRACK] = ACTIONS(535), - [anon_sym_DQUOTE] = ACTIONS(533), - [sym_single_quoted_argument] = ACTIONS(535), - [anon_sym_DOLLAR] = ACTIONS(535), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(533), - [anon_sym_RBRACE] = ACTIONS(533), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(533), - [anon_sym_LT] = ACTIONS(535), - [anon_sym_GT] = ACTIONS(535), - [anon_sym_LT_AMP] = ACTIONS(533), - [anon_sym_GT_AMP] = ACTIONS(533), - [anon_sym_LT_LT] = ACTIONS(535), - [anon_sym_LT_LT_DASH] = ACTIONS(533), - [sym_file_descriptor] = ACTIONS(535), - [sym_word] = ACTIONS(513), + [anon_sym_LT] = ACTIONS(539), + [anon_sym_GT] = ACTIONS(539), + [anon_sym_GT_GT] = ACTIONS(541), + [anon_sym_AMP_GT] = ACTIONS(539), + [anon_sym_AMP_GT_GT] = ACTIONS(541), + [anon_sym_LT_AMP] = ACTIONS(541), + [anon_sym_GT_AMP] = ACTIONS(541), [sym_comment] = ACTIONS(71), }, [140] = { - [anon_sym_RPAREN] = ACTIONS(299), - [anon_sym_SEMI_SEMI] = ACTIONS(299), - [anon_sym_PIPE] = ACTIONS(299), - [anon_sym_PIPE_AMP] = ACTIONS(299), - [anon_sym_AMP_AMP] = ACTIONS(299), - [anon_sym_PIPE_PIPE] = ACTIONS(299), - [anon_sym_DQUOTE] = ACTIONS(299), - [sym_single_quoted_argument] = ACTIONS(299), - [anon_sym_DOLLAR] = ACTIONS(299), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(299), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(299), - [anon_sym_LT] = ACTIONS(299), - [anon_sym_GT] = ACTIONS(299), - [anon_sym_LT_AMP] = ACTIONS(299), - [anon_sym_GT_AMP] = ACTIONS(299), - [anon_sym_LT_LT] = ACTIONS(299), - [anon_sym_LT_LT_DASH] = ACTIONS(299), - [sym_file_descriptor] = ACTIONS(299), - [sym_word] = ACTIONS(299), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(299), - [anon_sym_LF] = ACTIONS(299), + [sym_quoted_argument] = STATE(206), + [sym_expansion] = STATE(206), + [sym_operator_expansion] = STATE(206), + [sym_command_substitution] = STATE(206), + [sym_file_redirect] = STATE(143), + [sym_heredoc_redirect] = STATE(143), + [aux_sym_bracket_command_repeat1] = STATE(211), + [aux_sym_command_repeat2] = STATE(212), + [sym_file_descriptor] = ACTIONS(369), + [anon_sym_RPAREN] = ACTIONS(543), + [anon_sym_DQUOTE] = ACTIONS(545), + [sym_single_quoted_argument] = ACTIONS(547), + [anon_sym_DOLLAR] = ACTIONS(549), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(551), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(553), + [anon_sym_LT] = ACTIONS(555), + [anon_sym_GT] = ACTIONS(555), + [anon_sym_GT_GT] = ACTIONS(557), + [anon_sym_AMP_GT] = ACTIONS(555), + [anon_sym_AMP_GT_GT] = ACTIONS(557), + [anon_sym_LT_AMP] = ACTIONS(557), + [anon_sym_GT_AMP] = ACTIONS(557), + [anon_sym_LT_LT] = ACTIONS(559), + [anon_sym_LT_LT_DASH] = ACTIONS(561), + [sym_word] = ACTIONS(563), + [sym_comment] = ACTIONS(71), }, [141] = { - [sym_expansion] = STATE(121), - [sym_operator_expansion] = STATE(121), - [sym_command_substitution] = STATE(121), - [anon_sym_DQUOTE] = ACTIONS(537), - [sym__quoted_chars] = ACTIONS(311), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), + [sym_quoted_argument] = STATE(213), + [sym_expansion] = STATE(213), + [sym_operator_expansion] = STATE(213), + [sym_command_substitution] = STATE(213), + [anon_sym_DQUOTE] = ACTIONS(545), + [sym_single_quoted_argument] = ACTIONS(565), + [anon_sym_DOLLAR] = ACTIONS(549), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(551), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(553), + [sym_word] = ACTIONS(567), + [sym_comment] = ACTIONS(71), }, [142] = { - [anon_sym_RPAREN] = ACTIONS(317), - [anon_sym_SEMI_SEMI] = ACTIONS(317), - [anon_sym_PIPE] = ACTIONS(317), - [anon_sym_PIPE_AMP] = ACTIONS(317), - [anon_sym_AMP_AMP] = ACTIONS(317), - [anon_sym_PIPE_PIPE] = ACTIONS(317), - [anon_sym_DQUOTE] = ACTIONS(317), - [sym_single_quoted_argument] = ACTIONS(317), - [anon_sym_DOLLAR] = ACTIONS(317), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(317), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(317), - [anon_sym_LT] = ACTIONS(317), - [anon_sym_GT] = ACTIONS(317), - [anon_sym_LT_AMP] = ACTIONS(317), - [anon_sym_GT_AMP] = ACTIONS(317), - [anon_sym_LT_LT] = ACTIONS(317), - [anon_sym_LT_LT_DASH] = ACTIONS(317), - [sym_file_descriptor] = ACTIONS(317), - [sym_word] = ACTIONS(317), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(317), - [anon_sym_LF] = ACTIONS(317), + [sym_heredoc] = STATE(217), + [sym__simple_heredoc] = ACTIONS(569), + [sym__heredoc_beginning] = ACTIONS(571), + [sym_comment] = ACTIONS(71), }, [143] = { - [anon_sym_EQ] = ACTIONS(539), - [anon_sym_COLON] = ACTIONS(541), - [anon_sym_COLON_QMARK] = ACTIONS(539), - [anon_sym_RBRACE] = ACTIONS(543), + [sym_file_descriptor] = ACTIONS(293), + [anon_sym_RPAREN] = ACTIONS(293), + [anon_sym_LT] = ACTIONS(573), + [anon_sym_GT] = ACTIONS(573), + [anon_sym_GT_GT] = ACTIONS(293), + [anon_sym_AMP_GT] = ACTIONS(573), + [anon_sym_AMP_GT_GT] = ACTIONS(293), + [anon_sym_LT_AMP] = ACTIONS(293), + [anon_sym_GT_AMP] = ACTIONS(293), + [anon_sym_LT_LT] = ACTIONS(573), + [anon_sym_LT_LT_DASH] = ACTIONS(293), [sym_comment] = ACTIONS(71), }, [144] = { - [anon_sym_RPAREN] = ACTIONS(545), + [sym_file_redirect] = STATE(218), + [sym_heredoc_redirect] = STATE(218), + [sym_file_descriptor] = ACTIONS(369), + [anon_sym_RPAREN] = ACTIONS(543), + [anon_sym_LT] = ACTIONS(555), + [anon_sym_GT] = ACTIONS(555), + [anon_sym_GT_GT] = ACTIONS(557), + [anon_sym_AMP_GT] = ACTIONS(555), + [anon_sym_AMP_GT_GT] = ACTIONS(557), + [anon_sym_LT_AMP] = ACTIONS(557), + [anon_sym_GT_AMP] = ACTIONS(557), + [anon_sym_LT_LT] = ACTIONS(559), + [anon_sym_LT_LT_DASH] = ACTIONS(561), [sym_comment] = ACTIONS(71), }, [145] = { - [anon_sym_RPAREN] = ACTIONS(365), - [anon_sym_SEMI_SEMI] = ACTIONS(365), - [anon_sym_PIPE] = ACTIONS(365), - [anon_sym_PIPE_AMP] = ACTIONS(365), - [anon_sym_AMP_AMP] = ACTIONS(365), - [anon_sym_PIPE_PIPE] = ACTIONS(365), - [anon_sym_DQUOTE] = ACTIONS(365), - [sym_single_quoted_argument] = ACTIONS(365), - [anon_sym_DOLLAR] = ACTIONS(365), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(365), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(365), - [anon_sym_LT] = ACTIONS(365), - [anon_sym_GT] = ACTIONS(365), - [anon_sym_LT_AMP] = ACTIONS(365), - [anon_sym_GT_AMP] = ACTIONS(365), - [anon_sym_LT_LT] = ACTIONS(365), - [anon_sym_LT_LT_DASH] = ACTIONS(365), - [sym_file_descriptor] = ACTIONS(365), - [sym_word] = ACTIONS(365), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(365), - [anon_sym_LF] = ACTIONS(365), + [anon_sym_in] = ACTIONS(575), + [anon_sym_SEMI_SEMI] = ACTIONS(575), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(575), + [anon_sym_LF] = ACTIONS(575), }, [146] = { - [anon_sym_RPAREN] = ACTIONS(371), - [anon_sym_SEMI_SEMI] = ACTIONS(371), - [anon_sym_PIPE] = ACTIONS(371), - [anon_sym_PIPE_AMP] = ACTIONS(371), - [anon_sym_AMP_AMP] = ACTIONS(371), - [anon_sym_PIPE_PIPE] = ACTIONS(371), - [anon_sym_DQUOTE] = ACTIONS(371), - [sym_single_quoted_argument] = ACTIONS(371), - [anon_sym_DOLLAR] = ACTIONS(371), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(371), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(371), - [anon_sym_LT] = ACTIONS(371), - [anon_sym_GT] = ACTIONS(371), - [anon_sym_LT_AMP] = ACTIONS(371), - [anon_sym_GT_AMP] = ACTIONS(371), - [anon_sym_LT_LT] = ACTIONS(371), - [anon_sym_LT_LT_DASH] = ACTIONS(371), - [sym_file_descriptor] = ACTIONS(371), - [sym_word] = ACTIONS(371), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(371), - [anon_sym_LF] = ACTIONS(371), + [sym_file_redirect] = STATE(143), + [sym_heredoc_redirect] = STATE(143), + [aux_sym_command_repeat2] = STATE(220), + [sym_file_descriptor] = ACTIONS(369), + [anon_sym_RPAREN] = ACTIONS(309), + [aux_sym_SLASH_BSLASHs_PLUS_SLASH] = ACTIONS(577), + [anon_sym_EQ] = ACTIONS(313), + [anon_sym_LT] = ACTIONS(373), + [anon_sym_GT] = ACTIONS(373), + [anon_sym_GT_GT] = ACTIONS(373), + [anon_sym_AMP_GT] = ACTIONS(373), + [anon_sym_AMP_GT_GT] = ACTIONS(373), + [anon_sym_LT_AMP] = ACTIONS(373), + [anon_sym_GT_AMP] = ACTIONS(373), + [anon_sym_LT_LT] = ACTIONS(375), + [anon_sym_LT_LT_DASH] = ACTIONS(375), + [sym_comment] = ACTIONS(145), }, [147] = { - [sym_file_redirect] = STATE(100), - [sym_heredoc_redirect] = STATE(100), - [anon_sym_SEMI_SEMI] = ACTIONS(547), - [anon_sym_PIPE] = ACTIONS(547), - [anon_sym_PIPE_AMP] = ACTIONS(547), - [anon_sym_AMP_AMP] = ACTIONS(547), - [anon_sym_PIPE_PIPE] = ACTIONS(547), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(547), - [anon_sym_LF] = ACTIONS(547), + [sym_case_item] = STATE(199), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [aux_sym_case_statement_repeat1] = STATE(222), + [anon_sym_esac] = ACTIONS(579), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(527), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(529), + [sym_comment] = ACTIONS(71), }, [148] = { - [anon_sym_SEMI_SEMI] = ACTIONS(299), - [anon_sym_PIPE] = ACTIONS(299), - [anon_sym_PIPE_AMP] = ACTIONS(299), - [anon_sym_AMP_AMP] = ACTIONS(299), - [anon_sym_PIPE_PIPE] = ACTIONS(299), - [anon_sym_RBRACE] = ACTIONS(299), - [anon_sym_LT] = ACTIONS(299), - [anon_sym_GT] = ACTIONS(299), - [anon_sym_LT_AMP] = ACTIONS(299), - [anon_sym_GT_AMP] = ACTIONS(299), - [sym_file_descriptor] = ACTIONS(299), - [sym_leading_word] = ACTIONS(299), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(299), - [anon_sym_LF] = ACTIONS(299), + [anon_sym_SEMI_SEMI] = ACTIONS(581), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(581), + [anon_sym_LF] = ACTIONS(581), }, [149] = { - [sym_expansion] = STATE(121), - [sym_operator_expansion] = STATE(121), - [sym_command_substitution] = STATE(121), - [anon_sym_DQUOTE] = ACTIONS(549), - [sym__quoted_chars] = ACTIONS(311), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), + [anon_sym_RPAREN] = ACTIONS(583), + [anon_sym_RBRACK] = ACTIONS(585), + [anon_sym_RBRACK_RBRACK] = ACTIONS(585), + [anon_sym_DQUOTE] = ACTIONS(583), + [sym_single_quoted_argument] = ACTIONS(585), + [anon_sym_DOLLAR] = ACTIONS(585), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(583), + [anon_sym_RBRACE] = ACTIONS(583), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(583), + [sym_word] = ACTIONS(519), + [sym_comment] = ACTIONS(71), }, [150] = { - [anon_sym_SEMI_SEMI] = ACTIONS(317), - [anon_sym_PIPE] = ACTIONS(317), - [anon_sym_PIPE_AMP] = ACTIONS(317), - [anon_sym_AMP_AMP] = ACTIONS(317), - [anon_sym_PIPE_PIPE] = ACTIONS(317), - [anon_sym_RBRACE] = ACTIONS(317), - [anon_sym_LT] = ACTIONS(317), - [anon_sym_GT] = ACTIONS(317), - [anon_sym_LT_AMP] = ACTIONS(317), - [anon_sym_GT_AMP] = ACTIONS(317), - [sym_file_descriptor] = ACTIONS(317), - [sym_leading_word] = ACTIONS(317), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(317), - [anon_sym_LF] = ACTIONS(317), + [sym_quoted_argument] = STATE(224), + [sym_expansion] = STATE(224), + [sym_operator_expansion] = STATE(224), + [sym_command_substitution] = STATE(224), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(587), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(589), + [sym_comment] = ACTIONS(71), }, [151] = { - [anon_sym_EQ] = ACTIONS(551), - [anon_sym_COLON] = ACTIONS(553), - [anon_sym_COLON_QMARK] = ACTIONS(551), - [anon_sym_RBRACE] = ACTIONS(555), + [anon_sym_RPAREN] = ACTIONS(591), + [anon_sym_RBRACK] = ACTIONS(593), + [anon_sym_RBRACK_RBRACK] = ACTIONS(593), + [anon_sym_DQUOTE] = ACTIONS(591), + [sym_single_quoted_argument] = ACTIONS(593), + [anon_sym_DOLLAR] = ACTIONS(593), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(591), + [anon_sym_RBRACE] = ACTIONS(591), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(591), + [sym_word] = ACTIONS(537), [sym_comment] = ACTIONS(71), }, [152] = { - [anon_sym_RPAREN] = ACTIONS(557), + [anon_sym_RPAREN] = ACTIONS(595), + [anon_sym_RBRACK] = ACTIONS(597), + [anon_sym_RBRACK_RBRACK] = ACTIONS(597), + [anon_sym_DQUOTE] = ACTIONS(595), + [sym_single_quoted_argument] = ACTIONS(597), + [anon_sym_DOLLAR] = ACTIONS(597), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(595), + [anon_sym_RBRACE] = ACTIONS(595), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(595), + [sym_word] = ACTIONS(575), [sym_comment] = ACTIONS(71), }, [153] = { - [sym__heredoc_middle] = ACTIONS(559), - [sym__heredoc_end] = ACTIONS(559), - [anon_sym_DOLLAR] = ACTIONS(561), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(559), + [sym_file_descriptor] = ACTIONS(583), + [anon_sym_LT] = ACTIONS(585), + [anon_sym_GT] = ACTIONS(585), + [anon_sym_GT_GT] = ACTIONS(585), + [anon_sym_AMP_GT] = ACTIONS(585), + [anon_sym_AMP_GT_GT] = ACTIONS(585), + [anon_sym_LT_AMP] = ACTIONS(585), + [anon_sym_GT_AMP] = ACTIONS(585), + [sym_leading_word] = ACTIONS(519), [sym_comment] = ACTIONS(71), }, [154] = { - [anon_sym_RPAREN] = ACTIONS(563), - [anon_sym_SEMI_SEMI] = ACTIONS(563), - [anon_sym_PIPE] = ACTIONS(563), - [anon_sym_PIPE_AMP] = ACTIONS(563), - [anon_sym_AMP_AMP] = ACTIONS(563), - [anon_sym_PIPE_PIPE] = ACTIONS(563), - [anon_sym_LT] = ACTIONS(563), - [anon_sym_GT] = ACTIONS(563), - [anon_sym_LT_AMP] = ACTIONS(563), - [anon_sym_GT_AMP] = ACTIONS(563), - [anon_sym_LT_LT] = ACTIONS(563), - [anon_sym_LT_LT_DASH] = ACTIONS(563), - [sym_file_descriptor] = ACTIONS(563), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(563), - [anon_sym_LF] = ACTIONS(563), + [sym_quoted_argument] = STATE(226), + [sym_expansion] = STATE(226), + [sym_operator_expansion] = STATE(226), + [sym_command_substitution] = STATE(226), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(599), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(601), + [sym_comment] = ACTIONS(71), }, [155] = { - [sym_word] = ACTIONS(565), + [sym_file_descriptor] = ACTIONS(591), + [anon_sym_LT] = ACTIONS(593), + [anon_sym_GT] = ACTIONS(593), + [anon_sym_GT_GT] = ACTIONS(593), + [anon_sym_AMP_GT] = ACTIONS(593), + [anon_sym_AMP_GT_GT] = ACTIONS(593), + [anon_sym_LT_AMP] = ACTIONS(593), + [anon_sym_GT_AMP] = ACTIONS(593), + [sym_leading_word] = ACTIONS(537), [sym_comment] = ACTIONS(71), }, [156] = { - [sym_leading_word] = ACTIONS(567), + [sym_file_descriptor] = ACTIONS(595), + [anon_sym_LT] = ACTIONS(597), + [anon_sym_GT] = ACTIONS(597), + [anon_sym_GT_GT] = ACTIONS(597), + [anon_sym_AMP_GT] = ACTIONS(597), + [anon_sym_AMP_GT_GT] = ACTIONS(597), + [anon_sym_LT_AMP] = ACTIONS(597), + [anon_sym_GT_AMP] = ACTIONS(597), + [sym_leading_word] = ACTIONS(575), [sym_comment] = ACTIONS(71), }, [157] = { - [sym_expansion] = STATE(212), - [sym_operator_expansion] = STATE(212), - [sym__heredoc_middle] = ACTIONS(569), - [sym__heredoc_end] = ACTIONS(571), - [anon_sym_DOLLAR] = ACTIONS(409), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(411), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(321), + [anon_sym_RPAREN] = ACTIONS(325), + [anon_sym_SEMI_SEMI] = ACTIONS(325), + [anon_sym_PIPE] = ACTIONS(325), + [anon_sym_PIPE_AMP] = ACTIONS(325), + [anon_sym_AMP_AMP] = ACTIONS(325), + [anon_sym_PIPE_PIPE] = ACTIONS(325), + [anon_sym_LT] = ACTIONS(325), + [anon_sym_GT] = ACTIONS(325), + [anon_sym_GT_GT] = ACTIONS(325), + [anon_sym_AMP_GT] = ACTIONS(325), + [anon_sym_AMP_GT_GT] = ACTIONS(325), + [anon_sym_LT_AMP] = ACTIONS(325), + [anon_sym_GT_AMP] = ACTIONS(325), + [anon_sym_LT_LT] = ACTIONS(325), + [anon_sym_LT_LT_DASH] = ACTIONS(325), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(325), + [anon_sym_LF] = ACTIONS(325), }, [158] = { - [anon_sym_RPAREN] = ACTIONS(375), - [anon_sym_SEMI_SEMI] = ACTIONS(375), - [anon_sym_PIPE] = ACTIONS(375), - [anon_sym_PIPE_AMP] = ACTIONS(375), - [anon_sym_AMP_AMP] = ACTIONS(375), - [anon_sym_PIPE_PIPE] = ACTIONS(375), - [anon_sym_LT] = ACTIONS(375), - [anon_sym_GT] = ACTIONS(375), - [anon_sym_LT_AMP] = ACTIONS(375), - [anon_sym_GT_AMP] = ACTIONS(375), - [anon_sym_LT_LT] = ACTIONS(375), - [anon_sym_LT_LT_DASH] = ACTIONS(375), - [sym_file_descriptor] = ACTIONS(375), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(375), - [anon_sym_LF] = ACTIONS(375), + [sym_file_descriptor] = ACTIONS(327), + [anon_sym_RPAREN] = ACTIONS(331), + [anon_sym_SEMI_SEMI] = ACTIONS(331), + [anon_sym_PIPE] = ACTIONS(331), + [anon_sym_PIPE_AMP] = ACTIONS(331), + [anon_sym_AMP_AMP] = ACTIONS(331), + [anon_sym_PIPE_PIPE] = ACTIONS(331), + [anon_sym_LT] = ACTIONS(331), + [anon_sym_GT] = ACTIONS(331), + [anon_sym_GT_GT] = ACTIONS(331), + [anon_sym_AMP_GT] = ACTIONS(331), + [anon_sym_AMP_GT_GT] = ACTIONS(331), + [anon_sym_LT_AMP] = ACTIONS(331), + [anon_sym_GT_AMP] = ACTIONS(331), + [anon_sym_LT_LT] = ACTIONS(331), + [anon_sym_LT_LT_DASH] = ACTIONS(331), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(331), + [anon_sym_LF] = ACTIONS(331), }, [159] = { - [anon_sym_RPAREN] = ACTIONS(379), - [anon_sym_SEMI_SEMI] = ACTIONS(379), - [anon_sym_PIPE] = ACTIONS(379), - [anon_sym_PIPE_AMP] = ACTIONS(379), - [anon_sym_AMP_AMP] = ACTIONS(379), - [anon_sym_PIPE_PIPE] = ACTIONS(379), - [anon_sym_LT] = ACTIONS(379), - [anon_sym_GT] = ACTIONS(379), - [anon_sym_LT_AMP] = ACTIONS(379), - [anon_sym_GT_AMP] = ACTIONS(379), - [anon_sym_LT_LT] = ACTIONS(379), - [anon_sym_LT_LT_DASH] = ACTIONS(379), - [sym_file_descriptor] = ACTIONS(379), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(379), - [anon_sym_LF] = ACTIONS(379), + [sym_file_descriptor] = ACTIONS(385), + [anon_sym_RPAREN] = ACTIONS(343), + [anon_sym_SEMI_SEMI] = ACTIONS(343), + [anon_sym_PIPE] = ACTIONS(343), + [anon_sym_PIPE_AMP] = ACTIONS(343), + [anon_sym_AMP_AMP] = ACTIONS(343), + [anon_sym_PIPE_PIPE] = ACTIONS(343), + [anon_sym_DQUOTE] = ACTIONS(343), + [sym_single_quoted_argument] = ACTIONS(343), + [anon_sym_DOLLAR] = ACTIONS(343), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(343), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(343), + [anon_sym_LT] = ACTIONS(343), + [anon_sym_GT] = ACTIONS(343), + [anon_sym_GT_GT] = ACTIONS(343), + [anon_sym_AMP_GT] = ACTIONS(343), + [anon_sym_AMP_GT_GT] = ACTIONS(343), + [anon_sym_LT_AMP] = ACTIONS(343), + [anon_sym_GT_AMP] = ACTIONS(343), + [anon_sym_LT_LT] = ACTIONS(343), + [anon_sym_LT_LT_DASH] = ACTIONS(343), + [sym_word] = ACTIONS(343), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(343), + [anon_sym_LF] = ACTIONS(343), }, [160] = { - [sym_quoted_argument] = STATE(145), - [sym_expansion] = STATE(145), - [sym_operator_expansion] = STATE(145), - [sym_command_substitution] = STATE(145), - [sym_file_redirect] = STATE(43), - [sym_heredoc_redirect] = STATE(43), - [aux_sym_command_repeat2] = STATE(214), - [anon_sym_RPAREN] = ACTIONS(573), - [anon_sym_SEMI_SEMI] = ACTIONS(573), - [anon_sym_PIPE] = ACTIONS(573), - [anon_sym_PIPE_AMP] = ACTIONS(573), - [anon_sym_AMP_AMP] = ACTIONS(573), - [anon_sym_PIPE_PIPE] = ACTIONS(573), - [anon_sym_DQUOTE] = ACTIONS(229), - [sym_single_quoted_argument] = ACTIONS(389), - [anon_sym_DOLLAR] = ACTIONS(233), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(235), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(237), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_word] = ACTIONS(391), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(573), - [anon_sym_LF] = ACTIONS(573), + [sym_expansion] = STATE(134), + [sym_operator_expansion] = STATE(134), + [sym_command_substitution] = STATE(134), + [anon_sym_DQUOTE] = ACTIONS(603), + [sym__quoted_chars] = ACTIONS(355), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), }, [161] = { - [sym_file_redirect] = STATE(100), - [sym_heredoc_redirect] = STATE(100), - [anon_sym_RPAREN] = ACTIONS(573), - [anon_sym_SEMI_SEMI] = ACTIONS(573), - [anon_sym_PIPE] = ACTIONS(573), - [anon_sym_PIPE_AMP] = ACTIONS(573), - [anon_sym_AMP_AMP] = ACTIONS(573), - [anon_sym_PIPE_PIPE] = ACTIONS(573), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(573), - [anon_sym_LF] = ACTIONS(573), + [sym_file_descriptor] = ACTIONS(391), + [anon_sym_RPAREN] = ACTIONS(361), + [anon_sym_SEMI_SEMI] = ACTIONS(361), + [anon_sym_PIPE] = ACTIONS(361), + [anon_sym_PIPE_AMP] = ACTIONS(361), + [anon_sym_AMP_AMP] = ACTIONS(361), + [anon_sym_PIPE_PIPE] = ACTIONS(361), + [anon_sym_DQUOTE] = ACTIONS(361), + [sym_single_quoted_argument] = ACTIONS(361), + [anon_sym_DOLLAR] = ACTIONS(361), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(361), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(361), + [anon_sym_LT] = ACTIONS(361), + [anon_sym_GT] = ACTIONS(361), + [anon_sym_GT_GT] = ACTIONS(361), + [anon_sym_AMP_GT] = ACTIONS(361), + [anon_sym_AMP_GT_GT] = ACTIONS(361), + [anon_sym_LT_AMP] = ACTIONS(361), + [anon_sym_GT_AMP] = ACTIONS(361), + [anon_sym_LT_LT] = ACTIONS(361), + [anon_sym_LT_LT_DASH] = ACTIONS(361), + [sym_word] = ACTIONS(361), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(361), + [anon_sym_LF] = ACTIONS(361), }, [162] = { - [sym_expansion] = STATE(56), - [sym_operator_expansion] = STATE(56), - [sym_command_substitution] = STATE(56), - [aux_sym_quoted_argument_repeat1] = STATE(216), - [anon_sym_DQUOTE] = ACTIONS(575), - [sym__quoted_chars] = ACTIONS(169), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), + [anon_sym_EQ] = ACTIONS(605), + [anon_sym_COLON] = ACTIONS(607), + [anon_sym_COLON_QMARK] = ACTIONS(605), + [anon_sym_RBRACE] = ACTIONS(609), + [sym_comment] = ACTIONS(71), }, [163] = { - [anon_sym_LT] = ACTIONS(577), - [anon_sym_GT] = ACTIONS(577), - [anon_sym_LT_AMP] = ACTIONS(577), - [anon_sym_GT_AMP] = ACTIONS(577), - [sym_file_descriptor] = ACTIONS(577), - [sym_leading_word] = ACTIONS(395), + [anon_sym_RPAREN] = ACTIONS(611), [sym_comment] = ACTIONS(71), }, [164] = { - [sym_word] = ACTIONS(579), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(407), + [anon_sym_RPAREN] = ACTIONS(409), + [anon_sym_SEMI_SEMI] = ACTIONS(409), + [anon_sym_PIPE] = ACTIONS(409), + [anon_sym_PIPE_AMP] = ACTIONS(409), + [anon_sym_AMP_AMP] = ACTIONS(409), + [anon_sym_PIPE_PIPE] = ACTIONS(409), + [anon_sym_DQUOTE] = ACTIONS(409), + [sym_single_quoted_argument] = ACTIONS(409), + [anon_sym_DOLLAR] = ACTIONS(409), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(409), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(409), + [anon_sym_LT] = ACTIONS(409), + [anon_sym_GT] = ACTIONS(409), + [anon_sym_GT_GT] = ACTIONS(409), + [anon_sym_AMP_GT] = ACTIONS(409), + [anon_sym_AMP_GT_GT] = ACTIONS(409), + [anon_sym_LT_AMP] = ACTIONS(409), + [anon_sym_GT_AMP] = ACTIONS(409), + [anon_sym_LT_LT] = ACTIONS(409), + [anon_sym_LT_LT_DASH] = ACTIONS(409), + [sym_word] = ACTIONS(409), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(409), + [anon_sym_LF] = ACTIONS(409), }, [165] = { - [sym_leading_word] = ACTIONS(581), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(413), + [anon_sym_RPAREN] = ACTIONS(415), + [anon_sym_SEMI_SEMI] = ACTIONS(415), + [anon_sym_PIPE] = ACTIONS(415), + [anon_sym_PIPE_AMP] = ACTIONS(415), + [anon_sym_AMP_AMP] = ACTIONS(415), + [anon_sym_PIPE_PIPE] = ACTIONS(415), + [anon_sym_DQUOTE] = ACTIONS(415), + [sym_single_quoted_argument] = ACTIONS(415), + [anon_sym_DOLLAR] = ACTIONS(415), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(415), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(415), + [anon_sym_LT] = ACTIONS(415), + [anon_sym_GT] = ACTIONS(415), + [anon_sym_GT_GT] = ACTIONS(415), + [anon_sym_AMP_GT] = ACTIONS(415), + [anon_sym_AMP_GT_GT] = ACTIONS(415), + [anon_sym_LT_AMP] = ACTIONS(415), + [anon_sym_GT_AMP] = ACTIONS(415), + [anon_sym_LT_LT] = ACTIONS(415), + [anon_sym_LT_LT_DASH] = ACTIONS(415), + [sym_word] = ACTIONS(415), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(415), + [anon_sym_LF] = ACTIONS(415), }, [166] = { - [sym_command] = STATE(219), - [sym_environment_variable_assignment] = STATE(14), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(67), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(185), - [sym_comment] = ACTIONS(71), + [sym_file_redirect] = STATE(113), + [sym_heredoc_redirect] = STATE(113), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_SEMI_SEMI] = ACTIONS(613), + [anon_sym_PIPE] = ACTIONS(613), + [anon_sym_PIPE_AMP] = ACTIONS(613), + [anon_sym_AMP_AMP] = ACTIONS(613), + [anon_sym_PIPE_PIPE] = ACTIONS(613), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(613), + [anon_sym_LF] = ACTIONS(613), }, [167] = { - [anon_sym_LT] = ACTIONS(583), - [anon_sym_GT] = ACTIONS(583), - [anon_sym_LT_AMP] = ACTIONS(583), - [anon_sym_GT_AMP] = ACTIONS(583), - [sym_file_descriptor] = ACTIONS(583), - [sym_leading_word] = ACTIONS(401), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(385), + [anon_sym_SEMI_SEMI] = ACTIONS(343), + [anon_sym_PIPE] = ACTIONS(343), + [anon_sym_PIPE_AMP] = ACTIONS(343), + [anon_sym_AMP_AMP] = ACTIONS(343), + [anon_sym_PIPE_PIPE] = ACTIONS(343), + [anon_sym_RBRACE] = ACTIONS(343), + [anon_sym_LT] = ACTIONS(343), + [anon_sym_GT] = ACTIONS(343), + [anon_sym_GT_GT] = ACTIONS(343), + [anon_sym_AMP_GT] = ACTIONS(343), + [anon_sym_AMP_GT_GT] = ACTIONS(343), + [anon_sym_LT_AMP] = ACTIONS(343), + [anon_sym_GT_AMP] = ACTIONS(343), + [sym_leading_word] = ACTIONS(343), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(343), + [anon_sym_LF] = ACTIONS(343), }, [168] = { - [anon_sym_SEMI_SEMI] = ACTIONS(585), - [anon_sym_PIPE] = ACTIONS(585), - [anon_sym_PIPE_AMP] = ACTIONS(585), - [anon_sym_AMP_AMP] = ACTIONS(585), - [anon_sym_PIPE_PIPE] = ACTIONS(585), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(585), - [anon_sym_LF] = ACTIONS(585), + [sym_expansion] = STATE(134), + [sym_operator_expansion] = STATE(134), + [sym_command_substitution] = STATE(134), + [anon_sym_DQUOTE] = ACTIONS(615), + [sym__quoted_chars] = ACTIONS(355), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), }, [169] = { - [anon_sym_then] = ACTIONS(587), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(391), + [anon_sym_SEMI_SEMI] = ACTIONS(361), + [anon_sym_PIPE] = ACTIONS(361), + [anon_sym_PIPE_AMP] = ACTIONS(361), + [anon_sym_AMP_AMP] = ACTIONS(361), + [anon_sym_PIPE_PIPE] = ACTIONS(361), + [anon_sym_RBRACE] = ACTIONS(361), + [anon_sym_LT] = ACTIONS(361), + [anon_sym_GT] = ACTIONS(361), + [anon_sym_GT_GT] = ACTIONS(361), + [anon_sym_AMP_GT] = ACTIONS(361), + [anon_sym_AMP_GT_GT] = ACTIONS(361), + [anon_sym_LT_AMP] = ACTIONS(361), + [anon_sym_GT_AMP] = ACTIONS(361), + [sym_leading_word] = ACTIONS(361), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(361), + [anon_sym_LF] = ACTIONS(361), }, [170] = { - [sym__terminated_statement] = STATE(48), + [anon_sym_EQ] = ACTIONS(617), + [anon_sym_COLON] = ACTIONS(619), + [anon_sym_COLON_QMARK] = ACTIONS(617), + [anon_sym_RBRACE] = ACTIONS(621), + [sym_comment] = ACTIONS(71), + }, + [171] = { + [anon_sym_RPAREN] = ACTIONS(623), + [sym_comment] = ACTIONS(71), + }, + [172] = { + [sym_file_descriptor] = ACTIONS(385), + [anon_sym_RPAREN] = ACTIONS(343), + [anon_sym_SEMI_SEMI] = ACTIONS(343), + [anon_sym_PIPE] = ACTIONS(343), + [anon_sym_PIPE_AMP] = ACTIONS(343), + [anon_sym_AMP_AMP] = ACTIONS(343), + [anon_sym_PIPE_PIPE] = ACTIONS(343), + [anon_sym_LT] = ACTIONS(343), + [anon_sym_GT] = ACTIONS(343), + [anon_sym_GT_GT] = ACTIONS(343), + [anon_sym_AMP_GT] = ACTIONS(343), + [anon_sym_AMP_GT_GT] = ACTIONS(343), + [anon_sym_LT_AMP] = ACTIONS(343), + [anon_sym_GT_AMP] = ACTIONS(343), + [anon_sym_LT_LT] = ACTIONS(343), + [anon_sym_LT_LT_DASH] = ACTIONS(343), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(343), + [anon_sym_LF] = ACTIONS(343), + }, + [173] = { + [sym_expansion] = STATE(134), + [sym_operator_expansion] = STATE(134), + [sym_command_substitution] = STATE(134), + [anon_sym_DQUOTE] = ACTIONS(625), + [sym__quoted_chars] = ACTIONS(355), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), + }, + [174] = { + [sym_file_descriptor] = ACTIONS(391), + [anon_sym_RPAREN] = ACTIONS(361), + [anon_sym_SEMI_SEMI] = ACTIONS(361), + [anon_sym_PIPE] = ACTIONS(361), + [anon_sym_PIPE_AMP] = ACTIONS(361), + [anon_sym_AMP_AMP] = ACTIONS(361), + [anon_sym_PIPE_PIPE] = ACTIONS(361), + [anon_sym_LT] = ACTIONS(361), + [anon_sym_GT] = ACTIONS(361), + [anon_sym_GT_GT] = ACTIONS(361), + [anon_sym_AMP_GT] = ACTIONS(361), + [anon_sym_AMP_GT_GT] = ACTIONS(361), + [anon_sym_LT_AMP] = ACTIONS(361), + [anon_sym_GT_AMP] = ACTIONS(361), + [anon_sym_LT_LT] = ACTIONS(361), + [anon_sym_LT_LT_DASH] = ACTIONS(361), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(361), + [anon_sym_LF] = ACTIONS(361), + }, + [175] = { + [anon_sym_EQ] = ACTIONS(627), + [anon_sym_COLON] = ACTIONS(629), + [anon_sym_COLON_QMARK] = ACTIONS(627), + [anon_sym_RBRACE] = ACTIONS(631), + [sym_comment] = ACTIONS(71), + }, + [176] = { + [anon_sym_RPAREN] = ACTIONS(633), + [sym_comment] = ACTIONS(71), + }, + [177] = { + [sym__heredoc_middle] = ACTIONS(635), + [sym__heredoc_end] = ACTIONS(635), + [anon_sym_DOLLAR] = ACTIONS(637), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(635), + [sym_comment] = ACTIONS(71), + }, + [178] = { + [sym_file_descriptor] = ACTIONS(639), + [anon_sym_RPAREN] = ACTIONS(641), + [anon_sym_SEMI_SEMI] = ACTIONS(641), + [anon_sym_PIPE] = ACTIONS(641), + [anon_sym_PIPE_AMP] = ACTIONS(641), + [anon_sym_AMP_AMP] = ACTIONS(641), + [anon_sym_PIPE_PIPE] = ACTIONS(641), + [anon_sym_LT] = ACTIONS(641), + [anon_sym_GT] = ACTIONS(641), + [anon_sym_GT_GT] = ACTIONS(641), + [anon_sym_AMP_GT] = ACTIONS(641), + [anon_sym_AMP_GT_GT] = ACTIONS(641), + [anon_sym_LT_AMP] = ACTIONS(641), + [anon_sym_GT_AMP] = ACTIONS(641), + [anon_sym_LT_LT] = ACTIONS(641), + [anon_sym_LT_LT_DASH] = ACTIONS(641), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(641), + [anon_sym_LF] = ACTIONS(641), + }, + [179] = { + [sym_word] = ACTIONS(643), + [sym_comment] = ACTIONS(71), + }, + [180] = { + [sym_leading_word] = ACTIONS(645), + [sym_comment] = ACTIONS(71), + }, + [181] = { + [sym_expansion] = STATE(242), + [sym_operator_expansion] = STATE(242), + [sym__heredoc_middle] = ACTIONS(647), + [sym__heredoc_end] = ACTIONS(649), + [anon_sym_DOLLAR] = ACTIONS(471), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(473), + [sym_comment] = ACTIONS(71), + }, + [182] = { + [sym_quoted_argument] = STATE(164), + [sym_expansion] = STATE(164), + [sym_operator_expansion] = STATE(164), + [sym_command_substitution] = STATE(164), + [sym_file_redirect] = STATE(47), + [sym_heredoc_redirect] = STATE(47), + [aux_sym_command_repeat2] = STATE(244), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_RPAREN] = ACTIONS(651), + [anon_sym_SEMI_SEMI] = ACTIONS(651), + [anon_sym_PIPE] = ACTIONS(651), + [anon_sym_PIPE_AMP] = ACTIONS(651), + [anon_sym_AMP_AMP] = ACTIONS(651), + [anon_sym_PIPE_PIPE] = ACTIONS(651), + [anon_sym_DQUOTE] = ACTIONS(253), + [sym_single_quoted_argument] = ACTIONS(439), + [anon_sym_DOLLAR] = ACTIONS(257), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(259), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(261), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_word] = ACTIONS(441), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(651), + [anon_sym_LF] = ACTIONS(651), + }, + [183] = { + [sym_file_redirect] = STATE(113), + [sym_heredoc_redirect] = STATE(113), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_RPAREN] = ACTIONS(651), + [anon_sym_SEMI_SEMI] = ACTIONS(651), + [anon_sym_PIPE] = ACTIONS(651), + [anon_sym_PIPE_AMP] = ACTIONS(651), + [anon_sym_AMP_AMP] = ACTIONS(651), + [anon_sym_PIPE_PIPE] = ACTIONS(651), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(651), + [anon_sym_LF] = ACTIONS(651), + }, + [184] = { + [sym_file_descriptor] = ACTIONS(445), + [anon_sym_LT] = ACTIONS(653), + [anon_sym_GT] = ACTIONS(653), + [anon_sym_GT_GT] = ACTIONS(653), + [anon_sym_AMP_GT] = ACTIONS(653), + [anon_sym_AMP_GT_GT] = ACTIONS(653), + [anon_sym_LT_AMP] = ACTIONS(653), + [anon_sym_GT_AMP] = ACTIONS(653), + [sym_leading_word] = ACTIONS(447), + [sym_comment] = ACTIONS(71), + }, + [185] = { + [sym_file_descriptor] = ACTIONS(453), + [anon_sym_LT] = ACTIONS(655), + [anon_sym_GT] = ACTIONS(655), + [anon_sym_GT_GT] = ACTIONS(655), + [anon_sym_AMP_GT] = ACTIONS(655), + [anon_sym_AMP_GT_GT] = ACTIONS(655), + [anon_sym_LT_AMP] = ACTIONS(655), + [anon_sym_GT_AMP] = ACTIONS(655), + [sym_leading_word] = ACTIONS(455), + [sym_comment] = ACTIONS(71), + }, + [186] = { + [anon_sym_SEMI_SEMI] = ACTIONS(657), + [anon_sym_PIPE] = ACTIONS(657), + [anon_sym_PIPE_AMP] = ACTIONS(657), + [anon_sym_AMP_AMP] = ACTIONS(657), + [anon_sym_PIPE_PIPE] = ACTIONS(657), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(657), + [anon_sym_LF] = ACTIONS(657), + }, + [187] = { + [anon_sym_then] = ACTIONS(659), + [sym_comment] = ACTIONS(71), + }, + [188] = { + [sym__terminated_statement] = STATE(52), [sym_while_statement] = STATE(12), [sym_if_statement] = STATE(12), [sym_case_statement] = STATE(12), @@ -8811,1441 +9355,772 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_environment_variable_assignment] = STATE(13), [sym_file_redirect] = STATE(14), [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_fi] = ACTIONS(589), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_fi] = ACTIONS(661), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, - [171] = { - [anon_sym_SEMI_SEMI] = ACTIONS(591), - [anon_sym_PIPE] = ACTIONS(591), - [anon_sym_PIPE_AMP] = ACTIONS(591), - [anon_sym_AMP_AMP] = ACTIONS(591), - [anon_sym_PIPE_PIPE] = ACTIONS(591), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(591), - [anon_sym_LF] = ACTIONS(591), - }, - [172] = { - [anon_sym_fi] = ACTIONS(593), - [sym_comment] = ACTIONS(71), - }, - [173] = { - [sym_elif_clause] = STATE(174), - [sym_else_clause] = STATE(222), - [anon_sym_fi] = ACTIONS(593), - [anon_sym_elif] = ACTIONS(453), - [anon_sym_else] = ACTIONS(455), - [sym_comment] = ACTIONS(71), - }, - [174] = { - [anon_sym_fi] = ACTIONS(595), - [anon_sym_elif] = ACTIONS(595), - [anon_sym_else] = ACTIONS(595), - [sym_comment] = ACTIONS(71), - }, - [175] = { - [sym_quoted_argument] = STATE(223), - [sym_expansion] = STATE(223), - [sym_operator_expansion] = STATE(223), - [sym_command_substitution] = STATE(223), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(597), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(599), - [sym_comment] = ACTIONS(71), - }, - [176] = { - [anon_sym_DQUOTE] = ACTIONS(483), - [sym__quoted_chars] = ACTIONS(531), - [anon_sym_DOLLAR] = ACTIONS(483), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(483), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(483), - [sym_comment] = ACTIONS(137), - }, - [177] = { - [anon_sym_DQUOTE] = ACTIONS(513), - [sym__quoted_chars] = ACTIONS(535), - [anon_sym_DOLLAR] = ACTIONS(513), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(513), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(513), - [sym_comment] = ACTIONS(137), - }, - [178] = { - [anon_sym_SEMI_SEMI] = ACTIONS(601), - [anon_sym_PIPE] = ACTIONS(601), - [anon_sym_PIPE_AMP] = ACTIONS(601), - [anon_sym_AMP_AMP] = ACTIONS(601), - [anon_sym_PIPE_PIPE] = ACTIONS(601), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(601), - [anon_sym_LF] = ACTIONS(601), - }, - [179] = { - [anon_sym_RPAREN] = ACTIONS(603), - [sym_comment] = ACTIONS(71), - }, - [180] = { - [anon_sym_RPAREN] = ACTIONS(605), - [sym_comment] = ACTIONS(71), - }, - [181] = { - [anon_sym_esac] = ACTIONS(607), - [anon_sym_DQUOTE] = ACTIONS(609), - [sym_single_quoted_argument] = ACTIONS(607), - [anon_sym_DOLLAR] = ACTIONS(607), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(609), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(609), - [sym_word] = ACTIONS(611), - [sym_comment] = ACTIONS(71), - }, - [182] = { - [sym_case_item] = STATE(228), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [anon_sym_esac] = ACTIONS(613), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(473), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(475), - [sym_comment] = ACTIONS(71), - }, - [183] = { - [sym_case_item] = STATE(181), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [aux_sym_case_statement_repeat1] = STATE(229), - [anon_sym_esac] = ACTIONS(613), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(473), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(475), - [sym_comment] = ACTIONS(71), - }, - [184] = { - [anon_sym_RBRACE] = ACTIONS(615), - [sym_comment] = ACTIONS(71), - }, - [185] = { - [anon_sym_RBRACE] = ACTIONS(617), - [sym_comment] = ACTIONS(71), - }, - [186] = { - [sym_quoted_argument] = STATE(76), - [sym_expansion] = STATE(76), - [sym_operator_expansion] = STATE(76), - [sym_command_substitution] = STATE(76), - [sym_file_redirect] = STATE(130), - [sym_heredoc_redirect] = STATE(130), - [aux_sym_command_repeat2] = STATE(232), - [anon_sym_RPAREN] = ACTIONS(619), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(211), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [anon_sym_LT] = ACTIONS(487), - [anon_sym_GT] = ACTIONS(487), - [anon_sym_LT_AMP] = ACTIONS(489), - [anon_sym_GT_AMP] = ACTIONS(489), - [anon_sym_LT_LT] = ACTIONS(491), - [anon_sym_LT_LT_DASH] = ACTIONS(493), - [sym_file_descriptor] = ACTIONS(495), - [sym_word] = ACTIONS(213), - [sym_comment] = ACTIONS(71), - }, - [187] = { - [sym_file_redirect] = STATE(194), - [sym_heredoc_redirect] = STATE(194), - [anon_sym_RPAREN] = ACTIONS(619), - [anon_sym_LT] = ACTIONS(487), - [anon_sym_GT] = ACTIONS(487), - [anon_sym_LT_AMP] = ACTIONS(489), - [anon_sym_GT_AMP] = ACTIONS(489), - [anon_sym_LT_LT] = ACTIONS(491), - [anon_sym_LT_LT_DASH] = ACTIONS(493), - [sym_file_descriptor] = ACTIONS(495), - [sym_comment] = ACTIONS(71), - }, - [188] = { - [anon_sym_RPAREN] = ACTIONS(621), - [anon_sym_LT] = ACTIONS(215), - [anon_sym_GT] = ACTIONS(215), - [anon_sym_LT_AMP] = ACTIONS(621), - [anon_sym_GT_AMP] = ACTIONS(621), - [anon_sym_LT_LT] = ACTIONS(215), - [anon_sym_LT_LT_DASH] = ACTIONS(621), - [sym_file_descriptor] = ACTIONS(215), - [sym_comment] = ACTIONS(71), - }, [189] = { - [anon_sym_RPAREN] = ACTIONS(623), - [anon_sym_LT] = ACTIONS(219), - [anon_sym_GT] = ACTIONS(219), - [anon_sym_LT_AMP] = ACTIONS(623), - [anon_sym_GT_AMP] = ACTIONS(623), - [anon_sym_LT_LT] = ACTIONS(219), - [anon_sym_LT_LT_DASH] = ACTIONS(623), - [sym_file_descriptor] = ACTIONS(219), - [sym_comment] = ACTIONS(71), + [anon_sym_SEMI_SEMI] = ACTIONS(663), + [anon_sym_PIPE] = ACTIONS(663), + [anon_sym_PIPE_AMP] = ACTIONS(663), + [anon_sym_AMP_AMP] = ACTIONS(663), + [anon_sym_PIPE_PIPE] = ACTIONS(663), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(663), + [anon_sym_LF] = ACTIONS(663), }, [190] = { - [anon_sym_RPAREN] = ACTIONS(625), - [anon_sym_LT] = ACTIONS(627), - [anon_sym_GT] = ACTIONS(627), - [anon_sym_LT_AMP] = ACTIONS(625), - [anon_sym_GT_AMP] = ACTIONS(625), - [anon_sym_LT_LT] = ACTIONS(627), - [anon_sym_LT_LT_DASH] = ACTIONS(625), - [sym_file_descriptor] = ACTIONS(627), + [anon_sym_fi] = ACTIONS(665), [sym_comment] = ACTIONS(71), }, [191] = { - [sym_expansion] = STATE(153), - [sym_operator_expansion] = STATE(153), - [aux_sym_heredoc_repeat1] = STATE(234), - [sym__heredoc_middle] = ACTIONS(405), - [sym__heredoc_end] = ACTIONS(629), - [anon_sym_DOLLAR] = ACTIONS(409), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(411), + [sym_elif_clause] = STATE(192), + [sym_else_clause] = STATE(247), + [anon_sym_fi] = ACTIONS(665), + [anon_sym_elif] = ACTIONS(507), + [anon_sym_else] = ACTIONS(509), [sym_comment] = ACTIONS(71), }, [192] = { - [anon_sym_RPAREN] = ACTIONS(631), - [anon_sym_LT] = ACTIONS(633), - [anon_sym_GT] = ACTIONS(633), - [anon_sym_LT_AMP] = ACTIONS(631), - [anon_sym_GT_AMP] = ACTIONS(631), - [anon_sym_LT_LT] = ACTIONS(633), - [anon_sym_LT_LT_DASH] = ACTIONS(631), - [sym_file_descriptor] = ACTIONS(633), + [anon_sym_fi] = ACTIONS(667), + [anon_sym_elif] = ACTIONS(667), + [anon_sym_else] = ACTIONS(667), [sym_comment] = ACTIONS(71), }, [193] = { - [sym_file_descriptor] = ACTIONS(635), - [sym_word] = ACTIONS(637), + [sym_quoted_argument] = STATE(248), + [sym_expansion] = STATE(248), + [sym_operator_expansion] = STATE(248), + [sym_command_substitution] = STATE(248), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(669), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(671), [sym_comment] = ACTIONS(71), }, [194] = { - [anon_sym_RPAREN] = ACTIONS(639), - [anon_sym_LT] = ACTIONS(641), - [anon_sym_GT] = ACTIONS(641), - [anon_sym_LT_AMP] = ACTIONS(639), - [anon_sym_GT_AMP] = ACTIONS(639), - [anon_sym_LT_LT] = ACTIONS(641), - [anon_sym_LT_LT_DASH] = ACTIONS(639), - [sym_file_descriptor] = ACTIONS(641), - [sym_comment] = ACTIONS(71), + [anon_sym_DQUOTE] = ACTIONS(537), + [sym__quoted_chars] = ACTIONS(593), + [anon_sym_DOLLAR] = ACTIONS(537), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(537), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(537), + [sym_comment] = ACTIONS(145), }, [195] = { - [sym_quoted_argument] = STATE(28), - [sym_expansion] = STATE(28), - [sym_operator_expansion] = STATE(28), - [sym_command_substitution] = STATE(28), - [sym_file_redirect] = STATE(130), - [sym_heredoc_redirect] = STATE(130), - [aux_sym_bracket_command_repeat1] = STATE(237), - [aux_sym_command_repeat2] = STATE(238), - [anon_sym_RPAREN] = ACTIONS(643), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(107), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [anon_sym_LT] = ACTIONS(487), - [anon_sym_GT] = ACTIONS(487), - [anon_sym_LT_AMP] = ACTIONS(489), - [anon_sym_GT_AMP] = ACTIONS(489), - [anon_sym_LT_LT] = ACTIONS(491), - [anon_sym_LT_LT_DASH] = ACTIONS(493), - [sym_file_descriptor] = ACTIONS(495), - [sym_word] = ACTIONS(115), - [sym_comment] = ACTIONS(71), + [anon_sym_DQUOTE] = ACTIONS(575), + [sym__quoted_chars] = ACTIONS(597), + [anon_sym_DOLLAR] = ACTIONS(575), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(575), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(575), + [sym_comment] = ACTIONS(145), }, [196] = { - [sym_file_redirect] = STATE(194), - [sym_heredoc_redirect] = STATE(194), - [anon_sym_RPAREN] = ACTIONS(643), - [anon_sym_LT] = ACTIONS(487), - [anon_sym_GT] = ACTIONS(487), - [anon_sym_LT_AMP] = ACTIONS(489), - [anon_sym_GT_AMP] = ACTIONS(489), - [anon_sym_LT_LT] = ACTIONS(491), - [anon_sym_LT_LT_DASH] = ACTIONS(493), - [sym_file_descriptor] = ACTIONS(495), - [sym_comment] = ACTIONS(71), - }, - [197] = { - [anon_sym_SEMI_SEMI] = ACTIONS(645), - [anon_sym_PIPE] = ACTIONS(645), - [anon_sym_PIPE_AMP] = ACTIONS(645), - [anon_sym_AMP_AMP] = ACTIONS(645), - [anon_sym_PIPE_PIPE] = ACTIONS(645), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(645), - [anon_sym_LF] = ACTIONS(645), - }, - [198] = { - [sym_case_item] = STATE(228), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [anon_sym_esac] = ACTIONS(647), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(473), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(475), - [sym_comment] = ACTIONS(71), - }, - [199] = { - [sym_case_item] = STATE(181), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [aux_sym_case_statement_repeat1] = STATE(240), - [anon_sym_esac] = ACTIONS(647), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(473), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(475), - [sym_comment] = ACTIONS(71), - }, - [200] = { - [anon_sym_RBRACE] = ACTIONS(649), - [sym_comment] = ACTIONS(71), - }, - [201] = { - [anon_sym_RBRACE] = ACTIONS(651), - [sym_comment] = ACTIONS(71), - }, - [202] = { - [anon_sym_RPAREN] = ACTIONS(465), - [anon_sym_SEMI_SEMI] = ACTIONS(465), - [anon_sym_PIPE] = ACTIONS(465), - [anon_sym_PIPE_AMP] = ACTIONS(465), - [anon_sym_AMP_AMP] = ACTIONS(465), - [anon_sym_PIPE_PIPE] = ACTIONS(465), - [anon_sym_DQUOTE] = ACTIONS(465), - [sym_single_quoted_argument] = ACTIONS(465), - [anon_sym_DOLLAR] = ACTIONS(465), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(465), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(465), - [anon_sym_LT] = ACTIONS(465), - [anon_sym_GT] = ACTIONS(465), - [anon_sym_LT_AMP] = ACTIONS(465), - [anon_sym_GT_AMP] = ACTIONS(465), - [anon_sym_LT_LT] = ACTIONS(465), - [anon_sym_LT_LT_DASH] = ACTIONS(465), - [sym_file_descriptor] = ACTIONS(465), - [sym_word] = ACTIONS(465), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(465), - [anon_sym_LF] = ACTIONS(465), - }, - [203] = { - [sym_quoted_argument] = STATE(243), - [sym_expansion] = STATE(243), - [sym_operator_expansion] = STATE(243), - [sym_command_substitution] = STATE(243), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(653), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(655), - [sym_comment] = ACTIONS(71), - }, - [204] = { - [anon_sym_RPAREN] = ACTIONS(483), - [anon_sym_SEMI_SEMI] = ACTIONS(483), - [anon_sym_PIPE] = ACTIONS(483), - [anon_sym_PIPE_AMP] = ACTIONS(483), - [anon_sym_AMP_AMP] = ACTIONS(483), - [anon_sym_PIPE_PIPE] = ACTIONS(483), - [anon_sym_DQUOTE] = ACTIONS(483), - [sym_single_quoted_argument] = ACTIONS(483), - [anon_sym_DOLLAR] = ACTIONS(483), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(483), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(483), - [anon_sym_LT] = ACTIONS(483), - [anon_sym_GT] = ACTIONS(483), - [anon_sym_LT_AMP] = ACTIONS(483), - [anon_sym_GT_AMP] = ACTIONS(483), - [anon_sym_LT_LT] = ACTIONS(483), - [anon_sym_LT_LT_DASH] = ACTIONS(483), - [sym_file_descriptor] = ACTIONS(483), - [sym_word] = ACTIONS(483), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(483), - [anon_sym_LF] = ACTIONS(483), - }, - [205] = { - [anon_sym_RPAREN] = ACTIONS(513), - [anon_sym_SEMI_SEMI] = ACTIONS(513), - [anon_sym_PIPE] = ACTIONS(513), - [anon_sym_PIPE_AMP] = ACTIONS(513), - [anon_sym_AMP_AMP] = ACTIONS(513), - [anon_sym_PIPE_PIPE] = ACTIONS(513), - [anon_sym_DQUOTE] = ACTIONS(513), - [sym_single_quoted_argument] = ACTIONS(513), - [anon_sym_DOLLAR] = ACTIONS(513), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(513), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(513), - [anon_sym_LT] = ACTIONS(513), - [anon_sym_GT] = ACTIONS(513), - [anon_sym_LT_AMP] = ACTIONS(513), - [anon_sym_GT_AMP] = ACTIONS(513), - [anon_sym_LT_LT] = ACTIONS(513), - [anon_sym_LT_LT_DASH] = ACTIONS(513), - [sym_file_descriptor] = ACTIONS(513), - [sym_word] = ACTIONS(513), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(513), - [anon_sym_LF] = ACTIONS(513), - }, - [206] = { - [anon_sym_SEMI_SEMI] = ACTIONS(465), - [anon_sym_PIPE] = ACTIONS(465), - [anon_sym_PIPE_AMP] = ACTIONS(465), - [anon_sym_AMP_AMP] = ACTIONS(465), - [anon_sym_PIPE_PIPE] = ACTIONS(465), - [anon_sym_RBRACE] = ACTIONS(465), - [anon_sym_LT] = ACTIONS(465), - [anon_sym_GT] = ACTIONS(465), - [anon_sym_LT_AMP] = ACTIONS(465), - [anon_sym_GT_AMP] = ACTIONS(465), - [sym_file_descriptor] = ACTIONS(465), - [sym_leading_word] = ACTIONS(465), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(465), - [anon_sym_LF] = ACTIONS(465), - }, - [207] = { - [sym_quoted_argument] = STATE(245), - [sym_expansion] = STATE(245), - [sym_operator_expansion] = STATE(245), - [sym_command_substitution] = STATE(245), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(657), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(659), - [sym_comment] = ACTIONS(71), - }, - [208] = { - [anon_sym_SEMI_SEMI] = ACTIONS(483), - [anon_sym_PIPE] = ACTIONS(483), - [anon_sym_PIPE_AMP] = ACTIONS(483), - [anon_sym_AMP_AMP] = ACTIONS(483), - [anon_sym_PIPE_PIPE] = ACTIONS(483), - [anon_sym_RBRACE] = ACTIONS(483), - [anon_sym_LT] = ACTIONS(483), - [anon_sym_GT] = ACTIONS(483), - [anon_sym_LT_AMP] = ACTIONS(483), - [anon_sym_GT_AMP] = ACTIONS(483), - [sym_file_descriptor] = ACTIONS(483), - [sym_leading_word] = ACTIONS(483), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(483), - [anon_sym_LF] = ACTIONS(483), - }, - [209] = { - [anon_sym_SEMI_SEMI] = ACTIONS(513), - [anon_sym_PIPE] = ACTIONS(513), - [anon_sym_PIPE_AMP] = ACTIONS(513), - [anon_sym_AMP_AMP] = ACTIONS(513), - [anon_sym_PIPE_PIPE] = ACTIONS(513), - [anon_sym_RBRACE] = ACTIONS(513), - [anon_sym_LT] = ACTIONS(513), - [anon_sym_GT] = ACTIONS(513), - [anon_sym_LT_AMP] = ACTIONS(513), - [anon_sym_GT_AMP] = ACTIONS(513), - [sym_file_descriptor] = ACTIONS(513), - [sym_leading_word] = ACTIONS(513), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(513), - [anon_sym_LF] = ACTIONS(513), - }, - [210] = { - [sym__heredoc_middle] = ACTIONS(347), - [sym__heredoc_end] = ACTIONS(347), - [anon_sym_DOLLAR] = ACTIONS(349), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(347), - [sym_comment] = ACTIONS(71), - }, - [211] = { - [anon_sym_EQ] = ACTIONS(661), - [anon_sym_COLON] = ACTIONS(663), - [anon_sym_COLON_QMARK] = ACTIONS(661), - [anon_sym_RBRACE] = ACTIONS(665), - [sym_comment] = ACTIONS(71), - }, - [212] = { - [sym__heredoc_middle] = ACTIONS(667), - [sym__heredoc_end] = ACTIONS(667), - [anon_sym_DOLLAR] = ACTIONS(669), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(667), - [sym_comment] = ACTIONS(71), - }, - [213] = { - [anon_sym_RPAREN] = ACTIONS(671), - [anon_sym_SEMI_SEMI] = ACTIONS(671), - [anon_sym_PIPE] = ACTIONS(671), - [anon_sym_PIPE_AMP] = ACTIONS(671), - [anon_sym_AMP_AMP] = ACTIONS(671), - [anon_sym_PIPE_PIPE] = ACTIONS(671), - [anon_sym_LT] = ACTIONS(671), - [anon_sym_GT] = ACTIONS(671), - [anon_sym_LT_AMP] = ACTIONS(671), - [anon_sym_GT_AMP] = ACTIONS(671), - [anon_sym_LT_LT] = ACTIONS(671), - [anon_sym_LT_LT_DASH] = ACTIONS(671), - [sym_file_descriptor] = ACTIONS(671), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(671), - [anon_sym_LF] = ACTIONS(671), - }, - [214] = { - [sym_file_redirect] = STATE(100), - [sym_heredoc_redirect] = STATE(100), - [anon_sym_RPAREN] = ACTIONS(673), [anon_sym_SEMI_SEMI] = ACTIONS(673), [anon_sym_PIPE] = ACTIONS(673), [anon_sym_PIPE_AMP] = ACTIONS(673), [anon_sym_AMP_AMP] = ACTIONS(673), [anon_sym_PIPE_PIPE] = ACTIONS(673), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_comment] = ACTIONS(137), + [sym_comment] = ACTIONS(145), [anon_sym_SEMI] = ACTIONS(673), [anon_sym_LF] = ACTIONS(673), }, + [197] = { + [anon_sym_RPAREN] = ACTIONS(675), + [sym_comment] = ACTIONS(71), + }, + [198] = { + [anon_sym_RPAREN] = ACTIONS(677), + [sym_comment] = ACTIONS(71), + }, + [199] = { + [anon_sym_esac] = ACTIONS(679), + [anon_sym_DQUOTE] = ACTIONS(681), + [sym_single_quoted_argument] = ACTIONS(679), + [anon_sym_DOLLAR] = ACTIONS(679), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(681), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(681), + [sym_word] = ACTIONS(683), + [sym_comment] = ACTIONS(71), + }, + [200] = { + [sym_case_item] = STATE(253), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [anon_sym_esac] = ACTIONS(685), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(527), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(529), + [sym_comment] = ACTIONS(71), + }, + [201] = { + [sym_case_item] = STATE(199), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [aux_sym_case_statement_repeat1] = STATE(254), + [anon_sym_esac] = ACTIONS(685), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(527), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(529), + [sym_comment] = ACTIONS(71), + }, + [202] = { + [anon_sym_RBRACE] = ACTIONS(687), + [sym_comment] = ACTIONS(71), + }, + [203] = { + [anon_sym_RBRACE] = ACTIONS(689), + [sym_comment] = ACTIONS(71), + }, + [204] = { + [sym_quoted_argument] = STATE(257), + [sym_expansion] = STATE(257), + [sym_operator_expansion] = STATE(257), + [sym_command_substitution] = STATE(257), + [anon_sym_DQUOTE] = ACTIONS(545), + [sym_single_quoted_argument] = ACTIONS(691), + [anon_sym_DOLLAR] = ACTIONS(549), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(551), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(553), + [sym_word] = ACTIONS(693), + [sym_comment] = ACTIONS(71), + }, + [205] = { + [sym_expansion] = STATE(62), + [sym_operator_expansion] = STATE(62), + [sym_command_substitution] = STATE(62), + [aux_sym_quoted_argument_repeat1] = STATE(260), + [anon_sym_DQUOTE] = ACTIONS(695), + [sym__quoted_chars] = ACTIONS(183), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), + }, + [206] = { + [sym_file_descriptor] = ACTIONS(209), + [anon_sym_RPAREN] = ACTIONS(209), + [anon_sym_DQUOTE] = ACTIONS(209), + [sym_single_quoted_argument] = ACTIONS(207), + [anon_sym_DOLLAR] = ACTIONS(207), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(209), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(209), + [anon_sym_LT] = ACTIONS(207), + [anon_sym_GT] = ACTIONS(207), + [anon_sym_GT_GT] = ACTIONS(209), + [anon_sym_AMP_GT] = ACTIONS(207), + [anon_sym_AMP_GT_GT] = ACTIONS(209), + [anon_sym_LT_AMP] = ACTIONS(209), + [anon_sym_GT_AMP] = ACTIONS(209), + [anon_sym_LT_LT] = ACTIONS(207), + [anon_sym_LT_LT_DASH] = ACTIONS(209), + [sym_word] = ACTIONS(211), + [sym_comment] = ACTIONS(71), + }, + [207] = { + [sym_word] = ACTIONS(697), + [sym_comment] = ACTIONS(71), + }, + [208] = { + [sym_leading_word] = ACTIONS(699), + [sym_comment] = ACTIONS(71), + }, + [209] = { + [sym_command] = STATE(263), + [sym_environment_variable_assignment] = STATE(14), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(73), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(199), + [sym_comment] = ACTIONS(71), + }, + [210] = { + [sym_file_descriptor] = ACTIONS(219), + [anon_sym_RPAREN] = ACTIONS(219), + [anon_sym_DQUOTE] = ACTIONS(219), + [sym_single_quoted_argument] = ACTIONS(217), + [anon_sym_DOLLAR] = ACTIONS(217), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(219), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(219), + [anon_sym_LT] = ACTIONS(217), + [anon_sym_GT] = ACTIONS(217), + [anon_sym_GT_GT] = ACTIONS(219), + [anon_sym_AMP_GT] = ACTIONS(217), + [anon_sym_AMP_GT_GT] = ACTIONS(219), + [anon_sym_LT_AMP] = ACTIONS(219), + [anon_sym_GT_AMP] = ACTIONS(219), + [anon_sym_LT_LT] = ACTIONS(217), + [anon_sym_LT_LT_DASH] = ACTIONS(219), + [sym_word] = ACTIONS(221), + [sym_comment] = ACTIONS(71), + }, + [211] = { + [sym_quoted_argument] = STATE(264), + [sym_expansion] = STATE(264), + [sym_operator_expansion] = STATE(264), + [sym_command_substitution] = STATE(264), + [sym_file_redirect] = STATE(143), + [sym_heredoc_redirect] = STATE(143), + [aux_sym_command_repeat2] = STATE(266), + [sym_file_descriptor] = ACTIONS(369), + [anon_sym_RPAREN] = ACTIONS(701), + [anon_sym_DQUOTE] = ACTIONS(545), + [sym_single_quoted_argument] = ACTIONS(703), + [anon_sym_DOLLAR] = ACTIONS(549), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(551), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(553), + [anon_sym_LT] = ACTIONS(555), + [anon_sym_GT] = ACTIONS(555), + [anon_sym_GT_GT] = ACTIONS(557), + [anon_sym_AMP_GT] = ACTIONS(555), + [anon_sym_AMP_GT_GT] = ACTIONS(557), + [anon_sym_LT_AMP] = ACTIONS(557), + [anon_sym_GT_AMP] = ACTIONS(557), + [anon_sym_LT_LT] = ACTIONS(559), + [anon_sym_LT_LT_DASH] = ACTIONS(561), + [sym_word] = ACTIONS(705), + [sym_comment] = ACTIONS(71), + }, + [212] = { + [sym_file_redirect] = STATE(218), + [sym_heredoc_redirect] = STATE(218), + [sym_file_descriptor] = ACTIONS(369), + [anon_sym_RPAREN] = ACTIONS(701), + [anon_sym_LT] = ACTIONS(555), + [anon_sym_GT] = ACTIONS(555), + [anon_sym_GT_GT] = ACTIONS(557), + [anon_sym_AMP_GT] = ACTIONS(555), + [anon_sym_AMP_GT_GT] = ACTIONS(557), + [anon_sym_LT_AMP] = ACTIONS(557), + [anon_sym_GT_AMP] = ACTIONS(557), + [anon_sym_LT_LT] = ACTIONS(559), + [anon_sym_LT_LT_DASH] = ACTIONS(561), + [sym_comment] = ACTIONS(71), + }, + [213] = { + [sym_file_descriptor] = ACTIONS(231), + [anon_sym_RPAREN] = ACTIONS(231), + [anon_sym_LT] = ACTIONS(233), + [anon_sym_GT] = ACTIONS(233), + [anon_sym_GT_GT] = ACTIONS(231), + [anon_sym_AMP_GT] = ACTIONS(233), + [anon_sym_AMP_GT_GT] = ACTIONS(231), + [anon_sym_LT_AMP] = ACTIONS(231), + [anon_sym_GT_AMP] = ACTIONS(231), + [anon_sym_LT_LT] = ACTIONS(233), + [anon_sym_LT_LT_DASH] = ACTIONS(231), + [sym_comment] = ACTIONS(71), + }, + [214] = { + [sym_file_descriptor] = ACTIONS(241), + [anon_sym_RPAREN] = ACTIONS(241), + [anon_sym_LT] = ACTIONS(243), + [anon_sym_GT] = ACTIONS(243), + [anon_sym_GT_GT] = ACTIONS(241), + [anon_sym_AMP_GT] = ACTIONS(243), + [anon_sym_AMP_GT_GT] = ACTIONS(241), + [anon_sym_LT_AMP] = ACTIONS(241), + [anon_sym_GT_AMP] = ACTIONS(241), + [anon_sym_LT_LT] = ACTIONS(243), + [anon_sym_LT_LT_DASH] = ACTIONS(241), + [sym_comment] = ACTIONS(71), + }, [215] = { - [anon_sym_LT] = ACTIONS(343), - [anon_sym_GT] = ACTIONS(343), - [anon_sym_LT_AMP] = ACTIONS(343), - [anon_sym_GT_AMP] = ACTIONS(343), - [sym_file_descriptor] = ACTIONS(343), - [sym_leading_word] = ACTIONS(299), + [sym_file_descriptor] = ACTIONS(463), + [anon_sym_RPAREN] = ACTIONS(463), + [anon_sym_LT] = ACTIONS(707), + [anon_sym_GT] = ACTIONS(707), + [anon_sym_GT_GT] = ACTIONS(463), + [anon_sym_AMP_GT] = ACTIONS(707), + [anon_sym_AMP_GT_GT] = ACTIONS(463), + [anon_sym_LT_AMP] = ACTIONS(463), + [anon_sym_GT_AMP] = ACTIONS(463), + [anon_sym_LT_LT] = ACTIONS(707), + [anon_sym_LT_LT_DASH] = ACTIONS(463), [sym_comment] = ACTIONS(71), }, [216] = { - [sym_expansion] = STATE(121), - [sym_operator_expansion] = STATE(121), - [sym_command_substitution] = STATE(121), - [anon_sym_DQUOTE] = ACTIONS(675), - [sym__quoted_chars] = ACTIONS(311), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), + [sym_expansion] = STATE(177), + [sym_operator_expansion] = STATE(177), + [aux_sym_heredoc_repeat1] = STATE(268), + [sym__heredoc_middle] = ACTIONS(467), + [sym__heredoc_end] = ACTIONS(709), + [anon_sym_DOLLAR] = ACTIONS(471), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(473), + [sym_comment] = ACTIONS(71), }, [217] = { - [anon_sym_LT] = ACTIONS(349), - [anon_sym_GT] = ACTIONS(349), - [anon_sym_LT_AMP] = ACTIONS(349), - [anon_sym_GT_AMP] = ACTIONS(349), - [sym_file_descriptor] = ACTIONS(349), - [sym_leading_word] = ACTIONS(317), + [sym_file_descriptor] = ACTIONS(475), + [anon_sym_RPAREN] = ACTIONS(475), + [anon_sym_LT] = ACTIONS(711), + [anon_sym_GT] = ACTIONS(711), + [anon_sym_GT_GT] = ACTIONS(475), + [anon_sym_AMP_GT] = ACTIONS(711), + [anon_sym_AMP_GT_GT] = ACTIONS(475), + [anon_sym_LT_AMP] = ACTIONS(475), + [anon_sym_GT_AMP] = ACTIONS(475), + [anon_sym_LT_LT] = ACTIONS(711), + [anon_sym_LT_LT_DASH] = ACTIONS(475), [sym_comment] = ACTIONS(71), }, [218] = { - [anon_sym_EQ] = ACTIONS(677), - [anon_sym_COLON] = ACTIONS(679), - [anon_sym_COLON_QMARK] = ACTIONS(677), - [anon_sym_RBRACE] = ACTIONS(681), + [sym_file_descriptor] = ACTIONS(479), + [anon_sym_RPAREN] = ACTIONS(479), + [anon_sym_LT] = ACTIONS(713), + [anon_sym_GT] = ACTIONS(713), + [anon_sym_GT_GT] = ACTIONS(479), + [anon_sym_AMP_GT] = ACTIONS(713), + [anon_sym_AMP_GT_GT] = ACTIONS(479), + [anon_sym_LT_AMP] = ACTIONS(479), + [anon_sym_GT_AMP] = ACTIONS(479), + [anon_sym_LT_LT] = ACTIONS(713), + [anon_sym_LT_LT_DASH] = ACTIONS(479), [sym_comment] = ACTIONS(71), }, [219] = { - [anon_sym_RPAREN] = ACTIONS(683), + [sym_quoted_argument] = STATE(206), + [sym_expansion] = STATE(206), + [sym_operator_expansion] = STATE(206), + [sym_command_substitution] = STATE(206), + [sym_file_redirect] = STATE(143), + [sym_heredoc_redirect] = STATE(143), + [aux_sym_bracket_command_repeat1] = STATE(269), + [aux_sym_command_repeat2] = STATE(270), + [sym_file_descriptor] = ACTIONS(369), + [anon_sym_RPAREN] = ACTIONS(715), + [anon_sym_DQUOTE] = ACTIONS(545), + [sym_single_quoted_argument] = ACTIONS(547), + [anon_sym_DOLLAR] = ACTIONS(549), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(551), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(553), + [anon_sym_LT] = ACTIONS(555), + [anon_sym_GT] = ACTIONS(555), + [anon_sym_GT_GT] = ACTIONS(557), + [anon_sym_AMP_GT] = ACTIONS(555), + [anon_sym_AMP_GT_GT] = ACTIONS(557), + [anon_sym_LT_AMP] = ACTIONS(557), + [anon_sym_GT_AMP] = ACTIONS(557), + [anon_sym_LT_LT] = ACTIONS(559), + [anon_sym_LT_LT_DASH] = ACTIONS(561), + [sym_word] = ACTIONS(563), [sym_comment] = ACTIONS(71), }, [220] = { - [sym__terminated_statement] = STATE(11), - [sym_while_statement] = STATE(12), - [sym_if_statement] = STATE(12), - [sym_case_statement] = STATE(12), - [sym_bracket_command] = STATE(12), - [sym_command] = STATE(12), - [sym_pipeline] = STATE(12), - [sym_list] = STATE(12), - [sym_environment_variable_assignment] = STATE(13), - [sym_file_redirect] = STATE(14), - [aux_sym_program_repeat1] = STATE(253), - [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_fi] = ACTIONS(685), - [anon_sym_elif] = ACTIONS(685), - [anon_sym_else] = ACTIONS(685), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(91), + [sym_file_redirect] = STATE(218), + [sym_heredoc_redirect] = STATE(218), + [sym_file_descriptor] = ACTIONS(369), + [anon_sym_RPAREN] = ACTIONS(715), + [anon_sym_LT] = ACTIONS(555), + [anon_sym_GT] = ACTIONS(555), + [anon_sym_GT_GT] = ACTIONS(557), + [anon_sym_AMP_GT] = ACTIONS(555), + [anon_sym_AMP_GT_GT] = ACTIONS(557), + [anon_sym_LT_AMP] = ACTIONS(557), + [anon_sym_GT_AMP] = ACTIONS(557), + [anon_sym_LT_LT] = ACTIONS(559), + [anon_sym_LT_LT_DASH] = ACTIONS(561), [sym_comment] = ACTIONS(71), }, [221] = { - [anon_sym_SEMI_SEMI] = ACTIONS(687), - [anon_sym_PIPE] = ACTIONS(687), - [anon_sym_PIPE_AMP] = ACTIONS(687), - [anon_sym_AMP_AMP] = ACTIONS(687), - [anon_sym_PIPE_PIPE] = ACTIONS(687), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(687), - [anon_sym_LF] = ACTIONS(687), + [anon_sym_SEMI_SEMI] = ACTIONS(717), + [anon_sym_PIPE] = ACTIONS(717), + [anon_sym_PIPE_AMP] = ACTIONS(717), + [anon_sym_AMP_AMP] = ACTIONS(717), + [anon_sym_PIPE_PIPE] = ACTIONS(717), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(717), + [anon_sym_LF] = ACTIONS(717), }, [222] = { - [anon_sym_fi] = ACTIONS(689), + [sym_case_item] = STATE(253), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [anon_sym_esac] = ACTIONS(719), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(527), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(529), [sym_comment] = ACTIONS(71), }, [223] = { - [anon_sym_RBRACE] = ACTIONS(691), + [sym_case_item] = STATE(199), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [aux_sym_case_statement_repeat1] = STATE(272), + [anon_sym_esac] = ACTIONS(719), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(527), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(529), [sym_comment] = ACTIONS(71), }, [224] = { - [anon_sym_RBRACE] = ACTIONS(693), + [anon_sym_RBRACE] = ACTIONS(721), [sym_comment] = ACTIONS(71), }, [225] = { - [sym__terminated_statement] = STATE(258), - [sym_while_statement] = STATE(259), - [sym_if_statement] = STATE(259), - [sym_case_statement] = STATE(259), - [sym_bracket_command] = STATE(259), - [sym_command] = STATE(259), - [sym_pipeline] = STATE(259), - [sym_list] = STATE(259), - [sym_environment_variable_assignment] = STATE(260), - [sym_file_redirect] = STATE(14), - [aux_sym_program_repeat1] = STATE(261), - [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_esac] = ACTIONS(695), - [anon_sym_SEMI_SEMI] = ACTIONS(697), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_DQUOTE] = ACTIONS(699), - [sym_single_quoted_argument] = ACTIONS(695), - [anon_sym_DOLLAR] = ACTIONS(695), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(699), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(699), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(91), - [sym_word] = ACTIONS(701), + [anon_sym_RBRACE] = ACTIONS(723), [sym_comment] = ACTIONS(71), }, [226] = { - [sym__terminated_statement] = STATE(258), - [sym_while_statement] = STATE(259), - [sym_if_statement] = STATE(259), - [sym_case_statement] = STATE(259), - [sym_bracket_command] = STATE(259), - [sym_command] = STATE(259), - [sym_pipeline] = STATE(259), - [sym_list] = STATE(259), - [sym_environment_variable_assignment] = STATE(260), - [sym_file_redirect] = STATE(14), - [aux_sym_program_repeat1] = STATE(263), - [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_esac] = ACTIONS(703), - [anon_sym_SEMI_SEMI] = ACTIONS(705), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_DQUOTE] = ACTIONS(707), - [sym_single_quoted_argument] = ACTIONS(703), - [anon_sym_DOLLAR] = ACTIONS(703), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(707), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(707), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(91), - [sym_word] = ACTIONS(709), + [anon_sym_RBRACE] = ACTIONS(725), [sym_comment] = ACTIONS(71), }, [227] = { - [anon_sym_SEMI_SEMI] = ACTIONS(711), - [anon_sym_PIPE] = ACTIONS(711), - [anon_sym_PIPE_AMP] = ACTIONS(711), - [anon_sym_AMP_AMP] = ACTIONS(711), - [anon_sym_PIPE_PIPE] = ACTIONS(711), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(711), - [anon_sym_LF] = ACTIONS(711), - }, - [228] = { - [anon_sym_esac] = ACTIONS(713), - [anon_sym_DQUOTE] = ACTIONS(715), - [sym_single_quoted_argument] = ACTIONS(713), - [anon_sym_DOLLAR] = ACTIONS(713), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(715), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(715), - [sym_word] = ACTIONS(717), + [anon_sym_RBRACE] = ACTIONS(727), [sym_comment] = ACTIONS(71), }, + [228] = { + [sym_file_descriptor] = ACTIONS(583), + [anon_sym_RPAREN] = ACTIONS(519), + [anon_sym_SEMI_SEMI] = ACTIONS(519), + [anon_sym_PIPE] = ACTIONS(519), + [anon_sym_PIPE_AMP] = ACTIONS(519), + [anon_sym_AMP_AMP] = ACTIONS(519), + [anon_sym_PIPE_PIPE] = ACTIONS(519), + [anon_sym_DQUOTE] = ACTIONS(519), + [sym_single_quoted_argument] = ACTIONS(519), + [anon_sym_DOLLAR] = ACTIONS(519), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(519), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(519), + [anon_sym_LT] = ACTIONS(519), + [anon_sym_GT] = ACTIONS(519), + [anon_sym_GT_GT] = ACTIONS(519), + [anon_sym_AMP_GT] = ACTIONS(519), + [anon_sym_AMP_GT_GT] = ACTIONS(519), + [anon_sym_LT_AMP] = ACTIONS(519), + [anon_sym_GT_AMP] = ACTIONS(519), + [anon_sym_LT_LT] = ACTIONS(519), + [anon_sym_LT_LT_DASH] = ACTIONS(519), + [sym_word] = ACTIONS(519), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(519), + [anon_sym_LF] = ACTIONS(519), + }, [229] = { - [sym_case_item] = STATE(228), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [anon_sym_esac] = ACTIONS(719), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(473), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(475), + [sym_quoted_argument] = STATE(277), + [sym_expansion] = STATE(277), + [sym_operator_expansion] = STATE(277), + [sym_command_substitution] = STATE(277), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(729), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(731), [sym_comment] = ACTIONS(71), }, [230] = { - [anon_sym_in] = ACTIONS(721), - [anon_sym_SEMI_SEMI] = ACTIONS(721), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(721), - [anon_sym_LF] = ACTIONS(721), + [sym_file_descriptor] = ACTIONS(591), + [anon_sym_RPAREN] = ACTIONS(537), + [anon_sym_SEMI_SEMI] = ACTIONS(537), + [anon_sym_PIPE] = ACTIONS(537), + [anon_sym_PIPE_AMP] = ACTIONS(537), + [anon_sym_AMP_AMP] = ACTIONS(537), + [anon_sym_PIPE_PIPE] = ACTIONS(537), + [anon_sym_DQUOTE] = ACTIONS(537), + [sym_single_quoted_argument] = ACTIONS(537), + [anon_sym_DOLLAR] = ACTIONS(537), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(537), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(537), + [anon_sym_LT] = ACTIONS(537), + [anon_sym_GT] = ACTIONS(537), + [anon_sym_GT_GT] = ACTIONS(537), + [anon_sym_AMP_GT] = ACTIONS(537), + [anon_sym_AMP_GT_GT] = ACTIONS(537), + [anon_sym_LT_AMP] = ACTIONS(537), + [anon_sym_GT_AMP] = ACTIONS(537), + [anon_sym_LT_LT] = ACTIONS(537), + [anon_sym_LT_LT_DASH] = ACTIONS(537), + [sym_word] = ACTIONS(537), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(537), + [anon_sym_LF] = ACTIONS(537), }, [231] = { - [anon_sym_in] = ACTIONS(723), - [anon_sym_SEMI_SEMI] = ACTIONS(723), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(723), - [anon_sym_LF] = ACTIONS(723), + [sym_file_descriptor] = ACTIONS(595), + [anon_sym_RPAREN] = ACTIONS(575), + [anon_sym_SEMI_SEMI] = ACTIONS(575), + [anon_sym_PIPE] = ACTIONS(575), + [anon_sym_PIPE_AMP] = ACTIONS(575), + [anon_sym_AMP_AMP] = ACTIONS(575), + [anon_sym_PIPE_PIPE] = ACTIONS(575), + [anon_sym_DQUOTE] = ACTIONS(575), + [sym_single_quoted_argument] = ACTIONS(575), + [anon_sym_DOLLAR] = ACTIONS(575), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(575), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(575), + [anon_sym_LT] = ACTIONS(575), + [anon_sym_GT] = ACTIONS(575), + [anon_sym_GT_GT] = ACTIONS(575), + [anon_sym_AMP_GT] = ACTIONS(575), + [anon_sym_AMP_GT_GT] = ACTIONS(575), + [anon_sym_LT_AMP] = ACTIONS(575), + [anon_sym_GT_AMP] = ACTIONS(575), + [anon_sym_LT_LT] = ACTIONS(575), + [anon_sym_LT_LT_DASH] = ACTIONS(575), + [sym_word] = ACTIONS(575), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(575), + [anon_sym_LF] = ACTIONS(575), }, [232] = { - [sym_file_redirect] = STATE(194), - [sym_heredoc_redirect] = STATE(194), - [anon_sym_RPAREN] = ACTIONS(725), - [anon_sym_LT] = ACTIONS(487), - [anon_sym_GT] = ACTIONS(487), - [anon_sym_LT_AMP] = ACTIONS(489), - [anon_sym_GT_AMP] = ACTIONS(489), - [anon_sym_LT_LT] = ACTIONS(491), - [anon_sym_LT_LT_DASH] = ACTIONS(493), - [sym_file_descriptor] = ACTIONS(495), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(583), + [anon_sym_SEMI_SEMI] = ACTIONS(519), + [anon_sym_PIPE] = ACTIONS(519), + [anon_sym_PIPE_AMP] = ACTIONS(519), + [anon_sym_AMP_AMP] = ACTIONS(519), + [anon_sym_PIPE_PIPE] = ACTIONS(519), + [anon_sym_RBRACE] = ACTIONS(519), + [anon_sym_LT] = ACTIONS(519), + [anon_sym_GT] = ACTIONS(519), + [anon_sym_GT_GT] = ACTIONS(519), + [anon_sym_AMP_GT] = ACTIONS(519), + [anon_sym_AMP_GT_GT] = ACTIONS(519), + [anon_sym_LT_AMP] = ACTIONS(519), + [anon_sym_GT_AMP] = ACTIONS(519), + [sym_leading_word] = ACTIONS(519), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(519), + [anon_sym_LF] = ACTIONS(519), }, [233] = { - [anon_sym_RPAREN] = ACTIONS(727), - [anon_sym_LT] = ACTIONS(729), - [anon_sym_GT] = ACTIONS(729), - [anon_sym_LT_AMP] = ACTIONS(727), - [anon_sym_GT_AMP] = ACTIONS(727), - [anon_sym_LT_LT] = ACTIONS(729), - [anon_sym_LT_LT_DASH] = ACTIONS(727), - [sym_file_descriptor] = ACTIONS(729), + [sym_quoted_argument] = STATE(279), + [sym_expansion] = STATE(279), + [sym_operator_expansion] = STATE(279), + [sym_command_substitution] = STATE(279), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(733), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(735), [sym_comment] = ACTIONS(71), }, [234] = { - [sym_expansion] = STATE(212), - [sym_operator_expansion] = STATE(212), - [sym__heredoc_middle] = ACTIONS(569), - [sym__heredoc_end] = ACTIONS(731), - [anon_sym_DOLLAR] = ACTIONS(409), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(411), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(591), + [anon_sym_SEMI_SEMI] = ACTIONS(537), + [anon_sym_PIPE] = ACTIONS(537), + [anon_sym_PIPE_AMP] = ACTIONS(537), + [anon_sym_AMP_AMP] = ACTIONS(537), + [anon_sym_PIPE_PIPE] = ACTIONS(537), + [anon_sym_RBRACE] = ACTIONS(537), + [anon_sym_LT] = ACTIONS(537), + [anon_sym_GT] = ACTIONS(537), + [anon_sym_GT_GT] = ACTIONS(537), + [anon_sym_AMP_GT] = ACTIONS(537), + [anon_sym_AMP_GT_GT] = ACTIONS(537), + [anon_sym_LT_AMP] = ACTIONS(537), + [anon_sym_GT_AMP] = ACTIONS(537), + [sym_leading_word] = ACTIONS(537), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(537), + [anon_sym_LF] = ACTIONS(537), }, [235] = { - [anon_sym_RPAREN] = ACTIONS(733), - [anon_sym_LT] = ACTIONS(373), - [anon_sym_GT] = ACTIONS(373), - [anon_sym_LT_AMP] = ACTIONS(733), - [anon_sym_GT_AMP] = ACTIONS(733), - [anon_sym_LT_LT] = ACTIONS(373), - [anon_sym_LT_LT_DASH] = ACTIONS(733), - [sym_file_descriptor] = ACTIONS(373), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(595), + [anon_sym_SEMI_SEMI] = ACTIONS(575), + [anon_sym_PIPE] = ACTIONS(575), + [anon_sym_PIPE_AMP] = ACTIONS(575), + [anon_sym_AMP_AMP] = ACTIONS(575), + [anon_sym_PIPE_PIPE] = ACTIONS(575), + [anon_sym_RBRACE] = ACTIONS(575), + [anon_sym_LT] = ACTIONS(575), + [anon_sym_GT] = ACTIONS(575), + [anon_sym_GT_GT] = ACTIONS(575), + [anon_sym_AMP_GT] = ACTIONS(575), + [anon_sym_AMP_GT_GT] = ACTIONS(575), + [anon_sym_LT_AMP] = ACTIONS(575), + [anon_sym_GT_AMP] = ACTIONS(575), + [sym_leading_word] = ACTIONS(575), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(575), + [anon_sym_LF] = ACTIONS(575), }, [236] = { - [anon_sym_RPAREN] = ACTIONS(735), - [anon_sym_LT] = ACTIONS(377), - [anon_sym_GT] = ACTIONS(377), - [anon_sym_LT_AMP] = ACTIONS(735), - [anon_sym_GT_AMP] = ACTIONS(735), - [anon_sym_LT_LT] = ACTIONS(377), - [anon_sym_LT_LT_DASH] = ACTIONS(735), - [sym_file_descriptor] = ACTIONS(377), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(583), + [anon_sym_RPAREN] = ACTIONS(519), + [anon_sym_SEMI_SEMI] = ACTIONS(519), + [anon_sym_PIPE] = ACTIONS(519), + [anon_sym_PIPE_AMP] = ACTIONS(519), + [anon_sym_AMP_AMP] = ACTIONS(519), + [anon_sym_PIPE_PIPE] = ACTIONS(519), + [anon_sym_LT] = ACTIONS(519), + [anon_sym_GT] = ACTIONS(519), + [anon_sym_GT_GT] = ACTIONS(519), + [anon_sym_AMP_GT] = ACTIONS(519), + [anon_sym_AMP_GT_GT] = ACTIONS(519), + [anon_sym_LT_AMP] = ACTIONS(519), + [anon_sym_GT_AMP] = ACTIONS(519), + [anon_sym_LT_LT] = ACTIONS(519), + [anon_sym_LT_LT_DASH] = ACTIONS(519), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(519), + [anon_sym_LF] = ACTIONS(519), }, [237] = { - [sym_quoted_argument] = STATE(76), - [sym_expansion] = STATE(76), - [sym_operator_expansion] = STATE(76), - [sym_command_substitution] = STATE(76), - [sym_file_redirect] = STATE(130), - [sym_heredoc_redirect] = STATE(130), - [aux_sym_command_repeat2] = STATE(266), - [anon_sym_RPAREN] = ACTIONS(737), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(211), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [anon_sym_LT] = ACTIONS(487), - [anon_sym_GT] = ACTIONS(487), - [anon_sym_LT_AMP] = ACTIONS(489), - [anon_sym_GT_AMP] = ACTIONS(489), - [anon_sym_LT_LT] = ACTIONS(491), - [anon_sym_LT_LT_DASH] = ACTIONS(493), - [sym_file_descriptor] = ACTIONS(495), - [sym_word] = ACTIONS(213), + [sym_quoted_argument] = STATE(281), + [sym_expansion] = STATE(281), + [sym_operator_expansion] = STATE(281), + [sym_command_substitution] = STATE(281), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(737), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(739), [sym_comment] = ACTIONS(71), }, [238] = { - [sym_file_redirect] = STATE(194), - [sym_heredoc_redirect] = STATE(194), - [anon_sym_RPAREN] = ACTIONS(737), - [anon_sym_LT] = ACTIONS(487), - [anon_sym_GT] = ACTIONS(487), - [anon_sym_LT_AMP] = ACTIONS(489), - [anon_sym_GT_AMP] = ACTIONS(489), - [anon_sym_LT_LT] = ACTIONS(491), - [anon_sym_LT_LT_DASH] = ACTIONS(493), - [sym_file_descriptor] = ACTIONS(495), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(591), + [anon_sym_RPAREN] = ACTIONS(537), + [anon_sym_SEMI_SEMI] = ACTIONS(537), + [anon_sym_PIPE] = ACTIONS(537), + [anon_sym_PIPE_AMP] = ACTIONS(537), + [anon_sym_AMP_AMP] = ACTIONS(537), + [anon_sym_PIPE_PIPE] = ACTIONS(537), + [anon_sym_LT] = ACTIONS(537), + [anon_sym_GT] = ACTIONS(537), + [anon_sym_GT_GT] = ACTIONS(537), + [anon_sym_AMP_GT] = ACTIONS(537), + [anon_sym_AMP_GT_GT] = ACTIONS(537), + [anon_sym_LT_AMP] = ACTIONS(537), + [anon_sym_GT_AMP] = ACTIONS(537), + [anon_sym_LT_LT] = ACTIONS(537), + [anon_sym_LT_LT_DASH] = ACTIONS(537), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(537), + [anon_sym_LF] = ACTIONS(537), }, [239] = { - [anon_sym_SEMI_SEMI] = ACTIONS(739), - [anon_sym_PIPE] = ACTIONS(739), - [anon_sym_PIPE_AMP] = ACTIONS(739), - [anon_sym_AMP_AMP] = ACTIONS(739), - [anon_sym_PIPE_PIPE] = ACTIONS(739), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(739), - [anon_sym_LF] = ACTIONS(739), + [sym_file_descriptor] = ACTIONS(595), + [anon_sym_RPAREN] = ACTIONS(575), + [anon_sym_SEMI_SEMI] = ACTIONS(575), + [anon_sym_PIPE] = ACTIONS(575), + [anon_sym_PIPE_AMP] = ACTIONS(575), + [anon_sym_AMP_AMP] = ACTIONS(575), + [anon_sym_PIPE_PIPE] = ACTIONS(575), + [anon_sym_LT] = ACTIONS(575), + [anon_sym_GT] = ACTIONS(575), + [anon_sym_GT_GT] = ACTIONS(575), + [anon_sym_AMP_GT] = ACTIONS(575), + [anon_sym_AMP_GT_GT] = ACTIONS(575), + [anon_sym_LT_AMP] = ACTIONS(575), + [anon_sym_GT_AMP] = ACTIONS(575), + [anon_sym_LT_LT] = ACTIONS(575), + [anon_sym_LT_LT_DASH] = ACTIONS(575), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(575), + [anon_sym_LF] = ACTIONS(575), }, [240] = { - [sym_case_item] = STATE(228), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [anon_sym_esac] = ACTIONS(741), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(473), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(475), + [sym__heredoc_middle] = ACTIONS(391), + [sym__heredoc_end] = ACTIONS(391), + [anon_sym_DOLLAR] = ACTIONS(393), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(391), [sym_comment] = ACTIONS(71), }, [241] = { - [anon_sym_RPAREN] = ACTIONS(743), - [anon_sym_RBRACK] = ACTIONS(745), - [anon_sym_RBRACK_RBRACK] = ACTIONS(745), - [anon_sym_DQUOTE] = ACTIONS(743), - [sym_single_quoted_argument] = ACTIONS(745), - [anon_sym_DOLLAR] = ACTIONS(745), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(743), - [anon_sym_RBRACE] = ACTIONS(743), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(743), - [anon_sym_LT] = ACTIONS(745), - [anon_sym_GT] = ACTIONS(745), - [anon_sym_LT_AMP] = ACTIONS(743), - [anon_sym_GT_AMP] = ACTIONS(743), - [anon_sym_LT_LT] = ACTIONS(745), - [anon_sym_LT_LT_DASH] = ACTIONS(743), - [sym_file_descriptor] = ACTIONS(745), - [sym_word] = ACTIONS(721), + [anon_sym_EQ] = ACTIONS(741), + [anon_sym_COLON] = ACTIONS(743), + [anon_sym_COLON_QMARK] = ACTIONS(741), + [anon_sym_RBRACE] = ACTIONS(745), [sym_comment] = ACTIONS(71), }, [242] = { - [anon_sym_RPAREN] = ACTIONS(747), - [anon_sym_RBRACK] = ACTIONS(749), - [anon_sym_RBRACK_RBRACK] = ACTIONS(749), - [anon_sym_DQUOTE] = ACTIONS(747), - [sym_single_quoted_argument] = ACTIONS(749), - [anon_sym_DOLLAR] = ACTIONS(749), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(747), - [anon_sym_RBRACE] = ACTIONS(747), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(747), - [anon_sym_LT] = ACTIONS(749), - [anon_sym_GT] = ACTIONS(749), - [anon_sym_LT_AMP] = ACTIONS(747), - [anon_sym_GT_AMP] = ACTIONS(747), - [anon_sym_LT_LT] = ACTIONS(749), - [anon_sym_LT_LT_DASH] = ACTIONS(747), - [sym_file_descriptor] = ACTIONS(749), - [sym_word] = ACTIONS(723), - [sym_comment] = ACTIONS(71), - }, - [243] = { - [anon_sym_RBRACE] = ACTIONS(751), - [sym_comment] = ACTIONS(71), - }, - [244] = { - [anon_sym_RBRACE] = ACTIONS(753), - [sym_comment] = ACTIONS(71), - }, - [245] = { - [anon_sym_RBRACE] = ACTIONS(755), - [sym_comment] = ACTIONS(71), - }, - [246] = { - [anon_sym_RBRACE] = ACTIONS(757), - [sym_comment] = ACTIONS(71), - }, - [247] = { - [sym_quoted_argument] = STATE(272), - [sym_expansion] = STATE(272), - [sym_operator_expansion] = STATE(272), - [sym_command_substitution] = STATE(272), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(759), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(761), - [sym_comment] = ACTIONS(71), - }, - [248] = { - [sym__heredoc_middle] = ACTIONS(529), - [sym__heredoc_end] = ACTIONS(529), - [anon_sym_DOLLAR] = ACTIONS(531), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(529), - [sym_comment] = ACTIONS(71), - }, - [249] = { - [anon_sym_LT] = ACTIONS(523), - [anon_sym_GT] = ACTIONS(523), - [anon_sym_LT_AMP] = ACTIONS(523), - [anon_sym_GT_AMP] = ACTIONS(523), - [sym_file_descriptor] = ACTIONS(523), - [sym_leading_word] = ACTIONS(465), - [sym_comment] = ACTIONS(71), - }, - [250] = { - [sym_quoted_argument] = STATE(274), - [sym_expansion] = STATE(274), - [sym_operator_expansion] = STATE(274), - [sym_command_substitution] = STATE(274), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(763), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(765), - [sym_comment] = ACTIONS(71), - }, - [251] = { - [anon_sym_LT] = ACTIONS(531), - [anon_sym_GT] = ACTIONS(531), - [anon_sym_LT_AMP] = ACTIONS(531), - [anon_sym_GT_AMP] = ACTIONS(531), - [sym_file_descriptor] = ACTIONS(531), - [sym_leading_word] = ACTIONS(483), - [sym_comment] = ACTIONS(71), - }, - [252] = { - [anon_sym_LT] = ACTIONS(535), - [anon_sym_GT] = ACTIONS(535), - [anon_sym_LT_AMP] = ACTIONS(535), - [anon_sym_GT_AMP] = ACTIONS(535), - [sym_file_descriptor] = ACTIONS(535), - [sym_leading_word] = ACTIONS(513), - [sym_comment] = ACTIONS(71), - }, - [253] = { - [sym__terminated_statement] = STATE(48), - [sym_while_statement] = STATE(12), - [sym_if_statement] = STATE(12), - [sym_case_statement] = STATE(12), - [sym_bracket_command] = STATE(12), - [sym_command] = STATE(12), - [sym_pipeline] = STATE(12), - [sym_list] = STATE(12), - [sym_environment_variable_assignment] = STATE(13), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_fi] = ACTIONS(767), - [anon_sym_elif] = ACTIONS(767), - [anon_sym_else] = ACTIONS(767), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(91), - [sym_comment] = ACTIONS(71), - }, - [254] = { - [anon_sym_SEMI_SEMI] = ACTIONS(769), - [anon_sym_PIPE] = ACTIONS(769), - [anon_sym_PIPE_AMP] = ACTIONS(769), - [anon_sym_AMP_AMP] = ACTIONS(769), - [anon_sym_PIPE_PIPE] = ACTIONS(769), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(769), - [anon_sym_LF] = ACTIONS(769), - }, - [255] = { - [anon_sym_DQUOTE] = ACTIONS(721), - [sym__quoted_chars] = ACTIONS(745), - [anon_sym_DOLLAR] = ACTIONS(721), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(721), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(721), - [sym_comment] = ACTIONS(137), - }, - [256] = { - [anon_sym_DQUOTE] = ACTIONS(723), - [sym__quoted_chars] = ACTIONS(749), - [anon_sym_DOLLAR] = ACTIONS(723), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(723), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(723), - [sym_comment] = ACTIONS(137), - }, - [257] = { - [anon_sym_esac] = ACTIONS(771), - [anon_sym_DQUOTE] = ACTIONS(773), - [sym_single_quoted_argument] = ACTIONS(771), - [anon_sym_DOLLAR] = ACTIONS(771), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(773), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(773), - [sym_word] = ACTIONS(775), - [sym_comment] = ACTIONS(71), - }, - [258] = { - [anon_sym_while] = ACTIONS(143), - [anon_sym_if] = ACTIONS(143), - [anon_sym_case] = ACTIONS(143), - [anon_sym_esac] = ACTIONS(143), - [anon_sym_SEMI_SEMI] = ACTIONS(141), - [anon_sym_LBRACK] = ACTIONS(143), - [anon_sym_LBRACK_LBRACK] = ACTIONS(143), - [anon_sym_DQUOTE] = ACTIONS(141), - [sym_single_quoted_argument] = ACTIONS(143), - [anon_sym_DOLLAR] = ACTIONS(143), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(141), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(141), - [anon_sym_LT] = ACTIONS(143), - [anon_sym_GT] = ACTIONS(143), - [anon_sym_LT_AMP] = ACTIONS(143), - [anon_sym_GT_AMP] = ACTIONS(143), - [sym_file_descriptor] = ACTIONS(143), - [sym_leading_word] = ACTIONS(145), - [sym_word] = ACTIONS(145), - [sym_comment] = ACTIONS(71), - }, - [259] = { - [anon_sym_SEMI_SEMI] = ACTIONS(777), - [anon_sym_PIPE] = ACTIONS(149), - [anon_sym_PIPE_AMP] = ACTIONS(149), - [anon_sym_AMP_AMP] = ACTIONS(151), - [anon_sym_PIPE_PIPE] = ACTIONS(151), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(777), - [anon_sym_LF] = ACTIONS(777), - }, - [260] = { - [anon_sym_SEMI_SEMI] = ACTIONS(777), - [anon_sym_PIPE] = ACTIONS(149), - [anon_sym_PIPE_AMP] = ACTIONS(149), - [anon_sym_AMP_AMP] = ACTIONS(151), - [anon_sym_PIPE_PIPE] = ACTIONS(151), - [anon_sym_LT] = ACTIONS(153), - [anon_sym_GT] = ACTIONS(153), - [anon_sym_LT_AMP] = ACTIONS(153), - [anon_sym_GT_AMP] = ACTIONS(153), - [sym_file_descriptor] = ACTIONS(153), - [sym_leading_word] = ACTIONS(153), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(777), - [anon_sym_LF] = ACTIONS(777), - }, - [261] = { - [sym__terminated_statement] = STATE(278), - [sym_while_statement] = STATE(259), - [sym_if_statement] = STATE(259), - [sym_case_statement] = STATE(259), - [sym_bracket_command] = STATE(259), - [sym_command] = STATE(259), - [sym_pipeline] = STATE(259), - [sym_list] = STATE(259), - [sym_environment_variable_assignment] = STATE(260), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_esac] = ACTIONS(771), - [anon_sym_SEMI_SEMI] = ACTIONS(779), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_DQUOTE] = ACTIONS(773), - [sym_single_quoted_argument] = ACTIONS(771), - [anon_sym_DOLLAR] = ACTIONS(771), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(773), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(773), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(91), - [sym_word] = ACTIONS(775), - [sym_comment] = ACTIONS(71), - }, - [262] = { - [anon_sym_esac] = ACTIONS(781), - [anon_sym_DQUOTE] = ACTIONS(783), - [sym_single_quoted_argument] = ACTIONS(781), - [anon_sym_DOLLAR] = ACTIONS(781), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(783), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(783), - [sym_word] = ACTIONS(785), - [sym_comment] = ACTIONS(71), - }, - [263] = { - [sym__terminated_statement] = STATE(278), - [sym_while_statement] = STATE(259), - [sym_if_statement] = STATE(259), - [sym_case_statement] = STATE(259), - [sym_bracket_command] = STATE(259), - [sym_command] = STATE(259), - [sym_pipeline] = STATE(259), - [sym_list] = STATE(259), - [sym_environment_variable_assignment] = STATE(260), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_esac] = ACTIONS(781), - [anon_sym_SEMI_SEMI] = ACTIONS(787), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_DQUOTE] = ACTIONS(783), - [sym_single_quoted_argument] = ACTIONS(781), - [anon_sym_DOLLAR] = ACTIONS(781), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(783), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(783), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(91), - [sym_word] = ACTIONS(785), - [sym_comment] = ACTIONS(71), - }, - [264] = { - [anon_sym_SEMI_SEMI] = ACTIONS(789), - [anon_sym_PIPE] = ACTIONS(789), - [anon_sym_PIPE_AMP] = ACTIONS(789), - [anon_sym_AMP_AMP] = ACTIONS(789), - [anon_sym_PIPE_PIPE] = ACTIONS(789), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(789), - [anon_sym_LF] = ACTIONS(789), - }, - [265] = { - [anon_sym_RPAREN] = ACTIONS(791), - [anon_sym_LT] = ACTIONS(793), - [anon_sym_GT] = ACTIONS(793), - [anon_sym_LT_AMP] = ACTIONS(791), - [anon_sym_GT_AMP] = ACTIONS(791), - [anon_sym_LT_LT] = ACTIONS(793), - [anon_sym_LT_LT_DASH] = ACTIONS(791), - [sym_file_descriptor] = ACTIONS(793), - [sym_comment] = ACTIONS(71), - }, - [266] = { - [sym_file_redirect] = STATE(194), - [sym_heredoc_redirect] = STATE(194), - [anon_sym_RPAREN] = ACTIONS(795), - [anon_sym_LT] = ACTIONS(487), - [anon_sym_GT] = ACTIONS(487), - [anon_sym_LT_AMP] = ACTIONS(489), - [anon_sym_GT_AMP] = ACTIONS(489), - [anon_sym_LT_LT] = ACTIONS(491), - [anon_sym_LT_LT_DASH] = ACTIONS(493), - [sym_file_descriptor] = ACTIONS(495), - [sym_comment] = ACTIONS(71), - }, - [267] = { - [anon_sym_SEMI_SEMI] = ACTIONS(797), - [anon_sym_PIPE] = ACTIONS(797), - [anon_sym_PIPE_AMP] = ACTIONS(797), - [anon_sym_AMP_AMP] = ACTIONS(797), - [anon_sym_PIPE_PIPE] = ACTIONS(797), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(797), - [anon_sym_LF] = ACTIONS(797), - }, - [268] = { - [anon_sym_RPAREN] = ACTIONS(721), - [anon_sym_SEMI_SEMI] = ACTIONS(721), - [anon_sym_PIPE] = ACTIONS(721), - [anon_sym_PIPE_AMP] = ACTIONS(721), - [anon_sym_AMP_AMP] = ACTIONS(721), - [anon_sym_PIPE_PIPE] = ACTIONS(721), - [anon_sym_DQUOTE] = ACTIONS(721), - [sym_single_quoted_argument] = ACTIONS(721), - [anon_sym_DOLLAR] = ACTIONS(721), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(721), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(721), - [anon_sym_LT] = ACTIONS(721), - [anon_sym_GT] = ACTIONS(721), - [anon_sym_LT_AMP] = ACTIONS(721), - [anon_sym_GT_AMP] = ACTIONS(721), - [anon_sym_LT_LT] = ACTIONS(721), - [anon_sym_LT_LT_DASH] = ACTIONS(721), - [sym_file_descriptor] = ACTIONS(721), - [sym_word] = ACTIONS(721), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(721), - [anon_sym_LF] = ACTIONS(721), - }, - [269] = { - [anon_sym_RPAREN] = ACTIONS(723), - [anon_sym_SEMI_SEMI] = ACTIONS(723), - [anon_sym_PIPE] = ACTIONS(723), - [anon_sym_PIPE_AMP] = ACTIONS(723), - [anon_sym_AMP_AMP] = ACTIONS(723), - [anon_sym_PIPE_PIPE] = ACTIONS(723), - [anon_sym_DQUOTE] = ACTIONS(723), - [sym_single_quoted_argument] = ACTIONS(723), - [anon_sym_DOLLAR] = ACTIONS(723), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(723), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(723), - [anon_sym_LT] = ACTIONS(723), - [anon_sym_GT] = ACTIONS(723), - [anon_sym_LT_AMP] = ACTIONS(723), - [anon_sym_GT_AMP] = ACTIONS(723), - [anon_sym_LT_LT] = ACTIONS(723), - [anon_sym_LT_LT_DASH] = ACTIONS(723), - [sym_file_descriptor] = ACTIONS(723), - [sym_word] = ACTIONS(723), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(723), - [anon_sym_LF] = ACTIONS(723), - }, - [270] = { - [anon_sym_SEMI_SEMI] = ACTIONS(721), - [anon_sym_PIPE] = ACTIONS(721), - [anon_sym_PIPE_AMP] = ACTIONS(721), - [anon_sym_AMP_AMP] = ACTIONS(721), - [anon_sym_PIPE_PIPE] = ACTIONS(721), - [anon_sym_RBRACE] = ACTIONS(721), - [anon_sym_LT] = ACTIONS(721), - [anon_sym_GT] = ACTIONS(721), - [anon_sym_LT_AMP] = ACTIONS(721), - [anon_sym_GT_AMP] = ACTIONS(721), - [sym_file_descriptor] = ACTIONS(721), - [sym_leading_word] = ACTIONS(721), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(721), - [anon_sym_LF] = ACTIONS(721), - }, - [271] = { - [anon_sym_SEMI_SEMI] = ACTIONS(723), - [anon_sym_PIPE] = ACTIONS(723), - [anon_sym_PIPE_AMP] = ACTIONS(723), - [anon_sym_AMP_AMP] = ACTIONS(723), - [anon_sym_PIPE_PIPE] = ACTIONS(723), - [anon_sym_RBRACE] = ACTIONS(723), - [anon_sym_LT] = ACTIONS(723), - [anon_sym_GT] = ACTIONS(723), - [anon_sym_LT_AMP] = ACTIONS(723), - [anon_sym_GT_AMP] = ACTIONS(723), - [sym_file_descriptor] = ACTIONS(723), - [sym_leading_word] = ACTIONS(723), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(723), - [anon_sym_LF] = ACTIONS(723), - }, - [272] = { - [anon_sym_RBRACE] = ACTIONS(799), - [sym_comment] = ACTIONS(71), - }, - [273] = { - [anon_sym_RBRACE] = ACTIONS(801), - [sym_comment] = ACTIONS(71), - }, - [274] = { - [anon_sym_RBRACE] = ACTIONS(803), - [sym_comment] = ACTIONS(71), - }, - [275] = { - [anon_sym_RBRACE] = ACTIONS(805), - [sym_comment] = ACTIONS(71), - }, - [276] = { - [ts_builtin_sym_end] = ACTIONS(267), - [anon_sym_while] = ACTIONS(269), - [anon_sym_do] = ACTIONS(269), - [anon_sym_done] = ACTIONS(269), - [anon_sym_if] = ACTIONS(269), - [anon_sym_then] = ACTIONS(269), - [anon_sym_fi] = ACTIONS(269), - [anon_sym_elif] = ACTIONS(269), - [anon_sym_else] = ACTIONS(269), - [anon_sym_case] = ACTIONS(269), - [anon_sym_esac] = ACTIONS(269), - [anon_sym_SEMI_SEMI] = ACTIONS(267), - [anon_sym_LBRACK] = ACTIONS(269), - [anon_sym_LBRACK_LBRACK] = ACTIONS(269), - [anon_sym_DQUOTE] = ACTIONS(267), - [sym_single_quoted_argument] = ACTIONS(269), - [anon_sym_DOLLAR] = ACTIONS(269), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(267), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(267), - [anon_sym_LT] = ACTIONS(269), - [anon_sym_GT] = ACTIONS(269), - [anon_sym_LT_AMP] = ACTIONS(269), - [anon_sym_GT_AMP] = ACTIONS(269), - [sym_file_descriptor] = ACTIONS(269), - [sym_leading_word] = ACTIONS(271), - [sym_word] = ACTIONS(271), - [sym_comment] = ACTIONS(71), - }, - [277] = { - [anon_sym_esac] = ACTIONS(807), - [anon_sym_DQUOTE] = ACTIONS(809), - [sym_single_quoted_argument] = ACTIONS(807), - [anon_sym_DOLLAR] = ACTIONS(807), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(809), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(809), - [sym_word] = ACTIONS(811), - [sym_comment] = ACTIONS(71), - }, - [278] = { - [ts_builtin_sym_end] = ACTIONS(273), - [anon_sym_while] = ACTIONS(275), - [anon_sym_done] = ACTIONS(275), - [anon_sym_if] = ACTIONS(275), - [anon_sym_fi] = ACTIONS(275), - [anon_sym_elif] = ACTIONS(275), - [anon_sym_else] = ACTIONS(275), - [anon_sym_case] = ACTIONS(275), - [anon_sym_esac] = ACTIONS(275), - [anon_sym_SEMI_SEMI] = ACTIONS(273), - [anon_sym_LBRACK] = ACTIONS(275), - [anon_sym_LBRACK_LBRACK] = ACTIONS(275), - [anon_sym_DQUOTE] = ACTIONS(273), - [sym_single_quoted_argument] = ACTIONS(275), - [anon_sym_DOLLAR] = ACTIONS(275), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(273), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(273), - [anon_sym_LT] = ACTIONS(275), - [anon_sym_GT] = ACTIONS(275), - [anon_sym_LT_AMP] = ACTIONS(275), - [anon_sym_GT_AMP] = ACTIONS(275), - [sym_file_descriptor] = ACTIONS(275), - [sym_leading_word] = ACTIONS(277), - [sym_word] = ACTIONS(277), - [sym_comment] = ACTIONS(71), - }, - [279] = { - [anon_sym_esac] = ACTIONS(813), - [anon_sym_DQUOTE] = ACTIONS(815), - [sym_single_quoted_argument] = ACTIONS(813), - [anon_sym_DOLLAR] = ACTIONS(813), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(815), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(815), - [sym_word] = ACTIONS(817), - [sym_comment] = ACTIONS(71), - }, - [280] = { - [sym__heredoc_middle] = ACTIONS(743), - [sym__heredoc_end] = ACTIONS(743), - [anon_sym_DOLLAR] = ACTIONS(745), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(743), - [sym_comment] = ACTIONS(71), - }, - [281] = { [sym__heredoc_middle] = ACTIONS(747), [sym__heredoc_end] = ACTIONS(747), [anon_sym_DOLLAR] = ACTIONS(749), [anon_sym_DOLLAR_LBRACE] = ACTIONS(747), [sym_comment] = ACTIONS(71), }, - [282] = { - [anon_sym_LT] = ACTIONS(745), - [anon_sym_GT] = ACTIONS(745), - [anon_sym_LT_AMP] = ACTIONS(745), - [anon_sym_GT_AMP] = ACTIONS(745), - [sym_file_descriptor] = ACTIONS(745), - [sym_leading_word] = ACTIONS(721), - [sym_comment] = ACTIONS(71), + [243] = { + [sym_file_descriptor] = ACTIONS(751), + [anon_sym_RPAREN] = ACTIONS(753), + [anon_sym_SEMI_SEMI] = ACTIONS(753), + [anon_sym_PIPE] = ACTIONS(753), + [anon_sym_PIPE_AMP] = ACTIONS(753), + [anon_sym_AMP_AMP] = ACTIONS(753), + [anon_sym_PIPE_PIPE] = ACTIONS(753), + [anon_sym_LT] = ACTIONS(753), + [anon_sym_GT] = ACTIONS(753), + [anon_sym_GT_GT] = ACTIONS(753), + [anon_sym_AMP_GT] = ACTIONS(753), + [anon_sym_AMP_GT_GT] = ACTIONS(753), + [anon_sym_LT_AMP] = ACTIONS(753), + [anon_sym_GT_AMP] = ACTIONS(753), + [anon_sym_LT_LT] = ACTIONS(753), + [anon_sym_LT_LT_DASH] = ACTIONS(753), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(753), + [anon_sym_LF] = ACTIONS(753), }, - [283] = { - [anon_sym_LT] = ACTIONS(749), - [anon_sym_GT] = ACTIONS(749), - [anon_sym_LT_AMP] = ACTIONS(749), - [anon_sym_GT_AMP] = ACTIONS(749), - [sym_file_descriptor] = ACTIONS(749), - [sym_leading_word] = ACTIONS(723), - [sym_comment] = ACTIONS(71), + [244] = { + [sym_file_redirect] = STATE(113), + [sym_heredoc_redirect] = STATE(113), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_RPAREN] = ACTIONS(755), + [anon_sym_SEMI_SEMI] = ACTIONS(755), + [anon_sym_PIPE] = ACTIONS(755), + [anon_sym_PIPE_AMP] = ACTIONS(755), + [anon_sym_AMP_AMP] = ACTIONS(755), + [anon_sym_PIPE_PIPE] = ACTIONS(755), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(755), + [anon_sym_LF] = ACTIONS(755), }, - [284] = { - [anon_sym_SEMI_SEMI] = ACTIONS(819), - [anon_sym_PIPE] = ACTIONS(819), - [anon_sym_PIPE_AMP] = ACTIONS(819), - [anon_sym_AMP_AMP] = ACTIONS(819), - [anon_sym_PIPE_PIPE] = ACTIONS(819), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(819), - [anon_sym_LF] = ACTIONS(819), - }, - [285] = { + [245] = { [sym__terminated_statement] = STATE(11), [sym_while_statement] = STATE(12), [sym_if_statement] = STATE(12), - [sym_elif_clause] = STATE(113), - [sym_else_clause] = STATE(114), [sym_case_statement] = STATE(12), [sym_bracket_command] = STATE(12), [sym_command] = STATE(12), @@ -10253,646 +10128,1133 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_list] = STATE(12), [sym_environment_variable_assignment] = STATE(13), [sym_file_redirect] = STATE(14), - [aux_sym_program_repeat1] = STATE(320), - [aux_sym_if_statement_repeat1] = STATE(116), + [aux_sym_program_repeat1] = STATE(285), [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_fi] = ACTIONS(822), - [anon_sym_elif] = ACTIONS(825), - [anon_sym_else] = ACTIONS(828), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_fi] = ACTIONS(757), + [anon_sym_elif] = ACTIONS(757), + [anon_sym_else] = ACTIONS(757), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(91), + [sym_comment] = ACTIONS(71), + }, + [246] = { + [anon_sym_SEMI_SEMI] = ACTIONS(759), + [anon_sym_PIPE] = ACTIONS(759), + [anon_sym_PIPE_AMP] = ACTIONS(759), + [anon_sym_AMP_AMP] = ACTIONS(759), + [anon_sym_PIPE_PIPE] = ACTIONS(759), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(759), + [anon_sym_LF] = ACTIONS(759), + }, + [247] = { + [anon_sym_fi] = ACTIONS(761), + [sym_comment] = ACTIONS(71), + }, + [248] = { + [anon_sym_RBRACE] = ACTIONS(763), + [sym_comment] = ACTIONS(71), + }, + [249] = { + [anon_sym_RBRACE] = ACTIONS(765), + [sym_comment] = ACTIONS(71), + }, + [250] = { + [sym__terminated_statement] = STATE(290), + [sym_while_statement] = STATE(291), + [sym_if_statement] = STATE(291), + [sym_case_statement] = STATE(291), + [sym_bracket_command] = STATE(291), + [sym_command] = STATE(291), + [sym_pipeline] = STATE(291), + [sym_list] = STATE(291), + [sym_environment_variable_assignment] = STATE(292), + [sym_file_redirect] = STATE(14), + [aux_sym_program_repeat1] = STATE(293), + [aux_sym_command_repeat1] = STATE(16), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_esac] = ACTIONS(767), + [anon_sym_SEMI_SEMI] = ACTIONS(769), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_DQUOTE] = ACTIONS(771), + [sym_single_quoted_argument] = ACTIONS(767), + [anon_sym_DOLLAR] = ACTIONS(767), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(771), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(771), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(91), + [sym_word] = ACTIONS(773), + [sym_comment] = ACTIONS(71), + }, + [251] = { + [sym__terminated_statement] = STATE(290), + [sym_while_statement] = STATE(291), + [sym_if_statement] = STATE(291), + [sym_case_statement] = STATE(291), + [sym_bracket_command] = STATE(291), + [sym_command] = STATE(291), + [sym_pipeline] = STATE(291), + [sym_list] = STATE(291), + [sym_environment_variable_assignment] = STATE(292), + [sym_file_redirect] = STATE(14), + [aux_sym_program_repeat1] = STATE(295), + [aux_sym_command_repeat1] = STATE(16), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_esac] = ACTIONS(775), + [anon_sym_SEMI_SEMI] = ACTIONS(777), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_DQUOTE] = ACTIONS(779), + [sym_single_quoted_argument] = ACTIONS(775), + [anon_sym_DOLLAR] = ACTIONS(775), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(779), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(779), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(91), + [sym_word] = ACTIONS(781), + [sym_comment] = ACTIONS(71), + }, + [252] = { + [anon_sym_SEMI_SEMI] = ACTIONS(783), + [anon_sym_PIPE] = ACTIONS(783), + [anon_sym_PIPE_AMP] = ACTIONS(783), + [anon_sym_AMP_AMP] = ACTIONS(783), + [anon_sym_PIPE_PIPE] = ACTIONS(783), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(783), + [anon_sym_LF] = ACTIONS(783), + }, + [253] = { + [anon_sym_esac] = ACTIONS(785), + [anon_sym_DQUOTE] = ACTIONS(787), + [sym_single_quoted_argument] = ACTIONS(785), + [anon_sym_DOLLAR] = ACTIONS(785), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(787), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(787), + [sym_word] = ACTIONS(789), + [sym_comment] = ACTIONS(71), + }, + [254] = { + [sym_case_item] = STATE(253), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [anon_sym_esac] = ACTIONS(791), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(527), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(529), + [sym_comment] = ACTIONS(71), + }, + [255] = { + [anon_sym_in] = ACTIONS(793), + [anon_sym_SEMI_SEMI] = ACTIONS(793), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(793), + [anon_sym_LF] = ACTIONS(793), + }, + [256] = { + [anon_sym_in] = ACTIONS(795), + [anon_sym_SEMI_SEMI] = ACTIONS(795), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(795), + [anon_sym_LF] = ACTIONS(795), + }, + [257] = { + [sym_file_descriptor] = ACTIONS(321), + [anon_sym_RPAREN] = ACTIONS(321), + [anon_sym_LT] = ACTIONS(323), + [anon_sym_GT] = ACTIONS(323), + [anon_sym_GT_GT] = ACTIONS(321), + [anon_sym_AMP_GT] = ACTIONS(323), + [anon_sym_AMP_GT_GT] = ACTIONS(321), + [anon_sym_LT_AMP] = ACTIONS(321), + [anon_sym_GT_AMP] = ACTIONS(321), + [anon_sym_LT_LT] = ACTIONS(323), + [anon_sym_LT_LT_DASH] = ACTIONS(321), + [sym_comment] = ACTIONS(71), + }, + [258] = { + [sym_file_descriptor] = ACTIONS(327), + [anon_sym_RPAREN] = ACTIONS(327), + [anon_sym_LT] = ACTIONS(329), + [anon_sym_GT] = ACTIONS(329), + [anon_sym_GT_GT] = ACTIONS(327), + [anon_sym_AMP_GT] = ACTIONS(329), + [anon_sym_AMP_GT_GT] = ACTIONS(327), + [anon_sym_LT_AMP] = ACTIONS(327), + [anon_sym_GT_AMP] = ACTIONS(327), + [anon_sym_LT_LT] = ACTIONS(329), + [anon_sym_LT_LT_DASH] = ACTIONS(327), + [sym_comment] = ACTIONS(71), + }, + [259] = { + [sym_file_descriptor] = ACTIONS(385), + [anon_sym_RPAREN] = ACTIONS(385), + [anon_sym_DQUOTE] = ACTIONS(385), + [sym_single_quoted_argument] = ACTIONS(387), + [anon_sym_DOLLAR] = ACTIONS(387), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(385), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(385), + [anon_sym_LT] = ACTIONS(387), + [anon_sym_GT] = ACTIONS(387), + [anon_sym_GT_GT] = ACTIONS(385), + [anon_sym_AMP_GT] = ACTIONS(387), + [anon_sym_AMP_GT_GT] = ACTIONS(385), + [anon_sym_LT_AMP] = ACTIONS(385), + [anon_sym_GT_AMP] = ACTIONS(385), + [anon_sym_LT_LT] = ACTIONS(387), + [anon_sym_LT_LT_DASH] = ACTIONS(385), + [sym_word] = ACTIONS(343), + [sym_comment] = ACTIONS(71), + }, + [260] = { + [sym_expansion] = STATE(134), + [sym_operator_expansion] = STATE(134), + [sym_command_substitution] = STATE(134), + [anon_sym_DQUOTE] = ACTIONS(797), + [sym__quoted_chars] = ACTIONS(355), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), + }, + [261] = { + [sym_file_descriptor] = ACTIONS(391), + [anon_sym_RPAREN] = ACTIONS(391), + [anon_sym_DQUOTE] = ACTIONS(391), + [sym_single_quoted_argument] = ACTIONS(393), + [anon_sym_DOLLAR] = ACTIONS(393), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(391), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(391), + [anon_sym_LT] = ACTIONS(393), + [anon_sym_GT] = ACTIONS(393), + [anon_sym_GT_GT] = ACTIONS(391), + [anon_sym_AMP_GT] = ACTIONS(393), + [anon_sym_AMP_GT_GT] = ACTIONS(391), + [anon_sym_LT_AMP] = ACTIONS(391), + [anon_sym_GT_AMP] = ACTIONS(391), + [anon_sym_LT_LT] = ACTIONS(393), + [anon_sym_LT_LT_DASH] = ACTIONS(391), + [sym_word] = ACTIONS(361), + [sym_comment] = ACTIONS(71), + }, + [262] = { + [anon_sym_EQ] = ACTIONS(799), + [anon_sym_COLON] = ACTIONS(801), + [anon_sym_COLON_QMARK] = ACTIONS(799), + [anon_sym_RBRACE] = ACTIONS(803), + [sym_comment] = ACTIONS(71), + }, + [263] = { + [anon_sym_RPAREN] = ACTIONS(805), + [sym_comment] = ACTIONS(71), + }, + [264] = { + [sym_file_descriptor] = ACTIONS(407), + [anon_sym_RPAREN] = ACTIONS(407), + [anon_sym_DQUOTE] = ACTIONS(407), + [sym_single_quoted_argument] = ACTIONS(405), + [anon_sym_DOLLAR] = ACTIONS(405), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(407), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(407), + [anon_sym_LT] = ACTIONS(405), + [anon_sym_GT] = ACTIONS(405), + [anon_sym_GT_GT] = ACTIONS(407), + [anon_sym_AMP_GT] = ACTIONS(405), + [anon_sym_AMP_GT_GT] = ACTIONS(407), + [anon_sym_LT_AMP] = ACTIONS(407), + [anon_sym_GT_AMP] = ACTIONS(407), + [anon_sym_LT_LT] = ACTIONS(405), + [anon_sym_LT_LT_DASH] = ACTIONS(407), + [sym_word] = ACTIONS(409), + [sym_comment] = ACTIONS(71), + }, + [265] = { + [sym_file_descriptor] = ACTIONS(413), + [anon_sym_RPAREN] = ACTIONS(413), + [anon_sym_DQUOTE] = ACTIONS(413), + [sym_single_quoted_argument] = ACTIONS(411), + [anon_sym_DOLLAR] = ACTIONS(411), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(413), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(413), + [anon_sym_LT] = ACTIONS(411), + [anon_sym_GT] = ACTIONS(411), + [anon_sym_GT_GT] = ACTIONS(413), + [anon_sym_AMP_GT] = ACTIONS(411), + [anon_sym_AMP_GT_GT] = ACTIONS(413), + [anon_sym_LT_AMP] = ACTIONS(413), + [anon_sym_GT_AMP] = ACTIONS(413), + [anon_sym_LT_LT] = ACTIONS(411), + [anon_sym_LT_LT_DASH] = ACTIONS(413), + [sym_word] = ACTIONS(415), + [sym_comment] = ACTIONS(71), + }, + [266] = { + [sym_file_redirect] = STATE(218), + [sym_heredoc_redirect] = STATE(218), + [sym_file_descriptor] = ACTIONS(369), + [anon_sym_RPAREN] = ACTIONS(807), + [anon_sym_LT] = ACTIONS(555), + [anon_sym_GT] = ACTIONS(555), + [anon_sym_GT_GT] = ACTIONS(557), + [anon_sym_AMP_GT] = ACTIONS(555), + [anon_sym_AMP_GT_GT] = ACTIONS(557), + [anon_sym_LT_AMP] = ACTIONS(557), + [anon_sym_GT_AMP] = ACTIONS(557), + [anon_sym_LT_LT] = ACTIONS(559), + [anon_sym_LT_LT_DASH] = ACTIONS(561), + [sym_comment] = ACTIONS(71), + }, + [267] = { + [sym_file_descriptor] = ACTIONS(639), + [anon_sym_RPAREN] = ACTIONS(639), + [anon_sym_LT] = ACTIONS(809), + [anon_sym_GT] = ACTIONS(809), + [anon_sym_GT_GT] = ACTIONS(639), + [anon_sym_AMP_GT] = ACTIONS(809), + [anon_sym_AMP_GT_GT] = ACTIONS(639), + [anon_sym_LT_AMP] = ACTIONS(639), + [anon_sym_GT_AMP] = ACTIONS(639), + [anon_sym_LT_LT] = ACTIONS(809), + [anon_sym_LT_LT_DASH] = ACTIONS(639), + [sym_comment] = ACTIONS(71), + }, + [268] = { + [sym_expansion] = STATE(242), + [sym_operator_expansion] = STATE(242), + [sym__heredoc_middle] = ACTIONS(647), + [sym__heredoc_end] = ACTIONS(811), + [anon_sym_DOLLAR] = ACTIONS(471), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(473), + [sym_comment] = ACTIONS(71), + }, + [269] = { + [sym_quoted_argument] = STATE(264), + [sym_expansion] = STATE(264), + [sym_operator_expansion] = STATE(264), + [sym_command_substitution] = STATE(264), + [sym_file_redirect] = STATE(143), + [sym_heredoc_redirect] = STATE(143), + [aux_sym_command_repeat2] = STATE(302), + [sym_file_descriptor] = ACTIONS(369), + [anon_sym_RPAREN] = ACTIONS(813), + [anon_sym_DQUOTE] = ACTIONS(545), + [sym_single_quoted_argument] = ACTIONS(703), + [anon_sym_DOLLAR] = ACTIONS(549), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(551), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(553), + [anon_sym_LT] = ACTIONS(555), + [anon_sym_GT] = ACTIONS(555), + [anon_sym_GT_GT] = ACTIONS(557), + [anon_sym_AMP_GT] = ACTIONS(555), + [anon_sym_AMP_GT_GT] = ACTIONS(557), + [anon_sym_LT_AMP] = ACTIONS(557), + [anon_sym_GT_AMP] = ACTIONS(557), + [anon_sym_LT_LT] = ACTIONS(559), + [anon_sym_LT_LT_DASH] = ACTIONS(561), + [sym_word] = ACTIONS(705), + [sym_comment] = ACTIONS(71), + }, + [270] = { + [sym_file_redirect] = STATE(218), + [sym_heredoc_redirect] = STATE(218), + [sym_file_descriptor] = ACTIONS(369), + [anon_sym_RPAREN] = ACTIONS(813), + [anon_sym_LT] = ACTIONS(555), + [anon_sym_GT] = ACTIONS(555), + [anon_sym_GT_GT] = ACTIONS(557), + [anon_sym_AMP_GT] = ACTIONS(555), + [anon_sym_AMP_GT_GT] = ACTIONS(557), + [anon_sym_LT_AMP] = ACTIONS(557), + [anon_sym_GT_AMP] = ACTIONS(557), + [anon_sym_LT_LT] = ACTIONS(559), + [anon_sym_LT_LT_DASH] = ACTIONS(561), + [sym_comment] = ACTIONS(71), + }, + [271] = { + [anon_sym_SEMI_SEMI] = ACTIONS(815), + [anon_sym_PIPE] = ACTIONS(815), + [anon_sym_PIPE_AMP] = ACTIONS(815), + [anon_sym_AMP_AMP] = ACTIONS(815), + [anon_sym_PIPE_PIPE] = ACTIONS(815), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(815), + [anon_sym_LF] = ACTIONS(815), + }, + [272] = { + [sym_case_item] = STATE(253), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [anon_sym_esac] = ACTIONS(817), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(527), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(529), + [sym_comment] = ACTIONS(71), + }, + [273] = { + [anon_sym_RPAREN] = ACTIONS(819), + [anon_sym_RBRACK] = ACTIONS(821), + [anon_sym_RBRACK_RBRACK] = ACTIONS(821), + [anon_sym_DQUOTE] = ACTIONS(819), + [sym_single_quoted_argument] = ACTIONS(821), + [anon_sym_DOLLAR] = ACTIONS(821), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(819), + [anon_sym_RBRACE] = ACTIONS(819), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(819), + [sym_word] = ACTIONS(793), + [sym_comment] = ACTIONS(71), + }, + [274] = { + [anon_sym_RPAREN] = ACTIONS(823), + [anon_sym_RBRACK] = ACTIONS(825), + [anon_sym_RBRACK_RBRACK] = ACTIONS(825), + [anon_sym_DQUOTE] = ACTIONS(823), + [sym_single_quoted_argument] = ACTIONS(825), + [anon_sym_DOLLAR] = ACTIONS(825), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(823), + [anon_sym_RBRACE] = ACTIONS(823), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(823), + [sym_word] = ACTIONS(795), + [sym_comment] = ACTIONS(71), + }, + [275] = { + [sym_file_descriptor] = ACTIONS(819), + [anon_sym_LT] = ACTIONS(821), + [anon_sym_GT] = ACTIONS(821), + [anon_sym_GT_GT] = ACTIONS(821), + [anon_sym_AMP_GT] = ACTIONS(821), + [anon_sym_AMP_GT_GT] = ACTIONS(821), + [anon_sym_LT_AMP] = ACTIONS(821), + [anon_sym_GT_AMP] = ACTIONS(821), + [sym_leading_word] = ACTIONS(793), + [sym_comment] = ACTIONS(71), + }, + [276] = { + [sym_file_descriptor] = ACTIONS(823), + [anon_sym_LT] = ACTIONS(825), + [anon_sym_GT] = ACTIONS(825), + [anon_sym_GT_GT] = ACTIONS(825), + [anon_sym_AMP_GT] = ACTIONS(825), + [anon_sym_AMP_GT_GT] = ACTIONS(825), + [anon_sym_LT_AMP] = ACTIONS(825), + [anon_sym_GT_AMP] = ACTIONS(825), + [sym_leading_word] = ACTIONS(795), + [sym_comment] = ACTIONS(71), + }, + [277] = { + [anon_sym_RBRACE] = ACTIONS(827), + [sym_comment] = ACTIONS(71), + }, + [278] = { + [anon_sym_RBRACE] = ACTIONS(829), + [sym_comment] = ACTIONS(71), + }, + [279] = { + [anon_sym_RBRACE] = ACTIONS(831), + [sym_comment] = ACTIONS(71), + }, + [280] = { + [anon_sym_RBRACE] = ACTIONS(833), + [sym_comment] = ACTIONS(71), + }, + [281] = { + [anon_sym_RBRACE] = ACTIONS(835), + [sym_comment] = ACTIONS(71), + }, + [282] = { + [anon_sym_RBRACE] = ACTIONS(837), + [sym_comment] = ACTIONS(71), + }, + [283] = { + [sym_quoted_argument] = STATE(310), + [sym_expansion] = STATE(310), + [sym_operator_expansion] = STATE(310), + [sym_command_substitution] = STATE(310), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(839), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(841), + [sym_comment] = ACTIONS(71), + }, + [284] = { + [sym__heredoc_middle] = ACTIONS(591), + [sym__heredoc_end] = ACTIONS(591), + [anon_sym_DOLLAR] = ACTIONS(593), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(591), + [sym_comment] = ACTIONS(71), + }, + [285] = { + [sym__terminated_statement] = STATE(52), + [sym_while_statement] = STATE(12), + [sym_if_statement] = STATE(12), + [sym_case_statement] = STATE(12), + [sym_bracket_command] = STATE(12), + [sym_command] = STATE(12), + [sym_pipeline] = STATE(12), + [sym_list] = STATE(12), + [sym_environment_variable_assignment] = STATE(13), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(16), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_fi] = ACTIONS(843), + [anon_sym_elif] = ACTIONS(843), + [anon_sym_else] = ACTIONS(843), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, [286] = { - [anon_sym_SEMI_SEMI] = ACTIONS(831), - [anon_sym_PIPE] = ACTIONS(831), - [anon_sym_PIPE_AMP] = ACTIONS(831), - [anon_sym_AMP_AMP] = ACTIONS(831), - [anon_sym_PIPE_PIPE] = ACTIONS(831), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(831), - [anon_sym_LF] = ACTIONS(831), + [anon_sym_SEMI_SEMI] = ACTIONS(845), + [anon_sym_PIPE] = ACTIONS(845), + [anon_sym_PIPE_AMP] = ACTIONS(845), + [anon_sym_AMP_AMP] = ACTIONS(845), + [anon_sym_PIPE_PIPE] = ACTIONS(845), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(845), + [anon_sym_LF] = ACTIONS(845), }, [287] = { - [anon_sym_SEMI_SEMI] = ACTIONS(836), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(836), - [anon_sym_LF] = ACTIONS(836), + [anon_sym_DQUOTE] = ACTIONS(793), + [sym__quoted_chars] = ACTIONS(821), + [anon_sym_DOLLAR] = ACTIONS(793), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(793), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(793), + [sym_comment] = ACTIONS(145), }, [288] = { - [anon_sym_SEMI_SEMI] = ACTIONS(838), - [anon_sym_PIPE] = ACTIONS(838), - [anon_sym_PIPE_AMP] = ACTIONS(838), - [anon_sym_AMP_AMP] = ACTIONS(838), - [anon_sym_PIPE_PIPE] = ACTIONS(838), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(838), - [anon_sym_LF] = ACTIONS(838), + [anon_sym_DQUOTE] = ACTIONS(795), + [sym__quoted_chars] = ACTIONS(825), + [anon_sym_DOLLAR] = ACTIONS(795), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(795), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(795), + [sym_comment] = ACTIONS(145), }, [289] = { - [sym__terminated_statement] = STATE(258), - [sym_while_statement] = STATE(259), - [sym_if_statement] = STATE(259), - [sym_case_statement] = STATE(259), - [sym_bracket_command] = STATE(259), - [sym_command] = STATE(259), - [sym_pipeline] = STATE(259), - [sym_list] = STATE(259), - [sym_environment_variable_assignment] = STATE(260), - [sym_file_redirect] = STATE(14), - [aux_sym_program_repeat1] = STATE(323), - [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_in] = ACTIONS(513), - [anon_sym_esac] = ACTIONS(845), - [anon_sym_RPAREN] = ACTIONS(513), - [anon_sym_SEMI_SEMI] = ACTIONS(848), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_RBRACK] = ACTIONS(513), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_RBRACK_RBRACK] = ACTIONS(513), - [anon_sym_PIPE] = ACTIONS(513), - [anon_sym_PIPE_AMP] = ACTIONS(513), - [anon_sym_AMP_AMP] = ACTIONS(513), - [anon_sym_PIPE_PIPE] = ACTIONS(513), - [anon_sym_DQUOTE] = ACTIONS(851), - [sym__quoted_chars] = ACTIONS(513), - [sym_single_quoted_argument] = ACTIONS(851), - [anon_sym_DOLLAR] = ACTIONS(851), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(851), - [anon_sym_RBRACE] = ACTIONS(513), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(851), - [anon_sym_LT] = ACTIONS(855), - [anon_sym_GT] = ACTIONS(855), - [anon_sym_LT_AMP] = ACTIONS(855), - [anon_sym_GT_AMP] = ACTIONS(855), - [anon_sym_LT_LT] = ACTIONS(513), - [anon_sym_LT_LT_DASH] = ACTIONS(513), - [sym_file_descriptor] = ACTIONS(858), - [sym_leading_word] = ACTIONS(861), + [anon_sym_esac] = ACTIONS(847), + [anon_sym_DQUOTE] = ACTIONS(849), + [sym_single_quoted_argument] = ACTIONS(847), + [anon_sym_DOLLAR] = ACTIONS(847), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(849), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(849), [sym_word] = ACTIONS(851), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(513), - [anon_sym_LF] = ACTIONS(513), + [sym_comment] = ACTIONS(71), }, [290] = { - [sym_quoted_argument] = STATE(324), - [sym_expansion] = STATE(324), - [sym_operator_expansion] = STATE(324), - [sym_command_substitution] = STATE(324), - [anon_sym_DQUOTE] = ACTIONS(241), - [sym_single_quoted_argument] = ACTIONS(864), - [anon_sym_DOLLAR] = ACTIONS(245), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(247), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(249), - [sym_word] = ACTIONS(866), + [sym_file_descriptor] = ACTIONS(149), + [anon_sym_while] = ACTIONS(151), + [anon_sym_if] = ACTIONS(151), + [anon_sym_case] = ACTIONS(151), + [anon_sym_esac] = ACTIONS(151), + [anon_sym_SEMI_SEMI] = ACTIONS(149), + [anon_sym_LBRACK] = ACTIONS(151), + [anon_sym_LBRACK_LBRACK] = ACTIONS(151), + [anon_sym_DQUOTE] = ACTIONS(149), + [sym_single_quoted_argument] = ACTIONS(151), + [anon_sym_DOLLAR] = ACTIONS(151), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(149), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(149), + [anon_sym_LT] = ACTIONS(151), + [anon_sym_GT] = ACTIONS(151), + [anon_sym_GT_GT] = ACTIONS(151), + [anon_sym_AMP_GT] = ACTIONS(151), + [anon_sym_AMP_GT_GT] = ACTIONS(151), + [anon_sym_LT_AMP] = ACTIONS(151), + [anon_sym_GT_AMP] = ACTIONS(151), + [sym_leading_word] = ACTIONS(153), + [sym_word] = ACTIONS(153), [sym_comment] = ACTIONS(71), }, [291] = { - [sym_expansion] = STATE(56), - [sym_operator_expansion] = STATE(56), - [sym_command_substitution] = STATE(56), - [aux_sym_quoted_argument_repeat1] = STATE(319), - [anon_sym_in] = ACTIONS(868), - [anon_sym_RPAREN] = ACTIONS(868), - [anon_sym_SEMI_SEMI] = ACTIONS(868), - [anon_sym_RBRACK] = ACTIONS(868), - [anon_sym_RBRACK_RBRACK] = ACTIONS(868), - [anon_sym_PIPE] = ACTIONS(868), - [anon_sym_PIPE_AMP] = ACTIONS(868), - [anon_sym_AMP_AMP] = ACTIONS(868), - [anon_sym_PIPE_PIPE] = ACTIONS(868), - [anon_sym_DQUOTE] = ACTIONS(871), - [sym__quoted_chars] = ACTIONS(875), - [sym_single_quoted_argument] = ACTIONS(868), - [anon_sym_DOLLAR] = ACTIONS(877), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(881), - [anon_sym_RBRACE] = ACTIONS(868), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(885), - [anon_sym_LT] = ACTIONS(868), - [anon_sym_GT] = ACTIONS(868), - [anon_sym_LT_AMP] = ACTIONS(868), - [anon_sym_GT_AMP] = ACTIONS(868), - [anon_sym_LT_LT] = ACTIONS(868), - [anon_sym_LT_LT_DASH] = ACTIONS(868), - [sym_file_descriptor] = ACTIONS(868), - [sym_leading_word] = ACTIONS(868), - [sym_word] = ACTIONS(868), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(868), - [anon_sym_LF] = ACTIONS(868), + [anon_sym_SEMI_SEMI] = ACTIONS(853), + [anon_sym_PIPE] = ACTIONS(157), + [anon_sym_PIPE_AMP] = ACTIONS(157), + [anon_sym_AMP_AMP] = ACTIONS(159), + [anon_sym_PIPE_PIPE] = ACTIONS(159), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(853), + [anon_sym_LF] = ACTIONS(853), }, [292] = { - [sym_word] = ACTIONS(889), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(161), + [anon_sym_SEMI_SEMI] = ACTIONS(853), + [anon_sym_PIPE] = ACTIONS(157), + [anon_sym_PIPE_AMP] = ACTIONS(157), + [anon_sym_AMP_AMP] = ACTIONS(159), + [anon_sym_PIPE_PIPE] = ACTIONS(159), + [anon_sym_LT] = ACTIONS(163), + [anon_sym_GT] = ACTIONS(163), + [anon_sym_GT_GT] = ACTIONS(163), + [anon_sym_AMP_GT] = ACTIONS(163), + [anon_sym_AMP_GT_GT] = ACTIONS(163), + [anon_sym_LT_AMP] = ACTIONS(163), + [anon_sym_GT_AMP] = ACTIONS(163), + [sym_leading_word] = ACTIONS(163), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(853), + [anon_sym_LF] = ACTIONS(853), }, [293] = { - [sym_leading_word] = ACTIONS(891), + [sym__terminated_statement] = STATE(314), + [sym_while_statement] = STATE(291), + [sym_if_statement] = STATE(291), + [sym_case_statement] = STATE(291), + [sym_bracket_command] = STATE(291), + [sym_command] = STATE(291), + [sym_pipeline] = STATE(291), + [sym_list] = STATE(291), + [sym_environment_variable_assignment] = STATE(292), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(16), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_esac] = ACTIONS(847), + [anon_sym_SEMI_SEMI] = ACTIONS(855), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_DQUOTE] = ACTIONS(849), + [sym_single_quoted_argument] = ACTIONS(847), + [anon_sym_DOLLAR] = ACTIONS(847), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(849), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(849), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(91), + [sym_word] = ACTIONS(851), [sym_comment] = ACTIONS(71), }, [294] = { - [sym_quoted_argument] = STATE(329), - [sym_expansion] = STATE(329), - [sym_operator_expansion] = STATE(329), - [sym_command_substitution] = STATE(329), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(893), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(895), + [anon_sym_esac] = ACTIONS(857), + [anon_sym_DQUOTE] = ACTIONS(859), + [sym_single_quoted_argument] = ACTIONS(857), + [anon_sym_DOLLAR] = ACTIONS(857), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(859), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(859), + [sym_word] = ACTIONS(861), [sym_comment] = ACTIONS(71), }, [295] = { - [sym__heredoc_middle] = ACTIONS(897), - [sym__heredoc_end] = ACTIONS(897), - [anon_sym_in] = ACTIONS(901), - [anon_sym_RPAREN] = ACTIONS(901), - [anon_sym_SEMI_SEMI] = ACTIONS(901), - [anon_sym_RBRACK] = ACTIONS(901), - [anon_sym_RBRACK_RBRACK] = ACTIONS(901), - [anon_sym_PIPE] = ACTIONS(901), - [anon_sym_PIPE_AMP] = ACTIONS(901), - [anon_sym_AMP_AMP] = ACTIONS(901), - [anon_sym_PIPE_PIPE] = ACTIONS(901), - [anon_sym_DQUOTE] = ACTIONS(901), - [sym__quoted_chars] = ACTIONS(901), - [sym_single_quoted_argument] = ACTIONS(901), - [anon_sym_DOLLAR] = ACTIONS(901), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(901), - [anon_sym_RBRACE] = ACTIONS(901), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(901), - [anon_sym_LT] = ACTIONS(901), - [anon_sym_GT] = ACTIONS(901), - [anon_sym_LT_AMP] = ACTIONS(901), - [anon_sym_GT_AMP] = ACTIONS(901), - [anon_sym_LT_LT] = ACTIONS(901), - [anon_sym_LT_LT_DASH] = ACTIONS(901), - [sym_file_descriptor] = ACTIONS(901), - [sym_leading_word] = ACTIONS(901), - [sym_word] = ACTIONS(901), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(901), - [anon_sym_LF] = ACTIONS(901), - }, - [296] = { - [sym_command] = STATE(331), - [sym_environment_variable_assignment] = STATE(14), + [sym__terminated_statement] = STATE(314), + [sym_while_statement] = STATE(291), + [sym_if_statement] = STATE(291), + [sym_case_statement] = STATE(291), + [sym_bracket_command] = STATE(291), + [sym_command] = STATE(291), + [sym_pipeline] = STATE(291), + [sym_list] = STATE(291), + [sym_environment_variable_assignment] = STATE(292), [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(67), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(185), + [aux_sym_command_repeat1] = STATE(16), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_esac] = ACTIONS(857), + [anon_sym_SEMI_SEMI] = ACTIONS(863), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_DQUOTE] = ACTIONS(859), + [sym_single_quoted_argument] = ACTIONS(857), + [anon_sym_DOLLAR] = ACTIONS(857), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(859), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(859), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(91), + [sym_word] = ACTIONS(861), [sym_comment] = ACTIONS(71), }, + [296] = { + [anon_sym_SEMI_SEMI] = ACTIONS(865), + [anon_sym_PIPE] = ACTIONS(865), + [anon_sym_PIPE_AMP] = ACTIONS(865), + [anon_sym_AMP_AMP] = ACTIONS(865), + [anon_sym_PIPE_PIPE] = ACTIONS(865), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(865), + [anon_sym_LF] = ACTIONS(865), + }, [297] = { - [sym_file_descriptor] = ACTIONS(905), - [sym_word] = ACTIONS(907), + [sym_file_descriptor] = ACTIONS(583), + [anon_sym_RPAREN] = ACTIONS(583), + [anon_sym_DQUOTE] = ACTIONS(583), + [sym_single_quoted_argument] = ACTIONS(585), + [anon_sym_DOLLAR] = ACTIONS(585), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(583), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(583), + [anon_sym_LT] = ACTIONS(585), + [anon_sym_GT] = ACTIONS(585), + [anon_sym_GT_GT] = ACTIONS(583), + [anon_sym_AMP_GT] = ACTIONS(585), + [anon_sym_AMP_GT_GT] = ACTIONS(583), + [anon_sym_LT_AMP] = ACTIONS(583), + [anon_sym_GT_AMP] = ACTIONS(583), + [anon_sym_LT_LT] = ACTIONS(585), + [anon_sym_LT_LT_DASH] = ACTIONS(583), + [sym_word] = ACTIONS(519), [sym_comment] = ACTIONS(71), }, [298] = { - [anon_sym_RPAREN] = ACTIONS(909), - [anon_sym_SEMI_SEMI] = ACTIONS(909), - [anon_sym_PIPE] = ACTIONS(909), - [anon_sym_PIPE_AMP] = ACTIONS(909), - [anon_sym_AMP_AMP] = ACTIONS(909), - [anon_sym_PIPE_PIPE] = ACTIONS(909), - [anon_sym_LT] = ACTIONS(912), - [anon_sym_GT] = ACTIONS(912), - [anon_sym_LT_AMP] = ACTIONS(912), - [anon_sym_GT_AMP] = ACTIONS(912), - [anon_sym_LT_LT] = ACTIONS(909), - [anon_sym_LT_LT_DASH] = ACTIONS(909), - [sym_file_descriptor] = ACTIONS(909), - [sym_leading_word] = ACTIONS(909), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(909), - [anon_sym_LF] = ACTIONS(909), + [sym_quoted_argument] = STATE(316), + [sym_expansion] = STATE(316), + [sym_operator_expansion] = STATE(316), + [sym_command_substitution] = STATE(316), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(867), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(869), + [sym_comment] = ACTIONS(71), }, [299] = { - [sym_case_item] = STATE(181), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [aux_sym_case_statement_repeat1] = STATE(316), - [ts_builtin_sym_end] = ACTIONS(267), - [anon_sym_while] = ACTIONS(269), - [anon_sym_do] = ACTIONS(269), - [anon_sym_done] = ACTIONS(269), - [anon_sym_if] = ACTIONS(269), - [anon_sym_then] = ACTIONS(269), - [anon_sym_fi] = ACTIONS(269), - [anon_sym_elif] = ACTIONS(269), - [anon_sym_else] = ACTIONS(269), - [anon_sym_case] = ACTIONS(269), - [anon_sym_in] = ACTIONS(916), - [anon_sym_esac] = ACTIONS(918), - [anon_sym_SEMI_SEMI] = ACTIONS(267), - [anon_sym_LBRACK] = ACTIONS(269), - [anon_sym_LBRACK_LBRACK] = ACTIONS(269), - [anon_sym_DQUOTE] = ACTIONS(921), - [sym_single_quoted_argument] = ACTIONS(924), - [anon_sym_DOLLAR] = ACTIONS(927), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(930), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(933), - [anon_sym_LT] = ACTIONS(269), - [anon_sym_GT] = ACTIONS(269), - [anon_sym_LT_AMP] = ACTIONS(269), - [anon_sym_GT_AMP] = ACTIONS(269), - [sym_file_descriptor] = ACTIONS(269), - [sym_leading_word] = ACTIONS(271), - [sym_word] = ACTIONS(936), + [sym_file_descriptor] = ACTIONS(591), + [anon_sym_RPAREN] = ACTIONS(591), + [anon_sym_DQUOTE] = ACTIONS(591), + [sym_single_quoted_argument] = ACTIONS(593), + [anon_sym_DOLLAR] = ACTIONS(593), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(591), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(591), + [anon_sym_LT] = ACTIONS(593), + [anon_sym_GT] = ACTIONS(593), + [anon_sym_GT_GT] = ACTIONS(591), + [anon_sym_AMP_GT] = ACTIONS(593), + [anon_sym_AMP_GT_GT] = ACTIONS(591), + [anon_sym_LT_AMP] = ACTIONS(591), + [anon_sym_GT_AMP] = ACTIONS(591), + [anon_sym_LT_LT] = ACTIONS(593), + [anon_sym_LT_LT_DASH] = ACTIONS(591), + [sym_word] = ACTIONS(537), [sym_comment] = ACTIONS(71), }, [300] = { - [sym__heredoc_middle] = ACTIONS(939), - [sym__heredoc_end] = ACTIONS(939), - [anon_sym_DOLLAR] = ACTIONS(942), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(939), + [sym_file_descriptor] = ACTIONS(595), + [anon_sym_RPAREN] = ACTIONS(595), + [anon_sym_DQUOTE] = ACTIONS(595), + [sym_single_quoted_argument] = ACTIONS(597), + [anon_sym_DOLLAR] = ACTIONS(597), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(595), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(595), + [anon_sym_LT] = ACTIONS(597), + [anon_sym_GT] = ACTIONS(597), + [anon_sym_GT_GT] = ACTIONS(595), + [anon_sym_AMP_GT] = ACTIONS(597), + [anon_sym_AMP_GT_GT] = ACTIONS(595), + [anon_sym_LT_AMP] = ACTIONS(595), + [anon_sym_GT_AMP] = ACTIONS(595), + [anon_sym_LT_LT] = ACTIONS(597), + [anon_sym_LT_LT_DASH] = ACTIONS(595), + [sym_word] = ACTIONS(575), [sym_comment] = ACTIONS(71), }, [301] = { - [anon_sym_RPAREN] = ACTIONS(945), - [anon_sym_SEMI_SEMI] = ACTIONS(945), - [anon_sym_PIPE] = ACTIONS(945), - [anon_sym_PIPE_AMP] = ACTIONS(945), - [anon_sym_AMP_AMP] = ACTIONS(945), - [anon_sym_PIPE_PIPE] = ACTIONS(945), - [anon_sym_LT] = ACTIONS(945), - [anon_sym_GT] = ACTIONS(945), - [anon_sym_LT_AMP] = ACTIONS(945), - [anon_sym_GT_AMP] = ACTIONS(945), - [anon_sym_LT_LT] = ACTIONS(945), - [anon_sym_LT_LT_DASH] = ACTIONS(945), - [sym_file_descriptor] = ACTIONS(945), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(945), - [anon_sym_LF] = ACTIONS(945), + [sym_file_descriptor] = ACTIONS(751), + [anon_sym_RPAREN] = ACTIONS(751), + [anon_sym_LT] = ACTIONS(871), + [anon_sym_GT] = ACTIONS(871), + [anon_sym_GT_GT] = ACTIONS(751), + [anon_sym_AMP_GT] = ACTIONS(871), + [anon_sym_AMP_GT_GT] = ACTIONS(751), + [anon_sym_LT_AMP] = ACTIONS(751), + [anon_sym_GT_AMP] = ACTIONS(751), + [anon_sym_LT_LT] = ACTIONS(871), + [anon_sym_LT_LT_DASH] = ACTIONS(751), + [sym_comment] = ACTIONS(71), }, [302] = { - [sym_do_group] = STATE(52), - [ts_builtin_sym_end] = ACTIONS(948), - [anon_sym_while] = ACTIONS(951), - [anon_sym_do] = ACTIONS(954), - [anon_sym_done] = ACTIONS(951), - [anon_sym_if] = ACTIONS(951), - [anon_sym_then] = ACTIONS(956), - [anon_sym_fi] = ACTIONS(951), - [anon_sym_elif] = ACTIONS(951), - [anon_sym_else] = ACTIONS(951), - [anon_sym_case] = ACTIONS(951), - [anon_sym_esac] = ACTIONS(951), - [anon_sym_SEMI_SEMI] = ACTIONS(948), - [anon_sym_LBRACK] = ACTIONS(951), - [anon_sym_LBRACK_LBRACK] = ACTIONS(951), - [anon_sym_DQUOTE] = ACTIONS(948), - [sym_single_quoted_argument] = ACTIONS(951), - [anon_sym_DOLLAR] = ACTIONS(951), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(948), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(948), - [anon_sym_LT] = ACTIONS(951), - [anon_sym_GT] = ACTIONS(951), - [anon_sym_LT_AMP] = ACTIONS(951), - [anon_sym_GT_AMP] = ACTIONS(951), - [sym_file_descriptor] = ACTIONS(951), - [sym_leading_word] = ACTIONS(958), - [sym_word] = ACTIONS(958), + [sym_file_redirect] = STATE(218), + [sym_heredoc_redirect] = STATE(218), + [sym_file_descriptor] = ACTIONS(369), + [anon_sym_RPAREN] = ACTIONS(873), + [anon_sym_LT] = ACTIONS(555), + [anon_sym_GT] = ACTIONS(555), + [anon_sym_GT_GT] = ACTIONS(557), + [anon_sym_AMP_GT] = ACTIONS(555), + [anon_sym_AMP_GT_GT] = ACTIONS(557), + [anon_sym_LT_AMP] = ACTIONS(557), + [anon_sym_GT_AMP] = ACTIONS(557), + [anon_sym_LT_LT] = ACTIONS(559), + [anon_sym_LT_LT_DASH] = ACTIONS(561), [sym_comment] = ACTIONS(71), }, [303] = { - [anon_sym_SEMI_SEMI] = ACTIONS(961), - [anon_sym_PIPE] = ACTIONS(965), - [anon_sym_PIPE_AMP] = ACTIONS(965), - [anon_sym_AMP_AMP] = ACTIONS(969), - [anon_sym_PIPE_PIPE] = ACTIONS(969), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(961), - [anon_sym_LF] = ACTIONS(961), + [anon_sym_SEMI_SEMI] = ACTIONS(875), + [anon_sym_PIPE] = ACTIONS(875), + [anon_sym_PIPE_AMP] = ACTIONS(875), + [anon_sym_AMP_AMP] = ACTIONS(875), + [anon_sym_PIPE_PIPE] = ACTIONS(875), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(875), + [anon_sym_LF] = ACTIONS(875), }, [304] = { - [anon_sym_fi] = ACTIONS(973), - [anon_sym_elif] = ACTIONS(973), - [anon_sym_else] = ACTIONS(973), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(819), + [anon_sym_RPAREN] = ACTIONS(793), + [anon_sym_SEMI_SEMI] = ACTIONS(793), + [anon_sym_PIPE] = ACTIONS(793), + [anon_sym_PIPE_AMP] = ACTIONS(793), + [anon_sym_AMP_AMP] = ACTIONS(793), + [anon_sym_PIPE_PIPE] = ACTIONS(793), + [anon_sym_DQUOTE] = ACTIONS(793), + [sym_single_quoted_argument] = ACTIONS(793), + [anon_sym_DOLLAR] = ACTIONS(793), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(793), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(793), + [anon_sym_LT] = ACTIONS(793), + [anon_sym_GT] = ACTIONS(793), + [anon_sym_GT_GT] = ACTIONS(793), + [anon_sym_AMP_GT] = ACTIONS(793), + [anon_sym_AMP_GT_GT] = ACTIONS(793), + [anon_sym_LT_AMP] = ACTIONS(793), + [anon_sym_GT_AMP] = ACTIONS(793), + [anon_sym_LT_LT] = ACTIONS(793), + [anon_sym_LT_LT_DASH] = ACTIONS(793), + [sym_word] = ACTIONS(793), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(793), + [anon_sym_LF] = ACTIONS(793), }, [305] = { - [anon_sym_fi] = ACTIONS(976), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(823), + [anon_sym_RPAREN] = ACTIONS(795), + [anon_sym_SEMI_SEMI] = ACTIONS(795), + [anon_sym_PIPE] = ACTIONS(795), + [anon_sym_PIPE_AMP] = ACTIONS(795), + [anon_sym_AMP_AMP] = ACTIONS(795), + [anon_sym_PIPE_PIPE] = ACTIONS(795), + [anon_sym_DQUOTE] = ACTIONS(795), + [sym_single_quoted_argument] = ACTIONS(795), + [anon_sym_DOLLAR] = ACTIONS(795), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(795), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(795), + [anon_sym_LT] = ACTIONS(795), + [anon_sym_GT] = ACTIONS(795), + [anon_sym_GT_GT] = ACTIONS(795), + [anon_sym_AMP_GT] = ACTIONS(795), + [anon_sym_AMP_GT_GT] = ACTIONS(795), + [anon_sym_LT_AMP] = ACTIONS(795), + [anon_sym_GT_AMP] = ACTIONS(795), + [anon_sym_LT_LT] = ACTIONS(795), + [anon_sym_LT_LT_DASH] = ACTIONS(795), + [sym_word] = ACTIONS(795), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(795), + [anon_sym_LF] = ACTIONS(795), }, [306] = { - [anon_sym_esac] = ACTIONS(978), - [anon_sym_DQUOTE] = ACTIONS(981), - [sym_single_quoted_argument] = ACTIONS(978), - [anon_sym_DOLLAR] = ACTIONS(978), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(981), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(981), - [sym_word] = ACTIONS(984), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(819), + [anon_sym_SEMI_SEMI] = ACTIONS(793), + [anon_sym_PIPE] = ACTIONS(793), + [anon_sym_PIPE_AMP] = ACTIONS(793), + [anon_sym_AMP_AMP] = ACTIONS(793), + [anon_sym_PIPE_PIPE] = ACTIONS(793), + [anon_sym_RBRACE] = ACTIONS(793), + [anon_sym_LT] = ACTIONS(793), + [anon_sym_GT] = ACTIONS(793), + [anon_sym_GT_GT] = ACTIONS(793), + [anon_sym_AMP_GT] = ACTIONS(793), + [anon_sym_AMP_GT_GT] = ACTIONS(793), + [anon_sym_LT_AMP] = ACTIONS(793), + [anon_sym_GT_AMP] = ACTIONS(793), + [sym_leading_word] = ACTIONS(793), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(793), + [anon_sym_LF] = ACTIONS(793), }, [307] = { - [anon_sym_RPAREN] = ACTIONS(987), - [anon_sym_SEMI_SEMI] = ACTIONS(989), - [anon_sym_PIPE] = ACTIONS(993), - [anon_sym_PIPE_AMP] = ACTIONS(993), - [anon_sym_AMP_AMP] = ACTIONS(997), - [anon_sym_PIPE_PIPE] = ACTIONS(997), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(989), - [anon_sym_LF] = ACTIONS(989), + [sym_file_descriptor] = ACTIONS(823), + [anon_sym_SEMI_SEMI] = ACTIONS(795), + [anon_sym_PIPE] = ACTIONS(795), + [anon_sym_PIPE_AMP] = ACTIONS(795), + [anon_sym_AMP_AMP] = ACTIONS(795), + [anon_sym_PIPE_PIPE] = ACTIONS(795), + [anon_sym_RBRACE] = ACTIONS(795), + [anon_sym_LT] = ACTIONS(795), + [anon_sym_GT] = ACTIONS(795), + [anon_sym_GT_GT] = ACTIONS(795), + [anon_sym_AMP_GT] = ACTIONS(795), + [anon_sym_AMP_GT_GT] = ACTIONS(795), + [anon_sym_LT_AMP] = ACTIONS(795), + [anon_sym_GT_AMP] = ACTIONS(795), + [sym_leading_word] = ACTIONS(795), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(795), + [anon_sym_LF] = ACTIONS(795), }, [308] = { - [anon_sym_SEMI_SEMI] = ACTIONS(961), - [anon_sym_PIPE] = ACTIONS(965), - [anon_sym_PIPE_AMP] = ACTIONS(965), - [anon_sym_AMP_AMP] = ACTIONS(969), - [anon_sym_PIPE_PIPE] = ACTIONS(969), - [anon_sym_LT] = ACTIONS(1001), - [anon_sym_GT] = ACTIONS(1001), - [anon_sym_LT_AMP] = ACTIONS(1001), - [anon_sym_GT_AMP] = ACTIONS(1001), - [sym_file_descriptor] = ACTIONS(1001), - [sym_leading_word] = ACTIONS(1001), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(961), - [anon_sym_LF] = ACTIONS(961), + [sym_file_descriptor] = ACTIONS(819), + [anon_sym_RPAREN] = ACTIONS(793), + [anon_sym_SEMI_SEMI] = ACTIONS(793), + [anon_sym_PIPE] = ACTIONS(793), + [anon_sym_PIPE_AMP] = ACTIONS(793), + [anon_sym_AMP_AMP] = ACTIONS(793), + [anon_sym_PIPE_PIPE] = ACTIONS(793), + [anon_sym_LT] = ACTIONS(793), + [anon_sym_GT] = ACTIONS(793), + [anon_sym_GT_GT] = ACTIONS(793), + [anon_sym_AMP_GT] = ACTIONS(793), + [anon_sym_AMP_GT_GT] = ACTIONS(793), + [anon_sym_LT_AMP] = ACTIONS(793), + [anon_sym_GT_AMP] = ACTIONS(793), + [anon_sym_LT_LT] = ACTIONS(793), + [anon_sym_LT_LT_DASH] = ACTIONS(793), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(793), + [anon_sym_LF] = ACTIONS(793), }, [309] = { - [anon_sym_in] = ACTIONS(177), - [anon_sym_RPAREN] = ACTIONS(1004), - [anon_sym_SEMI_SEMI] = ACTIONS(1008), - [anon_sym_RBRACK] = ACTIONS(1013), - [anon_sym_RBRACK_RBRACK] = ACTIONS(1013), - [anon_sym_PIPE] = ACTIONS(1016), - [anon_sym_PIPE_AMP] = ACTIONS(1016), - [anon_sym_AMP_AMP] = ACTIONS(1016), - [anon_sym_PIPE_PIPE] = ACTIONS(1016), - [anon_sym_DQUOTE] = ACTIONS(1013), - [sym_single_quoted_argument] = ACTIONS(1013), - [anon_sym_DOLLAR] = ACTIONS(1013), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(1013), - [anon_sym_RBRACE] = ACTIONS(1020), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(1013), - [anon_sym_LT] = ACTIONS(1016), - [anon_sym_GT] = ACTIONS(1016), - [anon_sym_LT_AMP] = ACTIONS(1016), - [anon_sym_GT_AMP] = ACTIONS(1016), - [anon_sym_LT_LT] = ACTIONS(1013), - [anon_sym_LT_LT_DASH] = ACTIONS(1013), - [sym_file_descriptor] = ACTIONS(1016), - [sym_leading_word] = ACTIONS(395), - [sym_word] = ACTIONS(1013), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1008), - [anon_sym_LF] = ACTIONS(1008), + [sym_file_descriptor] = ACTIONS(823), + [anon_sym_RPAREN] = ACTIONS(795), + [anon_sym_SEMI_SEMI] = ACTIONS(795), + [anon_sym_PIPE] = ACTIONS(795), + [anon_sym_PIPE_AMP] = ACTIONS(795), + [anon_sym_AMP_AMP] = ACTIONS(795), + [anon_sym_PIPE_PIPE] = ACTIONS(795), + [anon_sym_LT] = ACTIONS(795), + [anon_sym_GT] = ACTIONS(795), + [anon_sym_GT_GT] = ACTIONS(795), + [anon_sym_AMP_GT] = ACTIONS(795), + [anon_sym_AMP_GT_GT] = ACTIONS(795), + [anon_sym_LT_AMP] = ACTIONS(795), + [anon_sym_GT_AMP] = ACTIONS(795), + [anon_sym_LT_LT] = ACTIONS(795), + [anon_sym_LT_LT_DASH] = ACTIONS(795), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(795), + [anon_sym_LF] = ACTIONS(795), }, [310] = { - [sym__heredoc_middle] = ACTIONS(939), - [sym__heredoc_end] = ACTIONS(939), - [anon_sym_in] = ACTIONS(177), - [anon_sym_RPAREN] = ACTIONS(1004), - [anon_sym_SEMI_SEMI] = ACTIONS(1008), - [anon_sym_RBRACK] = ACTIONS(1013), - [anon_sym_RBRACK_RBRACK] = ACTIONS(1013), - [anon_sym_PIPE] = ACTIONS(1016), - [anon_sym_PIPE_AMP] = ACTIONS(1016), - [anon_sym_AMP_AMP] = ACTIONS(1016), - [anon_sym_PIPE_PIPE] = ACTIONS(1016), - [anon_sym_DQUOTE] = ACTIONS(1022), - [sym__quoted_chars] = ACTIONS(1027), - [sym_single_quoted_argument] = ACTIONS(1013), - [anon_sym_DOLLAR] = ACTIONS(1030), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(1030), - [anon_sym_RBRACE] = ACTIONS(1020), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(1022), - [anon_sym_LT] = ACTIONS(1016), - [anon_sym_GT] = ACTIONS(1016), - [anon_sym_LT_AMP] = ACTIONS(1016), - [anon_sym_GT_AMP] = ACTIONS(1016), - [anon_sym_LT_LT] = ACTIONS(1013), - [anon_sym_LT_LT_DASH] = ACTIONS(1013), - [sym_file_descriptor] = ACTIONS(1016), - [sym_leading_word] = ACTIONS(395), - [sym_word] = ACTIONS(1013), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1008), - [anon_sym_LF] = ACTIONS(1008), + [anon_sym_RBRACE] = ACTIONS(877), + [sym_comment] = ACTIONS(71), }, [311] = { - [anon_sym_in] = ACTIONS(177), - [anon_sym_RPAREN] = ACTIONS(1004), - [anon_sym_SEMI_SEMI] = ACTIONS(1008), - [anon_sym_RBRACK] = ACTIONS(1013), - [anon_sym_RBRACK_RBRACK] = ACTIONS(1013), - [anon_sym_PIPE] = ACTIONS(1016), - [anon_sym_PIPE_AMP] = ACTIONS(1016), - [anon_sym_AMP_AMP] = ACTIONS(1016), - [anon_sym_PIPE_PIPE] = ACTIONS(1016), - [anon_sym_DQUOTE] = ACTIONS(1022), - [sym__quoted_chars] = ACTIONS(1027), - [sym_single_quoted_argument] = ACTIONS(1013), - [anon_sym_DOLLAR] = ACTIONS(1022), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(1022), - [anon_sym_RBRACE] = ACTIONS(1020), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(1022), - [anon_sym_LT] = ACTIONS(1016), - [anon_sym_GT] = ACTIONS(1016), - [anon_sym_LT_AMP] = ACTIONS(1016), - [anon_sym_GT_AMP] = ACTIONS(1016), - [anon_sym_LT_LT] = ACTIONS(1013), - [anon_sym_LT_LT_DASH] = ACTIONS(1013), - [sym_file_descriptor] = ACTIONS(1016), - [sym_leading_word] = ACTIONS(395), - [sym_word] = ACTIONS(1013), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1008), - [anon_sym_LF] = ACTIONS(1008), + [anon_sym_RBRACE] = ACTIONS(879), + [sym_comment] = ACTIONS(71), }, [312] = { - [anon_sym_RPAREN] = ACTIONS(1037), - [anon_sym_SEMI_SEMI] = ACTIONS(1037), - [anon_sym_PIPE] = ACTIONS(1037), - [anon_sym_PIPE_AMP] = ACTIONS(1037), - [anon_sym_AMP_AMP] = ACTIONS(1037), - [anon_sym_PIPE_PIPE] = ACTIONS(1037), - [anon_sym_LT] = ACTIONS(1040), - [anon_sym_GT] = ACTIONS(1040), - [anon_sym_LT_AMP] = ACTIONS(1040), - [anon_sym_GT_AMP] = ACTIONS(1040), - [anon_sym_LT_LT] = ACTIONS(1037), - [anon_sym_LT_LT_DASH] = ACTIONS(1037), - [sym_file_descriptor] = ACTIONS(1040), - [sym_leading_word] = ACTIONS(1001), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1037), - [anon_sym_LF] = ACTIONS(1037), + [sym_file_descriptor] = ACTIONS(297), + [ts_builtin_sym_end] = ACTIONS(297), + [anon_sym_while] = ACTIONS(299), + [anon_sym_do] = ACTIONS(299), + [anon_sym_done] = ACTIONS(299), + [anon_sym_if] = ACTIONS(299), + [anon_sym_then] = ACTIONS(299), + [anon_sym_fi] = ACTIONS(299), + [anon_sym_elif] = ACTIONS(299), + [anon_sym_else] = ACTIONS(299), + [anon_sym_case] = ACTIONS(299), + [anon_sym_esac] = ACTIONS(299), + [anon_sym_SEMI_SEMI] = ACTIONS(297), + [anon_sym_LBRACK] = ACTIONS(299), + [anon_sym_LBRACK_LBRACK] = ACTIONS(299), + [anon_sym_DQUOTE] = ACTIONS(297), + [sym_single_quoted_argument] = ACTIONS(299), + [anon_sym_DOLLAR] = ACTIONS(299), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(297), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(297), + [anon_sym_LT] = ACTIONS(299), + [anon_sym_GT] = ACTIONS(299), + [anon_sym_GT_GT] = ACTIONS(299), + [anon_sym_AMP_GT] = ACTIONS(299), + [anon_sym_AMP_GT_GT] = ACTIONS(299), + [anon_sym_LT_AMP] = ACTIONS(299), + [anon_sym_GT_AMP] = ACTIONS(299), + [sym_leading_word] = ACTIONS(301), + [sym_word] = ACTIONS(301), + [sym_comment] = ACTIONS(71), }, [313] = { - [anon_sym_RPAREN] = ACTIONS(1037), - [anon_sym_SEMI_SEMI] = ACTIONS(1037), - [anon_sym_PIPE] = ACTIONS(1037), - [anon_sym_PIPE_AMP] = ACTIONS(1037), - [anon_sym_AMP_AMP] = ACTIONS(1037), - [anon_sym_PIPE_PIPE] = ACTIONS(1037), - [anon_sym_LT] = ACTIONS(1037), - [anon_sym_GT] = ACTIONS(1037), - [anon_sym_LT_AMP] = ACTIONS(1037), - [anon_sym_GT_AMP] = ACTIONS(1037), - [anon_sym_LT_LT] = ACTIONS(1037), - [anon_sym_LT_LT_DASH] = ACTIONS(1037), - [sym_file_descriptor] = ACTIONS(1037), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1037), - [anon_sym_LF] = ACTIONS(1037), + [anon_sym_esac] = ACTIONS(881), + [anon_sym_DQUOTE] = ACTIONS(883), + [sym_single_quoted_argument] = ACTIONS(881), + [anon_sym_DOLLAR] = ACTIONS(881), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(883), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(883), + [sym_word] = ACTIONS(885), + [sym_comment] = ACTIONS(71), }, [314] = { - [sym__terminated_statement] = STATE(278), - [sym_while_statement] = STATE(259), - [sym_if_statement] = STATE(259), - [sym_elif_clause] = STATE(113), - [sym_else_clause] = STATE(172), - [sym_case_statement] = STATE(259), - [sym_bracket_command] = STATE(259), - [sym_command] = STATE(259), - [sym_pipeline] = STATE(259), - [sym_list] = STATE(259), - [sym_environment_variable_assignment] = STATE(260), - [sym_file_redirect] = STATE(14), - [aux_sym_if_statement_repeat1] = STATE(173), - [aux_sym_command_repeat1] = STATE(16), - [ts_builtin_sym_end] = ACTIONS(157), - [anon_sym_while] = ACTIONS(77), - [anon_sym_done] = ACTIONS(441), - [anon_sym_if] = ACTIONS(79), - [anon_sym_fi] = ACTIONS(1045), - [anon_sym_elif] = ACTIONS(1049), - [anon_sym_else] = ACTIONS(1052), - [anon_sym_case] = ACTIONS(81), - [anon_sym_esac] = ACTIONS(1055), - [anon_sym_SEMI_SEMI] = ACTIONS(1058), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_DQUOTE] = ACTIONS(1060), - [sym_single_quoted_argument] = ACTIONS(1055), - [anon_sym_DOLLAR] = ACTIONS(1055), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(1060), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(1060), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(91), - [sym_word] = ACTIONS(1063), + [sym_file_descriptor] = ACTIONS(303), + [ts_builtin_sym_end] = ACTIONS(303), + [anon_sym_while] = ACTIONS(305), + [anon_sym_done] = ACTIONS(305), + [anon_sym_if] = ACTIONS(305), + [anon_sym_fi] = ACTIONS(305), + [anon_sym_elif] = ACTIONS(305), + [anon_sym_else] = ACTIONS(305), + [anon_sym_case] = ACTIONS(305), + [anon_sym_esac] = ACTIONS(305), + [anon_sym_SEMI_SEMI] = ACTIONS(303), + [anon_sym_LBRACK] = ACTIONS(305), + [anon_sym_LBRACK_LBRACK] = ACTIONS(305), + [anon_sym_DQUOTE] = ACTIONS(303), + [sym_single_quoted_argument] = ACTIONS(305), + [anon_sym_DOLLAR] = ACTIONS(305), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(303), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(303), + [anon_sym_LT] = ACTIONS(305), + [anon_sym_GT] = ACTIONS(305), + [anon_sym_GT_GT] = ACTIONS(305), + [anon_sym_AMP_GT] = ACTIONS(305), + [anon_sym_AMP_GT_GT] = ACTIONS(305), + [anon_sym_LT_AMP] = ACTIONS(305), + [anon_sym_GT_AMP] = ACTIONS(305), + [sym_leading_word] = ACTIONS(307), + [sym_word] = ACTIONS(307), [sym_comment] = ACTIONS(71), }, [315] = { - [sym_elif_clause] = STATE(174), - [sym_else_clause] = STATE(342), - [anon_sym_fi] = ACTIONS(1066), - [anon_sym_elif] = ACTIONS(453), - [anon_sym_else] = ACTIONS(455), + [anon_sym_esac] = ACTIONS(887), + [anon_sym_DQUOTE] = ACTIONS(889), + [sym_single_quoted_argument] = ACTIONS(887), + [anon_sym_DOLLAR] = ACTIONS(887), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(889), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(889), + [sym_word] = ACTIONS(891), [sym_comment] = ACTIONS(71), }, [316] = { - [sym_case_item] = STATE(228), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [anon_sym_esac] = ACTIONS(1068), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(473), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(475), + [anon_sym_RBRACE] = ACTIONS(893), [sym_comment] = ACTIONS(71), }, [317] = { - [sym_quoted_argument] = STATE(345), - [sym_expansion] = STATE(345), - [sym_operator_expansion] = STATE(345), - [sym_command_substitution] = STATE(345), - [sym_file_redirect] = STATE(43), - [sym_heredoc_redirect] = STATE(43), - [aux_sym_command_repeat2] = STATE(350), - [anon_sym_RPAREN] = ACTIONS(1070), - [anon_sym_SEMI_SEMI] = ACTIONS(1070), - [anon_sym_RBRACK] = ACTIONS(1073), - [anon_sym_RBRACK_RBRACK] = ACTIONS(1073), - [anon_sym_PIPE] = ACTIONS(1070), - [anon_sym_PIPE_AMP] = ACTIONS(1070), - [anon_sym_AMP_AMP] = ACTIONS(1070), - [anon_sym_PIPE_PIPE] = ACTIONS(1070), - [anon_sym_DQUOTE] = ACTIONS(1075), - [sym_single_quoted_argument] = ACTIONS(1077), - [anon_sym_DOLLAR] = ACTIONS(1079), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(1081), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(1083), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_word] = ACTIONS(1085), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1070), - [anon_sym_LF] = ACTIONS(1070), + [anon_sym_RBRACE] = ACTIONS(895), + [sym_comment] = ACTIONS(71), }, [318] = { - [sym_file_redirect] = STATE(100), - [sym_heredoc_redirect] = STATE(100), - [anon_sym_RPAREN] = ACTIONS(1087), - [anon_sym_SEMI_SEMI] = ACTIONS(1087), - [anon_sym_PIPE] = ACTIONS(1087), - [anon_sym_PIPE_AMP] = ACTIONS(1087), - [anon_sym_AMP_AMP] = ACTIONS(1087), - [anon_sym_PIPE_PIPE] = ACTIONS(1087), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1087), - [anon_sym_LF] = ACTIONS(1087), + [sym__heredoc_middle] = ACTIONS(819), + [sym__heredoc_end] = ACTIONS(819), + [anon_sym_DOLLAR] = ACTIONS(821), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(819), + [sym_comment] = ACTIONS(71), }, [319] = { - [sym_expansion] = STATE(121), - [sym_operator_expansion] = STATE(121), - [sym_command_substitution] = STATE(121), - [anon_sym_DQUOTE] = ACTIONS(1094), - [sym__quoted_chars] = ACTIONS(311), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), + [sym__heredoc_middle] = ACTIONS(823), + [sym__heredoc_end] = ACTIONS(823), + [anon_sym_DOLLAR] = ACTIONS(825), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(823), + [sym_comment] = ACTIONS(71), }, [320] = { - [sym__terminated_statement] = STATE(48), + [sym_file_descriptor] = ACTIONS(819), + [anon_sym_RPAREN] = ACTIONS(819), + [anon_sym_DQUOTE] = ACTIONS(819), + [sym_single_quoted_argument] = ACTIONS(821), + [anon_sym_DOLLAR] = ACTIONS(821), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(819), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(819), + [anon_sym_LT] = ACTIONS(821), + [anon_sym_GT] = ACTIONS(821), + [anon_sym_GT_GT] = ACTIONS(819), + [anon_sym_AMP_GT] = ACTIONS(821), + [anon_sym_AMP_GT_GT] = ACTIONS(819), + [anon_sym_LT_AMP] = ACTIONS(819), + [anon_sym_GT_AMP] = ACTIONS(819), + [anon_sym_LT_LT] = ACTIONS(821), + [anon_sym_LT_LT_DASH] = ACTIONS(819), + [sym_word] = ACTIONS(793), + [sym_comment] = ACTIONS(71), + }, + [321] = { + [sym_file_descriptor] = ACTIONS(823), + [anon_sym_RPAREN] = ACTIONS(823), + [anon_sym_DQUOTE] = ACTIONS(823), + [sym_single_quoted_argument] = ACTIONS(825), + [anon_sym_DOLLAR] = ACTIONS(825), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(823), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(823), + [anon_sym_LT] = ACTIONS(825), + [anon_sym_GT] = ACTIONS(825), + [anon_sym_GT_GT] = ACTIONS(823), + [anon_sym_AMP_GT] = ACTIONS(825), + [anon_sym_AMP_GT_GT] = ACTIONS(823), + [anon_sym_LT_AMP] = ACTIONS(823), + [anon_sym_GT_AMP] = ACTIONS(823), + [anon_sym_LT_LT] = ACTIONS(825), + [anon_sym_LT_LT_DASH] = ACTIONS(823), + [sym_word] = ACTIONS(795), + [sym_comment] = ACTIONS(71), + }, + [322] = { + [anon_sym_SEMI_SEMI] = ACTIONS(897), + [anon_sym_PIPE] = ACTIONS(897), + [anon_sym_PIPE_AMP] = ACTIONS(897), + [anon_sym_AMP_AMP] = ACTIONS(897), + [anon_sym_PIPE_PIPE] = ACTIONS(897), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(897), + [anon_sym_LF] = ACTIONS(897), + }, + [323] = { + [sym__terminated_statement] = STATE(11), [sym_while_statement] = STATE(12), [sym_if_statement] = STATE(12), - [sym_elif_clause] = STATE(113), - [sym_else_clause] = STATE(172), + [sym_elif_clause] = STATE(126), + [sym_else_clause] = STATE(127), [sym_case_statement] = STATE(12), [sym_bracket_command] = STATE(12), [sym_command] = STATE(12), @@ -10900,927 +11262,1943 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_list] = STATE(12), [sym_environment_variable_assignment] = STATE(13), [sym_file_redirect] = STATE(14), - [aux_sym_if_statement_repeat1] = STATE(173), + [aux_sym_program_repeat1] = STATE(358), + [aux_sym_if_statement_repeat1] = STATE(129), [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_fi] = ACTIONS(1096), - [anon_sym_elif] = ACTIONS(1049), - [anon_sym_else] = ACTIONS(1052), - [anon_sym_case] = ACTIONS(81), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_fi] = ACTIONS(900), + [anon_sym_elif] = ACTIONS(903), + [anon_sym_else] = ACTIONS(906), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), [sym_leading_word] = ACTIONS(91), [sym_comment] = ACTIONS(71), }, - [321] = { - [sym_case_item] = STATE(181), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [aux_sym_case_statement_repeat1] = STATE(316), - [anon_sym_esac] = ACTIONS(1099), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(473), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(475), - [sym_comment] = ACTIONS(71), - }, - [322] = { - [anon_sym_esac] = ACTIONS(1055), - [anon_sym_DQUOTE] = ACTIONS(1060), - [sym_single_quoted_argument] = ACTIONS(1055), - [anon_sym_DOLLAR] = ACTIONS(1055), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(1060), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(1060), - [sym_word] = ACTIONS(1063), - [sym_comment] = ACTIONS(71), - }, - [323] = { - [sym__terminated_statement] = STATE(278), - [sym_while_statement] = STATE(259), - [sym_if_statement] = STATE(259), - [sym_case_statement] = STATE(259), - [sym_bracket_command] = STATE(259), - [sym_command] = STATE(259), - [sym_pipeline] = STATE(259), - [sym_list] = STATE(259), - [sym_environment_variable_assignment] = STATE(260), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(16), - [anon_sym_while] = ACTIONS(77), - [anon_sym_if] = ACTIONS(79), - [anon_sym_case] = ACTIONS(81), - [anon_sym_esac] = ACTIONS(1055), - [anon_sym_SEMI_SEMI] = ACTIONS(1058), - [anon_sym_LBRACK] = ACTIONS(83), - [anon_sym_LBRACK_LBRACK] = ACTIONS(85), - [anon_sym_DQUOTE] = ACTIONS(1060), - [sym_single_quoted_argument] = ACTIONS(1055), - [anon_sym_DOLLAR] = ACTIONS(1055), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(1060), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(1060), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(91), - [sym_word] = ACTIONS(1063), - [sym_comment] = ACTIONS(71), - }, [324] = { - [anon_sym_SEMI_SEMI] = ACTIONS(395), - [anon_sym_PIPE] = ACTIONS(395), - [anon_sym_PIPE_AMP] = ACTIONS(395), - [anon_sym_AMP_AMP] = ACTIONS(395), - [anon_sym_PIPE_PIPE] = ACTIONS(395), - [anon_sym_RBRACE] = ACTIONS(1020), - [anon_sym_LT] = ACTIONS(395), - [anon_sym_GT] = ACTIONS(395), - [anon_sym_LT_AMP] = ACTIONS(395), - [anon_sym_GT_AMP] = ACTIONS(395), - [sym_file_descriptor] = ACTIONS(395), - [sym_leading_word] = ACTIONS(395), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(395), - [anon_sym_LF] = ACTIONS(395), - }, - [325] = { - [anon_sym_SEMI_SEMI] = ACTIONS(401), - [anon_sym_PIPE] = ACTIONS(401), - [anon_sym_PIPE_AMP] = ACTIONS(401), - [anon_sym_AMP_AMP] = ACTIONS(401), - [anon_sym_PIPE_PIPE] = ACTIONS(401), - [anon_sym_RBRACE] = ACTIONS(1101), - [anon_sym_LT] = ACTIONS(401), - [anon_sym_GT] = ACTIONS(401), - [anon_sym_LT_AMP] = ACTIONS(401), - [anon_sym_GT_AMP] = ACTIONS(401), - [sym_file_descriptor] = ACTIONS(401), - [sym_leading_word] = ACTIONS(401), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(401), - [anon_sym_LF] = ACTIONS(401), - }, - [326] = { - [anon_sym_in] = ACTIONS(299), - [anon_sym_RPAREN] = ACTIONS(299), - [anon_sym_SEMI_SEMI] = ACTIONS(299), - [anon_sym_RBRACK] = ACTIONS(299), - [anon_sym_RBRACK_RBRACK] = ACTIONS(299), - [anon_sym_PIPE] = ACTIONS(299), - [anon_sym_PIPE_AMP] = ACTIONS(299), - [anon_sym_AMP_AMP] = ACTIONS(299), - [anon_sym_PIPE_PIPE] = ACTIONS(299), - [anon_sym_DQUOTE] = ACTIONS(299), - [sym_single_quoted_argument] = ACTIONS(299), - [anon_sym_DOLLAR] = ACTIONS(299), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(299), - [anon_sym_RBRACE] = ACTIONS(299), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(299), - [anon_sym_LT] = ACTIONS(299), - [anon_sym_GT] = ACTIONS(299), - [anon_sym_LT_AMP] = ACTIONS(299), - [anon_sym_GT_AMP] = ACTIONS(299), - [anon_sym_LT_LT] = ACTIONS(299), - [anon_sym_LT_LT_DASH] = ACTIONS(299), - [sym_file_descriptor] = ACTIONS(299), - [sym_leading_word] = ACTIONS(299), - [sym_word] = ACTIONS(299), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(299), - [anon_sym_LF] = ACTIONS(299), - }, - [327] = { - [sym__heredoc_middle] = ACTIONS(347), - [sym__heredoc_end] = ACTIONS(347), - [anon_sym_in] = ACTIONS(317), - [anon_sym_RPAREN] = ACTIONS(317), - [anon_sym_SEMI_SEMI] = ACTIONS(317), - [anon_sym_RBRACK] = ACTIONS(317), - [anon_sym_RBRACK_RBRACK] = ACTIONS(317), - [anon_sym_PIPE] = ACTIONS(317), - [anon_sym_PIPE_AMP] = ACTIONS(317), - [anon_sym_AMP_AMP] = ACTIONS(317), - [anon_sym_PIPE_PIPE] = ACTIONS(317), - [anon_sym_DQUOTE] = ACTIONS(317), - [sym__quoted_chars] = ACTIONS(317), - [sym_single_quoted_argument] = ACTIONS(317), - [anon_sym_DOLLAR] = ACTIONS(317), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(317), - [anon_sym_RBRACE] = ACTIONS(317), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(317), - [anon_sym_LT] = ACTIONS(317), - [anon_sym_GT] = ACTIONS(317), - [anon_sym_LT_AMP] = ACTIONS(317), - [anon_sym_GT_AMP] = ACTIONS(317), - [anon_sym_LT_LT] = ACTIONS(317), - [anon_sym_LT_LT_DASH] = ACTIONS(317), - [sym_file_descriptor] = ACTIONS(317), - [sym_leading_word] = ACTIONS(317), - [sym_word] = ACTIONS(317), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(317), - [anon_sym_LF] = ACTIONS(317), - }, - [328] = { - [anon_sym_EQ] = ACTIONS(1103), - [anon_sym_COLON] = ACTIONS(1105), - [anon_sym_COLON_QMARK] = ACTIONS(1103), - [anon_sym_RBRACE] = ACTIONS(1107), - [sym_comment] = ACTIONS(71), - }, - [329] = { - [anon_sym_RBRACE] = ACTIONS(1109), - [sym_comment] = ACTIONS(71), - }, - [330] = { - [anon_sym_RBRACE] = ACTIONS(1111), - [sym_comment] = ACTIONS(71), - }, - [331] = { - [anon_sym_RPAREN] = ACTIONS(1113), - [sym_comment] = ACTIONS(71), - }, - [332] = { - [anon_sym_RPAREN] = ACTIONS(909), [anon_sym_SEMI_SEMI] = ACTIONS(909), [anon_sym_PIPE] = ACTIONS(909), [anon_sym_PIPE_AMP] = ACTIONS(909), [anon_sym_AMP_AMP] = ACTIONS(909), [anon_sym_PIPE_PIPE] = ACTIONS(909), - [anon_sym_LT] = ACTIONS(909), - [anon_sym_GT] = ACTIONS(909), - [anon_sym_LT_AMP] = ACTIONS(909), - [anon_sym_GT_AMP] = ACTIONS(909), - [anon_sym_LT_LT] = ACTIONS(909), - [anon_sym_LT_LT_DASH] = ACTIONS(909), - [sym_file_descriptor] = ACTIONS(909), - [sym_leading_word] = ACTIONS(909), - [sym_comment] = ACTIONS(137), + [sym_comment] = ACTIONS(145), [anon_sym_SEMI] = ACTIONS(909), [anon_sym_LF] = ACTIONS(909), }, + [325] = { + [anon_sym_SEMI_SEMI] = ACTIONS(914), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(914), + [anon_sym_LF] = ACTIONS(914), + }, + [326] = { + [anon_sym_SEMI_SEMI] = ACTIONS(916), + [anon_sym_PIPE] = ACTIONS(916), + [anon_sym_PIPE_AMP] = ACTIONS(916), + [anon_sym_AMP_AMP] = ACTIONS(916), + [anon_sym_PIPE_PIPE] = ACTIONS(916), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(916), + [anon_sym_LF] = ACTIONS(916), + }, + [327] = { + [sym__terminated_statement] = STATE(290), + [sym_while_statement] = STATE(291), + [sym_if_statement] = STATE(291), + [sym_case_statement] = STATE(291), + [sym_bracket_command] = STATE(291), + [sym_command] = STATE(291), + [sym_pipeline] = STATE(291), + [sym_list] = STATE(291), + [sym_environment_variable_assignment] = STATE(292), + [sym_file_redirect] = STATE(14), + [aux_sym_program_repeat1] = STATE(361), + [aux_sym_command_repeat1] = STATE(16), + [sym_file_descriptor] = ACTIONS(923), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_in] = ACTIONS(575), + [anon_sym_esac] = ACTIONS(926), + [anon_sym_RPAREN] = ACTIONS(575), + [anon_sym_SEMI_SEMI] = ACTIONS(929), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_RBRACK] = ACTIONS(575), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_RBRACK_RBRACK] = ACTIONS(575), + [anon_sym_PIPE] = ACTIONS(575), + [anon_sym_PIPE_AMP] = ACTIONS(575), + [anon_sym_AMP_AMP] = ACTIONS(575), + [anon_sym_PIPE_PIPE] = ACTIONS(575), + [anon_sym_DQUOTE] = ACTIONS(932), + [sym__quoted_chars] = ACTIONS(575), + [sym_single_quoted_argument] = ACTIONS(932), + [anon_sym_DOLLAR] = ACTIONS(932), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(932), + [anon_sym_RBRACE] = ACTIONS(575), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(932), + [anon_sym_LT] = ACTIONS(936), + [anon_sym_GT] = ACTIONS(936), + [anon_sym_GT_GT] = ACTIONS(936), + [anon_sym_AMP_GT] = ACTIONS(936), + [anon_sym_AMP_GT_GT] = ACTIONS(936), + [anon_sym_LT_AMP] = ACTIONS(936), + [anon_sym_GT_AMP] = ACTIONS(936), + [anon_sym_LT_LT] = ACTIONS(575), + [anon_sym_LT_LT_DASH] = ACTIONS(575), + [sym_leading_word] = ACTIONS(939), + [sym_word] = ACTIONS(932), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(575), + [anon_sym_LF] = ACTIONS(575), + }, + [328] = { + [sym_quoted_argument] = STATE(362), + [sym_expansion] = STATE(362), + [sym_operator_expansion] = STATE(362), + [sym_command_substitution] = STATE(362), + [anon_sym_DQUOTE] = ACTIONS(265), + [sym_single_quoted_argument] = ACTIONS(942), + [anon_sym_DOLLAR] = ACTIONS(269), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(271), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(273), + [sym_word] = ACTIONS(944), + [sym_comment] = ACTIONS(71), + }, + [329] = { + [sym_expansion] = STATE(62), + [sym_operator_expansion] = STATE(62), + [sym_command_substitution] = STATE(62), + [aux_sym_quoted_argument_repeat1] = STATE(357), + [sym_file_descriptor] = ACTIONS(946), + [anon_sym_in] = ACTIONS(949), + [anon_sym_RPAREN] = ACTIONS(949), + [anon_sym_SEMI_SEMI] = ACTIONS(949), + [anon_sym_RBRACK] = ACTIONS(949), + [anon_sym_RBRACK_RBRACK] = ACTIONS(949), + [anon_sym_PIPE] = ACTIONS(949), + [anon_sym_PIPE_AMP] = ACTIONS(949), + [anon_sym_AMP_AMP] = ACTIONS(949), + [anon_sym_PIPE_PIPE] = ACTIONS(949), + [anon_sym_DQUOTE] = ACTIONS(952), + [sym__quoted_chars] = ACTIONS(956), + [sym_single_quoted_argument] = ACTIONS(949), + [anon_sym_DOLLAR] = ACTIONS(958), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(962), + [anon_sym_RBRACE] = ACTIONS(949), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(966), + [anon_sym_LT] = ACTIONS(949), + [anon_sym_GT] = ACTIONS(949), + [anon_sym_GT_GT] = ACTIONS(949), + [anon_sym_AMP_GT] = ACTIONS(949), + [anon_sym_AMP_GT_GT] = ACTIONS(949), + [anon_sym_LT_AMP] = ACTIONS(949), + [anon_sym_GT_AMP] = ACTIONS(949), + [anon_sym_LT_LT] = ACTIONS(949), + [anon_sym_LT_LT_DASH] = ACTIONS(949), + [sym_leading_word] = ACTIONS(949), + [sym_word] = ACTIONS(949), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(949), + [anon_sym_LF] = ACTIONS(949), + }, + [330] = { + [sym_word] = ACTIONS(970), + [sym_comment] = ACTIONS(71), + }, + [331] = { + [sym_leading_word] = ACTIONS(972), + [sym_comment] = ACTIONS(71), + }, + [332] = { + [sym_quoted_argument] = STATE(367), + [sym_expansion] = STATE(367), + [sym_operator_expansion] = STATE(367), + [sym_command_substitution] = STATE(367), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(974), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(976), + [sym_comment] = ACTIONS(71), + }, [333] = { - [anon_sym_RPAREN] = ACTIONS(1115), - [anon_sym_SEMI_SEMI] = ACTIONS(1115), - [anon_sym_PIPE] = ACTIONS(1115), - [anon_sym_PIPE_AMP] = ACTIONS(1115), - [anon_sym_AMP_AMP] = ACTIONS(1115), - [anon_sym_PIPE_PIPE] = ACTIONS(1115), - [anon_sym_LT] = ACTIONS(1115), - [anon_sym_GT] = ACTIONS(1115), - [anon_sym_LT_AMP] = ACTIONS(1115), - [anon_sym_GT_AMP] = ACTIONS(1115), - [anon_sym_LT_LT] = ACTIONS(1115), - [anon_sym_LT_LT_DASH] = ACTIONS(1115), - [sym_file_descriptor] = ACTIONS(1115), - [sym_leading_word] = ACTIONS(1115), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1115), - [anon_sym_LF] = ACTIONS(1115), + [sym__heredoc_middle] = ACTIONS(978), + [sym__heredoc_end] = ACTIONS(978), + [sym_file_descriptor] = ACTIONS(978), + [anon_sym_in] = ACTIONS(982), + [anon_sym_RPAREN] = ACTIONS(982), + [anon_sym_SEMI_SEMI] = ACTIONS(982), + [anon_sym_RBRACK] = ACTIONS(982), + [anon_sym_RBRACK_RBRACK] = ACTIONS(982), + [anon_sym_PIPE] = ACTIONS(982), + [anon_sym_PIPE_AMP] = ACTIONS(982), + [anon_sym_AMP_AMP] = ACTIONS(982), + [anon_sym_PIPE_PIPE] = ACTIONS(982), + [anon_sym_DQUOTE] = ACTIONS(982), + [sym__quoted_chars] = ACTIONS(982), + [sym_single_quoted_argument] = ACTIONS(982), + [anon_sym_DOLLAR] = ACTIONS(982), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(982), + [anon_sym_RBRACE] = ACTIONS(982), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(982), + [anon_sym_LT] = ACTIONS(982), + [anon_sym_GT] = ACTIONS(982), + [anon_sym_GT_GT] = ACTIONS(982), + [anon_sym_AMP_GT] = ACTIONS(982), + [anon_sym_AMP_GT_GT] = ACTIONS(982), + [anon_sym_LT_AMP] = ACTIONS(982), + [anon_sym_GT_AMP] = ACTIONS(982), + [anon_sym_LT_LT] = ACTIONS(982), + [anon_sym_LT_LT_DASH] = ACTIONS(982), + [sym_leading_word] = ACTIONS(982), + [sym_word] = ACTIONS(982), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(982), + [anon_sym_LF] = ACTIONS(982), }, [334] = { - [sym_file_descriptor] = ACTIONS(1118), - [sym_word] = ACTIONS(1120), + [sym_command] = STATE(369), + [sym_environment_variable_assignment] = STATE(14), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(73), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(199), [sym_comment] = ACTIONS(71), }, [335] = { - [anon_sym_SEMI_SEMI] = ACTIONS(1122), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1122), - [anon_sym_LF] = ACTIONS(1122), + [sym_quoted_argument] = STATE(371), + [sym_expansion] = STATE(371), + [sym_operator_expansion] = STATE(371), + [sym_command_substitution] = STATE(371), + [anon_sym_DQUOTE] = ACTIONS(986), + [sym_single_quoted_argument] = ACTIONS(988), + [anon_sym_DOLLAR] = ACTIONS(990), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(992), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(994), + [sym_word] = ACTIONS(996), + [sym_comment] = ACTIONS(71), }, [336] = { - [anon_sym_SEMI_SEMI] = ACTIONS(1124), - [anon_sym_PIPE] = ACTIONS(1124), - [anon_sym_PIPE_AMP] = ACTIONS(1124), - [anon_sym_AMP_AMP] = ACTIONS(1124), - [anon_sym_PIPE_PIPE] = ACTIONS(1124), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1124), - [anon_sym_LF] = ACTIONS(1124), + [sym_case_item] = STATE(199), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [aux_sym_case_statement_repeat1] = STATE(354), + [sym_file_descriptor] = ACTIONS(297), + [ts_builtin_sym_end] = ACTIONS(297), + [anon_sym_while] = ACTIONS(299), + [anon_sym_do] = ACTIONS(299), + [anon_sym_done] = ACTIONS(299), + [anon_sym_if] = ACTIONS(299), + [anon_sym_then] = ACTIONS(299), + [anon_sym_fi] = ACTIONS(299), + [anon_sym_elif] = ACTIONS(299), + [anon_sym_else] = ACTIONS(299), + [anon_sym_case] = ACTIONS(299), + [anon_sym_in] = ACTIONS(998), + [anon_sym_esac] = ACTIONS(1000), + [anon_sym_SEMI_SEMI] = ACTIONS(297), + [anon_sym_LBRACK] = ACTIONS(299), + [anon_sym_LBRACK_LBRACK] = ACTIONS(299), + [anon_sym_DQUOTE] = ACTIONS(1003), + [sym_single_quoted_argument] = ACTIONS(1006), + [anon_sym_DOLLAR] = ACTIONS(1009), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(1012), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(1015), + [anon_sym_LT] = ACTIONS(299), + [anon_sym_GT] = ACTIONS(299), + [anon_sym_GT_GT] = ACTIONS(299), + [anon_sym_AMP_GT] = ACTIONS(299), + [anon_sym_AMP_GT_GT] = ACTIONS(299), + [anon_sym_LT_AMP] = ACTIONS(299), + [anon_sym_GT_AMP] = ACTIONS(299), + [sym_leading_word] = ACTIONS(301), + [sym_word] = ACTIONS(1018), + [sym_comment] = ACTIONS(71), }, [337] = { - [anon_sym_SEMI_SEMI] = ACTIONS(1129), - [anon_sym_PIPE] = ACTIONS(1129), - [anon_sym_PIPE_AMP] = ACTIONS(1129), - [anon_sym_AMP_AMP] = ACTIONS(1129), - [anon_sym_PIPE_PIPE] = ACTIONS(1129), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1129), - [anon_sym_LF] = ACTIONS(1129), + [sym__heredoc_middle] = ACTIONS(1021), + [sym__heredoc_end] = ACTIONS(1021), + [anon_sym_DOLLAR] = ACTIONS(1024), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(1021), + [sym_comment] = ACTIONS(71), }, [338] = { - [anon_sym_in] = ACTIONS(513), - [anon_sym_RPAREN] = ACTIONS(513), - [anon_sym_SEMI_SEMI] = ACTIONS(513), - [anon_sym_RBRACK] = ACTIONS(513), - [anon_sym_RBRACK_RBRACK] = ACTIONS(513), - [anon_sym_PIPE] = ACTIONS(513), - [anon_sym_PIPE_AMP] = ACTIONS(513), - [anon_sym_AMP_AMP] = ACTIONS(513), - [anon_sym_PIPE_PIPE] = ACTIONS(513), - [anon_sym_DQUOTE] = ACTIONS(513), - [sym__quoted_chars] = ACTIONS(513), - [sym_single_quoted_argument] = ACTIONS(513), - [anon_sym_DOLLAR] = ACTIONS(513), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(513), - [anon_sym_RBRACE] = ACTIONS(513), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(513), - [anon_sym_LT] = ACTIONS(513), - [anon_sym_GT] = ACTIONS(513), - [anon_sym_LT_AMP] = ACTIONS(513), - [anon_sym_GT_AMP] = ACTIONS(513), - [anon_sym_LT_LT] = ACTIONS(513), - [anon_sym_LT_LT_DASH] = ACTIONS(513), - [sym_file_descriptor] = ACTIONS(513), - [sym_leading_word] = ACTIONS(513), - [sym_word] = ACTIONS(513), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(513), - [anon_sym_LF] = ACTIONS(513), + [sym_file_descriptor] = ACTIONS(1027), + [anon_sym_RPAREN] = ACTIONS(1030), + [anon_sym_SEMI_SEMI] = ACTIONS(1030), + [anon_sym_PIPE] = ACTIONS(1030), + [anon_sym_PIPE_AMP] = ACTIONS(1030), + [anon_sym_AMP_AMP] = ACTIONS(1030), + [anon_sym_PIPE_PIPE] = ACTIONS(1030), + [anon_sym_LT] = ACTIONS(1030), + [anon_sym_GT] = ACTIONS(1030), + [anon_sym_GT_GT] = ACTIONS(1030), + [anon_sym_AMP_GT] = ACTIONS(1030), + [anon_sym_AMP_GT_GT] = ACTIONS(1030), + [anon_sym_LT_AMP] = ACTIONS(1030), + [anon_sym_GT_AMP] = ACTIONS(1030), + [anon_sym_LT_LT] = ACTIONS(1030), + [anon_sym_LT_LT_DASH] = ACTIONS(1030), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1030), + [anon_sym_LF] = ACTIONS(1030), }, [339] = { - [sym__heredoc_middle] = ACTIONS(743), - [sym__heredoc_end] = ACTIONS(743), - [anon_sym_in] = ACTIONS(721), - [anon_sym_RPAREN] = ACTIONS(721), - [anon_sym_SEMI_SEMI] = ACTIONS(721), - [anon_sym_RBRACK] = ACTIONS(721), - [anon_sym_RBRACK_RBRACK] = ACTIONS(721), - [anon_sym_PIPE] = ACTIONS(721), - [anon_sym_PIPE_AMP] = ACTIONS(721), - [anon_sym_AMP_AMP] = ACTIONS(721), - [anon_sym_PIPE_PIPE] = ACTIONS(721), - [anon_sym_DQUOTE] = ACTIONS(721), - [sym__quoted_chars] = ACTIONS(721), - [sym_single_quoted_argument] = ACTIONS(721), - [anon_sym_DOLLAR] = ACTIONS(721), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(721), - [anon_sym_RBRACE] = ACTIONS(721), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(721), - [anon_sym_LT] = ACTIONS(721), - [anon_sym_GT] = ACTIONS(721), - [anon_sym_LT_AMP] = ACTIONS(721), - [anon_sym_GT_AMP] = ACTIONS(721), - [anon_sym_LT_LT] = ACTIONS(721), - [anon_sym_LT_LT_DASH] = ACTIONS(721), - [sym_file_descriptor] = ACTIONS(721), - [sym_leading_word] = ACTIONS(721), - [sym_word] = ACTIONS(721), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(721), - [anon_sym_LF] = ACTIONS(721), + [anon_sym_LT] = ACTIONS(1033), + [anon_sym_GT] = ACTIONS(1033), + [anon_sym_GT_GT] = ACTIONS(1035), + [anon_sym_AMP_GT] = ACTIONS(1033), + [anon_sym_AMP_GT_GT] = ACTIONS(1035), + [anon_sym_LT_AMP] = ACTIONS(1035), + [anon_sym_GT_AMP] = ACTIONS(1035), + [sym_comment] = ACTIONS(71), }, [340] = { - [anon_sym_esac] = ACTIONS(1133), - [anon_sym_DQUOTE] = ACTIONS(1136), - [sym_single_quoted_argument] = ACTIONS(1133), - [anon_sym_DOLLAR] = ACTIONS(1133), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(1136), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(1136), - [sym_word] = ACTIONS(1139), + [sym_do_group] = STATE(58), + [sym_file_descriptor] = ACTIONS(1037), + [ts_builtin_sym_end] = ACTIONS(1037), + [anon_sym_while] = ACTIONS(1040), + [anon_sym_do] = ACTIONS(1043), + [anon_sym_done] = ACTIONS(1040), + [anon_sym_if] = ACTIONS(1040), + [anon_sym_then] = ACTIONS(1045), + [anon_sym_fi] = ACTIONS(1040), + [anon_sym_elif] = ACTIONS(1040), + [anon_sym_else] = ACTIONS(1040), + [anon_sym_case] = ACTIONS(1040), + [anon_sym_esac] = ACTIONS(1040), + [anon_sym_SEMI_SEMI] = ACTIONS(1037), + [anon_sym_LBRACK] = ACTIONS(1040), + [anon_sym_LBRACK_LBRACK] = ACTIONS(1040), + [anon_sym_DQUOTE] = ACTIONS(1037), + [sym_single_quoted_argument] = ACTIONS(1040), + [anon_sym_DOLLAR] = ACTIONS(1040), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(1037), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(1037), + [anon_sym_LT] = ACTIONS(1040), + [anon_sym_GT] = ACTIONS(1040), + [anon_sym_GT_GT] = ACTIONS(1040), + [anon_sym_AMP_GT] = ACTIONS(1040), + [anon_sym_AMP_GT_GT] = ACTIONS(1040), + [anon_sym_LT_AMP] = ACTIONS(1040), + [anon_sym_GT_AMP] = ACTIONS(1040), + [sym_leading_word] = ACTIONS(1047), + [sym_word] = ACTIONS(1047), [sym_comment] = ACTIONS(71), }, [341] = { - [anon_sym_SEMI_SEMI] = ACTIONS(1142), - [anon_sym_PIPE] = ACTIONS(1142), - [anon_sym_PIPE_AMP] = ACTIONS(1142), - [anon_sym_AMP_AMP] = ACTIONS(1142), - [anon_sym_PIPE_PIPE] = ACTIONS(1142), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1142), - [anon_sym_LF] = ACTIONS(1142), + [anon_sym_SEMI_SEMI] = ACTIONS(1050), + [anon_sym_PIPE] = ACTIONS(1054), + [anon_sym_PIPE_AMP] = ACTIONS(1054), + [anon_sym_AMP_AMP] = ACTIONS(1058), + [anon_sym_PIPE_PIPE] = ACTIONS(1058), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1050), + [anon_sym_LF] = ACTIONS(1050), }, [342] = { - [anon_sym_fi] = ACTIONS(1145), + [anon_sym_fi] = ACTIONS(1062), + [anon_sym_elif] = ACTIONS(1062), + [anon_sym_else] = ACTIONS(1062), [sym_comment] = ACTIONS(71), }, [343] = { - [anon_sym_SEMI_SEMI] = ACTIONS(1147), - [anon_sym_PIPE] = ACTIONS(1147), - [anon_sym_PIPE_AMP] = ACTIONS(1147), - [anon_sym_AMP_AMP] = ACTIONS(1147), - [anon_sym_PIPE_PIPE] = ACTIONS(1147), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1147), - [anon_sym_LF] = ACTIONS(1147), + [anon_sym_fi] = ACTIONS(1065), + [sym_comment] = ACTIONS(71), }, [344] = { - [sym_expansion] = STATE(56), - [sym_operator_expansion] = STATE(56), - [sym_command_substitution] = STATE(56), - [aux_sym_quoted_argument_repeat1] = STATE(359), - [anon_sym_DQUOTE] = ACTIONS(1152), - [sym__quoted_chars] = ACTIONS(169), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), + [anon_sym_esac] = ACTIONS(1067), + [anon_sym_DQUOTE] = ACTIONS(1070), + [sym_single_quoted_argument] = ACTIONS(1067), + [anon_sym_DOLLAR] = ACTIONS(1067), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(1070), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(1070), + [sym_word] = ACTIONS(1073), + [sym_comment] = ACTIONS(71), }, [345] = { - [anon_sym_RPAREN] = ACTIONS(365), - [anon_sym_SEMI_SEMI] = ACTIONS(365), - [anon_sym_RBRACK] = ACTIONS(365), - [anon_sym_RBRACK_RBRACK] = ACTIONS(365), - [anon_sym_PIPE] = ACTIONS(365), - [anon_sym_PIPE_AMP] = ACTIONS(365), - [anon_sym_AMP_AMP] = ACTIONS(365), - [anon_sym_PIPE_PIPE] = ACTIONS(365), - [anon_sym_DQUOTE] = ACTIONS(365), - [sym_single_quoted_argument] = ACTIONS(365), - [anon_sym_DOLLAR] = ACTIONS(365), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(365), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(365), - [anon_sym_LT] = ACTIONS(365), - [anon_sym_GT] = ACTIONS(365), - [anon_sym_LT_AMP] = ACTIONS(365), - [anon_sym_GT_AMP] = ACTIONS(365), - [anon_sym_LT_LT] = ACTIONS(365), - [anon_sym_LT_LT_DASH] = ACTIONS(365), - [sym_file_descriptor] = ACTIONS(365), - [sym_word] = ACTIONS(365), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(365), - [anon_sym_LF] = ACTIONS(365), + [anon_sym_RPAREN] = ACTIONS(1076), + [anon_sym_SEMI_SEMI] = ACTIONS(1078), + [anon_sym_PIPE] = ACTIONS(1082), + [anon_sym_PIPE_AMP] = ACTIONS(1082), + [anon_sym_AMP_AMP] = ACTIONS(1086), + [anon_sym_PIPE_PIPE] = ACTIONS(1086), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1078), + [anon_sym_LF] = ACTIONS(1078), }, [346] = { - [sym_word] = ACTIONS(1154), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(1090), + [anon_sym_SEMI_SEMI] = ACTIONS(1050), + [anon_sym_PIPE] = ACTIONS(1054), + [anon_sym_PIPE_AMP] = ACTIONS(1054), + [anon_sym_AMP_AMP] = ACTIONS(1058), + [anon_sym_PIPE_PIPE] = ACTIONS(1058), + [anon_sym_LT] = ACTIONS(1093), + [anon_sym_GT] = ACTIONS(1093), + [anon_sym_GT_GT] = ACTIONS(1093), + [anon_sym_AMP_GT] = ACTIONS(1093), + [anon_sym_AMP_GT_GT] = ACTIONS(1093), + [anon_sym_LT_AMP] = ACTIONS(1093), + [anon_sym_GT_AMP] = ACTIONS(1093), + [sym_leading_word] = ACTIONS(1093), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1050), + [anon_sym_LF] = ACTIONS(1050), }, [347] = { - [sym_leading_word] = ACTIONS(1156), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(1096), + [anon_sym_in] = ACTIONS(191), + [anon_sym_RPAREN] = ACTIONS(1102), + [anon_sym_SEMI_SEMI] = ACTIONS(1108), + [anon_sym_RBRACK] = ACTIONS(1115), + [anon_sym_RBRACK_RBRACK] = ACTIONS(1115), + [anon_sym_PIPE] = ACTIONS(1118), + [anon_sym_PIPE_AMP] = ACTIONS(1118), + [anon_sym_AMP_AMP] = ACTIONS(1118), + [anon_sym_PIPE_PIPE] = ACTIONS(1118), + [anon_sym_DQUOTE] = ACTIONS(1115), + [sym_single_quoted_argument] = ACTIONS(1115), + [anon_sym_DOLLAR] = ACTIONS(1115), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(1115), + [anon_sym_RBRACE] = ACTIONS(1124), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(1115), + [anon_sym_LT] = ACTIONS(1118), + [anon_sym_GT] = ACTIONS(1118), + [anon_sym_GT_GT] = ACTIONS(1118), + [anon_sym_AMP_GT] = ACTIONS(1118), + [anon_sym_AMP_GT_GT] = ACTIONS(1118), + [anon_sym_LT_AMP] = ACTIONS(1118), + [anon_sym_GT_AMP] = ACTIONS(1118), + [anon_sym_LT_LT] = ACTIONS(1126), + [anon_sym_LT_LT_DASH] = ACTIONS(1126), + [sym_leading_word] = ACTIONS(1131), + [sym_word] = ACTIONS(1115), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1108), + [anon_sym_LF] = ACTIONS(1108), }, [348] = { - [sym_command] = STATE(362), - [sym_environment_variable_assignment] = STATE(14), - [sym_file_redirect] = STATE(14), - [aux_sym_command_repeat1] = STATE(67), - [anon_sym_LT] = ACTIONS(87), - [anon_sym_GT] = ACTIONS(87), - [anon_sym_LT_AMP] = ACTIONS(87), - [anon_sym_GT_AMP] = ACTIONS(87), - [sym_file_descriptor] = ACTIONS(89), - [sym_leading_word] = ACTIONS(185), - [sym_comment] = ACTIONS(71), + [sym__heredoc_middle] = ACTIONS(1021), + [sym__heredoc_end] = ACTIONS(1021), + [sym_file_descriptor] = ACTIONS(1096), + [anon_sym_in] = ACTIONS(191), + [anon_sym_RPAREN] = ACTIONS(1102), + [anon_sym_SEMI_SEMI] = ACTIONS(1108), + [anon_sym_RBRACK] = ACTIONS(1115), + [anon_sym_RBRACK_RBRACK] = ACTIONS(1115), + [anon_sym_PIPE] = ACTIONS(1118), + [anon_sym_PIPE_AMP] = ACTIONS(1118), + [anon_sym_AMP_AMP] = ACTIONS(1118), + [anon_sym_PIPE_PIPE] = ACTIONS(1118), + [anon_sym_DQUOTE] = ACTIONS(1135), + [sym__quoted_chars] = ACTIONS(1140), + [sym_single_quoted_argument] = ACTIONS(1115), + [anon_sym_DOLLAR] = ACTIONS(1143), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(1143), + [anon_sym_RBRACE] = ACTIONS(1124), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(1135), + [anon_sym_LT] = ACTIONS(1118), + [anon_sym_GT] = ACTIONS(1118), + [anon_sym_GT_GT] = ACTIONS(1118), + [anon_sym_AMP_GT] = ACTIONS(1118), + [anon_sym_AMP_GT_GT] = ACTIONS(1118), + [anon_sym_LT_AMP] = ACTIONS(1118), + [anon_sym_GT_AMP] = ACTIONS(1118), + [anon_sym_LT_LT] = ACTIONS(1126), + [anon_sym_LT_LT_DASH] = ACTIONS(1126), + [sym_leading_word] = ACTIONS(1131), + [sym_word] = ACTIONS(1115), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1108), + [anon_sym_LF] = ACTIONS(1108), }, [349] = { - [anon_sym_RPAREN] = ACTIONS(371), - [anon_sym_SEMI_SEMI] = ACTIONS(371), - [anon_sym_RBRACK] = ACTIONS(371), - [anon_sym_RBRACK_RBRACK] = ACTIONS(371), - [anon_sym_PIPE] = ACTIONS(371), - [anon_sym_PIPE_AMP] = ACTIONS(371), - [anon_sym_AMP_AMP] = ACTIONS(371), - [anon_sym_PIPE_PIPE] = ACTIONS(371), - [anon_sym_DQUOTE] = ACTIONS(371), - [sym_single_quoted_argument] = ACTIONS(371), - [anon_sym_DOLLAR] = ACTIONS(371), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(371), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(371), - [anon_sym_LT] = ACTIONS(371), - [anon_sym_GT] = ACTIONS(371), - [anon_sym_LT_AMP] = ACTIONS(371), - [anon_sym_GT_AMP] = ACTIONS(371), - [anon_sym_LT_LT] = ACTIONS(371), - [anon_sym_LT_LT_DASH] = ACTIONS(371), - [sym_file_descriptor] = ACTIONS(371), - [sym_word] = ACTIONS(371), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(371), - [anon_sym_LF] = ACTIONS(371), + [sym_file_descriptor] = ACTIONS(1096), + [anon_sym_in] = ACTIONS(191), + [anon_sym_RPAREN] = ACTIONS(1102), + [anon_sym_SEMI_SEMI] = ACTIONS(1108), + [anon_sym_RBRACK] = ACTIONS(1115), + [anon_sym_RBRACK_RBRACK] = ACTIONS(1115), + [anon_sym_PIPE] = ACTIONS(1118), + [anon_sym_PIPE_AMP] = ACTIONS(1118), + [anon_sym_AMP_AMP] = ACTIONS(1118), + [anon_sym_PIPE_PIPE] = ACTIONS(1118), + [anon_sym_DQUOTE] = ACTIONS(1135), + [sym__quoted_chars] = ACTIONS(1140), + [sym_single_quoted_argument] = ACTIONS(1115), + [anon_sym_DOLLAR] = ACTIONS(1135), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(1135), + [anon_sym_RBRACE] = ACTIONS(1124), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(1135), + [anon_sym_LT] = ACTIONS(1118), + [anon_sym_GT] = ACTIONS(1118), + [anon_sym_GT_GT] = ACTIONS(1118), + [anon_sym_AMP_GT] = ACTIONS(1118), + [anon_sym_AMP_GT_GT] = ACTIONS(1118), + [anon_sym_LT_AMP] = ACTIONS(1118), + [anon_sym_GT_AMP] = ACTIONS(1118), + [anon_sym_LT_LT] = ACTIONS(1126), + [anon_sym_LT_LT_DASH] = ACTIONS(1126), + [sym_leading_word] = ACTIONS(1131), + [sym_word] = ACTIONS(1115), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1108), + [anon_sym_LF] = ACTIONS(1108), }, [350] = { - [sym_file_redirect] = STATE(100), - [sym_heredoc_redirect] = STATE(100), - [anon_sym_RPAREN] = ACTIONS(1158), - [anon_sym_SEMI_SEMI] = ACTIONS(1158), - [anon_sym_PIPE] = ACTIONS(1158), - [anon_sym_PIPE_AMP] = ACTIONS(1158), - [anon_sym_AMP_AMP] = ACTIONS(1158), - [anon_sym_PIPE_PIPE] = ACTIONS(1158), - [anon_sym_LT] = ACTIONS(131), - [anon_sym_GT] = ACTIONS(131), - [anon_sym_LT_AMP] = ACTIONS(131), - [anon_sym_GT_AMP] = ACTIONS(131), - [anon_sym_LT_LT] = ACTIONS(133), - [anon_sym_LT_LT_DASH] = ACTIONS(133), - [sym_file_descriptor] = ACTIONS(135), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1158), - [anon_sym_LF] = ACTIONS(1158), + [sym_file_descriptor] = ACTIONS(1150), + [anon_sym_RPAREN] = ACTIONS(1155), + [anon_sym_SEMI_SEMI] = ACTIONS(1155), + [anon_sym_PIPE] = ACTIONS(1155), + [anon_sym_PIPE_AMP] = ACTIONS(1155), + [anon_sym_AMP_AMP] = ACTIONS(1155), + [anon_sym_PIPE_PIPE] = ACTIONS(1155), + [anon_sym_LT] = ACTIONS(1158), + [anon_sym_GT] = ACTIONS(1158), + [anon_sym_GT_GT] = ACTIONS(1158), + [anon_sym_AMP_GT] = ACTIONS(1158), + [anon_sym_AMP_GT_GT] = ACTIONS(1158), + [anon_sym_LT_AMP] = ACTIONS(1158), + [anon_sym_GT_AMP] = ACTIONS(1158), + [anon_sym_LT_LT] = ACTIONS(1155), + [anon_sym_LT_LT_DASH] = ACTIONS(1155), + [sym_leading_word] = ACTIONS(1093), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1155), + [anon_sym_LF] = ACTIONS(1155), }, [351] = { - [anon_sym_in] = ACTIONS(465), - [anon_sym_RPAREN] = ACTIONS(465), - [anon_sym_SEMI_SEMI] = ACTIONS(465), - [anon_sym_RBRACK] = ACTIONS(465), - [anon_sym_RBRACK_RBRACK] = ACTIONS(465), - [anon_sym_PIPE] = ACTIONS(465), - [anon_sym_PIPE_AMP] = ACTIONS(465), - [anon_sym_AMP_AMP] = ACTIONS(465), - [anon_sym_PIPE_PIPE] = ACTIONS(465), - [anon_sym_DQUOTE] = ACTIONS(465), - [sym_single_quoted_argument] = ACTIONS(465), - [anon_sym_DOLLAR] = ACTIONS(465), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(465), - [anon_sym_RBRACE] = ACTIONS(465), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(465), - [anon_sym_LT] = ACTIONS(465), - [anon_sym_GT] = ACTIONS(465), - [anon_sym_LT_AMP] = ACTIONS(465), - [anon_sym_GT_AMP] = ACTIONS(465), - [anon_sym_LT_LT] = ACTIONS(465), - [anon_sym_LT_LT_DASH] = ACTIONS(465), - [sym_file_descriptor] = ACTIONS(465), - [sym_leading_word] = ACTIONS(465), - [sym_word] = ACTIONS(465), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(465), - [anon_sym_LF] = ACTIONS(465), + [sym_file_descriptor] = ACTIONS(1163), + [anon_sym_RPAREN] = ACTIONS(1155), + [anon_sym_SEMI_SEMI] = ACTIONS(1155), + [anon_sym_PIPE] = ACTIONS(1155), + [anon_sym_PIPE_AMP] = ACTIONS(1155), + [anon_sym_AMP_AMP] = ACTIONS(1155), + [anon_sym_PIPE_PIPE] = ACTIONS(1155), + [anon_sym_LT] = ACTIONS(1155), + [anon_sym_GT] = ACTIONS(1155), + [anon_sym_GT_GT] = ACTIONS(1155), + [anon_sym_AMP_GT] = ACTIONS(1155), + [anon_sym_AMP_GT_GT] = ACTIONS(1155), + [anon_sym_LT_AMP] = ACTIONS(1155), + [anon_sym_GT_AMP] = ACTIONS(1155), + [anon_sym_LT_LT] = ACTIONS(1155), + [anon_sym_LT_LT_DASH] = ACTIONS(1155), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1155), + [anon_sym_LF] = ACTIONS(1155), }, [352] = { - [sym__heredoc_middle] = ACTIONS(747), - [sym__heredoc_end] = ACTIONS(747), - [anon_sym_in] = ACTIONS(723), - [anon_sym_RPAREN] = ACTIONS(723), - [anon_sym_SEMI_SEMI] = ACTIONS(723), - [anon_sym_RBRACK] = ACTIONS(723), - [anon_sym_RBRACK_RBRACK] = ACTIONS(723), - [anon_sym_PIPE] = ACTIONS(723), - [anon_sym_PIPE_AMP] = ACTIONS(723), - [anon_sym_AMP_AMP] = ACTIONS(723), - [anon_sym_PIPE_PIPE] = ACTIONS(723), - [anon_sym_DQUOTE] = ACTIONS(723), - [sym__quoted_chars] = ACTIONS(723), - [sym_single_quoted_argument] = ACTIONS(723), - [anon_sym_DOLLAR] = ACTIONS(723), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(723), - [anon_sym_RBRACE] = ACTIONS(723), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(723), - [anon_sym_LT] = ACTIONS(723), - [anon_sym_GT] = ACTIONS(723), - [anon_sym_LT_AMP] = ACTIONS(723), - [anon_sym_GT_AMP] = ACTIONS(723), - [anon_sym_LT_LT] = ACTIONS(723), - [anon_sym_LT_LT_DASH] = ACTIONS(723), - [sym_file_descriptor] = ACTIONS(723), - [sym_leading_word] = ACTIONS(723), - [sym_word] = ACTIONS(723), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(723), - [anon_sym_LF] = ACTIONS(723), - }, - [353] = { - [sym__heredoc_middle] = ACTIONS(529), - [sym__heredoc_end] = ACTIONS(529), - [anon_sym_in] = ACTIONS(483), - [anon_sym_RPAREN] = ACTIONS(483), - [anon_sym_SEMI_SEMI] = ACTIONS(483), - [anon_sym_RBRACK] = ACTIONS(483), - [anon_sym_RBRACK_RBRACK] = ACTIONS(483), - [anon_sym_PIPE] = ACTIONS(483), - [anon_sym_PIPE_AMP] = ACTIONS(483), - [anon_sym_AMP_AMP] = ACTIONS(483), - [anon_sym_PIPE_PIPE] = ACTIONS(483), - [anon_sym_DQUOTE] = ACTIONS(483), - [sym__quoted_chars] = ACTIONS(483), - [sym_single_quoted_argument] = ACTIONS(483), - [anon_sym_DOLLAR] = ACTIONS(483), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(483), - [anon_sym_RBRACE] = ACTIONS(483), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(483), - [anon_sym_LT] = ACTIONS(483), - [anon_sym_GT] = ACTIONS(483), - [anon_sym_LT_AMP] = ACTIONS(483), - [anon_sym_GT_AMP] = ACTIONS(483), - [anon_sym_LT_LT] = ACTIONS(483), - [anon_sym_LT_LT_DASH] = ACTIONS(483), - [sym_file_descriptor] = ACTIONS(483), - [sym_leading_word] = ACTIONS(483), - [sym_word] = ACTIONS(483), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(483), - [anon_sym_LF] = ACTIONS(483), - }, - [354] = { - [anon_sym_RPAREN] = ACTIONS(375), - [anon_sym_SEMI_SEMI] = ACTIONS(375), - [anon_sym_PIPE] = ACTIONS(375), - [anon_sym_PIPE_AMP] = ACTIONS(375), - [anon_sym_AMP_AMP] = ACTIONS(375), - [anon_sym_PIPE_PIPE] = ACTIONS(375), - [anon_sym_LT] = ACTIONS(375), - [anon_sym_GT] = ACTIONS(375), - [anon_sym_LT_AMP] = ACTIONS(375), - [anon_sym_GT_AMP] = ACTIONS(375), - [anon_sym_LT_LT] = ACTIONS(375), - [anon_sym_LT_LT_DASH] = ACTIONS(375), - [sym_file_descriptor] = ACTIONS(375), - [sym_leading_word] = ACTIONS(375), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(375), - [anon_sym_LF] = ACTIONS(375), - }, - [355] = { - [anon_sym_RPAREN] = ACTIONS(379), - [anon_sym_SEMI_SEMI] = ACTIONS(379), - [anon_sym_PIPE] = ACTIONS(379), - [anon_sym_PIPE_AMP] = ACTIONS(379), - [anon_sym_AMP_AMP] = ACTIONS(379), - [anon_sym_PIPE_PIPE] = ACTIONS(379), - [anon_sym_LT] = ACTIONS(379), - [anon_sym_GT] = ACTIONS(379), - [anon_sym_LT_AMP] = ACTIONS(379), - [anon_sym_GT_AMP] = ACTIONS(379), - [anon_sym_LT_LT] = ACTIONS(379), - [anon_sym_LT_LT_DASH] = ACTIONS(379), - [sym_file_descriptor] = ACTIONS(379), - [sym_leading_word] = ACTIONS(379), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(379), - [anon_sym_LF] = ACTIONS(379), - }, - [356] = { - [sym_case_item] = STATE(181), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [aux_sym_case_statement_repeat1] = STATE(364), - [anon_sym_esac] = ACTIONS(1161), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(473), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(475), + [sym__terminated_statement] = STATE(314), + [sym_while_statement] = STATE(291), + [sym_if_statement] = STATE(291), + [sym_elif_clause] = STATE(126), + [sym_else_clause] = STATE(190), + [sym_case_statement] = STATE(291), + [sym_bracket_command] = STATE(291), + [sym_command] = STATE(291), + [sym_pipeline] = STATE(291), + [sym_list] = STATE(291), + [sym_environment_variable_assignment] = STATE(292), + [sym_file_redirect] = STATE(14), + [aux_sym_if_statement_repeat1] = STATE(191), + [aux_sym_command_repeat1] = STATE(16), + [sym_file_descriptor] = ACTIONS(75), + [ts_builtin_sym_end] = ACTIONS(167), + [anon_sym_while] = ACTIONS(79), + [anon_sym_done] = ACTIONS(495), + [anon_sym_if] = ACTIONS(81), + [anon_sym_fi] = ACTIONS(1166), + [anon_sym_elif] = ACTIONS(1170), + [anon_sym_else] = ACTIONS(1173), + [anon_sym_case] = ACTIONS(83), + [anon_sym_esac] = ACTIONS(1176), + [anon_sym_SEMI_SEMI] = ACTIONS(1179), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_DQUOTE] = ACTIONS(1181), + [sym_single_quoted_argument] = ACTIONS(1176), + [anon_sym_DOLLAR] = ACTIONS(1176), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(1181), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(1181), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(91), + [sym_word] = ACTIONS(1184), [sym_comment] = ACTIONS(71), }, + [353] = { + [sym_elif_clause] = STATE(192), + [sym_else_clause] = STATE(384), + [anon_sym_fi] = ACTIONS(1187), + [anon_sym_elif] = ACTIONS(507), + [anon_sym_else] = ACTIONS(509), + [sym_comment] = ACTIONS(71), + }, + [354] = { + [sym_case_item] = STATE(253), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [anon_sym_esac] = ACTIONS(1189), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(527), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(529), + [sym_comment] = ACTIONS(71), + }, + [355] = { + [sym_quoted_argument] = STATE(387), + [sym_expansion] = STATE(387), + [sym_operator_expansion] = STATE(387), + [sym_command_substitution] = STATE(387), + [sym_file_redirect] = STATE(47), + [sym_heredoc_redirect] = STATE(47), + [aux_sym_command_repeat2] = STATE(392), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_RPAREN] = ACTIONS(1191), + [anon_sym_SEMI_SEMI] = ACTIONS(1191), + [anon_sym_RBRACK] = ACTIONS(1194), + [anon_sym_RBRACK_RBRACK] = ACTIONS(1194), + [anon_sym_PIPE] = ACTIONS(1191), + [anon_sym_PIPE_AMP] = ACTIONS(1191), + [anon_sym_AMP_AMP] = ACTIONS(1191), + [anon_sym_PIPE_PIPE] = ACTIONS(1191), + [anon_sym_DQUOTE] = ACTIONS(1196), + [sym_single_quoted_argument] = ACTIONS(1198), + [anon_sym_DOLLAR] = ACTIONS(1200), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(1202), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(1204), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_word] = ACTIONS(1206), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1191), + [anon_sym_LF] = ACTIONS(1191), + }, + [356] = { + [sym_file_redirect] = STATE(113), + [sym_heredoc_redirect] = STATE(113), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_RPAREN] = ACTIONS(1208), + [anon_sym_SEMI_SEMI] = ACTIONS(1208), + [anon_sym_PIPE] = ACTIONS(1208), + [anon_sym_PIPE_AMP] = ACTIONS(1208), + [anon_sym_AMP_AMP] = ACTIONS(1208), + [anon_sym_PIPE_PIPE] = ACTIONS(1208), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1208), + [anon_sym_LF] = ACTIONS(1208), + }, [357] = { - [anon_sym_SEMI_SEMI] = ACTIONS(1163), - [anon_sym_PIPE] = ACTIONS(1163), - [anon_sym_PIPE_AMP] = ACTIONS(1163), - [anon_sym_AMP_AMP] = ACTIONS(1163), - [anon_sym_PIPE_PIPE] = ACTIONS(1163), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1163), - [anon_sym_LF] = ACTIONS(1163), + [sym_expansion] = STATE(134), + [sym_operator_expansion] = STATE(134), + [sym_command_substitution] = STATE(134), + [anon_sym_DQUOTE] = ACTIONS(1215), + [sym__quoted_chars] = ACTIONS(355), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), }, [358] = { - [anon_sym_RPAREN] = ACTIONS(299), - [anon_sym_SEMI_SEMI] = ACTIONS(299), - [anon_sym_RBRACK] = ACTIONS(299), - [anon_sym_RBRACK_RBRACK] = ACTIONS(299), - [anon_sym_PIPE] = ACTIONS(299), - [anon_sym_PIPE_AMP] = ACTIONS(299), - [anon_sym_AMP_AMP] = ACTIONS(299), - [anon_sym_PIPE_PIPE] = ACTIONS(299), - [anon_sym_DQUOTE] = ACTIONS(299), - [sym_single_quoted_argument] = ACTIONS(299), - [anon_sym_DOLLAR] = ACTIONS(299), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(299), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(299), - [anon_sym_LT] = ACTIONS(299), - [anon_sym_GT] = ACTIONS(299), - [anon_sym_LT_AMP] = ACTIONS(299), - [anon_sym_GT_AMP] = ACTIONS(299), - [anon_sym_LT_LT] = ACTIONS(299), - [anon_sym_LT_LT_DASH] = ACTIONS(299), - [sym_file_descriptor] = ACTIONS(299), - [sym_word] = ACTIONS(299), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(299), - [anon_sym_LF] = ACTIONS(299), + [sym__terminated_statement] = STATE(52), + [sym_while_statement] = STATE(12), + [sym_if_statement] = STATE(12), + [sym_elif_clause] = STATE(126), + [sym_else_clause] = STATE(190), + [sym_case_statement] = STATE(12), + [sym_bracket_command] = STATE(12), + [sym_command] = STATE(12), + [sym_pipeline] = STATE(12), + [sym_list] = STATE(12), + [sym_environment_variable_assignment] = STATE(13), + [sym_file_redirect] = STATE(14), + [aux_sym_if_statement_repeat1] = STATE(191), + [aux_sym_command_repeat1] = STATE(16), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_fi] = ACTIONS(1217), + [anon_sym_elif] = ACTIONS(1170), + [anon_sym_else] = ACTIONS(1173), + [anon_sym_case] = ACTIONS(83), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(91), + [sym_comment] = ACTIONS(71), }, [359] = { - [sym_expansion] = STATE(121), - [sym_operator_expansion] = STATE(121), - [sym_command_substitution] = STATE(121), - [anon_sym_DQUOTE] = ACTIONS(1166), - [sym__quoted_chars] = ACTIONS(311), - [anon_sym_DOLLAR] = ACTIONS(171), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(173), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(175), - [sym_comment] = ACTIONS(137), + [sym_case_item] = STATE(199), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [aux_sym_case_statement_repeat1] = STATE(354), + [anon_sym_esac] = ACTIONS(1220), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(527), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(529), + [sym_comment] = ACTIONS(71), }, [360] = { - [anon_sym_RPAREN] = ACTIONS(317), - [anon_sym_SEMI_SEMI] = ACTIONS(317), - [anon_sym_RBRACK] = ACTIONS(317), - [anon_sym_RBRACK_RBRACK] = ACTIONS(317), - [anon_sym_PIPE] = ACTIONS(317), - [anon_sym_PIPE_AMP] = ACTIONS(317), - [anon_sym_AMP_AMP] = ACTIONS(317), - [anon_sym_PIPE_PIPE] = ACTIONS(317), - [anon_sym_DQUOTE] = ACTIONS(317), - [sym_single_quoted_argument] = ACTIONS(317), - [anon_sym_DOLLAR] = ACTIONS(317), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(317), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(317), - [anon_sym_LT] = ACTIONS(317), - [anon_sym_GT] = ACTIONS(317), - [anon_sym_LT_AMP] = ACTIONS(317), - [anon_sym_GT_AMP] = ACTIONS(317), - [anon_sym_LT_LT] = ACTIONS(317), - [anon_sym_LT_LT_DASH] = ACTIONS(317), - [sym_file_descriptor] = ACTIONS(317), - [sym_word] = ACTIONS(317), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(317), - [anon_sym_LF] = ACTIONS(317), + [anon_sym_esac] = ACTIONS(1176), + [anon_sym_DQUOTE] = ACTIONS(1181), + [sym_single_quoted_argument] = ACTIONS(1176), + [anon_sym_DOLLAR] = ACTIONS(1176), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(1181), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(1181), + [sym_word] = ACTIONS(1184), + [sym_comment] = ACTIONS(71), }, [361] = { - [anon_sym_EQ] = ACTIONS(1168), - [anon_sym_COLON] = ACTIONS(1170), - [anon_sym_COLON_QMARK] = ACTIONS(1168), - [anon_sym_RBRACE] = ACTIONS(1172), + [sym__terminated_statement] = STATE(314), + [sym_while_statement] = STATE(291), + [sym_if_statement] = STATE(291), + [sym_case_statement] = STATE(291), + [sym_bracket_command] = STATE(291), + [sym_command] = STATE(291), + [sym_pipeline] = STATE(291), + [sym_list] = STATE(291), + [sym_environment_variable_assignment] = STATE(292), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(16), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_while] = ACTIONS(79), + [anon_sym_if] = ACTIONS(81), + [anon_sym_case] = ACTIONS(83), + [anon_sym_esac] = ACTIONS(1176), + [anon_sym_SEMI_SEMI] = ACTIONS(1179), + [anon_sym_LBRACK] = ACTIONS(85), + [anon_sym_LBRACK_LBRACK] = ACTIONS(87), + [anon_sym_DQUOTE] = ACTIONS(1181), + [sym_single_quoted_argument] = ACTIONS(1176), + [anon_sym_DOLLAR] = ACTIONS(1176), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(1181), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(1181), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(91), + [sym_word] = ACTIONS(1184), [sym_comment] = ACTIONS(71), }, [362] = { - [anon_sym_RPAREN] = ACTIONS(1174), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(445), + [anon_sym_SEMI_SEMI] = ACTIONS(447), + [anon_sym_PIPE] = ACTIONS(447), + [anon_sym_PIPE_AMP] = ACTIONS(447), + [anon_sym_AMP_AMP] = ACTIONS(447), + [anon_sym_PIPE_PIPE] = ACTIONS(447), + [anon_sym_RBRACE] = ACTIONS(1124), + [anon_sym_LT] = ACTIONS(447), + [anon_sym_GT] = ACTIONS(447), + [anon_sym_GT_GT] = ACTIONS(447), + [anon_sym_AMP_GT] = ACTIONS(447), + [anon_sym_AMP_GT_GT] = ACTIONS(447), + [anon_sym_LT_AMP] = ACTIONS(447), + [anon_sym_GT_AMP] = ACTIONS(447), + [sym_leading_word] = ACTIONS(447), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(447), + [anon_sym_LF] = ACTIONS(447), }, [363] = { - [anon_sym_SEMI_SEMI] = ACTIONS(1176), - [anon_sym_PIPE] = ACTIONS(1176), - [anon_sym_PIPE_AMP] = ACTIONS(1176), - [anon_sym_AMP_AMP] = ACTIONS(1176), - [anon_sym_PIPE_PIPE] = ACTIONS(1176), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1176), - [anon_sym_LF] = ACTIONS(1176), + [sym_file_descriptor] = ACTIONS(453), + [anon_sym_SEMI_SEMI] = ACTIONS(455), + [anon_sym_PIPE] = ACTIONS(455), + [anon_sym_PIPE_AMP] = ACTIONS(455), + [anon_sym_AMP_AMP] = ACTIONS(455), + [anon_sym_PIPE_PIPE] = ACTIONS(455), + [anon_sym_RBRACE] = ACTIONS(1222), + [anon_sym_LT] = ACTIONS(455), + [anon_sym_GT] = ACTIONS(455), + [anon_sym_GT_GT] = ACTIONS(455), + [anon_sym_AMP_GT] = ACTIONS(455), + [anon_sym_AMP_GT_GT] = ACTIONS(455), + [anon_sym_LT_AMP] = ACTIONS(455), + [anon_sym_GT_AMP] = ACTIONS(455), + [sym_leading_word] = ACTIONS(455), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(455), + [anon_sym_LF] = ACTIONS(455), }, [364] = { - [sym_case_item] = STATE(228), - [sym_quoted_argument] = STATE(179), - [sym_expansion] = STATE(179), - [sym_operator_expansion] = STATE(179), - [sym_command_substitution] = STATE(179), - [anon_sym_esac] = ACTIONS(1179), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(473), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(475), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(385), + [anon_sym_in] = ACTIONS(343), + [anon_sym_RPAREN] = ACTIONS(343), + [anon_sym_SEMI_SEMI] = ACTIONS(343), + [anon_sym_RBRACK] = ACTIONS(343), + [anon_sym_RBRACK_RBRACK] = ACTIONS(343), + [anon_sym_PIPE] = ACTIONS(343), + [anon_sym_PIPE_AMP] = ACTIONS(343), + [anon_sym_AMP_AMP] = ACTIONS(343), + [anon_sym_PIPE_PIPE] = ACTIONS(343), + [anon_sym_DQUOTE] = ACTIONS(343), + [sym_single_quoted_argument] = ACTIONS(343), + [anon_sym_DOLLAR] = ACTIONS(343), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(343), + [anon_sym_RBRACE] = ACTIONS(343), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(343), + [anon_sym_LT] = ACTIONS(343), + [anon_sym_GT] = ACTIONS(343), + [anon_sym_GT_GT] = ACTIONS(343), + [anon_sym_AMP_GT] = ACTIONS(343), + [anon_sym_AMP_GT_GT] = ACTIONS(343), + [anon_sym_LT_AMP] = ACTIONS(343), + [anon_sym_GT_AMP] = ACTIONS(343), + [anon_sym_LT_LT] = ACTIONS(343), + [anon_sym_LT_LT_DASH] = ACTIONS(343), + [sym_leading_word] = ACTIONS(343), + [sym_word] = ACTIONS(343), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(343), + [anon_sym_LF] = ACTIONS(343), }, [365] = { - [anon_sym_RPAREN] = ACTIONS(465), - [anon_sym_SEMI_SEMI] = ACTIONS(465), - [anon_sym_RBRACK] = ACTIONS(465), - [anon_sym_RBRACK_RBRACK] = ACTIONS(465), - [anon_sym_PIPE] = ACTIONS(465), - [anon_sym_PIPE_AMP] = ACTIONS(465), - [anon_sym_AMP_AMP] = ACTIONS(465), - [anon_sym_PIPE_PIPE] = ACTIONS(465), - [anon_sym_DQUOTE] = ACTIONS(465), - [sym_single_quoted_argument] = ACTIONS(465), - [anon_sym_DOLLAR] = ACTIONS(465), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(465), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(465), - [anon_sym_LT] = ACTIONS(465), - [anon_sym_GT] = ACTIONS(465), - [anon_sym_LT_AMP] = ACTIONS(465), - [anon_sym_GT_AMP] = ACTIONS(465), - [anon_sym_LT_LT] = ACTIONS(465), - [anon_sym_LT_LT_DASH] = ACTIONS(465), - [sym_file_descriptor] = ACTIONS(465), - [sym_word] = ACTIONS(465), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(465), - [anon_sym_LF] = ACTIONS(465), + [sym__heredoc_middle] = ACTIONS(391), + [sym__heredoc_end] = ACTIONS(391), + [sym_file_descriptor] = ACTIONS(391), + [anon_sym_in] = ACTIONS(361), + [anon_sym_RPAREN] = ACTIONS(361), + [anon_sym_SEMI_SEMI] = ACTIONS(361), + [anon_sym_RBRACK] = ACTIONS(361), + [anon_sym_RBRACK_RBRACK] = ACTIONS(361), + [anon_sym_PIPE] = ACTIONS(361), + [anon_sym_PIPE_AMP] = ACTIONS(361), + [anon_sym_AMP_AMP] = ACTIONS(361), + [anon_sym_PIPE_PIPE] = ACTIONS(361), + [anon_sym_DQUOTE] = ACTIONS(361), + [sym__quoted_chars] = ACTIONS(361), + [sym_single_quoted_argument] = ACTIONS(361), + [anon_sym_DOLLAR] = ACTIONS(361), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(361), + [anon_sym_RBRACE] = ACTIONS(361), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(361), + [anon_sym_LT] = ACTIONS(361), + [anon_sym_GT] = ACTIONS(361), + [anon_sym_GT_GT] = ACTIONS(361), + [anon_sym_AMP_GT] = ACTIONS(361), + [anon_sym_AMP_GT_GT] = ACTIONS(361), + [anon_sym_LT_AMP] = ACTIONS(361), + [anon_sym_GT_AMP] = ACTIONS(361), + [anon_sym_LT_LT] = ACTIONS(361), + [anon_sym_LT_LT_DASH] = ACTIONS(361), + [sym_leading_word] = ACTIONS(361), + [sym_word] = ACTIONS(361), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(361), + [anon_sym_LF] = ACTIONS(361), }, [366] = { - [sym_quoted_argument] = STATE(370), - [sym_expansion] = STATE(370), - [sym_operator_expansion] = STATE(370), - [sym_command_substitution] = STATE(370), - [anon_sym_DQUOTE] = ACTIONS(105), - [sym_single_quoted_argument] = ACTIONS(1181), - [anon_sym_DOLLAR] = ACTIONS(109), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(111), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(113), - [sym_word] = ACTIONS(1183), + [anon_sym_EQ] = ACTIONS(1224), + [anon_sym_COLON] = ACTIONS(1226), + [anon_sym_COLON_QMARK] = ACTIONS(1224), + [anon_sym_RBRACE] = ACTIONS(1228), [sym_comment] = ACTIONS(71), }, [367] = { - [anon_sym_RPAREN] = ACTIONS(483), - [anon_sym_SEMI_SEMI] = ACTIONS(483), - [anon_sym_RBRACK] = ACTIONS(483), - [anon_sym_RBRACK_RBRACK] = ACTIONS(483), - [anon_sym_PIPE] = ACTIONS(483), - [anon_sym_PIPE_AMP] = ACTIONS(483), - [anon_sym_AMP_AMP] = ACTIONS(483), - [anon_sym_PIPE_PIPE] = ACTIONS(483), - [anon_sym_DQUOTE] = ACTIONS(483), - [sym_single_quoted_argument] = ACTIONS(483), - [anon_sym_DOLLAR] = ACTIONS(483), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(483), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(483), - [anon_sym_LT] = ACTIONS(483), - [anon_sym_GT] = ACTIONS(483), - [anon_sym_LT_AMP] = ACTIONS(483), - [anon_sym_GT_AMP] = ACTIONS(483), - [anon_sym_LT_LT] = ACTIONS(483), - [anon_sym_LT_LT_DASH] = ACTIONS(483), - [sym_file_descriptor] = ACTIONS(483), - [sym_word] = ACTIONS(483), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(483), - [anon_sym_LF] = ACTIONS(483), + [anon_sym_RBRACE] = ACTIONS(1230), + [sym_comment] = ACTIONS(71), }, [368] = { - [anon_sym_RPAREN] = ACTIONS(513), - [anon_sym_SEMI_SEMI] = ACTIONS(513), - [anon_sym_RBRACK] = ACTIONS(513), - [anon_sym_RBRACK_RBRACK] = ACTIONS(513), - [anon_sym_PIPE] = ACTIONS(513), - [anon_sym_PIPE_AMP] = ACTIONS(513), - [anon_sym_AMP_AMP] = ACTIONS(513), - [anon_sym_PIPE_PIPE] = ACTIONS(513), - [anon_sym_DQUOTE] = ACTIONS(513), - [sym_single_quoted_argument] = ACTIONS(513), - [anon_sym_DOLLAR] = ACTIONS(513), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(513), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(513), - [anon_sym_LT] = ACTIONS(513), - [anon_sym_GT] = ACTIONS(513), - [anon_sym_LT_AMP] = ACTIONS(513), - [anon_sym_GT_AMP] = ACTIONS(513), - [anon_sym_LT_LT] = ACTIONS(513), - [anon_sym_LT_LT_DASH] = ACTIONS(513), - [sym_file_descriptor] = ACTIONS(513), - [sym_word] = ACTIONS(513), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(513), - [anon_sym_LF] = ACTIONS(513), + [anon_sym_RBRACE] = ACTIONS(1232), + [sym_comment] = ACTIONS(71), }, [369] = { - [anon_sym_SEMI_SEMI] = ACTIONS(1185), - [anon_sym_PIPE] = ACTIONS(1185), - [anon_sym_PIPE_AMP] = ACTIONS(1185), - [anon_sym_AMP_AMP] = ACTIONS(1185), - [anon_sym_PIPE_PIPE] = ACTIONS(1185), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(1185), - [anon_sym_LF] = ACTIONS(1185), + [anon_sym_RPAREN] = ACTIONS(1234), + [sym_comment] = ACTIONS(71), }, [370] = { - [anon_sym_RBRACE] = ACTIONS(1188), - [sym_comment] = ACTIONS(71), + [sym_expansion] = STATE(62), + [sym_operator_expansion] = STATE(62), + [sym_command_substitution] = STATE(62), + [aux_sym_quoted_argument_repeat1] = STATE(397), + [anon_sym_DQUOTE] = ACTIONS(1236), + [sym__quoted_chars] = ACTIONS(183), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), }, [371] = { - [anon_sym_RBRACE] = ACTIONS(1190), - [sym_comment] = ACTIONS(71), + [sym_file_descriptor] = ACTIONS(1238), + [anon_sym_RPAREN] = ACTIONS(1241), + [anon_sym_SEMI_SEMI] = ACTIONS(1241), + [anon_sym_PIPE] = ACTIONS(1241), + [anon_sym_PIPE_AMP] = ACTIONS(1241), + [anon_sym_AMP_AMP] = ACTIONS(1241), + [anon_sym_PIPE_PIPE] = ACTIONS(1241), + [anon_sym_LT] = ACTIONS(1241), + [anon_sym_GT] = ACTIONS(1241), + [anon_sym_GT_GT] = ACTIONS(1241), + [anon_sym_AMP_GT] = ACTIONS(1241), + [anon_sym_AMP_GT_GT] = ACTIONS(1241), + [anon_sym_LT_AMP] = ACTIONS(1241), + [anon_sym_GT_AMP] = ACTIONS(1241), + [anon_sym_LT_LT] = ACTIONS(1241), + [anon_sym_LT_LT_DASH] = ACTIONS(1241), + [sym_leading_word] = ACTIONS(1241), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1241), + [anon_sym_LF] = ACTIONS(1241), }, [372] = { - [anon_sym_RPAREN] = ACTIONS(721), - [anon_sym_SEMI_SEMI] = ACTIONS(721), - [anon_sym_RBRACK] = ACTIONS(721), - [anon_sym_RBRACK_RBRACK] = ACTIONS(721), - [anon_sym_PIPE] = ACTIONS(721), - [anon_sym_PIPE_AMP] = ACTIONS(721), - [anon_sym_AMP_AMP] = ACTIONS(721), - [anon_sym_PIPE_PIPE] = ACTIONS(721), - [anon_sym_DQUOTE] = ACTIONS(721), - [sym_single_quoted_argument] = ACTIONS(721), - [anon_sym_DOLLAR] = ACTIONS(721), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(721), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(721), - [anon_sym_LT] = ACTIONS(721), - [anon_sym_GT] = ACTIONS(721), - [anon_sym_LT_AMP] = ACTIONS(721), - [anon_sym_GT_AMP] = ACTIONS(721), - [anon_sym_LT_LT] = ACTIONS(721), - [anon_sym_LT_LT_DASH] = ACTIONS(721), - [sym_file_descriptor] = ACTIONS(721), - [sym_word] = ACTIONS(721), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(721), - [anon_sym_LF] = ACTIONS(721), + [sym_word] = ACTIONS(1244), + [sym_comment] = ACTIONS(71), }, [373] = { - [anon_sym_RPAREN] = ACTIONS(723), - [anon_sym_SEMI_SEMI] = ACTIONS(723), - [anon_sym_RBRACK] = ACTIONS(723), - [anon_sym_RBRACK_RBRACK] = ACTIONS(723), - [anon_sym_PIPE] = ACTIONS(723), - [anon_sym_PIPE_AMP] = ACTIONS(723), - [anon_sym_AMP_AMP] = ACTIONS(723), - [anon_sym_PIPE_PIPE] = ACTIONS(723), - [anon_sym_DQUOTE] = ACTIONS(723), - [sym_single_quoted_argument] = ACTIONS(723), - [anon_sym_DOLLAR] = ACTIONS(723), - [anon_sym_DOLLAR_LBRACE] = ACTIONS(723), - [anon_sym_DOLLAR_LPAREN] = ACTIONS(723), - [anon_sym_LT] = ACTIONS(723), - [anon_sym_GT] = ACTIONS(723), - [anon_sym_LT_AMP] = ACTIONS(723), - [anon_sym_GT_AMP] = ACTIONS(723), - [anon_sym_LT_LT] = ACTIONS(723), - [anon_sym_LT_LT_DASH] = ACTIONS(723), - [sym_file_descriptor] = ACTIONS(723), - [sym_word] = ACTIONS(723), - [sym_comment] = ACTIONS(137), - [anon_sym_SEMI] = ACTIONS(723), - [anon_sym_LF] = ACTIONS(723), + [sym_leading_word] = ACTIONS(1246), + [sym_comment] = ACTIONS(71), + }, + [374] = { + [sym_command] = STATE(400), + [sym_environment_variable_assignment] = STATE(14), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(73), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(199), + [sym_comment] = ACTIONS(71), + }, + [375] = { + [sym_file_descriptor] = ACTIONS(1248), + [anon_sym_RPAREN] = ACTIONS(1251), + [anon_sym_SEMI_SEMI] = ACTIONS(1251), + [anon_sym_PIPE] = ACTIONS(1251), + [anon_sym_PIPE_AMP] = ACTIONS(1251), + [anon_sym_AMP_AMP] = ACTIONS(1251), + [anon_sym_PIPE_PIPE] = ACTIONS(1251), + [anon_sym_LT] = ACTIONS(1251), + [anon_sym_GT] = ACTIONS(1251), + [anon_sym_GT_GT] = ACTIONS(1251), + [anon_sym_AMP_GT] = ACTIONS(1251), + [anon_sym_AMP_GT_GT] = ACTIONS(1251), + [anon_sym_LT_AMP] = ACTIONS(1251), + [anon_sym_GT_AMP] = ACTIONS(1251), + [anon_sym_LT_LT] = ACTIONS(1251), + [anon_sym_LT_LT_DASH] = ACTIONS(1251), + [sym_leading_word] = ACTIONS(1251), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1251), + [anon_sym_LF] = ACTIONS(1251), + }, + [376] = { + [anon_sym_SEMI_SEMI] = ACTIONS(1254), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1254), + [anon_sym_LF] = ACTIONS(1254), + }, + [377] = { + [anon_sym_SEMI_SEMI] = ACTIONS(1256), + [anon_sym_PIPE] = ACTIONS(1256), + [anon_sym_PIPE_AMP] = ACTIONS(1256), + [anon_sym_AMP_AMP] = ACTIONS(1256), + [anon_sym_PIPE_PIPE] = ACTIONS(1256), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1256), + [anon_sym_LF] = ACTIONS(1256), + }, + [378] = { + [sym_quoted_argument] = STATE(402), + [sym_expansion] = STATE(402), + [sym_operator_expansion] = STATE(402), + [sym_command_substitution] = STATE(402), + [anon_sym_DQUOTE] = ACTIONS(986), + [sym_single_quoted_argument] = ACTIONS(1261), + [anon_sym_DOLLAR] = ACTIONS(990), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(992), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(994), + [sym_word] = ACTIONS(1263), + [sym_comment] = ACTIONS(71), + }, + [379] = { + [anon_sym_SEMI_SEMI] = ACTIONS(1265), + [anon_sym_PIPE] = ACTIONS(1265), + [anon_sym_PIPE_AMP] = ACTIONS(1265), + [anon_sym_AMP_AMP] = ACTIONS(1265), + [anon_sym_PIPE_PIPE] = ACTIONS(1265), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1265), + [anon_sym_LF] = ACTIONS(1265), + }, + [380] = { + [sym_file_descriptor] = ACTIONS(595), + [anon_sym_in] = ACTIONS(575), + [anon_sym_RPAREN] = ACTIONS(575), + [anon_sym_SEMI_SEMI] = ACTIONS(575), + [anon_sym_RBRACK] = ACTIONS(575), + [anon_sym_RBRACK_RBRACK] = ACTIONS(575), + [anon_sym_PIPE] = ACTIONS(575), + [anon_sym_PIPE_AMP] = ACTIONS(575), + [anon_sym_AMP_AMP] = ACTIONS(575), + [anon_sym_PIPE_PIPE] = ACTIONS(575), + [anon_sym_DQUOTE] = ACTIONS(575), + [sym__quoted_chars] = ACTIONS(575), + [sym_single_quoted_argument] = ACTIONS(575), + [anon_sym_DOLLAR] = ACTIONS(575), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(575), + [anon_sym_RBRACE] = ACTIONS(575), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(575), + [anon_sym_LT] = ACTIONS(575), + [anon_sym_GT] = ACTIONS(575), + [anon_sym_GT_GT] = ACTIONS(575), + [anon_sym_AMP_GT] = ACTIONS(575), + [anon_sym_AMP_GT_GT] = ACTIONS(575), + [anon_sym_LT_AMP] = ACTIONS(575), + [anon_sym_GT_AMP] = ACTIONS(575), + [anon_sym_LT_LT] = ACTIONS(575), + [anon_sym_LT_LT_DASH] = ACTIONS(575), + [sym_leading_word] = ACTIONS(575), + [sym_word] = ACTIONS(575), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(575), + [anon_sym_LF] = ACTIONS(575), + }, + [381] = { + [sym__heredoc_middle] = ACTIONS(819), + [sym__heredoc_end] = ACTIONS(819), + [sym_file_descriptor] = ACTIONS(819), + [anon_sym_in] = ACTIONS(793), + [anon_sym_RPAREN] = ACTIONS(793), + [anon_sym_SEMI_SEMI] = ACTIONS(793), + [anon_sym_RBRACK] = ACTIONS(793), + [anon_sym_RBRACK_RBRACK] = ACTIONS(793), + [anon_sym_PIPE] = ACTIONS(793), + [anon_sym_PIPE_AMP] = ACTIONS(793), + [anon_sym_AMP_AMP] = ACTIONS(793), + [anon_sym_PIPE_PIPE] = ACTIONS(793), + [anon_sym_DQUOTE] = ACTIONS(793), + [sym__quoted_chars] = ACTIONS(793), + [sym_single_quoted_argument] = ACTIONS(793), + [anon_sym_DOLLAR] = ACTIONS(793), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(793), + [anon_sym_RBRACE] = ACTIONS(793), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(793), + [anon_sym_LT] = ACTIONS(793), + [anon_sym_GT] = ACTIONS(793), + [anon_sym_GT_GT] = ACTIONS(793), + [anon_sym_AMP_GT] = ACTIONS(793), + [anon_sym_AMP_GT_GT] = ACTIONS(793), + [anon_sym_LT_AMP] = ACTIONS(793), + [anon_sym_GT_AMP] = ACTIONS(793), + [anon_sym_LT_LT] = ACTIONS(793), + [anon_sym_LT_LT_DASH] = ACTIONS(793), + [sym_leading_word] = ACTIONS(793), + [sym_word] = ACTIONS(793), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(793), + [anon_sym_LF] = ACTIONS(793), + }, + [382] = { + [anon_sym_esac] = ACTIONS(1269), + [anon_sym_DQUOTE] = ACTIONS(1272), + [sym_single_quoted_argument] = ACTIONS(1269), + [anon_sym_DOLLAR] = ACTIONS(1269), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(1272), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(1272), + [sym_word] = ACTIONS(1275), + [sym_comment] = ACTIONS(71), + }, + [383] = { + [anon_sym_SEMI_SEMI] = ACTIONS(1278), + [anon_sym_PIPE] = ACTIONS(1278), + [anon_sym_PIPE_AMP] = ACTIONS(1278), + [anon_sym_AMP_AMP] = ACTIONS(1278), + [anon_sym_PIPE_PIPE] = ACTIONS(1278), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1278), + [anon_sym_LF] = ACTIONS(1278), + }, + [384] = { + [anon_sym_fi] = ACTIONS(1281), + [sym_comment] = ACTIONS(71), + }, + [385] = { + [anon_sym_SEMI_SEMI] = ACTIONS(1283), + [anon_sym_PIPE] = ACTIONS(1283), + [anon_sym_PIPE_AMP] = ACTIONS(1283), + [anon_sym_AMP_AMP] = ACTIONS(1283), + [anon_sym_PIPE_PIPE] = ACTIONS(1283), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1283), + [anon_sym_LF] = ACTIONS(1283), + }, + [386] = { + [sym_expansion] = STATE(62), + [sym_operator_expansion] = STATE(62), + [sym_command_substitution] = STATE(62), + [aux_sym_quoted_argument_repeat1] = STATE(406), + [anon_sym_DQUOTE] = ACTIONS(1288), + [sym__quoted_chars] = ACTIONS(183), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), + }, + [387] = { + [sym_file_descriptor] = ACTIONS(407), + [anon_sym_RPAREN] = ACTIONS(409), + [anon_sym_SEMI_SEMI] = ACTIONS(409), + [anon_sym_RBRACK] = ACTIONS(409), + [anon_sym_RBRACK_RBRACK] = ACTIONS(409), + [anon_sym_PIPE] = ACTIONS(409), + [anon_sym_PIPE_AMP] = ACTIONS(409), + [anon_sym_AMP_AMP] = ACTIONS(409), + [anon_sym_PIPE_PIPE] = ACTIONS(409), + [anon_sym_DQUOTE] = ACTIONS(409), + [sym_single_quoted_argument] = ACTIONS(409), + [anon_sym_DOLLAR] = ACTIONS(409), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(409), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(409), + [anon_sym_LT] = ACTIONS(409), + [anon_sym_GT] = ACTIONS(409), + [anon_sym_GT_GT] = ACTIONS(409), + [anon_sym_AMP_GT] = ACTIONS(409), + [anon_sym_AMP_GT_GT] = ACTIONS(409), + [anon_sym_LT_AMP] = ACTIONS(409), + [anon_sym_GT_AMP] = ACTIONS(409), + [anon_sym_LT_LT] = ACTIONS(409), + [anon_sym_LT_LT_DASH] = ACTIONS(409), + [sym_word] = ACTIONS(409), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(409), + [anon_sym_LF] = ACTIONS(409), + }, + [388] = { + [sym_word] = ACTIONS(1290), + [sym_comment] = ACTIONS(71), + }, + [389] = { + [sym_leading_word] = ACTIONS(1292), + [sym_comment] = ACTIONS(71), + }, + [390] = { + [sym_command] = STATE(409), + [sym_environment_variable_assignment] = STATE(14), + [sym_file_redirect] = STATE(14), + [aux_sym_command_repeat1] = STATE(73), + [sym_file_descriptor] = ACTIONS(75), + [anon_sym_LT] = ACTIONS(89), + [anon_sym_GT] = ACTIONS(89), + [anon_sym_GT_GT] = ACTIONS(89), + [anon_sym_AMP_GT] = ACTIONS(89), + [anon_sym_AMP_GT_GT] = ACTIONS(89), + [anon_sym_LT_AMP] = ACTIONS(89), + [anon_sym_GT_AMP] = ACTIONS(89), + [sym_leading_word] = ACTIONS(199), + [sym_comment] = ACTIONS(71), + }, + [391] = { + [sym_file_descriptor] = ACTIONS(413), + [anon_sym_RPAREN] = ACTIONS(415), + [anon_sym_SEMI_SEMI] = ACTIONS(415), + [anon_sym_RBRACK] = ACTIONS(415), + [anon_sym_RBRACK_RBRACK] = ACTIONS(415), + [anon_sym_PIPE] = ACTIONS(415), + [anon_sym_PIPE_AMP] = ACTIONS(415), + [anon_sym_AMP_AMP] = ACTIONS(415), + [anon_sym_PIPE_PIPE] = ACTIONS(415), + [anon_sym_DQUOTE] = ACTIONS(415), + [sym_single_quoted_argument] = ACTIONS(415), + [anon_sym_DOLLAR] = ACTIONS(415), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(415), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(415), + [anon_sym_LT] = ACTIONS(415), + [anon_sym_GT] = ACTIONS(415), + [anon_sym_GT_GT] = ACTIONS(415), + [anon_sym_AMP_GT] = ACTIONS(415), + [anon_sym_AMP_GT_GT] = ACTIONS(415), + [anon_sym_LT_AMP] = ACTIONS(415), + [anon_sym_GT_AMP] = ACTIONS(415), + [anon_sym_LT_LT] = ACTIONS(415), + [anon_sym_LT_LT_DASH] = ACTIONS(415), + [sym_word] = ACTIONS(415), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(415), + [anon_sym_LF] = ACTIONS(415), + }, + [392] = { + [sym_file_redirect] = STATE(113), + [sym_heredoc_redirect] = STATE(113), + [sym_file_descriptor] = ACTIONS(133), + [anon_sym_RPAREN] = ACTIONS(1294), + [anon_sym_SEMI_SEMI] = ACTIONS(1294), + [anon_sym_PIPE] = ACTIONS(1294), + [anon_sym_PIPE_AMP] = ACTIONS(1294), + [anon_sym_AMP_AMP] = ACTIONS(1294), + [anon_sym_PIPE_PIPE] = ACTIONS(1294), + [anon_sym_LT] = ACTIONS(141), + [anon_sym_GT] = ACTIONS(141), + [anon_sym_GT_GT] = ACTIONS(141), + [anon_sym_AMP_GT] = ACTIONS(141), + [anon_sym_AMP_GT_GT] = ACTIONS(141), + [anon_sym_LT_AMP] = ACTIONS(141), + [anon_sym_GT_AMP] = ACTIONS(141), + [anon_sym_LT_LT] = ACTIONS(143), + [anon_sym_LT_LT_DASH] = ACTIONS(143), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1294), + [anon_sym_LF] = ACTIONS(1294), + }, + [393] = { + [sym_file_descriptor] = ACTIONS(583), + [anon_sym_in] = ACTIONS(519), + [anon_sym_RPAREN] = ACTIONS(519), + [anon_sym_SEMI_SEMI] = ACTIONS(519), + [anon_sym_RBRACK] = ACTIONS(519), + [anon_sym_RBRACK_RBRACK] = ACTIONS(519), + [anon_sym_PIPE] = ACTIONS(519), + [anon_sym_PIPE_AMP] = ACTIONS(519), + [anon_sym_AMP_AMP] = ACTIONS(519), + [anon_sym_PIPE_PIPE] = ACTIONS(519), + [anon_sym_DQUOTE] = ACTIONS(519), + [sym_single_quoted_argument] = ACTIONS(519), + [anon_sym_DOLLAR] = ACTIONS(519), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(519), + [anon_sym_RBRACE] = ACTIONS(519), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(519), + [anon_sym_LT] = ACTIONS(519), + [anon_sym_GT] = ACTIONS(519), + [anon_sym_GT_GT] = ACTIONS(519), + [anon_sym_AMP_GT] = ACTIONS(519), + [anon_sym_AMP_GT_GT] = ACTIONS(519), + [anon_sym_LT_AMP] = ACTIONS(519), + [anon_sym_GT_AMP] = ACTIONS(519), + [anon_sym_LT_LT] = ACTIONS(519), + [anon_sym_LT_LT_DASH] = ACTIONS(519), + [sym_leading_word] = ACTIONS(519), + [sym_word] = ACTIONS(519), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(519), + [anon_sym_LF] = ACTIONS(519), + }, + [394] = { + [sym__heredoc_middle] = ACTIONS(823), + [sym__heredoc_end] = ACTIONS(823), + [sym_file_descriptor] = ACTIONS(823), + [anon_sym_in] = ACTIONS(795), + [anon_sym_RPAREN] = ACTIONS(795), + [anon_sym_SEMI_SEMI] = ACTIONS(795), + [anon_sym_RBRACK] = ACTIONS(795), + [anon_sym_RBRACK_RBRACK] = ACTIONS(795), + [anon_sym_PIPE] = ACTIONS(795), + [anon_sym_PIPE_AMP] = ACTIONS(795), + [anon_sym_AMP_AMP] = ACTIONS(795), + [anon_sym_PIPE_PIPE] = ACTIONS(795), + [anon_sym_DQUOTE] = ACTIONS(795), + [sym__quoted_chars] = ACTIONS(795), + [sym_single_quoted_argument] = ACTIONS(795), + [anon_sym_DOLLAR] = ACTIONS(795), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(795), + [anon_sym_RBRACE] = ACTIONS(795), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(795), + [anon_sym_LT] = ACTIONS(795), + [anon_sym_GT] = ACTIONS(795), + [anon_sym_GT_GT] = ACTIONS(795), + [anon_sym_AMP_GT] = ACTIONS(795), + [anon_sym_AMP_GT_GT] = ACTIONS(795), + [anon_sym_LT_AMP] = ACTIONS(795), + [anon_sym_GT_AMP] = ACTIONS(795), + [anon_sym_LT_LT] = ACTIONS(795), + [anon_sym_LT_LT_DASH] = ACTIONS(795), + [sym_leading_word] = ACTIONS(795), + [sym_word] = ACTIONS(795), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(795), + [anon_sym_LF] = ACTIONS(795), + }, + [395] = { + [sym__heredoc_middle] = ACTIONS(591), + [sym__heredoc_end] = ACTIONS(591), + [sym_file_descriptor] = ACTIONS(591), + [anon_sym_in] = ACTIONS(537), + [anon_sym_RPAREN] = ACTIONS(537), + [anon_sym_SEMI_SEMI] = ACTIONS(537), + [anon_sym_RBRACK] = ACTIONS(537), + [anon_sym_RBRACK_RBRACK] = ACTIONS(537), + [anon_sym_PIPE] = ACTIONS(537), + [anon_sym_PIPE_AMP] = ACTIONS(537), + [anon_sym_AMP_AMP] = ACTIONS(537), + [anon_sym_PIPE_PIPE] = ACTIONS(537), + [anon_sym_DQUOTE] = ACTIONS(537), + [sym__quoted_chars] = ACTIONS(537), + [sym_single_quoted_argument] = ACTIONS(537), + [anon_sym_DOLLAR] = ACTIONS(537), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(537), + [anon_sym_RBRACE] = ACTIONS(537), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(537), + [anon_sym_LT] = ACTIONS(537), + [anon_sym_GT] = ACTIONS(537), + [anon_sym_GT_GT] = ACTIONS(537), + [anon_sym_AMP_GT] = ACTIONS(537), + [anon_sym_AMP_GT_GT] = ACTIONS(537), + [anon_sym_LT_AMP] = ACTIONS(537), + [anon_sym_GT_AMP] = ACTIONS(537), + [anon_sym_LT_LT] = ACTIONS(537), + [anon_sym_LT_LT_DASH] = ACTIONS(537), + [sym_leading_word] = ACTIONS(537), + [sym_word] = ACTIONS(537), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(537), + [anon_sym_LF] = ACTIONS(537), + }, + [396] = { + [sym_file_descriptor] = ACTIONS(385), + [anon_sym_RPAREN] = ACTIONS(343), + [anon_sym_SEMI_SEMI] = ACTIONS(343), + [anon_sym_PIPE] = ACTIONS(343), + [anon_sym_PIPE_AMP] = ACTIONS(343), + [anon_sym_AMP_AMP] = ACTIONS(343), + [anon_sym_PIPE_PIPE] = ACTIONS(343), + [anon_sym_LT] = ACTIONS(343), + [anon_sym_GT] = ACTIONS(343), + [anon_sym_GT_GT] = ACTIONS(343), + [anon_sym_AMP_GT] = ACTIONS(343), + [anon_sym_AMP_GT_GT] = ACTIONS(343), + [anon_sym_LT_AMP] = ACTIONS(343), + [anon_sym_GT_AMP] = ACTIONS(343), + [anon_sym_LT_LT] = ACTIONS(343), + [anon_sym_LT_LT_DASH] = ACTIONS(343), + [sym_leading_word] = ACTIONS(343), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(343), + [anon_sym_LF] = ACTIONS(343), + }, + [397] = { + [sym_expansion] = STATE(134), + [sym_operator_expansion] = STATE(134), + [sym_command_substitution] = STATE(134), + [anon_sym_DQUOTE] = ACTIONS(1297), + [sym__quoted_chars] = ACTIONS(355), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), + }, + [398] = { + [sym_file_descriptor] = ACTIONS(391), + [anon_sym_RPAREN] = ACTIONS(361), + [anon_sym_SEMI_SEMI] = ACTIONS(361), + [anon_sym_PIPE] = ACTIONS(361), + [anon_sym_PIPE_AMP] = ACTIONS(361), + [anon_sym_AMP_AMP] = ACTIONS(361), + [anon_sym_PIPE_PIPE] = ACTIONS(361), + [anon_sym_LT] = ACTIONS(361), + [anon_sym_GT] = ACTIONS(361), + [anon_sym_GT_GT] = ACTIONS(361), + [anon_sym_AMP_GT] = ACTIONS(361), + [anon_sym_AMP_GT_GT] = ACTIONS(361), + [anon_sym_LT_AMP] = ACTIONS(361), + [anon_sym_GT_AMP] = ACTIONS(361), + [anon_sym_LT_LT] = ACTIONS(361), + [anon_sym_LT_LT_DASH] = ACTIONS(361), + [sym_leading_word] = ACTIONS(361), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(361), + [anon_sym_LF] = ACTIONS(361), + }, + [399] = { + [anon_sym_EQ] = ACTIONS(1299), + [anon_sym_COLON] = ACTIONS(1301), + [anon_sym_COLON_QMARK] = ACTIONS(1299), + [anon_sym_RBRACE] = ACTIONS(1303), + [sym_comment] = ACTIONS(71), + }, + [400] = { + [anon_sym_RPAREN] = ACTIONS(1305), + [sym_comment] = ACTIONS(71), + }, + [401] = { + [sym_case_item] = STATE(199), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [aux_sym_case_statement_repeat1] = STATE(415), + [anon_sym_esac] = ACTIONS(1307), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(527), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(529), + [sym_comment] = ACTIONS(71), + }, + [402] = { + [sym_file_descriptor] = ACTIONS(321), + [anon_sym_RPAREN] = ACTIONS(325), + [anon_sym_SEMI_SEMI] = ACTIONS(325), + [anon_sym_PIPE] = ACTIONS(325), + [anon_sym_PIPE_AMP] = ACTIONS(325), + [anon_sym_AMP_AMP] = ACTIONS(325), + [anon_sym_PIPE_PIPE] = ACTIONS(325), + [anon_sym_LT] = ACTIONS(325), + [anon_sym_GT] = ACTIONS(325), + [anon_sym_GT_GT] = ACTIONS(325), + [anon_sym_AMP_GT] = ACTIONS(325), + [anon_sym_AMP_GT_GT] = ACTIONS(325), + [anon_sym_LT_AMP] = ACTIONS(325), + [anon_sym_GT_AMP] = ACTIONS(325), + [anon_sym_LT_LT] = ACTIONS(325), + [anon_sym_LT_LT_DASH] = ACTIONS(325), + [sym_leading_word] = ACTIONS(325), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(325), + [anon_sym_LF] = ACTIONS(325), + }, + [403] = { + [sym_file_descriptor] = ACTIONS(327), + [anon_sym_RPAREN] = ACTIONS(331), + [anon_sym_SEMI_SEMI] = ACTIONS(331), + [anon_sym_PIPE] = ACTIONS(331), + [anon_sym_PIPE_AMP] = ACTIONS(331), + [anon_sym_AMP_AMP] = ACTIONS(331), + [anon_sym_PIPE_PIPE] = ACTIONS(331), + [anon_sym_LT] = ACTIONS(331), + [anon_sym_GT] = ACTIONS(331), + [anon_sym_GT_GT] = ACTIONS(331), + [anon_sym_AMP_GT] = ACTIONS(331), + [anon_sym_AMP_GT_GT] = ACTIONS(331), + [anon_sym_LT_AMP] = ACTIONS(331), + [anon_sym_GT_AMP] = ACTIONS(331), + [anon_sym_LT_LT] = ACTIONS(331), + [anon_sym_LT_LT_DASH] = ACTIONS(331), + [sym_leading_word] = ACTIONS(331), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(331), + [anon_sym_LF] = ACTIONS(331), + }, + [404] = { + [anon_sym_SEMI_SEMI] = ACTIONS(1309), + [anon_sym_PIPE] = ACTIONS(1309), + [anon_sym_PIPE_AMP] = ACTIONS(1309), + [anon_sym_AMP_AMP] = ACTIONS(1309), + [anon_sym_PIPE_PIPE] = ACTIONS(1309), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1309), + [anon_sym_LF] = ACTIONS(1309), + }, + [405] = { + [sym_file_descriptor] = ACTIONS(385), + [anon_sym_RPAREN] = ACTIONS(343), + [anon_sym_SEMI_SEMI] = ACTIONS(343), + [anon_sym_RBRACK] = ACTIONS(343), + [anon_sym_RBRACK_RBRACK] = ACTIONS(343), + [anon_sym_PIPE] = ACTIONS(343), + [anon_sym_PIPE_AMP] = ACTIONS(343), + [anon_sym_AMP_AMP] = ACTIONS(343), + [anon_sym_PIPE_PIPE] = ACTIONS(343), + [anon_sym_DQUOTE] = ACTIONS(343), + [sym_single_quoted_argument] = ACTIONS(343), + [anon_sym_DOLLAR] = ACTIONS(343), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(343), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(343), + [anon_sym_LT] = ACTIONS(343), + [anon_sym_GT] = ACTIONS(343), + [anon_sym_GT_GT] = ACTIONS(343), + [anon_sym_AMP_GT] = ACTIONS(343), + [anon_sym_AMP_GT_GT] = ACTIONS(343), + [anon_sym_LT_AMP] = ACTIONS(343), + [anon_sym_GT_AMP] = ACTIONS(343), + [anon_sym_LT_LT] = ACTIONS(343), + [anon_sym_LT_LT_DASH] = ACTIONS(343), + [sym_word] = ACTIONS(343), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(343), + [anon_sym_LF] = ACTIONS(343), + }, + [406] = { + [sym_expansion] = STATE(134), + [sym_operator_expansion] = STATE(134), + [sym_command_substitution] = STATE(134), + [anon_sym_DQUOTE] = ACTIONS(1312), + [sym__quoted_chars] = ACTIONS(355), + [anon_sym_DOLLAR] = ACTIONS(185), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(187), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(189), + [sym_comment] = ACTIONS(145), + }, + [407] = { + [sym_file_descriptor] = ACTIONS(391), + [anon_sym_RPAREN] = ACTIONS(361), + [anon_sym_SEMI_SEMI] = ACTIONS(361), + [anon_sym_RBRACK] = ACTIONS(361), + [anon_sym_RBRACK_RBRACK] = ACTIONS(361), + [anon_sym_PIPE] = ACTIONS(361), + [anon_sym_PIPE_AMP] = ACTIONS(361), + [anon_sym_AMP_AMP] = ACTIONS(361), + [anon_sym_PIPE_PIPE] = ACTIONS(361), + [anon_sym_DQUOTE] = ACTIONS(361), + [sym_single_quoted_argument] = ACTIONS(361), + [anon_sym_DOLLAR] = ACTIONS(361), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(361), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(361), + [anon_sym_LT] = ACTIONS(361), + [anon_sym_GT] = ACTIONS(361), + [anon_sym_GT_GT] = ACTIONS(361), + [anon_sym_AMP_GT] = ACTIONS(361), + [anon_sym_AMP_GT_GT] = ACTIONS(361), + [anon_sym_LT_AMP] = ACTIONS(361), + [anon_sym_GT_AMP] = ACTIONS(361), + [anon_sym_LT_LT] = ACTIONS(361), + [anon_sym_LT_LT_DASH] = ACTIONS(361), + [sym_word] = ACTIONS(361), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(361), + [anon_sym_LF] = ACTIONS(361), + }, + [408] = { + [anon_sym_EQ] = ACTIONS(1314), + [anon_sym_COLON] = ACTIONS(1316), + [anon_sym_COLON_QMARK] = ACTIONS(1314), + [anon_sym_RBRACE] = ACTIONS(1318), + [sym_comment] = ACTIONS(71), + }, + [409] = { + [anon_sym_RPAREN] = ACTIONS(1320), + [sym_comment] = ACTIONS(71), + }, + [410] = { + [sym_file_descriptor] = ACTIONS(583), + [anon_sym_RPAREN] = ACTIONS(519), + [anon_sym_SEMI_SEMI] = ACTIONS(519), + [anon_sym_PIPE] = ACTIONS(519), + [anon_sym_PIPE_AMP] = ACTIONS(519), + [anon_sym_AMP_AMP] = ACTIONS(519), + [anon_sym_PIPE_PIPE] = ACTIONS(519), + [anon_sym_LT] = ACTIONS(519), + [anon_sym_GT] = ACTIONS(519), + [anon_sym_GT_GT] = ACTIONS(519), + [anon_sym_AMP_GT] = ACTIONS(519), + [anon_sym_AMP_GT_GT] = ACTIONS(519), + [anon_sym_LT_AMP] = ACTIONS(519), + [anon_sym_GT_AMP] = ACTIONS(519), + [anon_sym_LT_LT] = ACTIONS(519), + [anon_sym_LT_LT_DASH] = ACTIONS(519), + [sym_leading_word] = ACTIONS(519), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(519), + [anon_sym_LF] = ACTIONS(519), + }, + [411] = { + [sym_quoted_argument] = STATE(420), + [sym_expansion] = STATE(420), + [sym_operator_expansion] = STATE(420), + [sym_command_substitution] = STATE(420), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(1322), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(1324), + [sym_comment] = ACTIONS(71), + }, + [412] = { + [sym_file_descriptor] = ACTIONS(591), + [anon_sym_RPAREN] = ACTIONS(537), + [anon_sym_SEMI_SEMI] = ACTIONS(537), + [anon_sym_PIPE] = ACTIONS(537), + [anon_sym_PIPE_AMP] = ACTIONS(537), + [anon_sym_AMP_AMP] = ACTIONS(537), + [anon_sym_PIPE_PIPE] = ACTIONS(537), + [anon_sym_LT] = ACTIONS(537), + [anon_sym_GT] = ACTIONS(537), + [anon_sym_GT_GT] = ACTIONS(537), + [anon_sym_AMP_GT] = ACTIONS(537), + [anon_sym_AMP_GT_GT] = ACTIONS(537), + [anon_sym_LT_AMP] = ACTIONS(537), + [anon_sym_GT_AMP] = ACTIONS(537), + [anon_sym_LT_LT] = ACTIONS(537), + [anon_sym_LT_LT_DASH] = ACTIONS(537), + [sym_leading_word] = ACTIONS(537), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(537), + [anon_sym_LF] = ACTIONS(537), + }, + [413] = { + [sym_file_descriptor] = ACTIONS(595), + [anon_sym_RPAREN] = ACTIONS(575), + [anon_sym_SEMI_SEMI] = ACTIONS(575), + [anon_sym_PIPE] = ACTIONS(575), + [anon_sym_PIPE_AMP] = ACTIONS(575), + [anon_sym_AMP_AMP] = ACTIONS(575), + [anon_sym_PIPE_PIPE] = ACTIONS(575), + [anon_sym_LT] = ACTIONS(575), + [anon_sym_GT] = ACTIONS(575), + [anon_sym_GT_GT] = ACTIONS(575), + [anon_sym_AMP_GT] = ACTIONS(575), + [anon_sym_AMP_GT_GT] = ACTIONS(575), + [anon_sym_LT_AMP] = ACTIONS(575), + [anon_sym_GT_AMP] = ACTIONS(575), + [anon_sym_LT_LT] = ACTIONS(575), + [anon_sym_LT_LT_DASH] = ACTIONS(575), + [sym_leading_word] = ACTIONS(575), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(575), + [anon_sym_LF] = ACTIONS(575), + }, + [414] = { + [anon_sym_SEMI_SEMI] = ACTIONS(1326), + [anon_sym_PIPE] = ACTIONS(1326), + [anon_sym_PIPE_AMP] = ACTIONS(1326), + [anon_sym_AMP_AMP] = ACTIONS(1326), + [anon_sym_PIPE_PIPE] = ACTIONS(1326), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1326), + [anon_sym_LF] = ACTIONS(1326), + }, + [415] = { + [sym_case_item] = STATE(253), + [sym_quoted_argument] = STATE(197), + [sym_expansion] = STATE(197), + [sym_operator_expansion] = STATE(197), + [sym_command_substitution] = STATE(197), + [anon_sym_esac] = ACTIONS(1329), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(527), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(529), + [sym_comment] = ACTIONS(71), + }, + [416] = { + [sym_file_descriptor] = ACTIONS(583), + [anon_sym_RPAREN] = ACTIONS(519), + [anon_sym_SEMI_SEMI] = ACTIONS(519), + [anon_sym_RBRACK] = ACTIONS(519), + [anon_sym_RBRACK_RBRACK] = ACTIONS(519), + [anon_sym_PIPE] = ACTIONS(519), + [anon_sym_PIPE_AMP] = ACTIONS(519), + [anon_sym_AMP_AMP] = ACTIONS(519), + [anon_sym_PIPE_PIPE] = ACTIONS(519), + [anon_sym_DQUOTE] = ACTIONS(519), + [sym_single_quoted_argument] = ACTIONS(519), + [anon_sym_DOLLAR] = ACTIONS(519), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(519), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(519), + [anon_sym_LT] = ACTIONS(519), + [anon_sym_GT] = ACTIONS(519), + [anon_sym_GT_GT] = ACTIONS(519), + [anon_sym_AMP_GT] = ACTIONS(519), + [anon_sym_AMP_GT_GT] = ACTIONS(519), + [anon_sym_LT_AMP] = ACTIONS(519), + [anon_sym_GT_AMP] = ACTIONS(519), + [anon_sym_LT_LT] = ACTIONS(519), + [anon_sym_LT_LT_DASH] = ACTIONS(519), + [sym_word] = ACTIONS(519), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(519), + [anon_sym_LF] = ACTIONS(519), + }, + [417] = { + [sym_quoted_argument] = STATE(423), + [sym_expansion] = STATE(423), + [sym_operator_expansion] = STATE(423), + [sym_command_substitution] = STATE(423), + [anon_sym_DQUOTE] = ACTIONS(109), + [sym_single_quoted_argument] = ACTIONS(1331), + [anon_sym_DOLLAR] = ACTIONS(113), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(115), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(117), + [sym_word] = ACTIONS(1333), + [sym_comment] = ACTIONS(71), + }, + [418] = { + [sym_file_descriptor] = ACTIONS(591), + [anon_sym_RPAREN] = ACTIONS(537), + [anon_sym_SEMI_SEMI] = ACTIONS(537), + [anon_sym_RBRACK] = ACTIONS(537), + [anon_sym_RBRACK_RBRACK] = ACTIONS(537), + [anon_sym_PIPE] = ACTIONS(537), + [anon_sym_PIPE_AMP] = ACTIONS(537), + [anon_sym_AMP_AMP] = ACTIONS(537), + [anon_sym_PIPE_PIPE] = ACTIONS(537), + [anon_sym_DQUOTE] = ACTIONS(537), + [sym_single_quoted_argument] = ACTIONS(537), + [anon_sym_DOLLAR] = ACTIONS(537), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(537), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(537), + [anon_sym_LT] = ACTIONS(537), + [anon_sym_GT] = ACTIONS(537), + [anon_sym_GT_GT] = ACTIONS(537), + [anon_sym_AMP_GT] = ACTIONS(537), + [anon_sym_AMP_GT_GT] = ACTIONS(537), + [anon_sym_LT_AMP] = ACTIONS(537), + [anon_sym_GT_AMP] = ACTIONS(537), + [anon_sym_LT_LT] = ACTIONS(537), + [anon_sym_LT_LT_DASH] = ACTIONS(537), + [sym_word] = ACTIONS(537), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(537), + [anon_sym_LF] = ACTIONS(537), + }, + [419] = { + [sym_file_descriptor] = ACTIONS(595), + [anon_sym_RPAREN] = ACTIONS(575), + [anon_sym_SEMI_SEMI] = ACTIONS(575), + [anon_sym_RBRACK] = ACTIONS(575), + [anon_sym_RBRACK_RBRACK] = ACTIONS(575), + [anon_sym_PIPE] = ACTIONS(575), + [anon_sym_PIPE_AMP] = ACTIONS(575), + [anon_sym_AMP_AMP] = ACTIONS(575), + [anon_sym_PIPE_PIPE] = ACTIONS(575), + [anon_sym_DQUOTE] = ACTIONS(575), + [sym_single_quoted_argument] = ACTIONS(575), + [anon_sym_DOLLAR] = ACTIONS(575), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(575), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(575), + [anon_sym_LT] = ACTIONS(575), + [anon_sym_GT] = ACTIONS(575), + [anon_sym_GT_GT] = ACTIONS(575), + [anon_sym_AMP_GT] = ACTIONS(575), + [anon_sym_AMP_GT_GT] = ACTIONS(575), + [anon_sym_LT_AMP] = ACTIONS(575), + [anon_sym_GT_AMP] = ACTIONS(575), + [anon_sym_LT_LT] = ACTIONS(575), + [anon_sym_LT_LT_DASH] = ACTIONS(575), + [sym_word] = ACTIONS(575), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(575), + [anon_sym_LF] = ACTIONS(575), + }, + [420] = { + [anon_sym_RBRACE] = ACTIONS(1335), + [sym_comment] = ACTIONS(71), + }, + [421] = { + [anon_sym_RBRACE] = ACTIONS(1337), + [sym_comment] = ACTIONS(71), + }, + [422] = { + [anon_sym_SEMI_SEMI] = ACTIONS(1339), + [anon_sym_PIPE] = ACTIONS(1339), + [anon_sym_PIPE_AMP] = ACTIONS(1339), + [anon_sym_AMP_AMP] = ACTIONS(1339), + [anon_sym_PIPE_PIPE] = ACTIONS(1339), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(1339), + [anon_sym_LF] = ACTIONS(1339), + }, + [423] = { + [anon_sym_RBRACE] = ACTIONS(1342), + [sym_comment] = ACTIONS(71), + }, + [424] = { + [anon_sym_RBRACE] = ACTIONS(1344), + [sym_comment] = ACTIONS(71), + }, + [425] = { + [sym_file_descriptor] = ACTIONS(819), + [anon_sym_RPAREN] = ACTIONS(793), + [anon_sym_SEMI_SEMI] = ACTIONS(793), + [anon_sym_PIPE] = ACTIONS(793), + [anon_sym_PIPE_AMP] = ACTIONS(793), + [anon_sym_AMP_AMP] = ACTIONS(793), + [anon_sym_PIPE_PIPE] = ACTIONS(793), + [anon_sym_LT] = ACTIONS(793), + [anon_sym_GT] = ACTIONS(793), + [anon_sym_GT_GT] = ACTIONS(793), + [anon_sym_AMP_GT] = ACTIONS(793), + [anon_sym_AMP_GT_GT] = ACTIONS(793), + [anon_sym_LT_AMP] = ACTIONS(793), + [anon_sym_GT_AMP] = ACTIONS(793), + [anon_sym_LT_LT] = ACTIONS(793), + [anon_sym_LT_LT_DASH] = ACTIONS(793), + [sym_leading_word] = ACTIONS(793), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(793), + [anon_sym_LF] = ACTIONS(793), + }, + [426] = { + [sym_file_descriptor] = ACTIONS(823), + [anon_sym_RPAREN] = ACTIONS(795), + [anon_sym_SEMI_SEMI] = ACTIONS(795), + [anon_sym_PIPE] = ACTIONS(795), + [anon_sym_PIPE_AMP] = ACTIONS(795), + [anon_sym_AMP_AMP] = ACTIONS(795), + [anon_sym_PIPE_PIPE] = ACTIONS(795), + [anon_sym_LT] = ACTIONS(795), + [anon_sym_GT] = ACTIONS(795), + [anon_sym_GT_GT] = ACTIONS(795), + [anon_sym_AMP_GT] = ACTIONS(795), + [anon_sym_AMP_GT_GT] = ACTIONS(795), + [anon_sym_LT_AMP] = ACTIONS(795), + [anon_sym_GT_AMP] = ACTIONS(795), + [anon_sym_LT_LT] = ACTIONS(795), + [anon_sym_LT_LT_DASH] = ACTIONS(795), + [sym_leading_word] = ACTIONS(795), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(795), + [anon_sym_LF] = ACTIONS(795), + }, + [427] = { + [sym_file_descriptor] = ACTIONS(819), + [anon_sym_RPAREN] = ACTIONS(793), + [anon_sym_SEMI_SEMI] = ACTIONS(793), + [anon_sym_RBRACK] = ACTIONS(793), + [anon_sym_RBRACK_RBRACK] = ACTIONS(793), + [anon_sym_PIPE] = ACTIONS(793), + [anon_sym_PIPE_AMP] = ACTIONS(793), + [anon_sym_AMP_AMP] = ACTIONS(793), + [anon_sym_PIPE_PIPE] = ACTIONS(793), + [anon_sym_DQUOTE] = ACTIONS(793), + [sym_single_quoted_argument] = ACTIONS(793), + [anon_sym_DOLLAR] = ACTIONS(793), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(793), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(793), + [anon_sym_LT] = ACTIONS(793), + [anon_sym_GT] = ACTIONS(793), + [anon_sym_GT_GT] = ACTIONS(793), + [anon_sym_AMP_GT] = ACTIONS(793), + [anon_sym_AMP_GT_GT] = ACTIONS(793), + [anon_sym_LT_AMP] = ACTIONS(793), + [anon_sym_GT_AMP] = ACTIONS(793), + [anon_sym_LT_LT] = ACTIONS(793), + [anon_sym_LT_LT_DASH] = ACTIONS(793), + [sym_word] = ACTIONS(793), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(793), + [anon_sym_LF] = ACTIONS(793), + }, + [428] = { + [sym_file_descriptor] = ACTIONS(823), + [anon_sym_RPAREN] = ACTIONS(795), + [anon_sym_SEMI_SEMI] = ACTIONS(795), + [anon_sym_RBRACK] = ACTIONS(795), + [anon_sym_RBRACK_RBRACK] = ACTIONS(795), + [anon_sym_PIPE] = ACTIONS(795), + [anon_sym_PIPE_AMP] = ACTIONS(795), + [anon_sym_AMP_AMP] = ACTIONS(795), + [anon_sym_PIPE_PIPE] = ACTIONS(795), + [anon_sym_DQUOTE] = ACTIONS(795), + [sym_single_quoted_argument] = ACTIONS(795), + [anon_sym_DOLLAR] = ACTIONS(795), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(795), + [anon_sym_DOLLAR_LPAREN] = ACTIONS(795), + [anon_sym_LT] = ACTIONS(795), + [anon_sym_GT] = ACTIONS(795), + [anon_sym_GT_GT] = ACTIONS(795), + [anon_sym_AMP_GT] = ACTIONS(795), + [anon_sym_AMP_GT_GT] = ACTIONS(795), + [anon_sym_LT_AMP] = ACTIONS(795), + [anon_sym_GT_AMP] = ACTIONS(795), + [anon_sym_LT_LT] = ACTIONS(795), + [anon_sym_LT_LT_DASH] = ACTIONS(795), + [sym_word] = ACTIONS(795), + [sym_comment] = ACTIONS(145), + [anon_sym_SEMI] = ACTIONS(795), + [anon_sym_LF] = ACTIONS(795), }, }; static TSParseActionEntry ts_parse_actions[] = { [0] = {.count = 0, .reusable = false, .depends_on_lookahead = false}, - [1] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(96), - [3] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(97), - [5] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(300), - [7] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(301), - [9] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(0), - [11] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(2), - [13] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(51), - [15] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(284), - [17] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(3), - [19] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(285), - [21] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(286), - [23] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(111), - [25] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(112), - [27] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(4), - [29] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(287), - [31] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(288), - [33] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(289), - [35] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(5), - [37] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(75), - [39] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(75), - [41] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(46), - [43] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(47), - [45] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(290), - [47] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(291), - [49] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(292), - [51] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(293), - [53] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(294), - [55] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(294), - [57] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(295), - [59] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(296), - [61] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(297), - [63] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(297), - [65] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(41), - [67] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(41), - [69] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(298), + [1] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(110), + [3] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(111), + [5] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(337), + [7] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(338), + [9] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(339), + [11] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(0), + [13] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(3), + [15] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(57), + [17] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(322), + [19] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(4), + [21] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(323), + [23] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(324), + [25] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(124), + [27] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(125), + [29] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(5), + [31] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(325), + [33] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(326), + [35] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(327), + [37] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(6), + [39] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(81), + [41] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(81), + [43] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(50), + [45] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(51), + [47] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(328), + [49] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(329), + [51] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(330), + [53] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(331), + [55] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(332), + [57] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(332), + [59] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(333), + [61] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(334), + [63] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(335), + [65] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(335), + [67] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, RECOVER(46), + [69] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(46), [71] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT_EXTRA(), - [73] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(299), - [75] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_program, 0), - [77] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(2), + [73] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, RECOVER(336), + [75] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(2), + [77] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_program, 0), [79] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(3), [81] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(4), [83] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(5), @@ -11828,497 +13206,563 @@ static TSParseActionEntry ts_parse_actions[] = { [87] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(7), [89] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(8), [91] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(9), - [93] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(21), - [95] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(22), - [97] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(23), - [99] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(24), - [101] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(25), - [103] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(26), - [105] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(27), - [107] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(28), - [109] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(29), - [111] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(30), - [113] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(31), - [115] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(32), - [117] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(35), - [119] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(36), - [121] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(37), - [123] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(37), - [125] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 1, .rename_sequence_id = 1), - [127] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(38), - [129] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(39), - [131] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(40), - [133] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(41), - [135] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(42), - [137] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT_EXTRA(), - [139] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, ACCEPT_INPUT(), - [141] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_program_repeat1, 1), - [143] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_program_repeat1, 1), - [145] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_program_repeat1, 1), - [147] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(45), - [149] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(46), - [151] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(47), - [153] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat1, 1), - [155] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_command_repeat1, 1), - [157] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_program, 1), - [159] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(49), - [161] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(51), - [163] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(53), - [165] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(54), - [167] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(55), - [169] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(56), - [171] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(57), - [173] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(58), - [175] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(59), - [177] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(61), - [179] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(62), - [181] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(63), - [183] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(64), - [185] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(65), - [187] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(68), - [189] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(69), - [191] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(70), - [193] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), - [195] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_bracket_command_repeat1, 1), - [197] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), - [199] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(72), - [201] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(73), - [203] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1, .rename_sequence_id = 2), - [205] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_bracket_command_repeat1, 1, .rename_sequence_id = 2), - [207] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1, .rename_sequence_id = 2), - [209] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(75), - [211] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(76), - [213] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(77), - [215] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_file_redirect, 2), - [217] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2), - [219] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_file_redirect, 2, .rename_sequence_id = 3), - [221] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2, .rename_sequence_id = 3), - [223] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(78), - [225] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(79), - [227] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 2, .rename_sequence_id = 4), - [229] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(80), - [231] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(81), - [233] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(82), - [235] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(83), - [237] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(84), - [239] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(85), - [241] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(88), - [243] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(89), - [245] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(90), - [247] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(91), - [249] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(92), - [251] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(93), - [253] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(94), - [255] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(95), - [257] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(96), - [259] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(97), - [261] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(99), - [263] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(99), - [265] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat2, 1), - [267] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym__terminated_statement, 2), - [269] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym__terminated_statement, 2), - [271] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym__terminated_statement, 2), - [273] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_program_repeat1, 2), - [275] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_program_repeat1, 2), - [277] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_program_repeat1, 2), - [279] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 2, .rename_sequence_id = 5), - [281] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(105), - [283] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(106), - [285] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_command_repeat1, 2), - [287] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat1, 2), - [289] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(108), - [291] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_while_statement, 3), - [293] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(110), - [295] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(111), - [297] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(112), - [299] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), - [301] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_quoted_argument_repeat1, 1), - [303] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_quoted_argument_repeat1, 1), - [305] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(117), - [307] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(118), - [309] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(120), - [311] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(121), - [313] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(122), - [315] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(123), - [317] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_expansion, 2, .rename_sequence_id = 6), - [319] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(124), - [321] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(124), - [323] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(125), - [325] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(126), - [327] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(127), - [329] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(128), - [331] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(129), - [333] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(132), - [335] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(133), - [337] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(134), - [339] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(135), - [341] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), - [343] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_quoted_argument, 2), - [345] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(136), - [347] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_expansion, 2, .rename_sequence_id = 6), - [349] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_expansion, 2, .rename_sequence_id = 6), - [351] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(137), - [353] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(137), - [355] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(138), - [357] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(139), - [359] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_bracket_command, 3), - [361] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 2), - [363] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_bracket_command_repeat1, 2), - [365] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 2), - [367] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 2, .rename_sequence_id = 7), - [369] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_bracket_command_repeat1, 2, .rename_sequence_id = 7), - [371] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 2, .rename_sequence_id = 7), - [373] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_file_redirect, 3), - [375] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 3), - [377] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_file_redirect, 3, .rename_sequence_id = 8), - [379] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 3, .rename_sequence_id = 8), - [381] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(140), - [383] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(142), - [385] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(143), - [387] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 3, .rename_sequence_id = 9), - [389] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(145), - [391] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(146), - [393] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(148), - [395] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 10), + [93] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(17), + [95] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(17), + [97] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(22), + [99] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(23), + [101] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(24), + [103] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(25), + [105] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(26), + [107] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(27), + [109] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(28), + [111] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(29), + [113] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(30), + [115] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(31), + [117] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(32), + [119] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(33), + [121] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(36), + [123] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(37), + [125] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(38), + [127] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(39), + [129] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(40), + [131] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(41), + [133] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(42), + [135] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 1, .rename_sequence_id = 1), + [137] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(43), + [139] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(44), + [141] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(45), + [143] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(46), + [145] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT_EXTRA(), + [147] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, ACCEPT_INPUT(), + [149] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_program_repeat1, 1), + [151] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_program_repeat1, 1), + [153] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_program_repeat1, 1), + [155] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(49), + [157] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(50), + [159] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(51), + [161] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat1, 1), + [163] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat1, 1), + [165] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_command_repeat1, 1), + [167] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_program, 1), + [169] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(53), + [171] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(55), + [173] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(56), + [175] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(57), + [177] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(59), + [179] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(60), + [181] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(61), + [183] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(62), + [185] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(63), + [187] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(64), + [189] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(65), + [191] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(67), + [193] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(68), + [195] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(69), + [197] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(70), + [199] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(71), + [201] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(74), + [203] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(75), + [205] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(76), + [207] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_bracket_command_repeat1, 1), + [209] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), + [211] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), + [213] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(78), + [215] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(79), + [217] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_bracket_command_repeat1, 1, .rename_sequence_id = 2), + [219] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1, .rename_sequence_id = 2), + [221] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1, .rename_sequence_id = 2), + [223] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(81), + [225] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(82), + [227] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(83), + [229] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(84), + [231] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2), + [233] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_file_redirect, 2), + [235] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2), + [237] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(86), + [239] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(87), + [241] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2, .rename_sequence_id = 3), + [243] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_file_redirect, 2, .rename_sequence_id = 3), + [245] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2, .rename_sequence_id = 3), + [247] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(89), + [249] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(89), + [251] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 2, .rename_sequence_id = 4), + [253] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(90), + [255] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(91), + [257] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(92), + [259] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(93), + [261] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(94), + [263] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(95), + [265] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(98), + [267] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(99), + [269] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(100), + [271] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(101), + [273] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(102), + [275] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(103), + [277] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(104), + [279] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(105), + [281] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(106), + [283] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(107), + [285] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(108), + [287] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(109), + [289] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(110), + [291] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(111), + [293] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat2, 1), + [295] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat2, 1), + [297] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym__terminated_statement, 2), + [299] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym__terminated_statement, 2), + [301] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym__terminated_statement, 2), + [303] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_program_repeat1, 2), + [305] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_program_repeat1, 2), + [307] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_program_repeat1, 2), + [309] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 2, .rename_sequence_id = 5), + [311] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(118), + [313] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(119), + [315] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat1, 2), + [317] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_command_repeat1, 2), + [319] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat1, 2), + [321] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 3), + [323] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_file_redirect, 3), + [325] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 3), + [327] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 3, .rename_sequence_id = 6), + [329] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_file_redirect, 3, .rename_sequence_id = 6), + [331] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 3, .rename_sequence_id = 6), + [333] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(121), + [335] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_while_statement, 3), + [337] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(123), + [339] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(124), + [341] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(125), + [343] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), + [345] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_quoted_argument_repeat1, 1), + [347] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_quoted_argument_repeat1, 1), + [349] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(130), + [351] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(131), + [353] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(133), + [355] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(134), + [357] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(135), + [359] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(136), + [361] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_expansion, 2, .rename_sequence_id = 7), + [363] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(137), + [365] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(137), + [367] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(138), + [369] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(139), + [371] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(140), + [373] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(141), + [375] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(142), + [377] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(145), + [379] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(146), + [381] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(147), + [383] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(148), + [385] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), + [387] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_quoted_argument, 2), + [389] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(149), + [391] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_expansion, 2, .rename_sequence_id = 7), + [393] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_expansion, 2, .rename_sequence_id = 7), + [395] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(150), [397] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(150), - [399] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(151), - [401] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 11), - [403] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 1), - [405] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(153), - [407] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(154), - [409] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(155), - [411] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(156), - [413] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_heredoc_redirect, 2), - [415] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(158), - [417] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(159), - [419] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat2, 2), - [421] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3, .fragile = true), - [423] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_list, 3, .fragile = true), - [425] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 3, .rename_sequence_id = 12), - [427] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(162), - [429] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(163), - [431] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(164), - [433] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(165), - [435] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(166), - [437] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(167), - [439] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_do_group, 2), - [441] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(168), - [443] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 4), - [445] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_else_clause, 1), - [447] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_if_statement_repeat1, 1), - [449] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(171), - [451] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(171), - [453] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(111), - [455] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(112), - [457] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(175), - [459] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(175), - [461] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(176), - [463] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(177), - [465] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 3), - [467] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_quoted_argument_repeat1, 2), - [469] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_quoted_argument_repeat1, 2), - [471] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(178), - [473] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(179), - [475] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(180), - [477] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(183), - [479] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(184), - [481] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(185), - [483] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 3, .rename_sequence_id = 13), - [485] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command, 2, .rename_sequence_id = 4), - [487] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(127), - [489] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(127), - [491] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(128), - [493] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(128), - [495] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(129), - [497] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(188), - [499] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(189), - [501] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(190), - [503] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(191), - [505] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(193), - [507] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(193), - [509] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat2, 1), - [511] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_command_repeat2, 1), - [513] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command_substitution, 3), - [515] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(195), - [517] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(197), - [519] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(199), - [521] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 3), - [523] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_quoted_argument, 3), - [525] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(200), - [527] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(201), - [529] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 3, .rename_sequence_id = 13), - [531] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_operator_expansion, 3, .rename_sequence_id = 13), - [533] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command_substitution, 3), - [535] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_command_substitution, 3), - [537] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(202), - [539] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(203), - [541] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(203), - [543] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(204), + [399] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(151), + [401] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(152), + [403] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_bracket_command, 3), + [405] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_bracket_command_repeat1, 2), + [407] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 2), + [409] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 2), + [411] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_bracket_command_repeat1, 2, .rename_sequence_id = 3), + [413] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 2, .rename_sequence_id = 3), + [415] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 2, .rename_sequence_id = 3), + [417] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(153), + [419] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(154), + [421] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(154), + [423] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(155), + [425] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(156), + [427] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(157), + [429] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(158), + [431] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(159), + [433] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(161), + [435] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(162), + [437] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 3, .rename_sequence_id = 8), + [439] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(164), + [441] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(165), + [443] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(167), + [445] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 9), + [447] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 9), + [449] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(169), + [451] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(170), + [453] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 10), + [455] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 10), + [457] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(172), + [459] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(174), + [461] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(175), + [463] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 1), + [465] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 1), + [467] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(177), + [469] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(178), + [471] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(179), + [473] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(180), + [475] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_heredoc_redirect, 2), + [477] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_heredoc_redirect, 2), + [479] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat2, 2), + [481] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat2, 2), + [483] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3, .fragile = true), + [485] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_list, 3, .fragile = true), + [487] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 3, .rename_sequence_id = 11), + [489] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(184), + [491] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(185), + [493] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_do_group, 2), + [495] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(186), + [497] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 4), + [499] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_else_clause, 1), + [501] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_if_statement_repeat1, 1), + [503] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(189), + [505] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(189), + [507] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(124), + [509] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(125), + [511] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(193), + [513] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(193), + [515] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(194), + [517] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(195), + [519] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 3), + [521] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_quoted_argument_repeat1, 2), + [523] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_quoted_argument_repeat1, 2), + [525] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(196), + [527] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(197), + [529] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(198), + [531] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(201), + [533] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(202), + [535] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(203), + [537] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 3, .rename_sequence_id = 12), + [539] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(204), + [541] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(204), + [543] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command, 2, .rename_sequence_id = 4), [545] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(205), - [547] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 4, .rename_sequence_id = 14), - [549] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(206), - [551] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(207), - [553] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(207), - [555] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(208), - [557] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(209), - [559] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_heredoc_repeat1, 1), - [561] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_heredoc_repeat1, 1), - [563] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 2), - [565] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(210), - [567] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(211), - [569] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(212), - [571] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(213), - [573] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 4, .rename_sequence_id = 15), - [575] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(215), - [577] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 10), - [579] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(217), - [581] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(218), - [583] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 11), - [585] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_do_group, 3), - [587] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(220), - [589] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_else_clause, 2), - [591] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 5), - [593] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(221), - [595] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_if_statement_repeat1, 2), - [597] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(223), - [599] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(224), - [601] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 5), - [603] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(225), - [605] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(226), - [607] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_case_statement_repeat1, 1), - [609] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_case_statement_repeat1, 1), - [611] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_case_statement_repeat1, 1), - [613] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(227), - [615] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(230), - [617] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(231), - [619] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command, 3, .rename_sequence_id = 9), - [621] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2), - [623] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2, .rename_sequence_id = 3), - [625] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 1), - [627] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_heredoc, 1), - [629] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(233), - [631] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_heredoc_redirect, 2), - [633] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_heredoc_redirect, 2), - [635] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(235), - [637] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(236), - [639] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat2, 2), - [641] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_command_repeat2, 2), - [643] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command, 3, .rename_sequence_id = 12), - [645] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 5, .rename_sequence_id = 16), - [647] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(239), - [649] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(241), - [651] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(242), - [653] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(243), - [655] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(244), - [657] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(245), - [659] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(246), - [661] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(247), - [663] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(247), - [665] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(248), - [667] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_heredoc_repeat1, 2), - [669] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_heredoc_repeat1, 2), - [671] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 3), - [673] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 5, .rename_sequence_id = 17), - [675] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(249), - [677] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(250), - [679] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(250), - [681] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(251), - [683] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(252), - [685] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 3), - [687] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 6), - [689] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(254), - [691] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(255), - [693] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(256), - [695] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 2), - [697] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(257), - [699] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 2), - [701] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 2), - [703] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 2, .rename_sequence_id = 18), - [705] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(262), - [707] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 2, .rename_sequence_id = 18), - [709] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 2, .rename_sequence_id = 18), - [711] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 6), - [713] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_case_statement_repeat1, 2), - [715] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_case_statement_repeat1, 2), - [717] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_case_statement_repeat1, 2), - [719] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(264), - [721] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 19), - [723] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 20), - [725] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command, 4, .rename_sequence_id = 14), - [727] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 2), - [729] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_heredoc, 2), - [731] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(265), - [733] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 3), - [735] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 3, .rename_sequence_id = 8), - [737] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command, 4, .rename_sequence_id = 15), - [739] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 6, .rename_sequence_id = 21), - [741] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(267), - [743] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 19), - [745] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 19), - [747] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 20), - [749] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 20), - [751] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(268), - [753] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(269), - [755] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(270), - [757] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(271), - [759] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(272), - [761] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(273), - [763] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(274), - [765] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(275), - [767] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 4), - [769] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 7), - [771] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 3), - [773] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 3), - [775] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 3), - [777] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(276), - [779] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(277), - [781] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 3, .rename_sequence_id = 22), - [783] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 3, .rename_sequence_id = 22), - [785] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 3, .rename_sequence_id = 22), - [787] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(279), - [789] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 7), - [791] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 3), - [793] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_heredoc, 3), - [795] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command, 5, .rename_sequence_id = 17), - [797] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 7, .rename_sequence_id = 23), - [799] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(280), - [801] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(281), - [803] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(282), - [805] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(283), - [807] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 4), - [809] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 4), - [811] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 4), - [813] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 4, .rename_sequence_id = 24), - [815] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 4, .rename_sequence_id = 24), - [817] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 4, .rename_sequence_id = 24), - [819] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_do_group, 2), REDUCE(sym_do_group, 3), - [822] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 3), SHIFT(110), - [825] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 3), SHIFT(111), - [828] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 3), SHIFT(112), - [831] = {.count = 4, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 4), REDUCE(sym_if_statement, 5), REDUCE(sym_if_statement, 6), REDUCE(sym_if_statement, 7), - [836] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(321), - [838] = {.count = 6, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 5), REDUCE(sym_case_statement, 5, .rename_sequence_id = 16), REDUCE(sym_case_statement, 6), REDUCE(sym_case_statement, 6, .rename_sequence_id = 21), REDUCE(sym_case_statement, 7), REDUCE(sym_case_statement, 7, .rename_sequence_id = 23), - [845] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 2), REDUCE(sym_case_item, 2, .rename_sequence_id = 18), - [848] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command_substitution, 3), SHIFT(322), - [851] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 2), REDUCE(sym_case_item, 2, .rename_sequence_id = 18), REDUCE(sym_command_substitution, 3), - [855] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command_substitution, 3), SHIFT(7), - [858] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command_substitution, 3), SHIFT(8), - [861] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command_substitution, 3), SHIFT(9), - [864] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(324), - [866] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(325), - [868] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), REDUCE(sym_quoted_argument, 3), - [871] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), REDUCE(sym_quoted_argument, 3), SHIFT(326), - [875] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(56), - [877] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), REDUCE(sym_quoted_argument, 3), SHIFT(57), - [881] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), REDUCE(sym_quoted_argument, 3), SHIFT(58), - [885] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), REDUCE(sym_quoted_argument, 3), SHIFT(59), - [889] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(327), - [891] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(328), - [893] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(329), - [895] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(330), - [897] = {.count = 3, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 3, .rename_sequence_id = 13), REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 19), REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 20), - [901] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 3, .rename_sequence_id = 13), REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 19), REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 20), - [905] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(332), - [907] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(333), - [909] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2), REDUCE(sym_file_redirect, 3), - [912] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2), REDUCE(sym_file_redirect, 3), SHIFT(334), - [916] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(335), - [918] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym__terminated_statement, 2), SHIFT(336), - [921] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym__terminated_statement, 2), SHIFT(27), - [924] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym__terminated_statement, 2), SHIFT(179), - [927] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym__terminated_statement, 2), SHIFT(29), - [930] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym__terminated_statement, 2), SHIFT(30), - [933] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym__terminated_statement, 2), SHIFT(31), - [936] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym__terminated_statement, 2), SHIFT(180), - [939] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_heredoc_repeat1, 1), REDUCE(aux_sym_heredoc_repeat1, 2), - [942] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_heredoc_repeat1, 1), REDUCE(aux_sym_heredoc_repeat1, 2), - [945] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 2), REDUCE(sym_heredoc, 3), - [948] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_program_repeat1, 1), REDUCE(aux_sym_program_repeat1, 2), - [951] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_program_repeat1, 1), REDUCE(aux_sym_program_repeat1, 2), - [954] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(51), - [956] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(285), - [958] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_program_repeat1, 1), REDUCE(aux_sym_program_repeat1, 2), - [961] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3, .fragile = true), REDUCE(sym_list, 3, .fragile = true), SHIFT(276), - [965] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3, .fragile = true), REDUCE(sym_list, 3, .fragile = true), SHIFT(46), - [969] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3, .fragile = true), REDUCE(sym_list, 3, .fragile = true), SHIFT(47), - [973] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_if_statement_repeat1, 1), REDUCE(aux_sym_if_statement_repeat1, 2), - [976] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(337), - [978] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_case_statement_repeat1, 1), REDUCE(aux_sym_case_statement_repeat1, 2), - [981] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_case_statement_repeat1, 1), REDUCE(aux_sym_case_statement_repeat1, 2), - [984] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_case_statement_repeat1, 1), REDUCE(aux_sym_case_statement_repeat1, 2), - [987] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(338), - [989] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3), REDUCE(sym_list, 3), SHIFT(276), - [993] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3), REDUCE(sym_list, 3), SHIFT(46), - [997] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3), REDUCE(sym_list, 3), SHIFT(47), - [1001] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat1, 1), REDUCE(aux_sym_command_repeat1, 2), - [1004] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(aux_sym_bracket_command_repeat1, 2), SHIFT(225), - [1008] = {.count = 4, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(aux_sym_bracket_command_repeat1, 2), REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 10), SHIFT(62), - [1013] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(aux_sym_bracket_command_repeat1, 2), - [1016] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(aux_sym_bracket_command_repeat1, 2), REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 10), - [1020] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(339), - [1022] = {.count = 4, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(aux_sym_quoted_argument_repeat1, 1), REDUCE(aux_sym_bracket_command_repeat1, 2), REDUCE(aux_sym_quoted_argument_repeat1, 2), - [1027] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_quoted_argument_repeat1, 1), REDUCE(aux_sym_quoted_argument_repeat1, 2), - [1030] = {.count = 6, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(aux_sym_quoted_argument_repeat1, 1), REDUCE(aux_sym_heredoc_repeat1, 1), REDUCE(aux_sym_bracket_command_repeat1, 2), REDUCE(aux_sym_quoted_argument_repeat1, 2), REDUCE(aux_sym_heredoc_repeat1, 2), - [1037] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat2, 1), REDUCE(aux_sym_command_repeat2, 2), - [1040] = {.count = 4, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat1, 1), REDUCE(aux_sym_command_repeat2, 1), REDUCE(aux_sym_command_repeat1, 2), REDUCE(aux_sym_command_repeat2, 2), - [1045] = {.count = 3, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_else_clause, 2), REDUCE(sym_elif_clause, 4), SHIFT(171), - [1049] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 4), SHIFT(111), - [1052] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 4), SHIFT(112), - [1055] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 3), REDUCE(sym_case_item, 3, .rename_sequence_id = 22), - [1058] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(340), - [1060] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 3), REDUCE(sym_case_item, 3, .rename_sequence_id = 22), - [1063] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 3), REDUCE(sym_case_item, 3, .rename_sequence_id = 22), - [1066] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(341), - [1068] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(343), - [1070] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 3, .rename_sequence_id = 9), REDUCE(sym_command, 4, .rename_sequence_id = 15), - [1073] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(75), - [1075] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(344), - [1077] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(345), - [1079] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(346), - [1081] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(347), - [1083] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(348), - [1085] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(349), - [1087] = {.count = 6, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 2, .rename_sequence_id = 4), REDUCE(sym_command, 3, .rename_sequence_id = 12), REDUCE(sym_command, 3, .rename_sequence_id = 9), REDUCE(sym_command, 4, .rename_sequence_id = 15), REDUCE(sym_command, 4, .rename_sequence_id = 14), REDUCE(sym_command, 5, .rename_sequence_id = 17), - [1094] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(351), - [1096] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 4), SHIFT(171), - [1099] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(336), - [1101] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(352), - [1103] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(294), - [1105] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(294), - [1107] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(353), - [1109] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(339), - [1111] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(352), - [1113] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(338), - [1115] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2, .rename_sequence_id = 3), REDUCE(sym_file_redirect, 3, .rename_sequence_id = 8), - [1118] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(354), - [1120] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(355), - [1122] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(356), - [1124] = {.count = 4, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 5), REDUCE(sym_case_statement, 5, .rename_sequence_id = 16), REDUCE(sym_case_statement, 6), REDUCE(sym_case_statement, 6, .rename_sequence_id = 21), - [1129] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 5), REDUCE(sym_if_statement, 6), REDUCE(sym_if_statement, 7), - [1133] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 4), REDUCE(sym_case_item, 4, .rename_sequence_id = 24), - [1136] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 4), REDUCE(sym_case_item, 4, .rename_sequence_id = 24), - [1139] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 4), REDUCE(sym_case_item, 4, .rename_sequence_id = 24), - [1142] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 5), REDUCE(sym_if_statement, 6), - [1145] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(357), - [1147] = {.count = 4, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 6), REDUCE(sym_case_statement, 6, .rename_sequence_id = 21), REDUCE(sym_case_statement, 7), REDUCE(sym_case_statement, 7, .rename_sequence_id = 23), - [1152] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(358), - [1154] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(360), - [1156] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(361), - [1158] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 4, .rename_sequence_id = 14), REDUCE(sym_command, 5, .rename_sequence_id = 17), - [1161] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(363), - [1163] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 6), REDUCE(sym_if_statement, 7), - [1166] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(365), - [1168] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(366), - [1170] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(366), - [1172] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(367), - [1174] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(368), - [1176] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 6), REDUCE(sym_case_statement, 6, .rename_sequence_id = 21), - [1179] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(369), - [1181] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(370), - [1183] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(371), - [1185] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 7), REDUCE(sym_case_statement, 7, .rename_sequence_id = 23), - [1188] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(372), - [1190] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(373), + [547] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(206), + [549] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(207), + [551] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(208), + [553] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(209), + [555] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(141), + [557] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(141), + [559] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(142), + [561] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(142), + [563] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(210), + [565] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(213), + [567] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(214), + [569] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(215), + [571] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(216), + [573] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_command_repeat2, 1), + [575] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command_substitution, 3), + [577] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(219), + [579] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(221), + [581] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(223), + [583] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 3), + [585] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_quoted_argument, 3), + [587] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(224), + [589] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(225), + [591] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 3, .rename_sequence_id = 12), + [593] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_operator_expansion, 3, .rename_sequence_id = 12), + [595] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command_substitution, 3), + [597] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_command_substitution, 3), + [599] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(226), + [601] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(227), + [603] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(228), + [605] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(229), + [607] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(229), + [609] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(230), + [611] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(231), + [613] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 4, .rename_sequence_id = 13), + [615] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(232), + [617] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(233), + [619] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(233), + [621] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(234), + [623] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(235), + [625] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(236), + [627] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(237), + [629] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(237), + [631] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(238), + [633] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(239), + [635] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_heredoc_repeat1, 1), + [637] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_heredoc_repeat1, 1), + [639] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 2), + [641] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 2), + [643] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(240), + [645] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(241), + [647] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(242), + [649] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(243), + [651] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 4, .rename_sequence_id = 14), + [653] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 9), + [655] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 10), + [657] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_do_group, 3), + [659] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(245), + [661] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_else_clause, 2), + [663] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 5), + [665] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(246), + [667] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_if_statement_repeat1, 2), + [669] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(248), + [671] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(249), + [673] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 5), + [675] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(250), + [677] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(251), + [679] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_case_statement_repeat1, 1), + [681] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_case_statement_repeat1, 1), + [683] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_case_statement_repeat1, 1), + [685] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(252), + [687] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(255), + [689] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(256), + [691] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(257), + [693] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(258), + [695] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(259), + [697] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(261), + [699] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(262), + [701] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command, 3, .rename_sequence_id = 8), + [703] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(264), + [705] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(265), + [707] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_heredoc, 1), + [709] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(267), + [711] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_heredoc_redirect, 2), + [713] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_command_repeat2, 2), + [715] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command, 3, .rename_sequence_id = 11), + [717] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 5, .rename_sequence_id = 15), + [719] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(271), + [721] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(273), + [723] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(274), + [725] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(275), + [727] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(276), + [729] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(277), + [731] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(278), + [733] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(279), + [735] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(280), + [737] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(281), + [739] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(282), + [741] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(283), + [743] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(283), + [745] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(284), + [747] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_heredoc_repeat1, 2), + [749] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_heredoc_repeat1, 2), + [751] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 3), + [753] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 3), + [755] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 5, .rename_sequence_id = 16), + [757] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 3), + [759] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 6), + [761] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(286), + [763] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(287), + [765] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(288), + [767] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 2), + [769] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(289), + [771] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 2), + [773] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 2), + [775] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 2, .rename_sequence_id = 17), + [777] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(294), + [779] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 2, .rename_sequence_id = 17), + [781] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 2, .rename_sequence_id = 17), + [783] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 6), + [785] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_case_statement_repeat1, 2), + [787] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_case_statement_repeat1, 2), + [789] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_case_statement_repeat1, 2), + [791] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(296), + [793] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 18), + [795] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 19), + [797] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(297), + [799] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(298), + [801] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(298), + [803] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(299), + [805] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(300), + [807] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command, 4, .rename_sequence_id = 13), + [809] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_heredoc, 2), + [811] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(301), + [813] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command, 4, .rename_sequence_id = 14), + [815] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 6, .rename_sequence_id = 20), + [817] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(303), + [819] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 18), + [821] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 18), + [823] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 19), + [825] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 19), + [827] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(304), + [829] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(305), + [831] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(306), + [833] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(307), + [835] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(308), + [837] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(309), + [839] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(310), + [841] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(311), + [843] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 4), + [845] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 7), + [847] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 3), + [849] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 3), + [851] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 3), + [853] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(312), + [855] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(313), + [857] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 3, .rename_sequence_id = 21), + [859] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 3, .rename_sequence_id = 21), + [861] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 3, .rename_sequence_id = 21), + [863] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(315), + [865] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 7), + [867] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(316), + [869] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(317), + [871] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_heredoc, 3), + [873] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command, 5, .rename_sequence_id = 16), + [875] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 7, .rename_sequence_id = 22), + [877] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(318), + [879] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(319), + [881] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 4), + [883] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 4), + [885] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 4), + [887] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 4, .rename_sequence_id = 23), + [889] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 4, .rename_sequence_id = 23), + [891] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 4, .rename_sequence_id = 23), + [893] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(320), + [895] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(321), + [897] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_do_group, 2), REDUCE(sym_do_group, 3), + [900] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 3), SHIFT(123), + [903] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 3), SHIFT(124), + [906] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 3), SHIFT(125), + [909] = {.count = 4, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 4), REDUCE(sym_if_statement, 5), REDUCE(sym_if_statement, 6), REDUCE(sym_if_statement, 7), + [914] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(359), + [916] = {.count = 6, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 5), REDUCE(sym_case_statement, 5, .rename_sequence_id = 15), REDUCE(sym_case_statement, 6), REDUCE(sym_case_statement, 6, .rename_sequence_id = 20), REDUCE(sym_case_statement, 7), REDUCE(sym_case_statement, 7, .rename_sequence_id = 22), + [923] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_command_substitution, 3), SHIFT(2), + [926] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 2), REDUCE(sym_case_item, 2, .rename_sequence_id = 17), + [929] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command_substitution, 3), SHIFT(360), + [932] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 2), REDUCE(sym_case_item, 2, .rename_sequence_id = 17), REDUCE(sym_command_substitution, 3), + [936] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command_substitution, 3), SHIFT(8), + [939] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command_substitution, 3), SHIFT(9), + [942] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(362), + [944] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(363), + [946] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), REDUCE(sym_quoted_argument, 3), + [949] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), REDUCE(sym_quoted_argument, 3), + [952] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), REDUCE(sym_quoted_argument, 3), SHIFT(364), + [956] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(62), + [958] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), REDUCE(sym_quoted_argument, 3), SHIFT(63), + [962] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), REDUCE(sym_quoted_argument, 3), SHIFT(64), + [966] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_quoted_argument, 2), REDUCE(sym_quoted_argument, 3), SHIFT(65), + [970] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(365), + [972] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(366), + [974] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(367), + [976] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(368), + [978] = {.count = 3, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 3, .rename_sequence_id = 12), REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 18), REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 19), + [982] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_operator_expansion, 3, .rename_sequence_id = 12), REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 18), REDUCE(sym_operator_expansion, 5, .rename_sequence_id = 19), + [986] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(370), + [988] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(371), + [990] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(372), + [992] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(373), + [994] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(374), + [996] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(375), + [998] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(376), + [1000] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym__terminated_statement, 2), SHIFT(377), + [1003] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym__terminated_statement, 2), SHIFT(28), + [1006] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym__terminated_statement, 2), SHIFT(197), + [1009] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym__terminated_statement, 2), SHIFT(30), + [1012] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym__terminated_statement, 2), SHIFT(31), + [1015] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym__terminated_statement, 2), SHIFT(32), + [1018] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym__terminated_statement, 2), SHIFT(198), + [1021] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_heredoc_repeat1, 1), REDUCE(aux_sym_heredoc_repeat1, 2), + [1024] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_heredoc_repeat1, 1), REDUCE(aux_sym_heredoc_repeat1, 2), + [1027] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 2), REDUCE(sym_heredoc, 3), + [1030] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_heredoc, 2), REDUCE(sym_heredoc, 3), + [1033] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(378), + [1035] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(378), + [1037] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_program_repeat1, 1), REDUCE(aux_sym_program_repeat1, 2), + [1040] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_program_repeat1, 1), REDUCE(aux_sym_program_repeat1, 2), + [1043] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(57), + [1045] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(323), + [1047] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_program_repeat1, 1), REDUCE(aux_sym_program_repeat1, 2), + [1050] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3, .fragile = true), REDUCE(sym_list, 3, .fragile = true), SHIFT(312), + [1054] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3, .fragile = true), REDUCE(sym_list, 3, .fragile = true), SHIFT(50), + [1058] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3, .fragile = true), REDUCE(sym_list, 3, .fragile = true), SHIFT(51), + [1062] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_if_statement_repeat1, 1), REDUCE(aux_sym_if_statement_repeat1, 2), + [1065] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(379), + [1067] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(aux_sym_case_statement_repeat1, 1), REDUCE(aux_sym_case_statement_repeat1, 2), + [1070] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_case_statement_repeat1, 1), REDUCE(aux_sym_case_statement_repeat1, 2), + [1073] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_case_statement_repeat1, 1), REDUCE(aux_sym_case_statement_repeat1, 2), + [1076] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(380), + [1078] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3), REDUCE(sym_list, 3), SHIFT(312), + [1082] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3), REDUCE(sym_list, 3), SHIFT(50), + [1086] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_pipeline, 3), REDUCE(sym_list, 3), SHIFT(51), + [1090] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat1, 1), REDUCE(aux_sym_command_repeat1, 2), + [1093] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat1, 1), REDUCE(aux_sym_command_repeat1, 2), + [1096] = {.count = 5, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(sym_file_redirect, 2), REDUCE(aux_sym_bracket_command_repeat1, 2), REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 9), REDUCE(sym_file_redirect, 3), + [1102] = {.count = 5, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(sym_file_redirect, 2), REDUCE(aux_sym_bracket_command_repeat1, 2), REDUCE(sym_file_redirect, 3), SHIFT(250), + [1108] = {.count = 6, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(sym_file_redirect, 2), REDUCE(aux_sym_bracket_command_repeat1, 2), REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 9), REDUCE(sym_file_redirect, 3), SHIFT(68), + [1115] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(aux_sym_bracket_command_repeat1, 2), + [1118] = {.count = 5, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(sym_file_redirect, 2), REDUCE(aux_sym_bracket_command_repeat1, 2), REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 9), REDUCE(sym_file_redirect, 3), + [1124] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(381), + [1126] = {.count = 4, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(sym_file_redirect, 2), REDUCE(aux_sym_bracket_command_repeat1, 2), REDUCE(sym_file_redirect, 3), + [1131] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2), REDUCE(sym_environment_variable_assignment, 3, .rename_sequence_id = 9), REDUCE(sym_file_redirect, 3), + [1135] = {.count = 4, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(aux_sym_quoted_argument_repeat1, 1), REDUCE(aux_sym_bracket_command_repeat1, 2), REDUCE(aux_sym_quoted_argument_repeat1, 2), + [1140] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_quoted_argument_repeat1, 1), REDUCE(aux_sym_quoted_argument_repeat1, 2), + [1143] = {.count = 6, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_bracket_command_repeat1, 1), REDUCE(aux_sym_quoted_argument_repeat1, 1), REDUCE(aux_sym_heredoc_repeat1, 1), REDUCE(aux_sym_bracket_command_repeat1, 2), REDUCE(aux_sym_quoted_argument_repeat1, 2), REDUCE(aux_sym_heredoc_repeat1, 2), + [1150] = {.count = 4, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat1, 1), REDUCE(aux_sym_command_repeat2, 1), REDUCE(aux_sym_command_repeat1, 2), REDUCE(aux_sym_command_repeat2, 2), + [1155] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat2, 1), REDUCE(aux_sym_command_repeat2, 2), + [1158] = {.count = 4, .reusable = false, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat1, 1), REDUCE(aux_sym_command_repeat2, 1), REDUCE(aux_sym_command_repeat1, 2), REDUCE(aux_sym_command_repeat2, 2), + [1163] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(aux_sym_command_repeat2, 1), REDUCE(aux_sym_command_repeat2, 2), + [1166] = {.count = 3, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_else_clause, 2), REDUCE(sym_elif_clause, 4), SHIFT(189), + [1170] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 4), SHIFT(124), + [1173] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 4), SHIFT(125), + [1176] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 3), REDUCE(sym_case_item, 3, .rename_sequence_id = 21), + [1179] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(382), + [1181] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 3), REDUCE(sym_case_item, 3, .rename_sequence_id = 21), + [1184] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 3), REDUCE(sym_case_item, 3, .rename_sequence_id = 21), + [1187] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(383), + [1189] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(385), + [1191] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 3, .rename_sequence_id = 8), REDUCE(sym_command, 4, .rename_sequence_id = 14), + [1194] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(81), + [1196] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(386), + [1198] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(387), + [1200] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(388), + [1202] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(389), + [1204] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(390), + [1206] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(391), + [1208] = {.count = 6, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 2, .rename_sequence_id = 4), REDUCE(sym_command, 3, .rename_sequence_id = 11), REDUCE(sym_command, 3, .rename_sequence_id = 8), REDUCE(sym_command, 4, .rename_sequence_id = 14), REDUCE(sym_command, 4, .rename_sequence_id = 13), REDUCE(sym_command, 5, .rename_sequence_id = 16), + [1215] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(393), + [1217] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_elif_clause, 4), SHIFT(189), + [1220] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(377), + [1222] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(394), + [1224] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(332), + [1226] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(332), + [1228] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(395), + [1230] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(381), + [1232] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(394), + [1234] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(380), + [1236] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(396), + [1238] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2), REDUCE(sym_file_redirect, 3), + [1241] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2), REDUCE(sym_file_redirect, 3), + [1244] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(398), + [1246] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(399), + [1248] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2, .rename_sequence_id = 3), REDUCE(sym_file_redirect, 3, .rename_sequence_id = 6), + [1251] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_file_redirect, 2, .rename_sequence_id = 3), REDUCE(sym_file_redirect, 3, .rename_sequence_id = 6), + [1254] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(401), + [1256] = {.count = 4, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 5), REDUCE(sym_case_statement, 5, .rename_sequence_id = 15), REDUCE(sym_case_statement, 6), REDUCE(sym_case_statement, 6, .rename_sequence_id = 20), + [1261] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(402), + [1263] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(403), + [1265] = {.count = 3, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 5), REDUCE(sym_if_statement, 6), REDUCE(sym_if_statement, 7), + [1269] = {.count = 2, .reusable = true, .depends_on_lookahead = true}, REDUCE(sym_case_item, 4), REDUCE(sym_case_item, 4, .rename_sequence_id = 23), + [1272] = {.count = 2, .reusable = true, .depends_on_lookahead = false}, REDUCE(sym_case_item, 4), REDUCE(sym_case_item, 4, .rename_sequence_id = 23), + [1275] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_item, 4), REDUCE(sym_case_item, 4, .rename_sequence_id = 23), + [1278] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 5), REDUCE(sym_if_statement, 6), + [1281] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(404), + [1283] = {.count = 4, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 6), REDUCE(sym_case_statement, 6, .rename_sequence_id = 20), REDUCE(sym_case_statement, 7), REDUCE(sym_case_statement, 7, .rename_sequence_id = 22), + [1288] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(405), + [1290] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(407), + [1292] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(408), + [1294] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_command, 4, .rename_sequence_id = 13), REDUCE(sym_command, 5, .rename_sequence_id = 16), + [1297] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(410), + [1299] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(411), + [1301] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(411), + [1303] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(412), + [1305] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(413), + [1307] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(414), + [1309] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_if_statement, 6), REDUCE(sym_if_statement, 7), + [1312] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(416), + [1314] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(417), + [1316] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(417), + [1318] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(418), + [1320] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(419), + [1322] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(420), + [1324] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(421), + [1326] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 6), REDUCE(sym_case_statement, 6, .rename_sequence_id = 20), + [1329] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(422), + [1331] = {.count = 1, .reusable = true, .depends_on_lookahead = true}, SHIFT(423), + [1333] = {.count = 1, .reusable = false, .depends_on_lookahead = false}, SHIFT(424), + [1335] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(425), + [1337] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(426), + [1339] = {.count = 2, .reusable = false, .depends_on_lookahead = false}, REDUCE(sym_case_statement, 7), REDUCE(sym_case_statement, 7, .rename_sequence_id = 22), + [1342] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(427), + [1344] = {.count = 1, .reusable = true, .depends_on_lookahead = false}, SHIFT(428), }; void *tree_sitter_bash_external_scanner_create(); diff --git a/src/scanner.cc b/src/scanner.cc index 151aff8..86187c7 100644 --- a/src/scanner.cc +++ b/src/scanner.cc @@ -11,6 +11,7 @@ enum TokenType { HEREDOC_BEGINNING, HEREDOC_MIDDLE, HEREDOC_END, + FILE_DESCRIPTOR, }; struct Scanner { @@ -74,23 +75,35 @@ struct Scanner { bool scan(TSLexer *lexer, const bool *valid_symbols) { if (valid_symbols[HEREDOC_MIDDLE]) { return scan_heredoc_content(lexer, HEREDOC_MIDDLE, HEREDOC_END); - } + } else if (valid_symbols[HEREDOC_BEGINNING]) { + heredoc_identifier.clear(); + while (iswalpha(lexer->lookahead)) { + heredoc_identifier += lexer->lookahead; + advance(lexer); + } - heredoc_identifier.clear(); - while (iswalpha(lexer->lookahead)) { - heredoc_identifier += lexer->lookahead; + if (lexer->lookahead != '\n') return false; advance(lexer); + + if (scan_heredoc_end_identifier(lexer)) { + lexer->result_symbol = SIMPLE_HEREDOC; + return true; + } + + return scan_heredoc_content(lexer, HEREDOC_BEGINNING, SIMPLE_HEREDOC); + } else if (valid_symbols[FILE_DESCRIPTOR]) { + while (lexer->lookahead == ' ' || lexer->lookahead == '\t') skip(lexer); + if (iswdigit(lexer->lookahead)) { + advance(lexer); + while (iswdigit(lexer->lookahead)) advance(lexer); + if (lexer->lookahead == '>' || lexer->lookahead == '<') { + lexer->result_symbol = FILE_DESCRIPTOR; + return true; + } + } } - if (lexer->lookahead != '\n') return false; - advance(lexer); - - if (scan_heredoc_end_identifier(lexer)) { - lexer->result_symbol = SIMPLE_HEREDOC; - return true; - } - - return scan_heredoc_content(lexer, HEREDOC_BEGINNING, SIMPLE_HEREDOC); + return false; } wstring heredoc_identifier;