diff --git a/corpus/bracket_argument.txt b/corpus/bracket_argument.txt index beb22a2..3ee1062 100644 --- a/corpus/bracket_argument.txt +++ b/corpus/bracket_argument.txt @@ -6,12 +6,10 @@ message([[]]) --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument (bracket_argument)) - ) + (normal_command + (identifier) + (arguments + (argument (bracket_argument)) ) ) ) @@ -20,16 +18,14 @@ message([[]]) One bracket argument [bracket_argument] ======================================= -message([[An argument]]) +message([[an argument]]) --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument (bracket_argument (bracket_content))) - ) + (normal_command + (identifier) + (arguments + (argument (bracket_argument (bracket_content))) ) ) ) @@ -38,18 +34,16 @@ message([[An argument]]) Two bracket arguments [bracket_argument] ======================================== -message([[First argument]] [[Second argument]]) +message([[first argument]] [[second argument]]) --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument (bracket_argument (bracket_content))) - (seperation (space)) - (argument (bracket_argument (bracket_content))) - ) + (normal_command + (identifier) + (arguments + (argument (bracket_argument (bracket_content))) + (seperation (space)) + (argument (bracket_argument (bracket_content))) ) ) ) @@ -59,22 +53,20 @@ Two bracket with two equals arguments [bracket_argument] ======================================================== message( - [====[First argument]====] - [====[Second argument]====] + [====[first argument]====] + [====[second argument]====] ) --- (source_file - (command_invocation - (normal_command - (identifier) + (normal_command + (identifier) + (seperation (space)) + (arguments + (argument (bracket_argument (bracket_content))) (seperation (space)) - (arguments - (argument (bracket_argument (bracket_content))) - (seperation (space)) - (argument (bracket_argument (bracket_content))) - (seperation (line_ending (newline))) - ) + (argument (bracket_argument (bracket_content))) + (seperation (line_ending (newline))) ) ) ) @@ -83,18 +75,16 @@ message( Bracket argument with line break [bracket_argument] =================================================== -message([[An argument +message([[an argument with line break ]]) --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument (bracket_argument (bracket_content))) - ) + (normal_command + (identifier) + (arguments + (argument (bracket_argument (bracket_content))) ) ) ) diff --git a/corpus/foreach.txt b/corpus/foreach.txt index be2b814..129ed77 100644 --- a/corpus/foreach.txt +++ b/corpus/foreach.txt @@ -8,18 +8,14 @@ endforeach() --- (source_file - (command_invocation - (foreach_command - (foreach) - (variable) - ) + (foreach_command + (foreach) + (variable) + ) + (endforeach_command + (endforeach) ) - (command_invocation - (endforeach_command - (endforeach) - ) ) -) ========================================================= Empty foreach loop with one argument endforeach [foreach] @@ -31,17 +27,13 @@ endforeach(var) --- (source_file - (command_invocation - (foreach_command - (foreach) - (variable) - ) + (foreach_command + (foreach) + (variable) ) - (command_invocation - (endforeach_command - (endforeach) - (variable) - ) + (endforeach_command + (endforeach) + (variable) ) ) @@ -55,18 +47,14 @@ ENDFOREACH() --- (source_file - (command_invocation - (foreach_command - (foreach) - (variable) - ) + (foreach_command + (foreach) + (variable) + ) + (endforeach_command + (endforeach) ) - (command_invocation - (endforeach_command - (endforeach) - ) ) -) ============================ Mixed case foreach [foreach] @@ -78,15 +66,11 @@ endForEach() --- (source_file - (command_invocation - (foreach_command - (foreach) - (variable) - ) + (foreach_command + (foreach) + (variable) + ) + (endforeach_command + (endforeach) ) - (command_invocation - (endforeach_command - (endforeach) - ) ) -) diff --git a/corpus/no_argument.txt b/corpus/no_argument.txt index c08b27f..75bd8a9 100644 --- a/corpus/no_argument.txt +++ b/corpus/no_argument.txt @@ -7,10 +7,8 @@ message() --- (source_file - (command_invocation - (normal_command - (identifier) - ) + (normal_command + (identifier) ) ) @@ -23,11 +21,9 @@ message( ) --- (source_file - (command_invocation - (normal_command - (identifier) - (seperation (space)) - ) + (normal_command + (identifier) + (seperation (space)) ) ) @@ -42,12 +38,10 @@ message( --- (source_file - (command_invocation - (normal_command - (identifier) - (seperation - (line_ending (newline)) - ) + (normal_command + (identifier) + (seperation + (line_ending (newline)) ) ) ) diff --git a/corpus/quoted_argument.txt b/corpus/quoted_argument.txt index fcf7675..daab74c 100644 --- a/corpus/quoted_argument.txt +++ b/corpus/quoted_argument.txt @@ -6,12 +6,10 @@ message("") --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument (quoted_argument)) - ) + (normal_command + (identifier) + (arguments + (argument (quoted_argument)) ) ) ) @@ -24,12 +22,10 @@ message("An argument") --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument (quoted_argument (quoted_element))) - ) + (normal_command + (identifier) + (arguments + (argument (quoted_argument (quoted_element))) ) ) ) @@ -42,14 +38,12 @@ message("First argument" "Second argument") --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument (quoted_argument (quoted_element))) - (seperation (space)) - (argument (quoted_argument (quoted_element))) - ) + (normal_command + (identifier) + (arguments + (argument (quoted_argument (quoted_element))) + (seperation (space)) + (argument (quoted_argument (quoted_element))) ) ) ) @@ -63,12 +57,10 @@ with line break") --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument (quoted_argument (quoted_element))) - ) + (normal_command + (identifier) + (arguments + (argument (quoted_argument (quoted_element))) ) ) ) @@ -81,15 +73,13 @@ message("${var}") --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument - (quoted_argument - (quoted_element - (variable_ref (normal_var (variable))) - ) + (normal_command + (identifier) + (arguments + (argument + (quoted_argument + (quoted_element + (variable_ref (normal_var (variable))) ) ) ) @@ -105,16 +95,14 @@ message("${var} ${var}") --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument - (quoted_argument - (quoted_element - (variable_ref (normal_var (variable))) - (variable_ref (normal_var (variable))) - ) + (normal_command + (identifier) + (arguments + (argument + (quoted_argument + (quoted_element + (variable_ref (normal_var (variable))) + (variable_ref (normal_var (variable))) ) ) ) diff --git a/corpus/unquoted_argument.txt b/corpus/unquoted_argument.txt index c110f76..21e5ef8 100644 --- a/corpus/unquoted_argument.txt +++ b/corpus/unquoted_argument.txt @@ -7,12 +7,10 @@ message(STATUS) --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument (unquoted_argument)) - ) + (normal_command + (identifier) + (arguments + (argument (unquoted_argument)) ) ) ) @@ -26,14 +24,12 @@ message(STATUS Hello) --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument (unquoted_argument)) - (seperation (space)) - (argument (unquoted_argument)) - ) + (normal_command + (identifier) + (arguments + (argument (unquoted_argument)) + (seperation (space)) + (argument (unquoted_argument)) ) ) ) @@ -48,22 +44,18 @@ STATUS) --- (source_file - (command_invocation - (normal_command - (identifier) - (seperation (space)) - (arguments - (argument (unquoted_argument)) - ) + (normal_command + (identifier) + (seperation (space)) + (arguments + (argument (unquoted_argument)) ) ) - (command_invocation - (normal_command - (identifier) - (seperation (line_ending (newline))) - (arguments - (argument (unquoted_argument)) - ) + (normal_command + (identifier) + (seperation (line_ending (newline))) + (arguments + (argument (unquoted_argument)) ) ) ) @@ -71,28 +63,24 @@ STATUS) Command invocations with escape sequence [unquoted_argument] ============================================================ -message( STATUS) + message( STATUS) message( STATUS) --- (source_file - (command_invocation - (normal_command - (identifier) - (seperation (space)) - (arguments - (argument (unquoted_argument)) - ) + (normal_command + (identifier) + (seperation (space)) + (arguments + (argument (unquoted_argument)) ) ) - (command_invocation - (normal_command - (identifier) - (seperation (line_ending (newline))) - (arguments - (argument (unquoted_argument)) - ) + (normal_command + (identifier) + (seperation (line_ending (newline))) + (arguments + (argument (unquoted_argument)) ) ) ) @@ -104,14 +92,12 @@ message(${var_ref}) --- (source_file - (command_invocation - (normal_command - (identifier) - (arguments - (argument - (unquoted_argument - (variable_ref (normal_var (variable))) - ) + (normal_command + (identifier) + (arguments + (argument + (unquoted_argument + (variable_ref (normal_var (variable))) ) ) ) diff --git a/grammar.js b/grammar.js index f7fa436..f759c8e 100644 --- a/grammar.js +++ b/grammar.js @@ -2,7 +2,7 @@ module.exports = grammar({ name: "cmake", rules: { - source_file: ($) => repeat($.command_invocation), + source_file: ($) => repeat($._command_invocation), line_ending: ($) => $.newline, seperation: ($) => choice($.space, $.line_ending), @@ -46,7 +46,7 @@ module.exports = grammar({ normal_command: ($) => seq($.identifier, "(", repeat($.seperation), optional($.arguments), ")"), - command_invocation: ($) => choice($.normal_command, $.foreach_command, $.endforeach_command), + _command_invocation: ($) => choice($.normal_command, $.foreach_command, $.endforeach_command), }, }); diff --git a/src/grammar.json b/src/grammar.json index 398f4a1..d9d82ea 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -5,7 +5,7 @@ "type": "REPEAT", "content": { "type": "SYMBOL", - "name": "command_invocation" + "name": "_command_invocation" } }, "line_ending": { @@ -13,25 +13,32 @@ "name": "newline" }, "seperation": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "space" - }, - { - "type": "SYMBOL", - "name": "line_ending" + "type": "PREC_LEFT", + "value": 0, + "content": { + "type": "REPEAT1", + "content": { + "type": "CHOICE", + "members": [ + { + "type": "SYMBOL", + "name": "space" + }, + { + "type": "SYMBOL", + "name": "line_ending" + } + ] } - ] + } }, "space": { "type": "PATTERN", - "value": "[ \\t]+" + "value": "[ \\t]" }, "newline": { "type": "PATTERN", - "value": "\\n+" + "value": "\\n" }, "foreach": { "type": "PATTERN", @@ -490,7 +497,7 @@ } ] }, - "command_invocation": { + "_command_invocation": { "type": "CHOICE", "members": [ { diff --git a/src/node-types.json b/src/node-types.json index 8d4d2ef..4a050e3 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -76,29 +76,6 @@ ] } }, - { - "type": "command_invocation", - "named": true, - "fields": {}, - "children": { - "multiple": false, - "required": true, - "types": [ - { - "type": "endforeach_command", - "named": true - }, - { - "type": "foreach_command", - "named": true - }, - { - "type": "normal_command", - "named": true - } - ] - } - }, { "type": "endforeach_command", "named": true, @@ -261,7 +238,7 @@ "named": true, "fields": {}, "children": { - "multiple": false, + "multiple": true, "required": true, "types": [ { @@ -284,7 +261,15 @@ "required": false, "types": [ { - "type": "command_invocation", + "type": "endforeach_command", + "named": true + }, + { + "type": "foreach_command", + "named": true + }, + { + "type": "normal_command", "named": true } ] diff --git a/src/parser.c b/src/parser.c index 80b8675..8c0c206 100644 --- a/src/parser.c +++ b/src/parser.c @@ -6,9 +6,9 @@ #endif #define LANGUAGE_VERSION 13 -#define STATE_COUNT 91 -#define LARGE_STATE_COUNT 4 -#define SYMBOL_COUNT 58 +#define STATE_COUNT 92 +#define LARGE_STATE_COUNT 5 +#define SYMBOL_COUNT 59 #define ALIAS_COUNT 0 #define TOKEN_COUNT 26 #define EXTERNAL_TOKEN_COUNT 0 @@ -65,15 +65,16 @@ enum { sym_foreach_command = 46, sym_endforeach_command = 47, sym_normal_command = 48, - sym_command_invocation = 49, + sym__command_invocation = 49, aux_sym_source_file_repeat1 = 50, - aux_sym_variable_repeat1 = 51, - aux_sym__bracket_open_repeat1 = 52, - aux_sym_bracket_content_repeat1 = 53, - aux_sym_quoted_element_repeat1 = 54, - aux_sym_unquoted_argument_repeat1 = 55, - aux_sym_arguments_repeat1 = 56, - aux_sym__seperated_arguments_repeat1 = 57, + aux_sym_seperation_repeat1 = 51, + aux_sym_variable_repeat1 = 52, + aux_sym__bracket_open_repeat1 = 53, + aux_sym_bracket_content_repeat1 = 54, + aux_sym_quoted_element_repeat1 = 55, + aux_sym_unquoted_argument_repeat1 = 56, + aux_sym_arguments_repeat1 = 57, + aux_sym__seperated_arguments_repeat1 = 58, }; static const char * const ts_symbol_names[] = { @@ -126,8 +127,9 @@ static const char * const ts_symbol_names[] = { [sym_foreach_command] = "foreach_command", [sym_endforeach_command] = "endforeach_command", [sym_normal_command] = "normal_command", - [sym_command_invocation] = "command_invocation", + [sym__command_invocation] = "_command_invocation", [aux_sym_source_file_repeat1] = "source_file_repeat1", + [aux_sym_seperation_repeat1] = "seperation_repeat1", [aux_sym_variable_repeat1] = "variable_repeat1", [aux_sym__bracket_open_repeat1] = "_bracket_open_repeat1", [aux_sym_bracket_content_repeat1] = "bracket_content_repeat1", @@ -187,8 +189,9 @@ static const TSSymbol ts_symbol_map[] = { [sym_foreach_command] = sym_foreach_command, [sym_endforeach_command] = sym_endforeach_command, [sym_normal_command] = sym_normal_command, - [sym_command_invocation] = sym_command_invocation, + [sym__command_invocation] = sym__command_invocation, [aux_sym_source_file_repeat1] = aux_sym_source_file_repeat1, + [aux_sym_seperation_repeat1] = aux_sym_seperation_repeat1, [aux_sym_variable_repeat1] = aux_sym_variable_repeat1, [aux_sym__bracket_open_repeat1] = aux_sym__bracket_open_repeat1, [aux_sym_bracket_content_repeat1] = aux_sym_bracket_content_repeat1, @@ -395,14 +398,18 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [sym_command_invocation] = { - .visible = true, + [sym__command_invocation] = { + .visible = false, .named = true, }, [aux_sym_source_file_repeat1] = { .visible = false, .named = false, }, + [aux_sym_seperation_repeat1] = { + .visible = false, + .named = false, + }, [aux_sym_variable_repeat1] = { .visible = false, .named = false, @@ -950,82 +957,82 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [3] = {.lex_state = 1}, [4] = {.lex_state = 1}, [5] = {.lex_state = 2}, - [6] = {.lex_state = 5}, - [7] = {.lex_state = 2}, + [6] = {.lex_state = 2}, + [7] = {.lex_state = 5}, [8] = {.lex_state = 5}, - [9] = {.lex_state = 5}, - [10] = {.lex_state = 1}, + [9] = {.lex_state = 1}, + [10] = {.lex_state = 5}, [11] = {.lex_state = 3}, [12] = {.lex_state = 3}, [13] = {.lex_state = 3}, - [14] = {.lex_state = 3}, - [15] = {.lex_state = 1}, + [14] = {.lex_state = 1}, + [15] = {.lex_state = 3}, [16] = {.lex_state = 1}, - [17] = {.lex_state = 2}, - [18] = {.lex_state = 2}, + [17] = {.lex_state = 1}, + [18] = {.lex_state = 3}, [19] = {.lex_state = 2}, [20] = {.lex_state = 2}, [21] = {.lex_state = 2}, - [22] = {.lex_state = 3}, - [23] = {.lex_state = 6}, - [24] = {.lex_state = 6}, - [25] = {.lex_state = 5}, + [22] = {.lex_state = 2}, + [23] = {.lex_state = 2}, + [24] = {.lex_state = 3}, + [25] = {.lex_state = 6}, [26] = {.lex_state = 5}, [27] = {.lex_state = 5}, [28] = {.lex_state = 5}, [29] = {.lex_state = 5}, [30] = {.lex_state = 5}, - [31] = {.lex_state = 6}, + [31] = {.lex_state = 5}, [32] = {.lex_state = 6}, - [33] = {.lex_state = 6}, + [33] = {.lex_state = 3}, [34] = {.lex_state = 6}, [35] = {.lex_state = 6}, [36] = {.lex_state = 6}, - [37] = {.lex_state = 18}, - [38] = {.lex_state = 18}, - [39] = {.lex_state = 3}, - [40] = {.lex_state = 3}, - [41] = {.lex_state = 3}, + [37] = {.lex_state = 6}, + [38] = {.lex_state = 6}, + [39] = {.lex_state = 6}, + [40] = {.lex_state = 18}, + [41] = {.lex_state = 18}, [42] = {.lex_state = 3}, - [43] = {.lex_state = 6}, + [43] = {.lex_state = 3}, [44] = {.lex_state = 3}, - [45] = {.lex_state = 14}, - [46] = {.lex_state = 18}, - [47] = {.lex_state = 18}, + [45] = {.lex_state = 3}, + [46] = {.lex_state = 6}, + [47] = {.lex_state = 14}, [48] = {.lex_state = 18}, [49] = {.lex_state = 18}, [50] = {.lex_state = 18}, - [51] = {.lex_state = 0}, + [51] = {.lex_state = 18}, [52] = {.lex_state = 18}, [53] = {.lex_state = 18}, - [54] = {.lex_state = 18}, + [54] = {.lex_state = 0}, [55] = {.lex_state = 18}, - [56] = {.lex_state = 14}, + [56] = {.lex_state = 18}, [57] = {.lex_state = 3}, - [58] = {.lex_state = 14}, - [59] = {.lex_state = 0}, - [60] = {.lex_state = 0}, - [61] = {.lex_state = 3}, + [58] = {.lex_state = 3}, + [59] = {.lex_state = 3}, + [60] = {.lex_state = 14}, + [61] = {.lex_state = 0}, [62] = {.lex_state = 0}, [63] = {.lex_state = 3}, - [64] = {.lex_state = 3}, + [64] = {.lex_state = 14}, [65] = {.lex_state = 3}, [66] = {.lex_state = 3}, - [67] = {.lex_state = 3}, - [68] = {.lex_state = 0}, - [69] = {.lex_state = 3}, - [70] = {.lex_state = 0}, + [67] = {.lex_state = 0}, + [68] = {.lex_state = 3}, + [69] = {.lex_state = 0}, + [70] = {.lex_state = 3}, [71] = {.lex_state = 14}, - [72] = {.lex_state = 14}, - [73] = {.lex_state = 0}, - [74] = {.lex_state = 4}, + [72] = {.lex_state = 0}, + [73] = {.lex_state = 14}, + [74] = {.lex_state = 0}, [75] = {.lex_state = 0}, [76] = {.lex_state = 0}, [77] = {.lex_state = 0}, [78] = {.lex_state = 0}, [79] = {.lex_state = 0}, [80] = {.lex_state = 0}, - [81] = {.lex_state = 0}, + [81] = {.lex_state = 4}, [82] = {.lex_state = 0}, [83] = {.lex_state = 0}, [84] = {.lex_state = 0}, @@ -1035,6 +1042,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [88] = {.lex_state = 0}, [89] = {.lex_state = 0}, [90] = {.lex_state = 0}, + [91] = {.lex_state = 0}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -1060,34 +1068,35 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_RPAREN] = ACTIONS(1), }, [1] = { - [sym_source_file] = STATE(82), - [sym_foreach_command] = STATE(52), - [sym_endforeach_command] = STATE(52), - [sym_normal_command] = STATE(52), - [sym_command_invocation] = STATE(37), - [aux_sym_source_file_repeat1] = STATE(37), + [sym_source_file] = STATE(89), + [sym_foreach_command] = STATE(41), + [sym_endforeach_command] = STATE(41), + [sym_normal_command] = STATE(41), + [sym__command_invocation] = STATE(41), + [aux_sym_source_file_repeat1] = STATE(41), [ts_builtin_sym_end] = ACTIONS(3), [sym_foreach] = ACTIONS(5), [sym_endforeach] = ACTIONS(7), [sym_identifier] = ACTIONS(9), }, [2] = { - [sym_line_ending] = STATE(16), - [sym_seperation] = STATE(10), + [sym_line_ending] = STATE(14), + [sym_seperation] = STATE(9), [sym_escape_sequence] = STATE(5), - [sym__escape_encoded] = STATE(20), + [sym__escape_encoded] = STATE(22), [sym_variable_ref] = STATE(5), - [sym_normal_var] = STATE(21), - [sym_env_var] = STATE(21), - [sym_cache_var] = STATE(21), - [sym_argument] = STATE(44), - [sym_bracket_argument] = STATE(61), - [sym__bracket_open] = STATE(45), - [sym_quoted_argument] = STATE(61), - [sym_unquoted_argument] = STATE(61), + [sym_normal_var] = STATE(23), + [sym_env_var] = STATE(23), + [sym_cache_var] = STATE(23), + [sym_argument] = STATE(42), + [sym_bracket_argument] = STATE(58), + [sym__bracket_open] = STATE(47), + [sym_quoted_argument] = STATE(58), + [sym_unquoted_argument] = STATE(58), [sym_arguments] = STATE(75), + [aux_sym_seperation_repeat1] = STATE(14), [aux_sym_unquoted_argument_repeat1] = STATE(5), - [aux_sym__seperated_arguments_repeat1] = STATE(10), + [aux_sym__seperated_arguments_repeat1] = STATE(9), [sym_space] = ACTIONS(11), [sym_newline] = ACTIONS(13), [sym__escape_identity] = ACTIONS(15), @@ -1104,20 +1113,21 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_RPAREN] = ACTIONS(29), }, [3] = { - [sym_line_ending] = STATE(16), + [sym_line_ending] = STATE(14), [sym_seperation] = STATE(2), [sym_escape_sequence] = STATE(5), - [sym__escape_encoded] = STATE(20), + [sym__escape_encoded] = STATE(22), [sym_variable_ref] = STATE(5), - [sym_normal_var] = STATE(21), - [sym_env_var] = STATE(21), - [sym_cache_var] = STATE(21), - [sym_argument] = STATE(44), - [sym_bracket_argument] = STATE(61), - [sym__bracket_open] = STATE(45), - [sym_quoted_argument] = STATE(61), - [sym_unquoted_argument] = STATE(61), - [sym_arguments] = STATE(90), + [sym_normal_var] = STATE(23), + [sym_env_var] = STATE(23), + [sym_cache_var] = STATE(23), + [sym_argument] = STATE(42), + [sym_bracket_argument] = STATE(58), + [sym__bracket_open] = STATE(47), + [sym_quoted_argument] = STATE(58), + [sym_unquoted_argument] = STATE(58), + [sym_arguments] = STATE(74), + [aux_sym_seperation_repeat1] = STATE(14), [aux_sym_unquoted_argument_repeat1] = STATE(5), [aux_sym__seperated_arguments_repeat1] = STATE(2), [sym_space] = ACTIONS(11), @@ -1135,56 +1145,42 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [aux_sym_unquoted_argument_token1] = ACTIONS(27), [anon_sym_RPAREN] = ACTIONS(31), }, + [4] = { + [sym_line_ending] = STATE(14), + [sym_seperation] = STATE(9), + [sym_escape_sequence] = STATE(5), + [sym__escape_encoded] = STATE(22), + [sym_variable_ref] = STATE(5), + [sym_normal_var] = STATE(23), + [sym_env_var] = STATE(23), + [sym_cache_var] = STATE(23), + [sym_argument] = STATE(57), + [sym_bracket_argument] = STATE(58), + [sym__bracket_open] = STATE(47), + [sym_quoted_argument] = STATE(58), + [sym_unquoted_argument] = STATE(58), + [aux_sym_seperation_repeat1] = STATE(14), + [aux_sym_unquoted_argument_repeat1] = STATE(5), + [aux_sym__seperated_arguments_repeat1] = STATE(9), + [sym_space] = ACTIONS(33), + [sym_newline] = ACTIONS(33), + [sym__escape_identity] = ACTIONS(15), + [anon_sym_BSLASHt] = ACTIONS(15), + [anon_sym_BSLASHr] = ACTIONS(15), + [anon_sym_BSLASHn] = ACTIONS(15), + [sym__escape_semicolon] = ACTIONS(15), + [anon_sym_DOLLAR_LBRACE] = ACTIONS(17), + [anon_sym_DOLLARENV_LBRACE] = ACTIONS(19), + [anon_sym_DOLLARCACHE_LBRACE] = ACTIONS(21), + [anon_sym_LBRACK] = ACTIONS(23), + [anon_sym_DQUOTE] = ACTIONS(25), + [aux_sym_unquoted_argument_token1] = ACTIONS(27), + [anon_sym_RPAREN] = ACTIONS(33), + }, }; static const uint16_t ts_small_parse_table[] = { - [0] = 16, - ACTIONS(17), 1, - anon_sym_DOLLAR_LBRACE, - ACTIONS(19), 1, - anon_sym_DOLLARENV_LBRACE, - ACTIONS(21), 1, - anon_sym_DOLLARCACHE_LBRACE, - ACTIONS(23), 1, - anon_sym_LBRACK, - ACTIONS(25), 1, - anon_sym_DQUOTE, - ACTIONS(27), 1, - aux_sym_unquoted_argument_token1, - STATE(16), 1, - sym_line_ending, - STATE(20), 1, - sym__escape_encoded, - STATE(45), 1, - sym__bracket_open, - STATE(66), 1, - sym_argument, - STATE(10), 2, - sym_seperation, - aux_sym__seperated_arguments_repeat1, - ACTIONS(33), 3, - sym_space, - sym_newline, - anon_sym_RPAREN, - STATE(5), 3, - sym_escape_sequence, - sym_variable_ref, - aux_sym_unquoted_argument_repeat1, - STATE(21), 3, - sym_normal_var, - sym_env_var, - sym_cache_var, - STATE(61), 3, - sym_bracket_argument, - sym_quoted_argument, - sym_unquoted_argument, - ACTIONS(15), 5, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - [62] = 9, + [0] = 9, ACTIONS(17), 1, anon_sym_DOLLAR_LBRACE, ACTIONS(19), 1, @@ -1193,17 +1189,17 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DOLLARCACHE_LBRACE, ACTIONS(37), 1, aux_sym_unquoted_argument_token1, - STATE(20), 1, + STATE(22), 1, sym__escape_encoded, ACTIONS(35), 3, sym_space, sym_newline, anon_sym_RPAREN, - STATE(7), 3, + STATE(6), 3, sym_escape_sequence, sym_variable_ref, aux_sym_unquoted_argument_repeat1, - STATE(21), 3, + STATE(23), 3, sym_normal_var, sym_env_var, sym_cache_var, @@ -1213,135 +1209,107 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_BSLASHr, anon_sym_BSLASHn, sym__escape_semicolon, - [100] = 11, - ACTIONS(41), 1, + [38] = 9, + ACTIONS(44), 1, anon_sym_DOLLAR_LBRACE, - ACTIONS(43), 1, - anon_sym_DOLLARENV_LBRACE, - ACTIONS(45), 1, - anon_sym_DOLLARCACHE_LBRACE, ACTIONS(47), 1, - anon_sym_DQUOTE, - ACTIONS(49), 1, - aux_sym_quoted_element_token1, - ACTIONS(51), 1, - anon_sym_BSLASH, - STATE(25), 1, + anon_sym_DOLLARENV_LBRACE, + ACTIONS(50), 1, + anon_sym_DOLLARCACHE_LBRACE, + ACTIONS(53), 1, + aux_sym_unquoted_argument_token1, + STATE(22), 1, sym__escape_encoded, - STATE(73), 1, + ACTIONS(39), 3, + sym_space, + sym_newline, + anon_sym_RPAREN, + STATE(6), 3, + sym_escape_sequence, + sym_variable_ref, + aux_sym_unquoted_argument_repeat1, + STATE(23), 3, + sym_normal_var, + sym_env_var, + sym_cache_var, + ACTIONS(41), 5, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + [76] = 11, + ACTIONS(58), 1, + anon_sym_DOLLAR_LBRACE, + ACTIONS(60), 1, + anon_sym_DOLLARENV_LBRACE, + ACTIONS(62), 1, + anon_sym_DOLLARCACHE_LBRACE, + ACTIONS(64), 1, + anon_sym_DQUOTE, + ACTIONS(66), 1, + aux_sym_quoted_element_token1, + ACTIONS(68), 1, + anon_sym_BSLASH, + STATE(29), 1, + sym__escape_encoded, + STATE(83), 1, sym_quoted_element, + STATE(10), 3, + sym_escape_sequence, + sym_variable_ref, + aux_sym_quoted_element_repeat1, + STATE(31), 3, + sym_normal_var, + sym_env_var, + sym_cache_var, + ACTIONS(56), 5, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + [118] = 10, + ACTIONS(73), 1, + anon_sym_DOLLAR_LBRACE, + ACTIONS(76), 1, + anon_sym_DOLLARENV_LBRACE, + ACTIONS(79), 1, + anon_sym_DOLLARCACHE_LBRACE, + ACTIONS(82), 1, + anon_sym_DQUOTE, + ACTIONS(84), 1, + aux_sym_quoted_element_token1, + ACTIONS(87), 1, + anon_sym_BSLASH, + STATE(29), 1, + sym__escape_encoded, STATE(8), 3, sym_escape_sequence, sym_variable_ref, aux_sym_quoted_element_repeat1, - STATE(27), 3, + STATE(31), 3, sym_normal_var, sym_env_var, sym_cache_var, - ACTIONS(39), 5, + ACTIONS(70), 5, sym__escape_identity, anon_sym_BSLASHt, anon_sym_BSLASHr, anon_sym_BSLASHn, sym__escape_semicolon, - [142] = 9, - ACTIONS(58), 1, - anon_sym_DOLLAR_LBRACE, - ACTIONS(61), 1, - anon_sym_DOLLARENV_LBRACE, - ACTIONS(64), 1, - anon_sym_DOLLARCACHE_LBRACE, - ACTIONS(67), 1, - aux_sym_unquoted_argument_token1, - STATE(20), 1, - sym__escape_encoded, - ACTIONS(53), 3, + [157] = 5, + ACTIONS(90), 1, sym_space, + ACTIONS(93), 1, sym_newline, - anon_sym_RPAREN, - STATE(7), 3, - sym_escape_sequence, - sym_variable_ref, - aux_sym_unquoted_argument_repeat1, - STATE(21), 3, - sym_normal_var, - sym_env_var, - sym_cache_var, - ACTIONS(55), 5, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - [180] = 10, - ACTIONS(41), 1, - anon_sym_DOLLAR_LBRACE, - ACTIONS(43), 1, - anon_sym_DOLLARENV_LBRACE, - ACTIONS(45), 1, - anon_sym_DOLLARCACHE_LBRACE, - ACTIONS(51), 1, - anon_sym_BSLASH, - ACTIONS(70), 1, - anon_sym_DQUOTE, - ACTIONS(72), 1, - aux_sym_quoted_element_token1, - STATE(25), 1, - sym__escape_encoded, - STATE(9), 3, - sym_escape_sequence, - sym_variable_ref, - aux_sym_quoted_element_repeat1, - STATE(27), 3, - sym_normal_var, - sym_env_var, - sym_cache_var, - ACTIONS(39), 5, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - [219] = 10, - ACTIONS(77), 1, - anon_sym_DOLLAR_LBRACE, - ACTIONS(80), 1, - anon_sym_DOLLARENV_LBRACE, - ACTIONS(83), 1, - anon_sym_DOLLARCACHE_LBRACE, - ACTIONS(86), 1, - anon_sym_DQUOTE, - ACTIONS(88), 1, - aux_sym_quoted_element_token1, - ACTIONS(91), 1, - anon_sym_BSLASH, - STATE(25), 1, - sym__escape_encoded, - STATE(9), 3, - sym_escape_sequence, - sym_variable_ref, - aux_sym_quoted_element_repeat1, - STATE(27), 3, - sym_normal_var, - sym_env_var, - sym_cache_var, - ACTIONS(74), 5, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - [258] = 5, - ACTIONS(94), 1, - sym_space, - ACTIONS(97), 1, - sym_newline, - STATE(16), 1, - sym_line_ending, - STATE(10), 2, + STATE(9), 2, sym_seperation, aux_sym__seperated_arguments_repeat1, - ACTIONS(100), 12, + STATE(14), 2, + sym_line_ending, + aux_sym_seperation_repeat1, + ACTIONS(96), 12, sym__escape_identity, anon_sym_BSLASHt, anon_sym_BSLASHr, @@ -1354,7 +1322,36 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, aux_sym_unquoted_argument_token1, anon_sym_RPAREN, - [286] = 10, + [186] = 10, + ACTIONS(58), 1, + anon_sym_DOLLAR_LBRACE, + ACTIONS(60), 1, + anon_sym_DOLLARENV_LBRACE, + ACTIONS(62), 1, + anon_sym_DOLLARCACHE_LBRACE, + ACTIONS(68), 1, + anon_sym_BSLASH, + ACTIONS(98), 1, + anon_sym_DQUOTE, + ACTIONS(100), 1, + aux_sym_quoted_element_token1, + STATE(29), 1, + sym__escape_encoded, + STATE(8), 3, + sym_escape_sequence, + sym_variable_ref, + aux_sym_quoted_element_repeat1, + STATE(31), 3, + sym_normal_var, + sym_env_var, + sym_cache_var, + ACTIONS(56), 5, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + [225] = 10, ACTIONS(102), 1, sym_space, ACTIONS(104), 1, @@ -1363,16 +1360,17 @@ static const uint16_t ts_small_parse_table[] = { aux_sym_variable_token1, ACTIONS(110), 1, anon_sym_RPAREN, - STATE(39), 1, - sym_line_ending, - STATE(43), 1, + STATE(46), 1, sym__escape_encoded, - STATE(88), 1, + STATE(84), 1, sym_variable, - STATE(22), 2, + STATE(12), 2, sym_seperation, aux_sym__seperated_arguments_repeat1, - STATE(23), 2, + STATE(24), 2, + sym_line_ending, + aux_sym_seperation_repeat1, + STATE(25), 2, sym_escape_sequence, aux_sym_variable_repeat1, ACTIONS(106), 5, @@ -1381,7 +1379,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_BSLASHr, anon_sym_BSLASHn, sym__escape_semicolon, - [323] = 10, + [263] = 10, ACTIONS(102), 1, sym_space, ACTIONS(104), 1, @@ -1390,16 +1388,17 @@ static const uint16_t ts_small_parse_table[] = { aux_sym_variable_token1, ACTIONS(112), 1, anon_sym_RPAREN, - STATE(39), 1, - sym_line_ending, - STATE(43), 1, + STATE(46), 1, sym__escape_encoded, - STATE(78), 1, + STATE(79), 1, sym_variable, - STATE(11), 2, + STATE(18), 2, sym_seperation, aux_sym__seperated_arguments_repeat1, - STATE(23), 2, + STATE(24), 2, + sym_line_ending, + aux_sym_seperation_repeat1, + STATE(25), 2, sym_escape_sequence, aux_sym_variable_repeat1, ACTIONS(106), 5, @@ -1408,23 +1407,24 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_BSLASHr, anon_sym_BSLASHn, sym__escape_semicolon, - [360] = 9, + [301] = 9, ACTIONS(102), 1, sym_space, ACTIONS(104), 1, sym_newline, ACTIONS(108), 1, aux_sym_variable_token1, - STATE(39), 1, - sym_line_ending, - STATE(43), 1, + STATE(46), 1, sym__escape_encoded, - STATE(77), 1, + STATE(85), 1, sym_variable, - STATE(14), 2, + STATE(15), 2, sym_seperation, aux_sym__seperated_arguments_repeat1, - STATE(23), 2, + STATE(24), 2, + sym_line_ending, + aux_sym_seperation_repeat1, + STATE(25), 2, sym_escape_sequence, aux_sym_variable_repeat1, ACTIONS(106), 5, @@ -1433,32 +1433,10 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_BSLASHr, anon_sym_BSLASHn, sym__escape_semicolon, - [394] = 9, - ACTIONS(102), 1, - sym_space, - ACTIONS(104), 1, - sym_newline, - ACTIONS(108), 1, - aux_sym_variable_token1, - STATE(39), 1, + [336] = 2, + STATE(16), 2, sym_line_ending, - STATE(43), 1, - sym__escape_encoded, - STATE(89), 1, - sym_variable, - STATE(22), 2, - sym_seperation, - aux_sym__seperated_arguments_repeat1, - STATE(23), 2, - sym_escape_sequence, - aux_sym_variable_repeat1, - ACTIONS(106), 5, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - [428] = 1, + aux_sym_seperation_repeat1, ACTIONS(114), 14, sym_space, sym_newline, @@ -1474,8 +1452,55 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, aux_sym_unquoted_argument_token1, anon_sym_RPAREN, - [445] = 1, - ACTIONS(116), 14, + [357] = 9, + ACTIONS(102), 1, + sym_space, + ACTIONS(104), 1, + sym_newline, + ACTIONS(108), 1, + aux_sym_variable_token1, + STATE(46), 1, + sym__escape_encoded, + STATE(80), 1, + sym_variable, + STATE(18), 2, + sym_seperation, + aux_sym__seperated_arguments_repeat1, + STATE(24), 2, + sym_line_ending, + aux_sym_seperation_repeat1, + STATE(25), 2, + sym_escape_sequence, + aux_sym_variable_repeat1, + ACTIONS(106), 5, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + [392] = 4, + ACTIONS(116), 1, + sym_space, + ACTIONS(119), 1, + sym_newline, + STATE(16), 2, + sym_line_ending, + aux_sym_seperation_repeat1, + ACTIONS(122), 12, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + anon_sym_DOLLAR_LBRACE, + anon_sym_DOLLARENV_LBRACE, + anon_sym_DOLLARCACHE_LBRACE, + anon_sym_LBRACK, + anon_sym_DQUOTE, + aux_sym_unquoted_argument_token1, + anon_sym_RPAREN, + [417] = 1, + ACTIONS(124), 14, sym_space, sym_newline, sym__escape_identity, @@ -1490,336 +1515,27 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, aux_sym_unquoted_argument_token1, anon_sym_RPAREN, - [462] = 1, - ACTIONS(118), 12, + [434] = 5, + ACTIONS(126), 1, sym_space, + ACTIONS(129), 1, sym_newline, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - anon_sym_DOLLAR_LBRACE, - anon_sym_DOLLARENV_LBRACE, - anon_sym_DOLLARCACHE_LBRACE, - aux_sym_unquoted_argument_token1, - anon_sym_RPAREN, - [477] = 1, - ACTIONS(120), 12, - sym_space, - sym_newline, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - anon_sym_DOLLAR_LBRACE, - anon_sym_DOLLARENV_LBRACE, - anon_sym_DOLLARCACHE_LBRACE, - aux_sym_unquoted_argument_token1, - anon_sym_RPAREN, - [492] = 1, - ACTIONS(122), 12, - sym_space, - sym_newline, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - anon_sym_DOLLAR_LBRACE, - anon_sym_DOLLARENV_LBRACE, - anon_sym_DOLLARCACHE_LBRACE, - aux_sym_unquoted_argument_token1, - anon_sym_RPAREN, - [507] = 1, - ACTIONS(124), 12, - sym_space, - sym_newline, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - anon_sym_DOLLAR_LBRACE, - anon_sym_DOLLARENV_LBRACE, - anon_sym_DOLLARCACHE_LBRACE, - aux_sym_unquoted_argument_token1, - anon_sym_RPAREN, - [522] = 1, - ACTIONS(126), 12, - sym_space, - sym_newline, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - anon_sym_DOLLAR_LBRACE, - anon_sym_DOLLARENV_LBRACE, - anon_sym_DOLLARCACHE_LBRACE, - aux_sym_unquoted_argument_token1, - anon_sym_RPAREN, - [537] = 5, - ACTIONS(128), 1, - sym_space, - ACTIONS(131), 1, - sym_newline, - STATE(39), 1, - sym_line_ending, - STATE(22), 2, + STATE(18), 2, sym_seperation, aux_sym__seperated_arguments_repeat1, - ACTIONS(100), 7, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - aux_sym_variable_token1, - anon_sym_RPAREN, - [560] = 5, - ACTIONS(136), 1, - aux_sym_variable_token1, - STATE(43), 1, - sym__escape_encoded, - ACTIONS(138), 2, - anon_sym_RBRACE, - anon_sym_RPAREN, STATE(24), 2, - sym_escape_sequence, - aux_sym_variable_repeat1, - ACTIONS(134), 5, + sym_line_ending, + aux_sym_seperation_repeat1, + ACTIONS(96), 7, sym__escape_identity, anon_sym_BSLASHt, anon_sym_BSLASHr, anon_sym_BSLASHn, sym__escape_semicolon, - [582] = 5, - ACTIONS(143), 1, aux_sym_variable_token1, - STATE(43), 1, - sym__escape_encoded, - ACTIONS(146), 2, - anon_sym_RBRACE, anon_sym_RPAREN, - STATE(24), 2, - sym_escape_sequence, - aux_sym_variable_repeat1, - ACTIONS(140), 5, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - [604] = 1, - ACTIONS(124), 11, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - anon_sym_DOLLAR_LBRACE, - anon_sym_DOLLARENV_LBRACE, - anon_sym_DOLLARCACHE_LBRACE, - anon_sym_DQUOTE, - aux_sym_quoted_element_token1, - anon_sym_BSLASH, - [618] = 1, - ACTIONS(86), 11, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - anon_sym_DOLLAR_LBRACE, - anon_sym_DOLLARENV_LBRACE, - anon_sym_DOLLARCACHE_LBRACE, - anon_sym_DQUOTE, - aux_sym_quoted_element_token1, - anon_sym_BSLASH, - [632] = 1, - ACTIONS(126), 11, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - anon_sym_DOLLAR_LBRACE, - anon_sym_DOLLARENV_LBRACE, - anon_sym_DOLLARCACHE_LBRACE, - anon_sym_DQUOTE, - aux_sym_quoted_element_token1, - anon_sym_BSLASH, - [646] = 1, - ACTIONS(118), 11, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - anon_sym_DOLLAR_LBRACE, - anon_sym_DOLLARENV_LBRACE, - anon_sym_DOLLARCACHE_LBRACE, - anon_sym_DQUOTE, - aux_sym_quoted_element_token1, - anon_sym_BSLASH, - [660] = 1, - ACTIONS(122), 11, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - anon_sym_DOLLAR_LBRACE, - anon_sym_DOLLARENV_LBRACE, - anon_sym_DOLLARCACHE_LBRACE, - anon_sym_DQUOTE, - aux_sym_quoted_element_token1, - anon_sym_BSLASH, - [674] = 1, - ACTIONS(120), 11, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - anon_sym_DOLLAR_LBRACE, - anon_sym_DOLLARENV_LBRACE, - anon_sym_DOLLARCACHE_LBRACE, - anon_sym_DQUOTE, - aux_sym_quoted_element_token1, - anon_sym_BSLASH, - [688] = 5, - ACTIONS(148), 1, - aux_sym_variable_token1, - STATE(43), 1, - sym__escape_encoded, - STATE(80), 1, - sym_variable, - STATE(23), 2, - sym_escape_sequence, - aux_sym_variable_repeat1, - ACTIONS(134), 5, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - [709] = 5, - ACTIONS(148), 1, - aux_sym_variable_token1, - STATE(43), 1, - sym__escape_encoded, - STATE(87), 1, - sym_variable, - STATE(23), 2, - sym_escape_sequence, - aux_sym_variable_repeat1, - ACTIONS(134), 5, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - [730] = 5, - ACTIONS(148), 1, - aux_sym_variable_token1, - STATE(43), 1, - sym__escape_encoded, - STATE(86), 1, - sym_variable, - STATE(23), 2, - sym_escape_sequence, - aux_sym_variable_repeat1, - ACTIONS(134), 5, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - [751] = 5, - ACTIONS(148), 1, - aux_sym_variable_token1, - STATE(43), 1, - sym__escape_encoded, - STATE(81), 1, - sym_variable, - STATE(23), 2, - sym_escape_sequence, - aux_sym_variable_repeat1, - ACTIONS(134), 5, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - [772] = 5, - ACTIONS(148), 1, - aux_sym_variable_token1, - STATE(43), 1, - sym__escape_encoded, - STATE(85), 1, - sym_variable, - STATE(23), 2, - sym_escape_sequence, - aux_sym_variable_repeat1, - ACTIONS(134), 5, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - [793] = 5, - ACTIONS(148), 1, - aux_sym_variable_token1, - STATE(43), 1, - sym__escape_encoded, - STATE(79), 1, - sym_variable, - STATE(23), 2, - sym_escape_sequence, - aux_sym_variable_repeat1, - ACTIONS(134), 5, - sym__escape_identity, - anon_sym_BSLASHt, - anon_sym_BSLASHr, - anon_sym_BSLASHn, - sym__escape_semicolon, - [814] = 6, - ACTIONS(5), 1, - sym_foreach, - ACTIONS(7), 1, - sym_endforeach, - ACTIONS(9), 1, - sym_identifier, - ACTIONS(150), 1, - ts_builtin_sym_end, - STATE(38), 2, - sym_command_invocation, - aux_sym_source_file_repeat1, - STATE(52), 3, - sym_foreach_command, - sym_endforeach_command, - sym_normal_command, - [836] = 6, - ACTIONS(152), 1, - ts_builtin_sym_end, - ACTIONS(154), 1, - sym_foreach, - ACTIONS(157), 1, - sym_endforeach, - ACTIONS(160), 1, - sym_identifier, - STATE(38), 2, - sym_command_invocation, - aux_sym_source_file_repeat1, - STATE(52), 3, - sym_foreach_command, - sym_endforeach_command, - sym_normal_command, - [858] = 1, - ACTIONS(116), 9, + [458] = 1, + ACTIONS(132), 12, sym_space, sym_newline, sym__escape_identity, @@ -1827,9 +1543,71 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_BSLASHr, anon_sym_BSLASHn, sym__escape_semicolon, - aux_sym_variable_token1, + anon_sym_DOLLAR_LBRACE, + anon_sym_DOLLARENV_LBRACE, + anon_sym_DOLLARCACHE_LBRACE, + aux_sym_unquoted_argument_token1, anon_sym_RPAREN, - [870] = 1, + [473] = 1, + ACTIONS(134), 12, + sym_space, + sym_newline, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + anon_sym_DOLLAR_LBRACE, + anon_sym_DOLLARENV_LBRACE, + anon_sym_DOLLARCACHE_LBRACE, + aux_sym_unquoted_argument_token1, + anon_sym_RPAREN, + [488] = 1, + ACTIONS(136), 12, + sym_space, + sym_newline, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + anon_sym_DOLLAR_LBRACE, + anon_sym_DOLLARENV_LBRACE, + anon_sym_DOLLARCACHE_LBRACE, + aux_sym_unquoted_argument_token1, + anon_sym_RPAREN, + [503] = 1, + ACTIONS(138), 12, + sym_space, + sym_newline, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + anon_sym_DOLLAR_LBRACE, + anon_sym_DOLLARENV_LBRACE, + anon_sym_DOLLARCACHE_LBRACE, + aux_sym_unquoted_argument_token1, + anon_sym_RPAREN, + [518] = 1, + ACTIONS(140), 12, + sym_space, + sym_newline, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + anon_sym_DOLLAR_LBRACE, + anon_sym_DOLLARENV_LBRACE, + anon_sym_DOLLARCACHE_LBRACE, + aux_sym_unquoted_argument_token1, + anon_sym_RPAREN, + [533] = 2, + STATE(33), 2, + sym_line_ending, + aux_sym_seperation_repeat1, ACTIONS(114), 9, sym_space, sym_newline, @@ -1840,38 +1618,321 @@ static const uint16_t ts_small_parse_table[] = { sym__escape_semicolon, aux_sym_variable_token1, anon_sym_RPAREN, - [882] = 6, - ACTIONS(163), 1, - sym_space, - ACTIONS(166), 1, - sym_newline, - ACTIONS(169), 1, + [549] = 5, + ACTIONS(144), 1, + aux_sym_variable_token1, + STATE(46), 1, + sym__escape_encoded, + ACTIONS(146), 2, + anon_sym_RBRACE, anon_sym_RPAREN, - STATE(16), 1, + STATE(32), 2, + sym_escape_sequence, + aux_sym_variable_repeat1, + ACTIONS(142), 5, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + [571] = 1, + ACTIONS(132), 11, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + anon_sym_DOLLAR_LBRACE, + anon_sym_DOLLARENV_LBRACE, + anon_sym_DOLLARCACHE_LBRACE, + anon_sym_DQUOTE, + aux_sym_quoted_element_token1, + anon_sym_BSLASH, + [585] = 1, + ACTIONS(82), 11, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + anon_sym_DOLLAR_LBRACE, + anon_sym_DOLLARENV_LBRACE, + anon_sym_DOLLARCACHE_LBRACE, + anon_sym_DQUOTE, + aux_sym_quoted_element_token1, + anon_sym_BSLASH, + [599] = 1, + ACTIONS(134), 11, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + anon_sym_DOLLAR_LBRACE, + anon_sym_DOLLARENV_LBRACE, + anon_sym_DOLLARCACHE_LBRACE, + anon_sym_DQUOTE, + aux_sym_quoted_element_token1, + anon_sym_BSLASH, + [613] = 1, + ACTIONS(138), 11, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + anon_sym_DOLLAR_LBRACE, + anon_sym_DOLLARENV_LBRACE, + anon_sym_DOLLARCACHE_LBRACE, + anon_sym_DQUOTE, + aux_sym_quoted_element_token1, + anon_sym_BSLASH, + [627] = 1, + ACTIONS(136), 11, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + anon_sym_DOLLAR_LBRACE, + anon_sym_DOLLARENV_LBRACE, + anon_sym_DOLLARCACHE_LBRACE, + anon_sym_DQUOTE, + aux_sym_quoted_element_token1, + anon_sym_BSLASH, + [641] = 1, + ACTIONS(140), 11, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + anon_sym_DOLLAR_LBRACE, + anon_sym_DOLLARENV_LBRACE, + anon_sym_DOLLARCACHE_LBRACE, + anon_sym_DQUOTE, + aux_sym_quoted_element_token1, + anon_sym_BSLASH, + [655] = 5, + ACTIONS(151), 1, + aux_sym_variable_token1, + STATE(46), 1, + sym__escape_encoded, + ACTIONS(154), 2, + anon_sym_RBRACE, + anon_sym_RPAREN, + STATE(32), 2, + sym_escape_sequence, + aux_sym_variable_repeat1, + ACTIONS(148), 5, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + [677] = 4, + ACTIONS(156), 1, + sym_space, + ACTIONS(159), 1, + sym_newline, + STATE(33), 2, sym_line_ending, - STATE(4), 2, - sym_seperation, - aux_sym__seperated_arguments_repeat1, - STATE(41), 2, - sym__seperated_arguments, - aux_sym_arguments_repeat1, - [903] = 6, + aux_sym_seperation_repeat1, + ACTIONS(122), 7, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + aux_sym_variable_token1, + anon_sym_RPAREN, + [697] = 5, + ACTIONS(162), 1, + aux_sym_variable_token1, + STATE(46), 1, + sym__escape_encoded, + STATE(76), 1, + sym_variable, + STATE(25), 2, + sym_escape_sequence, + aux_sym_variable_repeat1, + ACTIONS(142), 5, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + [718] = 5, + ACTIONS(162), 1, + aux_sym_variable_token1, + STATE(46), 1, + sym__escape_encoded, + STATE(78), 1, + sym_variable, + STATE(25), 2, + sym_escape_sequence, + aux_sym_variable_repeat1, + ACTIONS(142), 5, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + [739] = 5, + ACTIONS(162), 1, + aux_sym_variable_token1, + STATE(46), 1, + sym__escape_encoded, + STATE(77), 1, + sym_variable, + STATE(25), 2, + sym_escape_sequence, + aux_sym_variable_repeat1, + ACTIONS(142), 5, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + [760] = 5, + ACTIONS(162), 1, + aux_sym_variable_token1, + STATE(46), 1, + sym__escape_encoded, + STATE(88), 1, + sym_variable, + STATE(25), 2, + sym_escape_sequence, + aux_sym_variable_repeat1, + ACTIONS(142), 5, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + [781] = 5, + ACTIONS(162), 1, + aux_sym_variable_token1, + STATE(46), 1, + sym__escape_encoded, + STATE(86), 1, + sym_variable, + STATE(25), 2, + sym_escape_sequence, + aux_sym_variable_repeat1, + ACTIONS(142), 5, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + [802] = 5, + ACTIONS(162), 1, + aux_sym_variable_token1, + STATE(46), 1, + sym__escape_encoded, + STATE(87), 1, + sym_variable, + STATE(25), 2, + sym_escape_sequence, + aux_sym_variable_repeat1, + ACTIONS(142), 5, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + [823] = 5, + ACTIONS(164), 1, + ts_builtin_sym_end, + ACTIONS(166), 1, + sym_foreach, + ACTIONS(169), 1, + sym_endforeach, + ACTIONS(172), 1, + sym_identifier, + STATE(40), 5, + sym_foreach_command, + sym_endforeach_command, + sym_normal_command, + sym__command_invocation, + aux_sym_source_file_repeat1, + [843] = 5, + ACTIONS(5), 1, + sym_foreach, + ACTIONS(7), 1, + sym_endforeach, + ACTIONS(9), 1, + sym_identifier, + ACTIONS(175), 1, + ts_builtin_sym_end, + STATE(40), 5, + sym_foreach_command, + sym_endforeach_command, + sym_normal_command, + sym__command_invocation, + aux_sym_source_file_repeat1, + [863] = 6, ACTIONS(11), 1, sym_space, ACTIONS(13), 1, sym_newline, - ACTIONS(171), 1, + ACTIONS(177), 1, anon_sym_RPAREN, - STATE(16), 1, - sym_line_ending, STATE(4), 2, sym_seperation, aux_sym__seperated_arguments_repeat1, - STATE(41), 2, + STATE(14), 2, + sym_line_ending, + aux_sym_seperation_repeat1, + STATE(45), 2, sym__seperated_arguments, aux_sym_arguments_repeat1, - [924] = 1, - ACTIONS(173), 8, + [885] = 6, + ACTIONS(179), 1, + sym_space, + ACTIONS(182), 1, + sym_newline, + ACTIONS(185), 1, + anon_sym_RPAREN, + STATE(4), 2, + sym_seperation, + aux_sym__seperated_arguments_repeat1, + STATE(14), 2, + sym_line_ending, + aux_sym_seperation_repeat1, + STATE(43), 2, + sym__seperated_arguments, + aux_sym_arguments_repeat1, + [907] = 1, + ACTIONS(124), 9, + sym_space, + sym_newline, + sym__escape_identity, + anon_sym_BSLASHt, + anon_sym_BSLASHr, + anon_sym_BSLASHn, + sym__escape_semicolon, + aux_sym_variable_token1, + anon_sym_RPAREN, + [919] = 6, + ACTIONS(11), 1, + sym_space, + ACTIONS(13), 1, + sym_newline, + ACTIONS(187), 1, + anon_sym_RPAREN, + STATE(4), 2, + sym_seperation, + aux_sym__seperated_arguments_repeat1, + STATE(14), 2, + sym_line_ending, + aux_sym_seperation_repeat1, + STATE(43), 2, + sym__seperated_arguments, + aux_sym_arguments_repeat1, + [941] = 1, + ACTIONS(189), 8, sym__escape_identity, anon_sym_BSLASHt, anon_sym_BSLASHr, @@ -1880,489 +1941,470 @@ static const uint16_t ts_small_parse_table[] = { aux_sym_variable_token1, anon_sym_RBRACE, anon_sym_RPAREN, - [935] = 6, - ACTIONS(11), 1, - sym_space, - ACTIONS(13), 1, - sym_newline, - ACTIONS(175), 1, - anon_sym_RPAREN, - STATE(16), 1, - sym_line_ending, - STATE(4), 2, - sym_seperation, - aux_sym__seperated_arguments_repeat1, - STATE(42), 2, - sym__seperated_arguments, - aux_sym_arguments_repeat1, - [956] = 5, - ACTIONS(177), 1, + [952] = 5, + ACTIONS(191), 1, aux_sym_bracket_content_token1, - ACTIONS(179), 1, - anon_sym_RBRACK, - STATE(57), 1, - sym__bracket_close, - STATE(58), 1, - aux_sym_bracket_content_repeat1, - STATE(70), 1, - sym_bracket_content, - [972] = 2, - ACTIONS(181), 1, - ts_builtin_sym_end, - ACTIONS(183), 3, - sym_foreach, - sym_endforeach, - sym_identifier, - [981] = 2, - ACTIONS(185), 1, - ts_builtin_sym_end, - ACTIONS(187), 3, - sym_foreach, - sym_endforeach, - sym_identifier, - [990] = 2, - ACTIONS(189), 1, - ts_builtin_sym_end, - ACTIONS(191), 3, - sym_foreach, - sym_endforeach, - sym_identifier, - [999] = 2, ACTIONS(193), 1, - ts_builtin_sym_end, - ACTIONS(195), 3, - sym_foreach, - sym_endforeach, - sym_identifier, - [1008] = 2, - ACTIONS(197), 1, - ts_builtin_sym_end, - ACTIONS(199), 3, - sym_foreach, - sym_endforeach, - sym_identifier, - [1017] = 3, - ACTIONS(203), 1, - anon_sym_EQ, - STATE(51), 1, - aux_sym__bracket_open_repeat1, - ACTIONS(201), 2, - anon_sym_LBRACK, anon_sym_RBRACK, - [1028] = 2, - ACTIONS(206), 1, - ts_builtin_sym_end, - ACTIONS(208), 3, - sym_foreach, - sym_endforeach, - sym_identifier, - [1037] = 2, - ACTIONS(210), 1, - ts_builtin_sym_end, - ACTIONS(212), 3, - sym_foreach, - sym_endforeach, - sym_identifier, - [1046] = 2, - ACTIONS(214), 1, - ts_builtin_sym_end, - ACTIONS(216), 3, - sym_foreach, - sym_endforeach, - sym_identifier, - [1055] = 2, - ACTIONS(218), 1, - ts_builtin_sym_end, - ACTIONS(220), 3, - sym_foreach, - sym_endforeach, - sym_identifier, - [1064] = 3, - ACTIONS(222), 1, - aux_sym_bracket_content_token1, - ACTIONS(225), 1, - anon_sym_RBRACK, - STATE(56), 1, - aux_sym_bracket_content_repeat1, - [1074] = 1, - ACTIONS(227), 3, - sym_space, - sym_newline, - anon_sym_RPAREN, - [1080] = 3, - ACTIONS(229), 1, - aux_sym_bracket_content_token1, - ACTIONS(231), 1, - anon_sym_RBRACK, - STATE(56), 1, - aux_sym_bracket_content_repeat1, - [1090] = 3, - ACTIONS(233), 1, - anon_sym_LBRACK, - ACTIONS(235), 1, - anon_sym_EQ, + STATE(59), 1, + sym__bracket_close, STATE(60), 1, + aux_sym_bracket_content_repeat1, + STATE(72), 1, + sym_bracket_content, + [968] = 2, + ACTIONS(195), 1, + ts_builtin_sym_end, + ACTIONS(197), 3, + sym_foreach, + sym_endforeach, + sym_identifier, + [977] = 2, + ACTIONS(199), 1, + ts_builtin_sym_end, + ACTIONS(201), 3, + sym_foreach, + sym_endforeach, + sym_identifier, + [986] = 2, + ACTIONS(203), 1, + ts_builtin_sym_end, + ACTIONS(205), 3, + sym_foreach, + sym_endforeach, + sym_identifier, + [995] = 2, + ACTIONS(207), 1, + ts_builtin_sym_end, + ACTIONS(209), 3, + sym_foreach, + sym_endforeach, + sym_identifier, + [1004] = 2, + ACTIONS(211), 1, + ts_builtin_sym_end, + ACTIONS(213), 3, + sym_foreach, + sym_endforeach, + sym_identifier, + [1013] = 2, + ACTIONS(215), 1, + ts_builtin_sym_end, + ACTIONS(217), 3, + sym_foreach, + sym_endforeach, + sym_identifier, + [1022] = 3, + ACTIONS(221), 1, + anon_sym_EQ, + STATE(54), 1, aux_sym__bracket_open_repeat1, - [1100] = 3, - ACTIONS(237), 1, + ACTIONS(219), 2, anon_sym_LBRACK, - ACTIONS(239), 1, - anon_sym_EQ, - STATE(51), 1, - aux_sym__bracket_open_repeat1, - [1110] = 1, - ACTIONS(241), 3, - sym_space, - sym_newline, - anon_sym_RPAREN, - [1116] = 3, - ACTIONS(243), 1, - anon_sym_EQ, - ACTIONS(245), 1, anon_sym_RBRACK, - STATE(68), 1, - aux_sym__bracket_open_repeat1, - [1126] = 1, - ACTIONS(247), 3, + [1033] = 2, + ACTIONS(224), 1, + ts_builtin_sym_end, + ACTIONS(226), 3, + sym_foreach, + sym_endforeach, + sym_identifier, + [1042] = 2, + ACTIONS(228), 1, + ts_builtin_sym_end, + ACTIONS(230), 3, + sym_foreach, + sym_endforeach, + sym_identifier, + [1051] = 1, + ACTIONS(232), 3, sym_space, sym_newline, anon_sym_RPAREN, - [1132] = 1, - ACTIONS(249), 3, + [1057] = 1, + ACTIONS(234), 3, sym_space, sym_newline, anon_sym_RPAREN, - [1138] = 1, - ACTIONS(251), 3, + [1063] = 1, + ACTIONS(236), 3, sym_space, sym_newline, anon_sym_RPAREN, - [1144] = 1, - ACTIONS(253), 3, - sym_space, - sym_newline, - anon_sym_RPAREN, - [1150] = 1, - ACTIONS(255), 3, - sym_space, - sym_newline, - anon_sym_RPAREN, - [1156] = 3, - ACTIONS(239), 1, - anon_sym_EQ, - ACTIONS(257), 1, + [1069] = 3, + ACTIONS(238), 1, + aux_sym_bracket_content_token1, + ACTIONS(240), 1, anon_sym_RBRACK, - STATE(51), 1, + STATE(64), 1, + aux_sym_bracket_content_repeat1, + [1079] = 3, + ACTIONS(242), 1, + anon_sym_LBRACK, + ACTIONS(244), 1, + anon_sym_EQ, + STATE(69), 1, aux_sym__bracket_open_repeat1, - [1166] = 1, + [1089] = 3, + ACTIONS(246), 1, + anon_sym_EQ, + ACTIONS(248), 1, + anon_sym_RBRACK, + STATE(67), 1, + aux_sym__bracket_open_repeat1, + [1099] = 1, + ACTIONS(250), 3, + sym_space, + sym_newline, + anon_sym_RPAREN, + [1105] = 3, + ACTIONS(252), 1, + aux_sym_bracket_content_token1, + ACTIONS(255), 1, + anon_sym_RBRACK, + STATE(64), 1, + aux_sym_bracket_content_repeat1, + [1115] = 1, + ACTIONS(257), 3, + sym_space, + sym_newline, + anon_sym_RPAREN, + [1121] = 1, ACTIONS(259), 3, sym_space, sym_newline, anon_sym_RPAREN, - [1172] = 2, + [1127] = 3, ACTIONS(261), 1, - anon_sym_RBRACK, - STATE(69), 1, - sym__bracket_close, - [1179] = 2, + anon_sym_EQ, ACTIONS(263), 1, - aux_sym_bracket_content_token1, - ACTIONS(265), 1, anon_sym_RBRACK, - [1186] = 2, - ACTIONS(267), 1, - aux_sym_bracket_content_token1, - ACTIONS(269), 1, - anon_sym_RBRACK, - [1193] = 1, - ACTIONS(271), 1, - anon_sym_DQUOTE, - [1197] = 1, - ACTIONS(273), 1, + STATE(54), 1, + aux_sym__bracket_open_repeat1, + [1137] = 1, + ACTIONS(265), 3, + sym_space, sym_newline, - [1201] = 1, + anon_sym_RPAREN, + [1143] = 3, + ACTIONS(261), 1, + anon_sym_EQ, + ACTIONS(267), 1, + anon_sym_LBRACK, + STATE(54), 1, + aux_sym__bracket_open_repeat1, + [1153] = 1, + ACTIONS(269), 3, + sym_space, + sym_newline, + anon_sym_RPAREN, + [1159] = 2, + ACTIONS(271), 1, + aux_sym_bracket_content_token1, + ACTIONS(273), 1, + anon_sym_RBRACK, + [1166] = 2, ACTIONS(275), 1, - anon_sym_RPAREN, - [1205] = 1, + anon_sym_RBRACK, + STATE(65), 1, + sym__bracket_close, + [1173] = 2, ACTIONS(277), 1, - anon_sym_LPAREN, - [1209] = 1, + aux_sym_bracket_content_token1, ACTIONS(279), 1, - anon_sym_RPAREN, - [1213] = 1, + anon_sym_RBRACK, + [1180] = 1, ACTIONS(281), 1, anon_sym_RPAREN, - [1217] = 1, + [1184] = 1, ACTIONS(283), 1, - anon_sym_RBRACE, - [1221] = 1, + anon_sym_RPAREN, + [1188] = 1, ACTIONS(285), 1, anon_sym_RBRACE, - [1225] = 1, + [1192] = 1, ACTIONS(287), 1, anon_sym_RBRACE, - [1229] = 1, + [1196] = 1, ACTIONS(289), 1, - ts_builtin_sym_end, - [1233] = 1, + anon_sym_RBRACE, + [1200] = 1, ACTIONS(291), 1, - anon_sym_LPAREN, - [1237] = 1, + anon_sym_RPAREN, + [1204] = 1, ACTIONS(293), 1, - anon_sym_LPAREN, - [1241] = 1, + anon_sym_RPAREN, + [1208] = 1, ACTIONS(295), 1, - anon_sym_RBRACE, - [1245] = 1, + sym_newline, + [1212] = 1, ACTIONS(297), 1, - anon_sym_RBRACE, - [1249] = 1, + anon_sym_LPAREN, + [1216] = 1, ACTIONS(299), 1, - anon_sym_RBRACE, - [1253] = 1, + anon_sym_DQUOTE, + [1220] = 1, ACTIONS(301), 1, anon_sym_RPAREN, - [1257] = 1, + [1224] = 1, ACTIONS(303), 1, anon_sym_RPAREN, - [1261] = 1, + [1228] = 1, ACTIONS(305), 1, - anon_sym_RPAREN, + anon_sym_RBRACE, + [1232] = 1, + ACTIONS(307), 1, + anon_sym_RBRACE, + [1236] = 1, + ACTIONS(309), 1, + anon_sym_RBRACE, + [1240] = 1, + ACTIONS(311), 1, + ts_builtin_sym_end, + [1244] = 1, + ACTIONS(313), 1, + anon_sym_LPAREN, + [1248] = 1, + ACTIONS(315), 1, + anon_sym_LPAREN, }; static const uint32_t ts_small_parse_table_map[] = { - [SMALL_STATE(4)] = 0, - [SMALL_STATE(5)] = 62, - [SMALL_STATE(6)] = 100, - [SMALL_STATE(7)] = 142, - [SMALL_STATE(8)] = 180, - [SMALL_STATE(9)] = 219, - [SMALL_STATE(10)] = 258, - [SMALL_STATE(11)] = 286, - [SMALL_STATE(12)] = 323, - [SMALL_STATE(13)] = 360, - [SMALL_STATE(14)] = 394, - [SMALL_STATE(15)] = 428, - [SMALL_STATE(16)] = 445, - [SMALL_STATE(17)] = 462, - [SMALL_STATE(18)] = 477, - [SMALL_STATE(19)] = 492, - [SMALL_STATE(20)] = 507, - [SMALL_STATE(21)] = 522, - [SMALL_STATE(22)] = 537, - [SMALL_STATE(23)] = 560, - [SMALL_STATE(24)] = 582, - [SMALL_STATE(25)] = 604, - [SMALL_STATE(26)] = 618, - [SMALL_STATE(27)] = 632, - [SMALL_STATE(28)] = 646, - [SMALL_STATE(29)] = 660, - [SMALL_STATE(30)] = 674, - [SMALL_STATE(31)] = 688, - [SMALL_STATE(32)] = 709, - [SMALL_STATE(33)] = 730, - [SMALL_STATE(34)] = 751, - [SMALL_STATE(35)] = 772, - [SMALL_STATE(36)] = 793, - [SMALL_STATE(37)] = 814, - [SMALL_STATE(38)] = 836, - [SMALL_STATE(39)] = 858, - [SMALL_STATE(40)] = 870, - [SMALL_STATE(41)] = 882, - [SMALL_STATE(42)] = 903, - [SMALL_STATE(43)] = 924, - [SMALL_STATE(44)] = 935, - [SMALL_STATE(45)] = 956, - [SMALL_STATE(46)] = 972, - [SMALL_STATE(47)] = 981, - [SMALL_STATE(48)] = 990, - [SMALL_STATE(49)] = 999, - [SMALL_STATE(50)] = 1008, - [SMALL_STATE(51)] = 1017, - [SMALL_STATE(52)] = 1028, - [SMALL_STATE(53)] = 1037, - [SMALL_STATE(54)] = 1046, - [SMALL_STATE(55)] = 1055, - [SMALL_STATE(56)] = 1064, - [SMALL_STATE(57)] = 1074, - [SMALL_STATE(58)] = 1080, - [SMALL_STATE(59)] = 1090, - [SMALL_STATE(60)] = 1100, - [SMALL_STATE(61)] = 1110, - [SMALL_STATE(62)] = 1116, - [SMALL_STATE(63)] = 1126, - [SMALL_STATE(64)] = 1132, - [SMALL_STATE(65)] = 1138, - [SMALL_STATE(66)] = 1144, - [SMALL_STATE(67)] = 1150, - [SMALL_STATE(68)] = 1156, - [SMALL_STATE(69)] = 1166, - [SMALL_STATE(70)] = 1172, - [SMALL_STATE(71)] = 1179, - [SMALL_STATE(72)] = 1186, - [SMALL_STATE(73)] = 1193, - [SMALL_STATE(74)] = 1197, - [SMALL_STATE(75)] = 1201, - [SMALL_STATE(76)] = 1205, - [SMALL_STATE(77)] = 1209, - [SMALL_STATE(78)] = 1213, - [SMALL_STATE(79)] = 1217, - [SMALL_STATE(80)] = 1221, - [SMALL_STATE(81)] = 1225, - [SMALL_STATE(82)] = 1229, - [SMALL_STATE(83)] = 1233, - [SMALL_STATE(84)] = 1237, - [SMALL_STATE(85)] = 1241, - [SMALL_STATE(86)] = 1245, - [SMALL_STATE(87)] = 1249, - [SMALL_STATE(88)] = 1253, - [SMALL_STATE(89)] = 1257, - [SMALL_STATE(90)] = 1261, + [SMALL_STATE(5)] = 0, + [SMALL_STATE(6)] = 38, + [SMALL_STATE(7)] = 76, + [SMALL_STATE(8)] = 118, + [SMALL_STATE(9)] = 157, + [SMALL_STATE(10)] = 186, + [SMALL_STATE(11)] = 225, + [SMALL_STATE(12)] = 263, + [SMALL_STATE(13)] = 301, + [SMALL_STATE(14)] = 336, + [SMALL_STATE(15)] = 357, + [SMALL_STATE(16)] = 392, + [SMALL_STATE(17)] = 417, + [SMALL_STATE(18)] = 434, + [SMALL_STATE(19)] = 458, + [SMALL_STATE(20)] = 473, + [SMALL_STATE(21)] = 488, + [SMALL_STATE(22)] = 503, + [SMALL_STATE(23)] = 518, + [SMALL_STATE(24)] = 533, + [SMALL_STATE(25)] = 549, + [SMALL_STATE(26)] = 571, + [SMALL_STATE(27)] = 585, + [SMALL_STATE(28)] = 599, + [SMALL_STATE(29)] = 613, + [SMALL_STATE(30)] = 627, + [SMALL_STATE(31)] = 641, + [SMALL_STATE(32)] = 655, + [SMALL_STATE(33)] = 677, + [SMALL_STATE(34)] = 697, + [SMALL_STATE(35)] = 718, + [SMALL_STATE(36)] = 739, + [SMALL_STATE(37)] = 760, + [SMALL_STATE(38)] = 781, + [SMALL_STATE(39)] = 802, + [SMALL_STATE(40)] = 823, + [SMALL_STATE(41)] = 843, + [SMALL_STATE(42)] = 863, + [SMALL_STATE(43)] = 885, + [SMALL_STATE(44)] = 907, + [SMALL_STATE(45)] = 919, + [SMALL_STATE(46)] = 941, + [SMALL_STATE(47)] = 952, + [SMALL_STATE(48)] = 968, + [SMALL_STATE(49)] = 977, + [SMALL_STATE(50)] = 986, + [SMALL_STATE(51)] = 995, + [SMALL_STATE(52)] = 1004, + [SMALL_STATE(53)] = 1013, + [SMALL_STATE(54)] = 1022, + [SMALL_STATE(55)] = 1033, + [SMALL_STATE(56)] = 1042, + [SMALL_STATE(57)] = 1051, + [SMALL_STATE(58)] = 1057, + [SMALL_STATE(59)] = 1063, + [SMALL_STATE(60)] = 1069, + [SMALL_STATE(61)] = 1079, + [SMALL_STATE(62)] = 1089, + [SMALL_STATE(63)] = 1099, + [SMALL_STATE(64)] = 1105, + [SMALL_STATE(65)] = 1115, + [SMALL_STATE(66)] = 1121, + [SMALL_STATE(67)] = 1127, + [SMALL_STATE(68)] = 1137, + [SMALL_STATE(69)] = 1143, + [SMALL_STATE(70)] = 1153, + [SMALL_STATE(71)] = 1159, + [SMALL_STATE(72)] = 1166, + [SMALL_STATE(73)] = 1173, + [SMALL_STATE(74)] = 1180, + [SMALL_STATE(75)] = 1184, + [SMALL_STATE(76)] = 1188, + [SMALL_STATE(77)] = 1192, + [SMALL_STATE(78)] = 1196, + [SMALL_STATE(79)] = 1200, + [SMALL_STATE(80)] = 1204, + [SMALL_STATE(81)] = 1208, + [SMALL_STATE(82)] = 1212, + [SMALL_STATE(83)] = 1216, + [SMALL_STATE(84)] = 1220, + [SMALL_STATE(85)] = 1224, + [SMALL_STATE(86)] = 1228, + [SMALL_STATE(87)] = 1232, + [SMALL_STATE(88)] = 1236, + [SMALL_STATE(89)] = 1240, + [SMALL_STATE(90)] = 1244, + [SMALL_STATE(91)] = 1248, }; static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), [3] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [5] = {.entry = {.count = 1, .reusable = false}}, SHIFT(76), - [7] = {.entry = {.count = 1, .reusable = false}}, SHIFT(84), - [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(83), - [11] = {.entry = {.count = 1, .reusable = false}}, SHIFT(16), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(15), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(20), - [17] = {.entry = {.count = 1, .reusable = false}}, SHIFT(34), - [19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(31), - [21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(36), - [23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(59), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(6), + [5] = {.entry = {.count = 1, .reusable = false}}, SHIFT(82), + [7] = {.entry = {.count = 1, .reusable = false}}, SHIFT(91), + [9] = {.entry = {.count = 1, .reusable = false}}, SHIFT(90), + [11] = {.entry = {.count = 1, .reusable = false}}, SHIFT(14), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(17), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22), + [17] = {.entry = {.count = 1, .reusable = false}}, SHIFT(35), + [19] = {.entry = {.count = 1, .reusable = false}}, SHIFT(36), + [21] = {.entry = {.count = 1, .reusable = false}}, SHIFT(34), + [23] = {.entry = {.count = 1, .reusable = false}}, SHIFT(61), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(7), [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(5), - [29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(55), - [31] = {.entry = {.count = 1, .reusable = false}}, SHIFT(50), + [29] = {.entry = {.count = 1, .reusable = false}}, SHIFT(50), + [31] = {.entry = {.count = 1, .reusable = false}}, SHIFT(51), [33] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__seperated_arguments, 1), [35] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_unquoted_argument, 1), - [37] = {.entry = {.count = 1, .reusable = false}}, SHIFT(7), - [39] = {.entry = {.count = 1, .reusable = false}}, SHIFT(25), - [41] = {.entry = {.count = 1, .reusable = false}}, SHIFT(35), - [43] = {.entry = {.count = 1, .reusable = false}}, SHIFT(33), - [45] = {.entry = {.count = 1, .reusable = false}}, SHIFT(32), - [47] = {.entry = {.count = 1, .reusable = false}}, SHIFT(64), - [49] = {.entry = {.count = 1, .reusable = false}}, SHIFT(8), - [51] = {.entry = {.count = 1, .reusable = false}}, SHIFT(74), - [53] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_unquoted_argument_repeat1, 2), - [55] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_unquoted_argument_repeat1, 2), SHIFT_REPEAT(20), - [58] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_unquoted_argument_repeat1, 2), SHIFT_REPEAT(34), - [61] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_unquoted_argument_repeat1, 2), SHIFT_REPEAT(31), - [64] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_unquoted_argument_repeat1, 2), SHIFT_REPEAT(36), - [67] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_unquoted_argument_repeat1, 2), SHIFT_REPEAT(7), - [70] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_quoted_element, 1), - [72] = {.entry = {.count = 1, .reusable = false}}, SHIFT(9), - [74] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), SHIFT_REPEAT(25), - [77] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), SHIFT_REPEAT(35), - [80] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), SHIFT_REPEAT(33), - [83] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), SHIFT_REPEAT(32), - [86] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), - [88] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), SHIFT_REPEAT(9), - [91] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), SHIFT_REPEAT(74), - [94] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__seperated_arguments_repeat1, 2), SHIFT_REPEAT(16), - [97] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__seperated_arguments_repeat1, 2), SHIFT_REPEAT(15), - [100] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__seperated_arguments_repeat1, 2), - [102] = {.entry = {.count = 1, .reusable = false}}, SHIFT(39), - [104] = {.entry = {.count = 1, .reusable = false}}, SHIFT(40), - [106] = {.entry = {.count = 1, .reusable = false}}, SHIFT(43), - [108] = {.entry = {.count = 1, .reusable = false}}, SHIFT(23), - [110] = {.entry = {.count = 1, .reusable = false}}, SHIFT(46), - [112] = {.entry = {.count = 1, .reusable = false}}, SHIFT(48), - [114] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_line_ending, 1), - [116] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_seperation, 1), - [118] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_normal_var, 3), - [120] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_cache_var, 3), - [122] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_env_var, 3), - [124] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_escape_sequence, 1), - [126] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_variable_ref, 1), - [128] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__seperated_arguments_repeat1, 2), SHIFT_REPEAT(39), - [131] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__seperated_arguments_repeat1, 2), SHIFT_REPEAT(40), - [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), - [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [138] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variable, 1), - [140] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_variable_repeat1, 2), SHIFT_REPEAT(43), - [143] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_variable_repeat1, 2), SHIFT_REPEAT(24), - [146] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_variable_repeat1, 2), - [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [150] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [152] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [154] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(76), - [157] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(84), - [160] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(83), - [163] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_arguments_repeat1, 2), SHIFT_REPEAT(16), - [166] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_arguments_repeat1, 2), SHIFT_REPEAT(15), - [169] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_arguments_repeat1, 2), - [171] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_arguments, 2), - [173] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_escape_sequence, 1), - [175] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_arguments, 1), - [177] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [179] = {.entry = {.count = 1, .reusable = false}}, SHIFT(62), - [181] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_endforeach_command, 4), - [183] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_endforeach_command, 4), - [185] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_normal_command, 5), - [187] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_normal_command, 5), - [189] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_endforeach_command, 3), - [191] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_endforeach_command, 3), - [193] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_foreach_command, 4), - [195] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_foreach_command, 4), - [197] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_normal_command, 3), - [199] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_normal_command, 3), - [201] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__bracket_open_repeat1, 2), - [203] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__bracket_open_repeat1, 2), SHIFT_REPEAT(51), - [206] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_command_invocation, 1), - [208] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_command_invocation, 1), - [210] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_foreach_command, 5), - [212] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_foreach_command, 5), - [214] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_endforeach_command, 5), - [216] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_endforeach_command, 5), - [218] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_normal_command, 4), - [220] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_normal_command, 4), - [222] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_bracket_content_repeat1, 2), SHIFT_REPEAT(56), - [225] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_bracket_content_repeat1, 2), - [227] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bracket_argument, 2), - [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), - [231] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bracket_content, 1), - [233] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), - [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), - [237] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [241] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_argument, 1), - [243] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [245] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [247] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_quoted_argument, 3), - [249] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_quoted_argument, 2), - [251] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__bracket_close, 3), - [253] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__seperated_arguments, 2), - [255] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__bracket_close, 2), - [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), - [259] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bracket_argument, 3), - [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), - [263] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__bracket_open, 2), - [265] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__bracket_open, 2), - [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__bracket_open, 3), - [269] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__bracket_open, 3), - [271] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [275] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), - [277] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), - [279] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [281] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [283] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [285] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [287] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [289] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [291] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [293] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [295] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [297] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [299] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [301] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [303] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [305] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [37] = {.entry = {.count = 1, .reusable = false}}, SHIFT(6), + [39] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_unquoted_argument_repeat1, 2), + [41] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_unquoted_argument_repeat1, 2), SHIFT_REPEAT(22), + [44] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_unquoted_argument_repeat1, 2), SHIFT_REPEAT(35), + [47] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_unquoted_argument_repeat1, 2), SHIFT_REPEAT(36), + [50] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_unquoted_argument_repeat1, 2), SHIFT_REPEAT(34), + [53] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_unquoted_argument_repeat1, 2), SHIFT_REPEAT(6), + [56] = {.entry = {.count = 1, .reusable = false}}, SHIFT(29), + [58] = {.entry = {.count = 1, .reusable = false}}, SHIFT(38), + [60] = {.entry = {.count = 1, .reusable = false}}, SHIFT(39), + [62] = {.entry = {.count = 1, .reusable = false}}, SHIFT(37), + [64] = {.entry = {.count = 1, .reusable = false}}, SHIFT(68), + [66] = {.entry = {.count = 1, .reusable = false}}, SHIFT(10), + [68] = {.entry = {.count = 1, .reusable = false}}, SHIFT(81), + [70] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), SHIFT_REPEAT(29), + [73] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), SHIFT_REPEAT(38), + [76] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), SHIFT_REPEAT(39), + [79] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), SHIFT_REPEAT(37), + [82] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), + [84] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), SHIFT_REPEAT(8), + [87] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_quoted_element_repeat1, 2), SHIFT_REPEAT(81), + [90] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__seperated_arguments_repeat1, 2), SHIFT_REPEAT(14), + [93] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__seperated_arguments_repeat1, 2), SHIFT_REPEAT(17), + [96] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym__seperated_arguments_repeat1, 2), + [98] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_quoted_element, 1), + [100] = {.entry = {.count = 1, .reusable = false}}, SHIFT(8), + [102] = {.entry = {.count = 1, .reusable = false}}, SHIFT(24), + [104] = {.entry = {.count = 1, .reusable = false}}, SHIFT(44), + [106] = {.entry = {.count = 1, .reusable = false}}, SHIFT(46), + [108] = {.entry = {.count = 1, .reusable = false}}, SHIFT(25), + [110] = {.entry = {.count = 1, .reusable = false}}, SHIFT(55), + [112] = {.entry = {.count = 1, .reusable = false}}, SHIFT(56), + [114] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_seperation, 1), + [116] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_seperation_repeat1, 2), SHIFT_REPEAT(16), + [119] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_seperation_repeat1, 2), SHIFT_REPEAT(17), + [122] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_seperation_repeat1, 2), + [124] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_line_ending, 1), + [126] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__seperated_arguments_repeat1, 2), SHIFT_REPEAT(24), + [129] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym__seperated_arguments_repeat1, 2), SHIFT_REPEAT(44), + [132] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_normal_var, 3), + [134] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_cache_var, 3), + [136] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_env_var, 3), + [138] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_escape_sequence, 1), + [140] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_variable_ref, 1), + [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [146] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_variable, 1), + [148] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_variable_repeat1, 2), SHIFT_REPEAT(46), + [151] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_variable_repeat1, 2), SHIFT_REPEAT(32), + [154] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_variable_repeat1, 2), + [156] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_seperation_repeat1, 2), SHIFT_REPEAT(33), + [159] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_seperation_repeat1, 2), SHIFT_REPEAT(44), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [164] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [166] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(82), + [169] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(91), + [172] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(90), + [175] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [177] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_arguments, 1), + [179] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_arguments_repeat1, 2), SHIFT_REPEAT(14), + [182] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_arguments_repeat1, 2), SHIFT_REPEAT(17), + [185] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_arguments_repeat1, 2), + [187] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_arguments, 2), + [189] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_escape_sequence, 1), + [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), + [193] = {.entry = {.count = 1, .reusable = false}}, SHIFT(62), + [195] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_foreach_command, 4), + [197] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_foreach_command, 4), + [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_normal_command, 5), + [201] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_normal_command, 5), + [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_normal_command, 4), + [205] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_normal_command, 4), + [207] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_normal_command, 3), + [209] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_normal_command, 3), + [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_foreach_command, 5), + [213] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_foreach_command, 5), + [215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_endforeach_command, 5), + [217] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_endforeach_command, 5), + [219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__bracket_open_repeat1, 2), + [221] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__bracket_open_repeat1, 2), SHIFT_REPEAT(54), + [224] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_endforeach_command, 3), + [226] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_endforeach_command, 3), + [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_endforeach_command, 4), + [230] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_endforeach_command, 4), + [232] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__seperated_arguments, 2), + [234] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_argument, 1), + [236] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bracket_argument, 2), + [238] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), + [240] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bracket_content, 1), + [242] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), + [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), + [250] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__bracket_close, 3), + [252] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_bracket_content_repeat1, 2), SHIFT_REPEAT(64), + [255] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_bracket_content_repeat1, 2), + [257] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_bracket_argument, 3), + [259] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_quoted_argument, 3), + [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), + [263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), + [265] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym_quoted_argument, 2), + [267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), + [269] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__bracket_close, 2), + [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__bracket_open, 2), + [273] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__bracket_open, 2), + [275] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), + [277] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__bracket_open, 3), + [279] = {.entry = {.count = 1, .reusable = false}}, REDUCE(sym__bracket_open, 3), + [281] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [283] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), + [285] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [287] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), + [289] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [291] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), + [293] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [295] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [297] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), + [299] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), + [301] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), + [303] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [305] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [307] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [309] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [311] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [313] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), }; #ifdef __cplusplus