From 1fd9b67dbe8a9bb2de82ab4011563a2c6f92a41e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 1 Jul 2024 13:53:48 +0000 Subject: [PATCH] Add select binding --- grammar.js | 7 + src/grammar.json | 43 + src/node-types.json | 40 + src/parser.c | 2398 ++++++++++++++++++++------------------ test/corpus/select.txt | 10 +- test/highlight/select.bp | 3 + 6 files changed, 1345 insertions(+), 1156 deletions(-) diff --git a/grammar.js b/grammar.js index 5ad924d..0c3bc4a 100644 --- a/grammar.js +++ b/grammar.js @@ -164,9 +164,16 @@ module.exports = grammar({ $._string_literal, $.boolean_literal, alias("any", $.any), + $.pattern_binding, alias("default", $.default), ), + pattern_binding: ($) => seq( + field("value", alias("any", $.any)), + field("operator", alias("@", $.operator)), + field("binding", $.identifier), + ), + _case_value: ($) => choice( alias("unset", $.unset), $._expr, diff --git a/src/grammar.json b/src/grammar.json index d14285b..d54a443 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -744,6 +744,10 @@ "named": true, "value": "any" }, + { + "type": "SYMBOL", + "name": "pattern_binding" + }, { "type": "ALIAS", "content": { @@ -755,6 +759,45 @@ } ] }, + "pattern_binding": { + "type": "SEQ", + "members": [ + { + "type": "FIELD", + "name": "value", + "content": { + "type": "ALIAS", + "content": { + "type": "STRING", + "value": "any" + }, + "named": true, + "value": "any" + } + }, + { + "type": "FIELD", + "name": "operator", + "content": { + "type": "ALIAS", + "content": { + "type": "STRING", + "value": "@" + }, + "named": true, + "value": "operator" + } + }, + { + "type": "FIELD", + "name": "binding", + "content": { + "type": "SYMBOL", + "name": "identifier" + } + } + ] + }, "_case_value": { "type": "CHOICE", "members": [ diff --git a/src/node-types.json b/src/node-types.json index 1bde56e..16ecf61 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -321,6 +321,42 @@ } } }, + { + "type": "pattern_binding", + "named": true, + "fields": { + "binding": { + "multiple": false, + "required": true, + "types": [ + { + "type": "identifier", + "named": true + } + ] + }, + "operator": { + "multiple": false, + "required": true, + "types": [ + { + "type": "operator", + "named": true + } + ] + }, + "value": { + "multiple": false, + "required": true, + "types": [ + { + "type": "any", + "named": true + } + ] + } + } + }, { "type": "property", "named": true, @@ -499,6 +535,10 @@ "type": "interpreted_string_literal", "named": true }, + { + "type": "pattern_binding", + "named": true + }, { "type": "raw_string_literal", "named": true diff --git a/src/parser.c b/src/parser.c index bb980c0..5e0ef96 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,15 +5,15 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 139 +#define STATE_COUNT 142 #define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 65 +#define SYMBOL_COUNT 67 #define ALIAS_COUNT 0 -#define TOKEN_COUNT 31 +#define TOKEN_COUNT 32 #define EXTERNAL_TOKEN_COUNT 0 -#define FIELD_COUNT 11 +#define FIELD_COUNT 12 #define MAX_ALIAS_SEQUENCE_LENGTH 6 -#define PRODUCTION_ID_COUNT 18 +#define PRODUCTION_ID_COUNT 19 enum ts_symbol_identifiers { anon_sym_SLASH_SLASH = 1, @@ -42,44 +42,46 @@ enum ts_symbol_identifiers { anon_sym_COLON = 24, anon_sym_any = 25, anon_sym_default = 26, - anon_sym_unset = 27, - anon_sym_LBRACK = 28, - anon_sym_RBRACK = 29, - anon_sym_PLUS = 30, - sym_source_file = 31, - sym__definition = 32, - sym_comment = 33, - sym_assignment = 34, - sym_module = 35, - sym__old_module = 36, - sym__new_module = 37, - sym__expr = 38, - sym_boolean_literal = 39, - sym_integer_literal = 40, - sym__string_literal = 41, - sym_interpreted_string_literal = 42, - sym_select_expression = 43, - sym_select_value = 44, - sym_condition = 45, - sym_select_cases = 46, - sym_select_case = 47, - sym_select_pattern = 48, - sym__select_pattern = 49, - sym__case_value = 50, - sym_list_expression = 51, - sym_map_expression = 52, - sym_binary_expression = 53, - sym__colon_property = 54, - sym__equal_property = 55, - aux_sym_source_file_repeat1 = 56, - aux_sym__old_module_repeat1 = 57, - aux_sym__new_module_repeat1 = 58, - aux_sym_interpreted_string_literal_repeat1 = 59, - aux_sym_select_value_repeat1 = 60, - aux_sym_condition_repeat1 = 61, - aux_sym_select_cases_repeat1 = 62, - aux_sym_select_pattern_repeat1 = 63, - aux_sym_list_expression_repeat1 = 64, + anon_sym_AT = 27, + anon_sym_unset = 28, + anon_sym_LBRACK = 29, + anon_sym_RBRACK = 30, + anon_sym_PLUS = 31, + sym_source_file = 32, + sym__definition = 33, + sym_comment = 34, + sym_assignment = 35, + sym_module = 36, + sym__old_module = 37, + sym__new_module = 38, + sym__expr = 39, + sym_boolean_literal = 40, + sym_integer_literal = 41, + sym__string_literal = 42, + sym_interpreted_string_literal = 43, + sym_select_expression = 44, + sym_select_value = 45, + sym_condition = 46, + sym_select_cases = 47, + sym_select_case = 48, + sym_select_pattern = 49, + sym__select_pattern = 50, + sym_pattern_binding = 51, + sym__case_value = 52, + sym_list_expression = 53, + sym_map_expression = 54, + sym_binary_expression = 55, + sym__colon_property = 56, + sym__equal_property = 57, + aux_sym_source_file_repeat1 = 58, + aux_sym__old_module_repeat1 = 59, + aux_sym__new_module_repeat1 = 60, + aux_sym_interpreted_string_literal_repeat1 = 61, + aux_sym_select_value_repeat1 = 62, + aux_sym_condition_repeat1 = 63, + aux_sym_select_cases_repeat1 = 64, + aux_sym_select_pattern_repeat1 = 65, + aux_sym_list_expression_repeat1 = 66, }; static const char * const ts_symbol_names[] = { @@ -110,6 +112,7 @@ static const char * const ts_symbol_names[] = { [anon_sym_COLON] = ":", [anon_sym_any] = "any", [anon_sym_default] = "default", + [anon_sym_AT] = "operator", [anon_sym_unset] = "unset", [anon_sym_LBRACK] = "[", [anon_sym_RBRACK] = "]", @@ -133,6 +136,7 @@ static const char * const ts_symbol_names[] = { [sym_select_case] = "select_case", [sym_select_pattern] = "select_pattern", [sym__select_pattern] = "_select_pattern", + [sym_pattern_binding] = "pattern_binding", [sym__case_value] = "_case_value", [sym_list_expression] = "list_expression", [sym_map_expression] = "map_expression", @@ -178,6 +182,7 @@ static const TSSymbol ts_symbol_map[] = { [anon_sym_COLON] = anon_sym_COLON, [anon_sym_any] = anon_sym_any, [anon_sym_default] = anon_sym_default, + [anon_sym_AT] = anon_sym_PLUS_EQ, [anon_sym_unset] = anon_sym_unset, [anon_sym_LBRACK] = anon_sym_LBRACK, [anon_sym_RBRACK] = anon_sym_RBRACK, @@ -201,6 +206,7 @@ static const TSSymbol ts_symbol_map[] = { [sym_select_case] = sym_select_case, [sym_select_pattern] = sym_select_pattern, [sym__select_pattern] = sym__select_pattern, + [sym_pattern_binding] = sym_pattern_binding, [sym__case_value] = sym__case_value, [sym_list_expression] = sym_list_expression, [sym_map_expression] = sym_map_expression, @@ -327,6 +333,10 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, + [anon_sym_AT] = { + .visible = true, + .named = true, + }, [anon_sym_unset] = { .visible = true, .named = true, @@ -419,6 +429,10 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = true, }, + [sym_pattern_binding] = { + .visible = true, + .named = true, + }, [sym__case_value] = { .visible = false, .named = true, @@ -483,21 +497,23 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { enum ts_field_identifiers { field_arguments = 1, - field_element = 2, - field_field = 3, - field_left = 4, - field_name = 5, - field_operator = 6, - field_pattern = 7, - field_property = 8, - field_right = 9, - field_type = 10, - field_value = 11, + field_binding = 2, + field_element = 3, + field_field = 4, + field_left = 5, + field_name = 6, + field_operator = 7, + field_pattern = 8, + field_property = 9, + field_right = 10, + field_type = 11, + field_value = 12, }; static const char * const ts_field_names[] = { [0] = NULL, [field_arguments] = "arguments", + [field_binding] = "binding", [field_element] = "element", [field_field] = "field", [field_left] = "left", @@ -527,7 +543,8 @@ static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [14] = {.index = 31, .length = 1}, [15] = {.index = 32, .length = 2}, [16] = {.index = 34, .length = 3}, - [17] = {.index = 37, .length = 2}, + [17] = {.index = 37, .length = 3}, + [18] = {.index = 40, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { @@ -584,6 +601,10 @@ static const TSFieldMapEntry ts_field_map_entries[] = { {field_arguments, 3}, {field_name, 0}, [37] = + {field_binding, 2}, + {field_operator, 1}, + {field_value, 0}, + [40] = {field_pattern, 0}, {field_value, 2}, }; @@ -739,6 +760,9 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [136] = 136, [137] = 137, [138] = 138, + [139] = 139, + [140] = 140, + [141] = 141, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -3588,15 +3612,16 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '"') ADVANCE(99); if (lookahead == '(') ADVANCE(61); if (lookahead == ')') ADVANCE(62); - if (lookahead == '+') ADVANCE(113); + if (lookahead == '+') ADVANCE(114); if (lookahead == ',') ADVANCE(59); if (lookahead == '-') ADVANCE(92); if (lookahead == '/') ADVANCE(55); if (lookahead == ':') ADVANCE(104); if (lookahead == '=') ADVANCE(56); - if (lookahead == '[') ADVANCE(110); + if (lookahead == '@') ADVANCE(109); + if (lookahead == '[') ADVANCE(111); if (lookahead == '\\') ADVANCE(11); - if (lookahead == ']') ADVANCE(111); + if (lookahead == ']') ADVANCE(112); if (lookahead == '`') ADVANCE(37); if (lookahead == 'a') ADVANCE(76); if (lookahead == 'd') ADVANCE(66); @@ -3650,7 +3675,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '-') ADVANCE(92); if (lookahead == '/') ADVANCE(6); if (lookahead == '=') ADVANCE(56); - if (lookahead == '[') ADVANCE(110); + if (lookahead == '[') ADVANCE(111); if (lookahead == '`') ADVANCE(37); if (lookahead == 'f') ADVANCE(63); if (lookahead == 's') ADVANCE(71); @@ -3666,8 +3691,8 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '"') ADVANCE(95); if (lookahead == '-') ADVANCE(92); if (lookahead == '/') ADVANCE(6); - if (lookahead == '[') ADVANCE(110); - if (lookahead == ']') ADVANCE(111); + if (lookahead == '[') ADVANCE(111); + if (lookahead == ']') ADVANCE(112); if (lookahead == '`') ADVANCE(37); if (lookahead == 'f') ADVANCE(63); if (lookahead == 's') ADVANCE(71); @@ -3813,14 +3838,15 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '"') ADVANCE(95); if (lookahead == '(') ADVANCE(61); if (lookahead == ')') ADVANCE(62); - if (lookahead == '+') ADVANCE(113); + if (lookahead == '+') ADVANCE(114); if (lookahead == ',') ADVANCE(59); if (lookahead == '-') ADVANCE(92); if (lookahead == '/') ADVANCE(55); if (lookahead == ':') ADVANCE(104); if (lookahead == '=') ADVANCE(56); - if (lookahead == '[') ADVANCE(110); - if (lookahead == ']') ADVANCE(111); + if (lookahead == '@') ADVANCE(109); + if (lookahead == '[') ADVANCE(111); + if (lookahead == ']') ADVANCE(112); if (lookahead == '`') ADVANCE(37); if (lookahead == 'a') ADVANCE(76); if (lookahead == 'd') ADVANCE(66); @@ -3840,11 +3866,11 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '"') ADVANCE(95); if (lookahead == '(') ADVANCE(61); if (lookahead == ')') ADVANCE(62); - if (lookahead == '+') ADVANCE(112); + if (lookahead == '+') ADVANCE(113); if (lookahead == ',') ADVANCE(59); if (lookahead == '/') ADVANCE(6); if (lookahead == ':') ADVANCE(104); - if (lookahead == ']') ADVANCE(111); + if (lookahead == ']') ADVANCE(112); if (lookahead == '`') ADVANCE(37); if (lookahead == '}') ADVANCE(60); if (('\t' <= lookahead && lookahead <= '\r') || @@ -4059,7 +4085,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 81: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(109); + if (lookahead == 't') ADVANCE(110); if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 82: @@ -4181,19 +4207,22 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); case 109: + ACCEPT_TOKEN(anon_sym_AT); + END_STATE(); + case 110: ACCEPT_TOKEN(anon_sym_unset); if (sym_identifier_character_set_3(lookahead)) ADVANCE(87); END_STATE(); - case 110: + case 111: ACCEPT_TOKEN(anon_sym_LBRACK); END_STATE(); - case 111: + case 112: ACCEPT_TOKEN(anon_sym_RBRACK); END_STATE(); - case 112: + case 113: ACCEPT_TOKEN(anon_sym_PLUS); END_STATE(); - case 113: + case 114: ACCEPT_TOKEN(anon_sym_PLUS); if (lookahead == '=') ADVANCE(57); END_STATE(); @@ -4244,94 +4273,94 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [38] = {.lex_state = 39}, [39] = {.lex_state = 39}, [40] = {.lex_state = 39}, - [41] = {.lex_state = 39}, - [42] = {.lex_state = 1}, + [41] = {.lex_state = 0}, + [42] = {.lex_state = 39}, [43] = {.lex_state = 39}, - [44] = {.lex_state = 39}, + [44] = {.lex_state = 1}, [45] = {.lex_state = 4}, [46] = {.lex_state = 1}, - [47] = {.lex_state = 1}, - [48] = {.lex_state = 0}, + [47] = {.lex_state = 39}, + [48] = {.lex_state = 1}, [49] = {.lex_state = 39}, [50] = {.lex_state = 39}, - [51] = {.lex_state = 39}, - [52] = {.lex_state = 39}, - [53] = {.lex_state = 0}, - [54] = {.lex_state = 39}, + [51] = {.lex_state = 0}, + [52] = {.lex_state = 1}, + [53] = {.lex_state = 39}, + [54] = {.lex_state = 0}, [55] = {.lex_state = 0}, [56] = {.lex_state = 39}, - [57] = {.lex_state = 39}, + [57] = {.lex_state = 0}, [58] = {.lex_state = 0}, [59] = {.lex_state = 39}, [60] = {.lex_state = 0}, [61] = {.lex_state = 0}, - [62] = {.lex_state = 39}, + [62] = {.lex_state = 0}, [63] = {.lex_state = 0}, [64] = {.lex_state = 0}, [65] = {.lex_state = 0}, - [66] = {.lex_state = 0}, - [67] = {.lex_state = 0}, + [66] = {.lex_state = 39}, + [67] = {.lex_state = 39}, [68] = {.lex_state = 39}, [69] = {.lex_state = 39}, [70] = {.lex_state = 0}, - [71] = {.lex_state = 39}, - [72] = {.lex_state = 39}, + [71] = {.lex_state = 0}, + [72] = {.lex_state = 0}, [73] = {.lex_state = 0}, - [74] = {.lex_state = 1}, + [74] = {.lex_state = 39}, [75] = {.lex_state = 39}, [76] = {.lex_state = 0}, - [77] = {.lex_state = 0}, - [78] = {.lex_state = 0}, + [77] = {.lex_state = 39}, + [78] = {.lex_state = 39}, [79] = {.lex_state = 0}, - [80] = {.lex_state = 39}, + [80] = {.lex_state = 0}, [81] = {.lex_state = 0}, [82] = {.lex_state = 0}, [83] = {.lex_state = 0}, - [84] = {.lex_state = 0}, + [84] = {.lex_state = 39}, [85] = {.lex_state = 39}, - [86] = {.lex_state = 0}, - [87] = {.lex_state = 0}, - [88] = {.lex_state = 39}, + [86] = {.lex_state = 39}, + [87] = {.lex_state = 39}, + [88] = {.lex_state = 0}, [89] = {.lex_state = 39}, [90] = {.lex_state = 39}, [91] = {.lex_state = 39}, [92] = {.lex_state = 39}, [93] = {.lex_state = 39}, - [94] = {.lex_state = 0}, - [95] = {.lex_state = 39}, + [94] = {.lex_state = 39}, + [95] = {.lex_state = 0}, [96] = {.lex_state = 0}, [97] = {.lex_state = 39}, [98] = {.lex_state = 39}, [99] = {.lex_state = 39}, [100] = {.lex_state = 39}, [101] = {.lex_state = 39}, - [102] = {.lex_state = 0}, + [102] = {.lex_state = 39}, [103] = {.lex_state = 0}, [104] = {.lex_state = 39}, [105] = {.lex_state = 39}, [106] = {.lex_state = 39}, [107] = {.lex_state = 0}, [108] = {.lex_state = 0}, - [109] = {.lex_state = 39}, + [109] = {.lex_state = 0}, [110] = {.lex_state = 39}, - [111] = {.lex_state = 39}, - [112] = {.lex_state = 0}, + [111] = {.lex_state = 0}, + [112] = {.lex_state = 39}, [113] = {.lex_state = 0}, [114] = {.lex_state = 0}, - [115] = {.lex_state = 46}, + [115] = {.lex_state = 0}, [116] = {.lex_state = 0}, - [117] = {.lex_state = 0}, + [117] = {.lex_state = 7}, [118] = {.lex_state = 0}, [119] = {.lex_state = 0}, [120] = {.lex_state = 0}, [121] = {.lex_state = 0}, - [122] = {.lex_state = 7}, + [122] = {.lex_state = 0}, [123] = {.lex_state = 0}, - [124] = {.lex_state = 0}, + [124] = {.lex_state = 39}, [125] = {.lex_state = 0}, [126] = {.lex_state = 0}, [127] = {.lex_state = 0}, - [128] = {.lex_state = 0}, + [128] = {.lex_state = 46}, [129] = {.lex_state = 0}, [130] = {.lex_state = 0}, [131] = {.lex_state = 0}, @@ -4340,8 +4369,11 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [134] = {.lex_state = 0}, [135] = {.lex_state = 0}, [136] = {.lex_state = 0}, - [137] = {(TSStateId)(-1)}, - [138] = {(TSStateId)(-1)}, + [137] = {.lex_state = 0}, + [138] = {.lex_state = 0}, + [139] = {.lex_state = 0}, + [140] = {(TSStateId)(-1)}, + [141] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -4371,20 +4403,21 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_COLON] = ACTIONS(1), [anon_sym_any] = ACTIONS(1), [anon_sym_default] = ACTIONS(1), + [anon_sym_AT] = ACTIONS(1), [anon_sym_unset] = ACTIONS(1), [anon_sym_LBRACK] = ACTIONS(1), [anon_sym_RBRACK] = ACTIONS(1), [anon_sym_PLUS] = ACTIONS(1), }, [1] = { - [sym_source_file] = STATE(136), - [sym__definition] = STATE(93), + [sym_source_file] = STATE(138), + [sym__definition] = STATE(101), [sym_comment] = STATE(1), - [sym_assignment] = STATE(99), - [sym_module] = STATE(99), - [sym__old_module] = STATE(100), - [sym__new_module] = STATE(101), - [aux_sym_source_file_repeat1] = STATE(18), + [sym_assignment] = STATE(102), + [sym_module] = STATE(102), + [sym__old_module] = STATE(104), + [sym__new_module] = STATE(106), + [aux_sym_source_file_repeat1] = STATE(21), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -4422,12 +4455,12 @@ static const uint16_t ts_small_parse_table[] = { sym_interpreted_string_literal, STATE(98), 1, sym__expr, - STATE(132), 1, + STATE(135), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4462,12 +4495,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(80), 1, + STATE(84), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4502,12 +4535,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(43), 1, + STATE(84), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4542,12 +4575,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(80), 1, + STATE(42), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4580,12 +4613,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(49), 1, + STATE(66), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4618,12 +4651,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(56), 1, + STATE(49), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4656,12 +4689,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(80), 1, + STATE(28), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4694,12 +4727,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(71), 1, + STATE(85), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4732,12 +4765,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(38), 1, + STATE(84), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(32), 7, + STATE(37), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4745,7 +4778,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [492] = 14, + [492] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4758,27 +4791,29 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(48), 1, anon_sym_DQUOTE, + ACTIONS(51), 1, + anon_sym_any, + ACTIONS(54), 1, + anon_sym_default, STATE(23), 1, sym_interpreted_string_literal, - STATE(114), 1, - sym__select_pattern, - STATE(118), 1, - sym_select_case, - STATE(125), 1, + STATE(119), 1, sym_select_pattern, + STATE(121), 1, + sym_select_case, + STATE(127), 1, + sym__select_pattern, ACTIONS(42), 2, anon_sym_true, anon_sym_false, - ACTIONS(51), 2, - anon_sym_any, - anon_sym_default, STATE(11), 2, sym_comment, aux_sym_select_cases_repeat1, - STATE(82), 2, + STATE(64), 3, sym_boolean_literal, sym__string_literal, - [539] = 15, + sym_pattern_binding, + [542] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4787,66 +4822,34 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(54), 1, + ACTIONS(57), 1, anon_sym_RBRACE, - ACTIONS(56), 1, + ACTIONS(59), 1, anon_sym_LPAREN, - STATE(12), 1, - sym_comment, - STATE(13), 1, - aux_sym_select_cases_repeat1, - STATE(23), 1, - sym_interpreted_string_literal, - STATE(114), 1, - sym__select_pattern, - STATE(118), 1, - sym_select_case, - STATE(125), 1, - sym_select_pattern, - ACTIONS(58), 2, - anon_sym_true, - anon_sym_false, - ACTIONS(60), 2, + ACTIONS(63), 1, anon_sym_any, + ACTIONS(65), 1, anon_sym_default, - STATE(82), 2, - sym_boolean_literal, - sym__string_literal, - [588] = 15, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(56), 1, - anon_sym_LPAREN, - ACTIONS(62), 1, - anon_sym_RBRACE, STATE(11), 1, aux_sym_select_cases_repeat1, - STATE(13), 1, + STATE(12), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(114), 1, - sym__select_pattern, - STATE(118), 1, - sym_select_case, - STATE(125), 1, + STATE(119), 1, sym_select_pattern, - ACTIONS(58), 2, + STATE(121), 1, + sym_select_case, + STATE(127), 1, + sym__select_pattern, + ACTIONS(61), 2, anon_sym_true, anon_sym_false, - ACTIONS(60), 2, - anon_sym_any, - anon_sym_default, - STATE(82), 2, + STATE(64), 3, sym_boolean_literal, sym__string_literal, - [637] = 11, + sym_pattern_binding, + [594] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4855,24 +4858,62 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(64), 1, + ACTIONS(59), 1, + anon_sym_LPAREN, + ACTIONS(63), 1, + anon_sym_any, + ACTIONS(65), 1, + anon_sym_default, + ACTIONS(67), 1, + anon_sym_RBRACE, + STATE(12), 1, + aux_sym_select_cases_repeat1, + STATE(13), 1, + sym_comment, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(119), 1, + sym_select_pattern, + STATE(121), 1, + sym_select_case, + STATE(127), 1, + sym__select_pattern, + ACTIONS(61), 2, + anon_sym_true, + anon_sym_false, + STATE(64), 3, + sym_boolean_literal, + sym__string_literal, + sym_pattern_binding, + [646] = 12, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(63), 1, + anon_sym_any, + ACTIONS(65), 1, + anon_sym_default, + ACTIONS(69), 1, anon_sym_RPAREN, STATE(14), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(94), 1, + STATE(95), 1, sym__select_pattern, - ACTIONS(58), 2, + ACTIONS(61), 2, anon_sym_true, anon_sym_false, - ACTIONS(60), 2, - anon_sym_any, - anon_sym_default, - STATE(82), 2, + STATE(64), 3, sym_boolean_literal, sym__string_literal, - [674] = 11, + sym_pattern_binding, + [686] = 12, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4881,24 +4922,26 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(66), 1, + ACTIONS(63), 1, + anon_sym_any, + ACTIONS(65), 1, + anon_sym_default, + ACTIONS(71), 1, anon_sym_RPAREN, STATE(15), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(94), 1, + STATE(95), 1, sym__select_pattern, - ACTIONS(58), 2, + ACTIONS(61), 2, anon_sym_true, anon_sym_false, - ACTIONS(60), 2, - anon_sym_any, - anon_sym_default, - STATE(82), 2, + STATE(64), 3, sym_boolean_literal, sym__string_literal, - [711] = 10, + sym_pattern_binding, + [726] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4907,22 +4950,24 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, + ACTIONS(63), 1, + anon_sym_any, + ACTIONS(65), 1, + anon_sym_default, STATE(16), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(94), 1, + STATE(95), 1, sym__select_pattern, - ACTIONS(58), 2, + ACTIONS(61), 2, anon_sym_true, anon_sym_false, - ACTIONS(60), 2, - anon_sym_any, - anon_sym_default, - STATE(82), 2, + STATE(64), 3, sym_boolean_literal, sym__string_literal, - [745] = 10, + sym_pattern_binding, + [763] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4931,44 +4976,40 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, + ACTIONS(63), 1, + anon_sym_any, + ACTIONS(65), 1, + anon_sym_default, STATE(17), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(61), 1, + STATE(62), 1, sym__select_pattern, - ACTIONS(58), 2, + ACTIONS(61), 2, anon_sym_true, anon_sym_false, - ACTIONS(60), 2, - anon_sym_any, - anon_sym_default, - STATE(82), 2, + STATE(64), 3, sym_boolean_literal, sym__string_literal, - [779] = 10, + sym_pattern_binding, + [800] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(9), 1, - sym_identifier, - ACTIONS(68), 1, - ts_builtin_sym_end, STATE(18), 1, sym_comment, - STATE(21), 1, - aux_sym_source_file_repeat1, - STATE(93), 1, - sym__definition, - STATE(100), 1, - sym__old_module, - STATE(101), 1, - sym__new_module, - STATE(99), 2, - sym_assignment, - sym_module, - [811] = 4, + ACTIONS(73), 8, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_COLON, + anon_sym_RBRACK, + anon_sym_PLUS, + [820] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4984,14 +5025,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, anon_sym_any, anon_sym_default, - [831] = 4, + [840] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(20), 1, sym_comment, - ACTIONS(70), 8, + ACTIONS(75), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5000,50 +5041,35 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [851] = 9, + [860] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(72), 1, - ts_builtin_sym_end, - ACTIONS(74), 1, + ACTIONS(9), 1, sym_identifier, - STATE(93), 1, - sym__definition, - STATE(100), 1, - sym__old_module, - STATE(101), 1, - sym__new_module, - STATE(21), 2, + ACTIONS(77), 1, + ts_builtin_sym_end, + STATE(21), 1, sym_comment, + STATE(24), 1, aux_sym_source_file_repeat1, - STATE(99), 2, + STATE(101), 1, + sym__definition, + STATE(104), 1, + sym__old_module, + STATE(106), 1, + sym__new_module, + STATE(102), 2, sym_assignment, sym_module, - [881] = 4, + [892] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(22), 1, sym_comment, - ACTIONS(77), 8, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_COLON, - anon_sym_RBRACK, - anon_sym_PLUS, - [901] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(23), 1, - sym_comment, ACTIONS(79), 8, ts_builtin_sym_end, anon_sym_COMMA, @@ -5053,12 +5079,12 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [921] = 4, + [912] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(24), 1, + STATE(23), 1, sym_comment, ACTIONS(81), 8, ts_builtin_sym_end, @@ -5069,14 +5095,35 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [941] = 4, + [932] = 9, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(83), 1, + ts_builtin_sym_end, + ACTIONS(85), 1, + sym_identifier, + STATE(101), 1, + sym__definition, + STATE(104), 1, + sym__old_module, + STATE(106), 1, + sym__new_module, + STATE(24), 2, + sym_comment, + aux_sym_source_file_repeat1, + STATE(102), 2, + sym_assignment, + sym_module, + [962] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(25), 1, sym_comment, - ACTIONS(83), 7, + ACTIONS(88), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5084,14 +5131,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [960] = 4, + [981] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(26), 1, sym_comment, - ACTIONS(85), 7, + ACTIONS(90), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5099,14 +5146,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [979] = 4, + [1000] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(27), 1, sym_comment, - ACTIONS(87), 7, + ACTIONS(92), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5114,14 +5161,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [998] = 4, + [1019] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(28), 1, sym_comment, - ACTIONS(89), 7, + ACTIONS(94), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5129,14 +5176,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1017] = 4, + [1038] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(29), 1, sym_comment, - ACTIONS(91), 7, + ACTIONS(96), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5144,14 +5191,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1036] = 4, + [1057] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(30), 1, sym_comment, - ACTIONS(93), 7, + ACTIONS(98), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5159,14 +5206,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1055] = 4, + [1076] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(31), 1, sym_comment, - ACTIONS(95), 7, + ACTIONS(100), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5174,14 +5221,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1074] = 4, + [1095] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(32), 1, sym_comment, - ACTIONS(97), 7, + ACTIONS(102), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5189,14 +5236,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1093] = 4, + [1114] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(33), 1, sym_comment, - ACTIONS(99), 7, + ACTIONS(104), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5204,14 +5251,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1112] = 4, + [1133] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(34), 1, sym_comment, - ACTIONS(101), 7, + ACTIONS(106), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5219,14 +5266,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1131] = 4, + [1152] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(35), 1, sym_comment, - ACTIONS(103), 7, + ACTIONS(108), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5234,14 +5281,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1150] = 4, + [1171] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(36), 1, sym_comment, - ACTIONS(105), 7, + ACTIONS(110), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5249,14 +5296,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1169] = 4, + [1190] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(37), 1, sym_comment, - ACTIONS(107), 7, + ACTIONS(112), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5264,14 +5311,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1188] = 4, + [1209] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(38), 1, sym_comment, - ACTIONS(109), 7, + ACTIONS(114), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5279,14 +5326,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1207] = 4, + [1228] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(39), 1, sym_comment, - ACTIONS(111), 7, + ACTIONS(116), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5294,7 +5341,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1226] = 8, + [1247] = 8, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5303,60 +5350,102 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(113), 1, + ACTIONS(118), 1, anon_sym_RPAREN, STATE(23), 1, sym_interpreted_string_literal, STATE(40), 1, sym_comment, - STATE(60), 1, + STATE(79), 1, sym__string_literal, - [1251] = 7, + [1272] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(115), 1, - anon_sym_LPAREN, - ACTIONS(117), 1, - sym_identifier, + ACTIONS(122), 1, + anon_sym_AT, STATE(41), 1, sym_comment, - STATE(129), 1, - sym_select_value, - STATE(134), 1, - sym_condition, - [1273] = 7, - ACTIONS(119), 1, - anon_sym_SLASH_SLASH, - ACTIONS(121), 1, - anon_sym_SLASH_STAR, - ACTIONS(123), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(125), 1, - anon_sym_DQUOTE2, - ACTIONS(127), 1, - sym_escape_sequence, - STATE(42), 1, - sym_comment, - STATE(46), 1, - aux_sym_interpreted_string_literal_repeat1, - [1295] = 7, + ACTIONS(120), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, + [1290] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(129), 1, + ACTIONS(124), 1, anon_sym_COMMA, - ACTIONS(131), 1, + ACTIONS(126), 1, anon_sym_RBRACK, - ACTIONS(133), 1, + ACTIONS(128), 1, anon_sym_PLUS, + STATE(42), 1, + sym_comment, + STATE(65), 1, + aux_sym_list_expression_repeat1, + [1312] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(130), 1, + anon_sym_LPAREN, + ACTIONS(132), 1, + sym_identifier, STATE(43), 1, sym_comment, - STATE(63), 1, - aux_sym_list_expression_repeat1, - [1317] = 7, + STATE(122), 1, + sym_condition, + STATE(123), 1, + sym_select_value, + [1334] = 7, + ACTIONS(134), 1, + anon_sym_SLASH_SLASH, + ACTIONS(136), 1, + anon_sym_SLASH_STAR, + ACTIONS(138), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(140), 1, + anon_sym_DQUOTE2, + ACTIONS(142), 1, + sym_escape_sequence, + STATE(44), 1, + sym_comment, + STATE(48), 1, + aux_sym_interpreted_string_literal_repeat1, + [1356] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(146), 1, + anon_sym_LBRACE, + ACTIONS(148), 1, + anon_sym_LPAREN, + STATE(45), 1, + sym_comment, + ACTIONS(144), 2, + anon_sym_EQ, + anon_sym_PLUS_EQ, + [1376] = 7, + ACTIONS(134), 1, + anon_sym_SLASH_SLASH, + ACTIONS(136), 1, + anon_sym_SLASH_STAR, + ACTIONS(138), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(142), 1, + sym_escape_sequence, + ACTIONS(150), 1, + anon_sym_DQUOTE2, + STATE(44), 1, + aux_sym_interpreted_string_literal_repeat1, + STATE(46), 1, + sym_comment, + [1398] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5367,283 +5456,225 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, STATE(23), 1, sym_interpreted_string_literal, - STATE(44), 1, - sym_comment, - STATE(108), 1, - sym__string_literal, - [1339] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(137), 1, - anon_sym_LBRACE, - ACTIONS(139), 1, - anon_sym_LPAREN, - STATE(45), 1, - sym_comment, - ACTIONS(135), 2, - anon_sym_EQ, - anon_sym_PLUS_EQ, - [1359] = 6, - ACTIONS(119), 1, - anon_sym_SLASH_SLASH, - ACTIONS(121), 1, - anon_sym_SLASH_STAR, - ACTIONS(141), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(144), 1, - anon_sym_DQUOTE2, - ACTIONS(146), 1, - sym_escape_sequence, - STATE(46), 2, - sym_comment, - aux_sym_interpreted_string_literal_repeat1, - [1379] = 7, - ACTIONS(119), 1, - anon_sym_SLASH_SLASH, - ACTIONS(121), 1, - anon_sym_SLASH_STAR, - ACTIONS(123), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(127), 1, - sym_escape_sequence, - ACTIONS(149), 1, - anon_sym_DQUOTE2, - STATE(42), 1, - aux_sym_interpreted_string_literal_repeat1, STATE(47), 1, sym_comment, - [1401] = 6, - ACTIONS(3), 1, + STATE(113), 1, + sym__string_literal, + [1420] = 6, + ACTIONS(134), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(136), 1, anon_sym_SLASH_STAR, - ACTIONS(151), 1, - anon_sym_COMMA, - ACTIONS(153), 1, - anon_sym_RBRACE, - STATE(48), 1, + ACTIONS(152), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(155), 1, + anon_sym_DQUOTE2, + ACTIONS(157), 1, + sym_escape_sequence, + STATE(48), 2, sym_comment, - STATE(70), 1, - aux_sym__old_module_repeat1, - [1420] = 5, + aux_sym_interpreted_string_literal_repeat1, + [1440] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, + ACTIONS(128), 1, anon_sym_PLUS, STATE(49), 1, sym_comment, - ACTIONS(155), 2, + ACTIONS(160), 2, anon_sym_COMMA, - anon_sym_RBRACE, - [1437] = 6, + anon_sym_RPAREN, + [1457] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(157), 1, - anon_sym_RBRACE, - ACTIONS(159), 1, + ACTIONS(132), 1, sym_identifier, + ACTIONS(162), 1, + anon_sym_RPAREN, STATE(50), 1, sym_comment, - STATE(76), 1, - sym__colon_property, - [1456] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(161), 1, - anon_sym_RPAREN, - ACTIONS(163), 1, - sym_identifier, - STATE(51), 1, - sym_comment, - STATE(87), 1, - sym__equal_property, - [1475] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(117), 1, - sym_identifier, - ACTIONS(165), 1, - anon_sym_RPAREN, - STATE(52), 1, - sym_comment, STATE(103), 1, sym_condition, - [1494] = 6, + [1476] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(167), 1, + ACTIONS(164), 1, anon_sym_COMMA, - ACTIONS(169), 1, - anon_sym_RPAREN, + ACTIONS(166), 1, + anon_sym_RBRACE, + STATE(51), 1, + sym_comment, + STATE(60), 1, + aux_sym__old_module_repeat1, + [1495] = 5, + ACTIONS(134), 1, + anon_sym_SLASH_SLASH, + ACTIONS(136), 1, + anon_sym_SLASH_STAR, + ACTIONS(168), 1, + aux_sym_interpreted_string_literal_token1, + STATE(52), 1, + sym_comment, + ACTIONS(170), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, + [1512] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(172), 1, + anon_sym_RBRACE, + ACTIONS(174), 1, + sym_identifier, STATE(53), 1, sym_comment, - STATE(73), 1, - aux_sym__new_module_repeat1, - [1513] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(159), 1, - sym_identifier, - ACTIONS(171), 1, - anon_sym_RBRACE, - STATE(54), 1, - sym_comment, - STATE(84), 1, + STATE(111), 1, sym__colon_property, - [1532] = 5, + [1531] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(173), 1, - anon_sym_COMMA, ACTIONS(176), 1, - anon_sym_RPAREN, - STATE(55), 2, - sym_comment, - aux_sym_condition_repeat1, - [1549] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, - STATE(56), 1, - sym_comment, - ACTIONS(178), 2, - ts_builtin_sym_end, - sym_identifier, - [1566] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(163), 1, - sym_identifier, - ACTIONS(180), 1, - anon_sym_RPAREN, - STATE(57), 1, - sym_comment, - STATE(78), 1, - sym__equal_property, - [1585] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(182), 1, anon_sym_COMMA, + ACTIONS(179), 1, + anon_sym_RPAREN, + STATE(54), 2, + sym_comment, + aux_sym_select_pattern_repeat1, + [1548] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(181), 1, + anon_sym_COMMA, + ACTIONS(183), 1, + anon_sym_RBRACE, + STATE(55), 1, + sym_comment, + STATE(71), 1, + aux_sym__old_module_repeat1, + [1567] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, ACTIONS(185), 1, anon_sym_RPAREN, - STATE(58), 2, + ACTIONS(187), 1, + sym_identifier, + STATE(56), 1, sym_comment, - aux_sym_select_value_repeat1, - [1602] = 6, + STATE(108), 1, + sym__equal_property, + [1586] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(159), 1, + STATE(57), 1, + sym_comment, + ACTIONS(189), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, + [1601] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(191), 1, + anon_sym_COMMA, + ACTIONS(193), 1, + anon_sym_RPAREN, + STATE(58), 1, + sym_comment, + STATE(76), 1, + aux_sym__new_module_repeat1, + [1620] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(174), 1, sym_identifier, - ACTIONS(187), 1, + ACTIONS(195), 1, anon_sym_RBRACE, STATE(59), 1, sym_comment, - STATE(81), 1, + STATE(111), 1, sym__colon_property, - [1621] = 6, + [1639] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(189), 1, + ACTIONS(197), 1, anon_sym_COMMA, - ACTIONS(191), 1, - anon_sym_RPAREN, + ACTIONS(199), 1, + anon_sym_RBRACE, STATE(60), 1, sym_comment, - STATE(79), 1, - aux_sym_condition_repeat1, - [1640] = 6, + STATE(71), 1, + aux_sym__old_module_repeat1, + [1658] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(193), 1, - anon_sym_COMMA, - ACTIONS(195), 1, + ACTIONS(71), 1, anon_sym_RPAREN, + ACTIONS(201), 1, + anon_sym_COMMA, + STATE(54), 1, + aux_sym_select_pattern_repeat1, STATE(61), 1, sym_comment, - STATE(67), 1, - aux_sym_select_pattern_repeat1, - [1659] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(159), 1, - sym_identifier, - ACTIONS(197), 1, - anon_sym_RBRACE, - STATE(62), 1, - sym_comment, - STATE(84), 1, - sym__colon_property, - [1678] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(199), 1, - anon_sym_COMMA, - ACTIONS(201), 1, - anon_sym_RBRACK, - STATE(63), 1, - sym_comment, - STATE(83), 1, - aux_sym_list_expression_repeat1, - [1697] = 5, + [1677] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(203), 1, anon_sym_COMMA, - ACTIONS(206), 1, + ACTIONS(205), 1, anon_sym_RPAREN, - STATE(64), 2, - sym_comment, + STATE(61), 1, aux_sym_select_pattern_repeat1, - [1714] = 6, + STATE(62), 1, + sym_comment, + [1696] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(208), 1, + ACTIONS(207), 1, anon_sym_COMMA, ACTIONS(210), 1, - anon_sym_RBRACE, - STATE(65), 1, + anon_sym_RPAREN, + STATE(63), 2, sym_comment, - STATE(70), 1, - aux_sym__old_module_repeat1, - [1733] = 6, + aux_sym_condition_repeat1, + [1713] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(64), 1, + sym_comment, + ACTIONS(120), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, + [1728] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5651,740 +5682,789 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(212), 1, anon_sym_COMMA, ACTIONS(214), 1, - anon_sym_RPAREN, - STATE(58), 1, - aux_sym_select_value_repeat1, + anon_sym_RBRACK, + STATE(65), 1, + sym_comment, + STATE(81), 1, + aux_sym_list_expression_repeat1, + [1747] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(128), 1, + anon_sym_PLUS, STATE(66), 1, sym_comment, - [1752] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(66), 1, - anon_sym_RPAREN, - ACTIONS(216), 1, + ACTIONS(216), 2, anon_sym_COMMA, - STATE(64), 1, - aux_sym_select_pattern_repeat1, - STATE(67), 1, - sym_comment, - [1771] = 6, + anon_sym_RBRACE, + [1764] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(159), 1, + ACTIONS(174), 1, sym_identifier, ACTIONS(218), 1, anon_sym_RBRACE, + STATE(67), 1, + sym_comment, + STATE(83), 1, + sym__colon_property, + [1783] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(187), 1, + sym_identifier, + ACTIONS(220), 1, + anon_sym_RPAREN, STATE(68), 1, sym_comment, - STATE(84), 1, - sym__colon_property, - [1790] = 6, + STATE(72), 1, + sym__equal_property, + [1802] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(117), 1, + ACTIONS(174), 1, sym_identifier, - ACTIONS(214), 1, - anon_sym_RPAREN, + ACTIONS(222), 1, + anon_sym_RBRACE, STATE(69), 1, sym_comment, - STATE(103), 1, - sym_condition, - [1809] = 5, + STATE(111), 1, + sym__colon_property, + [1821] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(220), 1, + ACTIONS(224), 1, anon_sym_COMMA, - ACTIONS(223), 1, + ACTIONS(226), 1, + anon_sym_RPAREN, + STATE(63), 1, + aux_sym_condition_repeat1, + STATE(70), 1, + sym_comment, + [1840] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(228), 1, + anon_sym_COMMA, + ACTIONS(231), 1, anon_sym_RBRACE, - STATE(70), 2, + STATE(71), 2, sym_comment, aux_sym__old_module_repeat1, - [1826] = 5, + [1857] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, - STATE(71), 1, - sym_comment, - ACTIONS(225), 2, + ACTIONS(233), 1, anon_sym_COMMA, + ACTIONS(235), 1, anon_sym_RPAREN, - [1843] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(163), 1, - sym_identifier, - ACTIONS(227), 1, - anon_sym_RPAREN, + STATE(58), 1, + aux_sym__new_module_repeat1, STATE(72), 1, sym_comment, - STATE(87), 1, - sym__equal_property, - [1862] = 5, + [1876] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(229), 1, + ACTIONS(237), 1, anon_sym_COMMA, - ACTIONS(232), 1, + ACTIONS(240), 1, anon_sym_RPAREN, STATE(73), 2, sym_comment, - aux_sym__new_module_repeat1, - [1879] = 5, - ACTIONS(119), 1, + aux_sym_select_value_repeat1, + [1893] = 6, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(121), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(234), 1, - aux_sym_interpreted_string_literal_token1, + ACTIONS(187), 1, + sym_identifier, + ACTIONS(242), 1, + anon_sym_RPAREN, STATE(74), 1, sym_comment, - ACTIONS(236), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, - [1896] = 6, + STATE(108), 1, + sym__equal_property, + [1912] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(159), 1, + ACTIONS(132), 1, sym_identifier, - ACTIONS(238), 1, - anon_sym_RBRACE, + ACTIONS(244), 1, + anon_sym_RPAREN, STATE(75), 1, sym_comment, - STATE(84), 1, - sym__colon_property, - [1915] = 6, + STATE(103), 1, + sym_condition, + [1931] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(240), 1, - anon_sym_COMMA, - ACTIONS(242), 1, - anon_sym_RBRACE, - STATE(48), 1, - aux_sym__old_module_repeat1, - STATE(76), 1, - sym_comment, - [1934] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(244), 1, - anon_sym_COMMA, ACTIONS(246), 1, + anon_sym_COMMA, + ACTIONS(249), 1, anon_sym_RPAREN, - STATE(66), 1, - aux_sym_select_value_repeat1, + STATE(76), 2, + sym_comment, + aux_sym__new_module_repeat1, + [1948] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(174), 1, + sym_identifier, + ACTIONS(251), 1, + anon_sym_RBRACE, + STATE(51), 1, + sym__colon_property, STATE(77), 1, sym_comment, - [1953] = 6, + [1967] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(248), 1, - anon_sym_COMMA, - ACTIONS(250), 1, - anon_sym_RPAREN, - STATE(53), 1, - aux_sym__new_module_repeat1, + ACTIONS(174), 1, + sym_identifier, + ACTIONS(253), 1, + anon_sym_RBRACE, STATE(78), 1, sym_comment, - [1972] = 6, + STATE(111), 1, + sym__colon_property, + [1986] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(189), 1, + ACTIONS(224), 1, anon_sym_COMMA, - ACTIONS(252), 1, + ACTIONS(255), 1, anon_sym_RPAREN, - STATE(55), 1, + STATE(70), 1, aux_sym_condition_repeat1, STATE(79), 1, sym_comment, - [1991] = 5, + [2005] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, + ACTIONS(257), 1, + anon_sym_COMMA, + ACTIONS(259), 1, + anon_sym_RPAREN, STATE(80), 1, sym_comment, - ACTIONS(254), 2, - anon_sym_COMMA, - anon_sym_RBRACK, - [2008] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(256), 1, - anon_sym_COMMA, - ACTIONS(258), 1, - anon_sym_RBRACE, - STATE(65), 1, - aux_sym__old_module_repeat1, - STATE(81), 1, - sym_comment, - [2027] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, STATE(82), 1, - sym_comment, - ACTIONS(260), 3, - anon_sym_COMMA, - anon_sym_RPAREN, - anon_sym_COLON, - [2042] = 5, + aux_sym_select_value_repeat1, + [2024] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(262), 1, + ACTIONS(261), 1, anon_sym_COMMA, - ACTIONS(265), 1, + ACTIONS(264), 1, anon_sym_RBRACK, - STATE(83), 2, + STATE(81), 2, sym_comment, aux_sym_list_expression_repeat1, - [2059] = 4, + [2041] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(162), 1, + anon_sym_RPAREN, + ACTIONS(266), 1, + anon_sym_COMMA, + STATE(73), 1, + aux_sym_select_value_repeat1, + STATE(82), 1, + sym_comment, + [2060] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(268), 1, + anon_sym_COMMA, + ACTIONS(270), 1, + anon_sym_RBRACE, + STATE(55), 1, + aux_sym__old_module_repeat1, + STATE(83), 1, + sym_comment, + [2079] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(128), 1, + anon_sym_PLUS, STATE(84), 1, sym_comment, - ACTIONS(267), 2, + ACTIONS(272), 2, anon_sym_COMMA, - anon_sym_RBRACE, - [2073] = 4, + anon_sym_RBRACK, + [2096] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(128), 1, + anon_sym_PLUS, STATE(85), 1, sym_comment, - ACTIONS(269), 2, + ACTIONS(274), 2, ts_builtin_sym_end, sym_identifier, - [2087] = 5, + [2113] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(271), 1, - anon_sym_LBRACE, STATE(86), 1, sym_comment, - STATE(131), 1, - sym_select_cases, - [2103] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(87), 1, - sym_comment, - ACTIONS(273), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2117] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(88), 1, - sym_comment, - ACTIONS(275), 2, + ACTIONS(276), 2, ts_builtin_sym_end, sym_identifier, - [2131] = 5, + [2127] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(159), 1, + ACTIONS(132), 1, sym_identifier, - STATE(84), 1, - sym__colon_property, + STATE(80), 1, + sym_condition, + STATE(87), 1, + sym_comment, + [2143] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(278), 1, + anon_sym_LBRACE, + STATE(88), 1, + sym_comment, + STATE(134), 1, + sym_select_cases, + [2159] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, STATE(89), 1, sym_comment, - [2147] = 4, + ACTIONS(280), 2, + ts_builtin_sym_end, + sym_identifier, + [2173] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(90), 1, sym_comment, - ACTIONS(277), 2, + ACTIONS(282), 2, ts_builtin_sym_end, sym_identifier, - [2161] = 5, + [2187] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(163), 1, - sym_identifier, - STATE(87), 1, - sym__equal_property, STATE(91), 1, sym_comment, - [2177] = 4, + ACTIONS(284), 2, + ts_builtin_sym_end, + sym_identifier, + [2201] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(174), 1, + sym_identifier, STATE(92), 1, sym_comment, - ACTIONS(279), 2, - ts_builtin_sym_end, - sym_identifier, - [2191] = 4, + STATE(111), 1, + sym__colon_property, + [2217] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(93), 1, sym_comment, - ACTIONS(281), 2, + ACTIONS(286), 2, ts_builtin_sym_end, sym_identifier, - [2205] = 4, + [2231] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(187), 1, + sym_identifier, STATE(94), 1, sym_comment, - ACTIONS(206), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2219] = 4, + STATE(108), 1, + sym__equal_property, + [2247] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(95), 1, sym_comment, - ACTIONS(283), 2, - ts_builtin_sym_end, - sym_identifier, - [2233] = 4, + ACTIONS(179), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2261] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(96), 1, sym_comment, - ACTIONS(285), 2, + ACTIONS(288), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2247] = 4, + [2275] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(97), 1, sym_comment, - ACTIONS(287), 2, + ACTIONS(290), 2, ts_builtin_sym_end, sym_identifier, - [2261] = 5, + [2289] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, + ACTIONS(128), 1, anon_sym_PLUS, - ACTIONS(289), 1, + ACTIONS(292), 1, anon_sym_COMMA, STATE(98), 1, sym_comment, - [2277] = 4, + [2305] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(132), 1, + sym_identifier, STATE(99), 1, sym_comment, - ACTIONS(291), 2, - ts_builtin_sym_end, - sym_identifier, - [2291] = 4, + STATE(103), 1, + sym_condition, + [2321] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(100), 1, sym_comment, - ACTIONS(293), 2, + ACTIONS(294), 2, ts_builtin_sym_end, sym_identifier, - [2305] = 4, + [2335] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(101), 1, sym_comment, - ACTIONS(293), 2, + ACTIONS(296), 2, ts_builtin_sym_end, sym_identifier, - [2319] = 4, + [2349] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(102), 1, sym_comment, - ACTIONS(295), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2333] = 4, + ACTIONS(298), 2, + ts_builtin_sym_end, + sym_identifier, + [2363] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(103), 1, sym_comment, - ACTIONS(185), 2, + ACTIONS(240), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2347] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(117), 1, - sym_identifier, - STATE(77), 1, - sym_condition, - STATE(104), 1, - sym_comment, - [2363] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(105), 1, - sym_comment, - ACTIONS(297), 2, - ts_builtin_sym_end, - sym_identifier, [2377] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(106), 1, + STATE(104), 1, sym_comment, - ACTIONS(299), 2, + ACTIONS(300), 2, ts_builtin_sym_end, sym_identifier, [2391] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(105), 1, + sym_comment, + ACTIONS(302), 2, + ts_builtin_sym_end, + sym_identifier, + [2405] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(106), 1, + sym_comment, + ACTIONS(300), 2, + ts_builtin_sym_end, + sym_identifier, + [2419] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(107), 1, sym_comment, - ACTIONS(301), 2, + ACTIONS(304), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2405] = 4, + [2433] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(108), 1, sym_comment, - ACTIONS(176), 2, + ACTIONS(306), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2419] = 5, + [2447] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(117), 1, - sym_identifier, - STATE(103), 1, - sym_condition, STATE(109), 1, sym_comment, - [2435] = 4, + ACTIONS(308), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2461] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(110), 1, sym_comment, - ACTIONS(303), 2, + ACTIONS(310), 2, ts_builtin_sym_end, sym_identifier, - [2449] = 4, + [2475] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(111), 1, sym_comment, - ACTIONS(305), 2, - ts_builtin_sym_end, - sym_identifier, - [2463] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(307), 1, - anon_sym_COLON, - STATE(112), 1, - sym_comment, - [2476] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(309), 1, - anon_sym_RPAREN, - STATE(113), 1, - sym_comment, + ACTIONS(312), 2, + anon_sym_COMMA, + anon_sym_RBRACE, [2489] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(311), 1, - anon_sym_COLON, + STATE(112), 1, + sym_comment, + ACTIONS(314), 2, + ts_builtin_sym_end, + sym_identifier, + [2503] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(113), 1, + sym_comment, + ACTIONS(210), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2517] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(316), 1, + aux_sym_integer_literal_token1, STATE(114), 1, sym_comment, - [2502] = 4, - ACTIONS(119), 1, + [2530] = 4, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(121), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(313), 1, - aux_sym_comment_token1, + ACTIONS(318), 1, + anon_sym_RPAREN, STATE(115), 1, sym_comment, - [2515] = 4, + [2543] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(315), 1, - anon_sym_LPAREN, + ACTIONS(320), 1, + anon_sym_SLASH, STATE(116), 1, sym_comment, - [2528] = 4, - ACTIONS(3), 1, + [2556] = 4, + ACTIONS(134), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(136), 1, anon_sym_SLASH_STAR, - ACTIONS(317), 1, - anon_sym_COMMA, + ACTIONS(322), 1, + aux_sym_comment_token2, STATE(117), 1, sym_comment, - [2541] = 4, + [2569] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(319), 1, + ACTIONS(324), 1, anon_sym_COMMA, STATE(118), 1, sym_comment, - [2554] = 4, + [2582] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(321), 1, - anon_sym_RPAREN, + ACTIONS(326), 1, + anon_sym_COLON, STATE(119), 1, sym_comment, - [2567] = 4, + [2595] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(323), 1, - anon_sym_EQ, + ACTIONS(328), 1, + anon_sym_COLON, STATE(120), 1, sym_comment, - [2580] = 4, + [2608] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(325), 1, - aux_sym_integer_literal_token1, + ACTIONS(330), 1, + anon_sym_COMMA, STATE(121), 1, sym_comment, - [2593] = 4, - ACTIONS(119), 1, + [2621] = 4, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(121), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(327), 1, - aux_sym_comment_token2, + ACTIONS(332), 1, + anon_sym_COMMA, STATE(122), 1, sym_comment, - [2606] = 4, + [2634] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(329), 1, - anon_sym_SLASH, + ACTIONS(334), 1, + anon_sym_COMMA, STATE(123), 1, sym_comment, - [2619] = 4, + [2647] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(331), 1, - anon_sym_COLON, + ACTIONS(336), 1, + sym_identifier, STATE(124), 1, sym_comment, - [2632] = 4, + [2660] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(333), 1, - anon_sym_COLON, + ACTIONS(338), 1, + anon_sym_RPAREN, STATE(125), 1, sym_comment, - [2645] = 4, + [2673] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(335), 1, - anon_sym_COMMA, + ACTIONS(340), 1, + anon_sym_COLON, STATE(126), 1, sym_comment, - [2658] = 4, + [2686] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(337), 1, - anon_sym_LPAREN, + ACTIONS(342), 1, + anon_sym_COLON, STATE(127), 1, sym_comment, - [2671] = 4, - ACTIONS(3), 1, + [2699] = 4, + ACTIONS(134), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(136), 1, anon_sym_SLASH_STAR, - ACTIONS(339), 1, - anon_sym_COLON, + ACTIONS(344), 1, + aux_sym_comment_token1, STATE(128), 1, sym_comment, - [2684] = 4, + [2712] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(341), 1, + ACTIONS(346), 1, anon_sym_COMMA, STATE(129), 1, sym_comment, - [2697] = 4, + [2725] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(289), 1, - anon_sym_COMMA, + ACTIONS(348), 1, + anon_sym_COLON, STATE(130), 1, sym_comment, - [2710] = 4, + [2738] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(343), 1, - anon_sym_RPAREN, + ACTIONS(350), 1, + anon_sym_LPAREN, STATE(131), 1, sym_comment, - [2723] = 4, + [2751] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(345), 1, - anon_sym_COMMA, + ACTIONS(352), 1, + anon_sym_EQ, STATE(132), 1, sym_comment, - [2736] = 4, + [2764] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(347), 1, - anon_sym_COLON, + ACTIONS(292), 1, + anon_sym_COMMA, STATE(133), 1, sym_comment, - [2749] = 4, + [2777] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(349), 1, - anon_sym_COMMA, + ACTIONS(354), 1, + anon_sym_RPAREN, STATE(134), 1, sym_comment, - [2762] = 4, + [2790] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(351), 1, + ACTIONS(356), 1, anon_sym_COMMA, STATE(135), 1, sym_comment, - [2775] = 4, + [2803] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(353), 1, - ts_builtin_sym_end, + ACTIONS(358), 1, + anon_sym_COLON, STATE(136), 1, sym_comment, - [2788] = 1, - ACTIONS(355), 1, + [2816] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(360), 1, + anon_sym_LPAREN, + STATE(137), 1, + sym_comment, + [2829] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(362), 1, ts_builtin_sym_end, - [2792] = 1, - ACTIONS(357), 1, + STATE(138), 1, + sym_comment, + [2842] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(364), 1, + anon_sym_COMMA, + STATE(139), 1, + sym_comment, + [2855] = 1, + ACTIONS(366), 1, + ts_builtin_sym_end, + [2859] = 1, + ACTIONS(368), 1, ts_builtin_sym_end, }; @@ -6399,309 +6479,317 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(9)] = 386, [SMALL_STATE(10)] = 439, [SMALL_STATE(11)] = 492, - [SMALL_STATE(12)] = 539, - [SMALL_STATE(13)] = 588, - [SMALL_STATE(14)] = 637, - [SMALL_STATE(15)] = 674, - [SMALL_STATE(16)] = 711, - [SMALL_STATE(17)] = 745, - [SMALL_STATE(18)] = 779, - [SMALL_STATE(19)] = 811, - [SMALL_STATE(20)] = 831, - [SMALL_STATE(21)] = 851, - [SMALL_STATE(22)] = 881, - [SMALL_STATE(23)] = 901, - [SMALL_STATE(24)] = 921, - [SMALL_STATE(25)] = 941, - [SMALL_STATE(26)] = 960, - [SMALL_STATE(27)] = 979, - [SMALL_STATE(28)] = 998, - [SMALL_STATE(29)] = 1017, - [SMALL_STATE(30)] = 1036, - [SMALL_STATE(31)] = 1055, - [SMALL_STATE(32)] = 1074, - [SMALL_STATE(33)] = 1093, - [SMALL_STATE(34)] = 1112, - [SMALL_STATE(35)] = 1131, - [SMALL_STATE(36)] = 1150, - [SMALL_STATE(37)] = 1169, - [SMALL_STATE(38)] = 1188, - [SMALL_STATE(39)] = 1207, - [SMALL_STATE(40)] = 1226, - [SMALL_STATE(41)] = 1251, - [SMALL_STATE(42)] = 1273, - [SMALL_STATE(43)] = 1295, - [SMALL_STATE(44)] = 1317, - [SMALL_STATE(45)] = 1339, - [SMALL_STATE(46)] = 1359, - [SMALL_STATE(47)] = 1379, - [SMALL_STATE(48)] = 1401, - [SMALL_STATE(49)] = 1420, - [SMALL_STATE(50)] = 1437, - [SMALL_STATE(51)] = 1456, - [SMALL_STATE(52)] = 1475, - [SMALL_STATE(53)] = 1494, - [SMALL_STATE(54)] = 1513, - [SMALL_STATE(55)] = 1532, - [SMALL_STATE(56)] = 1549, - [SMALL_STATE(57)] = 1566, - [SMALL_STATE(58)] = 1585, - [SMALL_STATE(59)] = 1602, - [SMALL_STATE(60)] = 1621, - [SMALL_STATE(61)] = 1640, - [SMALL_STATE(62)] = 1659, - [SMALL_STATE(63)] = 1678, - [SMALL_STATE(64)] = 1697, - [SMALL_STATE(65)] = 1714, - [SMALL_STATE(66)] = 1733, - [SMALL_STATE(67)] = 1752, - [SMALL_STATE(68)] = 1771, - [SMALL_STATE(69)] = 1790, - [SMALL_STATE(70)] = 1809, - [SMALL_STATE(71)] = 1826, - [SMALL_STATE(72)] = 1843, - [SMALL_STATE(73)] = 1862, - [SMALL_STATE(74)] = 1879, - [SMALL_STATE(75)] = 1896, - [SMALL_STATE(76)] = 1915, - [SMALL_STATE(77)] = 1934, - [SMALL_STATE(78)] = 1953, - [SMALL_STATE(79)] = 1972, - [SMALL_STATE(80)] = 1991, - [SMALL_STATE(81)] = 2008, - [SMALL_STATE(82)] = 2027, - [SMALL_STATE(83)] = 2042, - [SMALL_STATE(84)] = 2059, - [SMALL_STATE(85)] = 2073, - [SMALL_STATE(86)] = 2087, - [SMALL_STATE(87)] = 2103, - [SMALL_STATE(88)] = 2117, - [SMALL_STATE(89)] = 2131, - [SMALL_STATE(90)] = 2147, - [SMALL_STATE(91)] = 2161, - [SMALL_STATE(92)] = 2177, - [SMALL_STATE(93)] = 2191, - [SMALL_STATE(94)] = 2205, - [SMALL_STATE(95)] = 2219, - [SMALL_STATE(96)] = 2233, - [SMALL_STATE(97)] = 2247, - [SMALL_STATE(98)] = 2261, - [SMALL_STATE(99)] = 2277, - [SMALL_STATE(100)] = 2291, - [SMALL_STATE(101)] = 2305, - [SMALL_STATE(102)] = 2319, - [SMALL_STATE(103)] = 2333, - [SMALL_STATE(104)] = 2347, - [SMALL_STATE(105)] = 2363, - [SMALL_STATE(106)] = 2377, - [SMALL_STATE(107)] = 2391, - [SMALL_STATE(108)] = 2405, - [SMALL_STATE(109)] = 2419, - [SMALL_STATE(110)] = 2435, - [SMALL_STATE(111)] = 2449, - [SMALL_STATE(112)] = 2463, - [SMALL_STATE(113)] = 2476, - [SMALL_STATE(114)] = 2489, - [SMALL_STATE(115)] = 2502, - [SMALL_STATE(116)] = 2515, - [SMALL_STATE(117)] = 2528, - [SMALL_STATE(118)] = 2541, - [SMALL_STATE(119)] = 2554, - [SMALL_STATE(120)] = 2567, - [SMALL_STATE(121)] = 2580, - [SMALL_STATE(122)] = 2593, - [SMALL_STATE(123)] = 2606, - [SMALL_STATE(124)] = 2619, - [SMALL_STATE(125)] = 2632, - [SMALL_STATE(126)] = 2645, - [SMALL_STATE(127)] = 2658, - [SMALL_STATE(128)] = 2671, - [SMALL_STATE(129)] = 2684, - [SMALL_STATE(130)] = 2697, - [SMALL_STATE(131)] = 2710, - [SMALL_STATE(132)] = 2723, - [SMALL_STATE(133)] = 2736, - [SMALL_STATE(134)] = 2749, - [SMALL_STATE(135)] = 2762, - [SMALL_STATE(136)] = 2775, - [SMALL_STATE(137)] = 2788, - [SMALL_STATE(138)] = 2792, + [SMALL_STATE(12)] = 542, + [SMALL_STATE(13)] = 594, + [SMALL_STATE(14)] = 646, + [SMALL_STATE(15)] = 686, + [SMALL_STATE(16)] = 726, + [SMALL_STATE(17)] = 763, + [SMALL_STATE(18)] = 800, + [SMALL_STATE(19)] = 820, + [SMALL_STATE(20)] = 840, + [SMALL_STATE(21)] = 860, + [SMALL_STATE(22)] = 892, + [SMALL_STATE(23)] = 912, + [SMALL_STATE(24)] = 932, + [SMALL_STATE(25)] = 962, + [SMALL_STATE(26)] = 981, + [SMALL_STATE(27)] = 1000, + [SMALL_STATE(28)] = 1019, + [SMALL_STATE(29)] = 1038, + [SMALL_STATE(30)] = 1057, + [SMALL_STATE(31)] = 1076, + [SMALL_STATE(32)] = 1095, + [SMALL_STATE(33)] = 1114, + [SMALL_STATE(34)] = 1133, + [SMALL_STATE(35)] = 1152, + [SMALL_STATE(36)] = 1171, + [SMALL_STATE(37)] = 1190, + [SMALL_STATE(38)] = 1209, + [SMALL_STATE(39)] = 1228, + [SMALL_STATE(40)] = 1247, + [SMALL_STATE(41)] = 1272, + [SMALL_STATE(42)] = 1290, + [SMALL_STATE(43)] = 1312, + [SMALL_STATE(44)] = 1334, + [SMALL_STATE(45)] = 1356, + [SMALL_STATE(46)] = 1376, + [SMALL_STATE(47)] = 1398, + [SMALL_STATE(48)] = 1420, + [SMALL_STATE(49)] = 1440, + [SMALL_STATE(50)] = 1457, + [SMALL_STATE(51)] = 1476, + [SMALL_STATE(52)] = 1495, + [SMALL_STATE(53)] = 1512, + [SMALL_STATE(54)] = 1531, + [SMALL_STATE(55)] = 1548, + [SMALL_STATE(56)] = 1567, + [SMALL_STATE(57)] = 1586, + [SMALL_STATE(58)] = 1601, + [SMALL_STATE(59)] = 1620, + [SMALL_STATE(60)] = 1639, + [SMALL_STATE(61)] = 1658, + [SMALL_STATE(62)] = 1677, + [SMALL_STATE(63)] = 1696, + [SMALL_STATE(64)] = 1713, + [SMALL_STATE(65)] = 1728, + [SMALL_STATE(66)] = 1747, + [SMALL_STATE(67)] = 1764, + [SMALL_STATE(68)] = 1783, + [SMALL_STATE(69)] = 1802, + [SMALL_STATE(70)] = 1821, + [SMALL_STATE(71)] = 1840, + [SMALL_STATE(72)] = 1857, + [SMALL_STATE(73)] = 1876, + [SMALL_STATE(74)] = 1893, + [SMALL_STATE(75)] = 1912, + [SMALL_STATE(76)] = 1931, + [SMALL_STATE(77)] = 1948, + [SMALL_STATE(78)] = 1967, + [SMALL_STATE(79)] = 1986, + [SMALL_STATE(80)] = 2005, + [SMALL_STATE(81)] = 2024, + [SMALL_STATE(82)] = 2041, + [SMALL_STATE(83)] = 2060, + [SMALL_STATE(84)] = 2079, + [SMALL_STATE(85)] = 2096, + [SMALL_STATE(86)] = 2113, + [SMALL_STATE(87)] = 2127, + [SMALL_STATE(88)] = 2143, + [SMALL_STATE(89)] = 2159, + [SMALL_STATE(90)] = 2173, + [SMALL_STATE(91)] = 2187, + [SMALL_STATE(92)] = 2201, + [SMALL_STATE(93)] = 2217, + [SMALL_STATE(94)] = 2231, + [SMALL_STATE(95)] = 2247, + [SMALL_STATE(96)] = 2261, + [SMALL_STATE(97)] = 2275, + [SMALL_STATE(98)] = 2289, + [SMALL_STATE(99)] = 2305, + [SMALL_STATE(100)] = 2321, + [SMALL_STATE(101)] = 2335, + [SMALL_STATE(102)] = 2349, + [SMALL_STATE(103)] = 2363, + [SMALL_STATE(104)] = 2377, + [SMALL_STATE(105)] = 2391, + [SMALL_STATE(106)] = 2405, + [SMALL_STATE(107)] = 2419, + [SMALL_STATE(108)] = 2433, + [SMALL_STATE(109)] = 2447, + [SMALL_STATE(110)] = 2461, + [SMALL_STATE(111)] = 2475, + [SMALL_STATE(112)] = 2489, + [SMALL_STATE(113)] = 2503, + [SMALL_STATE(114)] = 2517, + [SMALL_STATE(115)] = 2530, + [SMALL_STATE(116)] = 2543, + [SMALL_STATE(117)] = 2556, + [SMALL_STATE(118)] = 2569, + [SMALL_STATE(119)] = 2582, + [SMALL_STATE(120)] = 2595, + [SMALL_STATE(121)] = 2608, + [SMALL_STATE(122)] = 2621, + [SMALL_STATE(123)] = 2634, + [SMALL_STATE(124)] = 2647, + [SMALL_STATE(125)] = 2660, + [SMALL_STATE(126)] = 2673, + [SMALL_STATE(127)] = 2686, + [SMALL_STATE(128)] = 2699, + [SMALL_STATE(129)] = 2712, + [SMALL_STATE(130)] = 2725, + [SMALL_STATE(131)] = 2738, + [SMALL_STATE(132)] = 2751, + [SMALL_STATE(133)] = 2764, + [SMALL_STATE(134)] = 2777, + [SMALL_STATE(135)] = 2790, + [SMALL_STATE(136)] = 2803, + [SMALL_STATE(137)] = 2816, + [SMALL_STATE(138)] = 2829, + [SMALL_STATE(139)] = 2842, + [SMALL_STATE(140)] = 2855, + [SMALL_STATE(141)] = 2859, }; static const TSParseActionEntry ts_parse_actions[] = { [0] = {.entry = {.count = 0, .reusable = false}}, [1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(), - [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(32), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(37), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(18), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(130), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(137), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(133), + [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(17), - [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(22), + [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(18), [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(23), - [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(47), - [51] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(82), - [54] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), - [56] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [58] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [60] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [62] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), - [64] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), - [66] = {.entry = {.count = 1, .reusable = true}}, SHIFT(133), - [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [74] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(45), - [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [105] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), - [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), - [119] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), - [121] = {.entry = {.count = 1, .reusable = false}}, SHIFT(122), - [123] = {.entry = {.count = 1, .reusable = false}}, SHIFT(74), - [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [135] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), - [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), - [141] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(74), - [144] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [146] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(74), - [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [155] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [161] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), - [163] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), - [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), - [171] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [173] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), SHIFT_REPEAT(44), - [176] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), - [178] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [182] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(109), - [185] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), - [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), - [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [203] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(16), - [206] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), - [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [210] = {.entry = {.count = 1, .reusable = true}}, SHIFT(95), - [212] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [214] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), - [216] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), - [220] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(89), - [223] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [227] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [229] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(91), - [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [234] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [238] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [240] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [242] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(135), - [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), - [252] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [256] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), - [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), - [262] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(8), - [265] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [271] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [273] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [277] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [281] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 3, .production_id = 14), - [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [291] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 5, .production_id = 16), - [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 4, .production_id = 15), - [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [307] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [311] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), - [313] = {.entry = {.count = 1, .reusable = false}}, SHIFT(137), - [315] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [317] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5), - [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [323] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [325] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [327] = {.entry = {.count = 1, .reusable = false}}, SHIFT(123), - [329] = {.entry = {.count = 1, .reusable = false}}, SHIFT(138), - [331] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), - [333] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [335] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4), - [337] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [339] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), - [341] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), - [343] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [345] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 17), - [347] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), - [349] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1), - [351] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3), - [353] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [355] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), - [357] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(46), + [51] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(41), + [54] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(64), + [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), + [59] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), + [61] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), + [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), + [65] = {.entry = {.count = 1, .reusable = true}}, SHIFT(64), + [67] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), + [69] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), + [71] = {.entry = {.count = 1, .reusable = true}}, SHIFT(136), + [73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), + [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [85] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(45), + [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), + [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), + [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), + [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [100] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [104] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [106] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [108] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [110] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [112] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [114] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [116] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [120] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), + [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), + [124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(131), + [134] = {.entry = {.count = 1, .reusable = false}}, SHIFT(128), + [136] = {.entry = {.count = 1, .reusable = false}}, SHIFT(117), + [138] = {.entry = {.count = 1, .reusable = false}}, SHIFT(52), + [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), + [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [152] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(52), + [155] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [157] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(52), + [160] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), + [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), + [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [168] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [170] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), + [176] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(16), + [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), + [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), + [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), + [189] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_pattern_binding, 3, .production_id = 17), + [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), + [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), + [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), + [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), + [207] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), SHIFT_REPEAT(47), + [210] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), + [212] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [214] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [216] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), + [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), + [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), + [226] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), + [228] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(92), + [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), + [233] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), + [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), + [237] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(99), + [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), + [242] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), + [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), + [246] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(94), + [249] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), + [251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [255] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(139), + [261] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(10), + [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), + [266] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [268] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), + [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [272] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), + [274] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [276] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), + [280] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [282] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [284] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), + [286] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), + [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 3, .production_id = 14), + [290] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [292] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [294] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [296] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [298] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [300] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), + [304] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 4, .production_id = 15), + [306] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [308] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_condition, 5, .production_id = 16), + [310] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), + [312] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [314] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [316] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [318] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [320] = {.entry = {.count = 1, .reusable = false}}, SHIFT(140), + [322] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), + [324] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5), + [326] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [328] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [330] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [332] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1), + [334] = {.entry = {.count = 1, .reusable = true}}, SHIFT(88), + [336] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), + [338] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [340] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), + [342] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), + [344] = {.entry = {.count = 1, .reusable = false}}, SHIFT(141), + [346] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4), + [348] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), + [350] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), + [352] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [354] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [356] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 18), + [358] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), + [360] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), + [362] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [364] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3), + [366] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [368] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index d46ce7e..c10ee09 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -40,6 +40,7 @@ Select (soong config variable) foo = select(soong_config_variable("my_namespace", "my_var"), { "foo": unset, "default": "bar", + any @ foo: unset, }) -------------------------------------------------------------------------------- @@ -62,7 +63,14 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { (select_case (select_pattern (interpreted_string_literal)) - (interpreted_string_literal)))))) + (interpreted_string_literal)) + (select_case + (select_pattern + (pattern_binding + (any) + (operator) + (identifier))) + (unset)))))) ================================================================================ Select (no default) diff --git a/test/highlight/select.bp b/test/highlight/select.bp index b857c1e..254d483 100644 --- a/test/highlight/select.bp +++ b/test/highlight/select.bp @@ -1,6 +1,9 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { // ^ keyword.conditional "foo": unset, + any @ foo: unset, + // ^ operator + // ^ variable default: "bar", })