From 734f4452dd9c54504518c1099187abd9256bccb2 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 14:52:36 +0000 Subject: [PATCH 01/10] Rename fields in 'select_value' This aligns with upstream, and makes more sense given their usage. --- grammar.js | 4 ++-- src/grammar.json | 4 ++-- src/node-types.json | 4 ++-- src/parser.c | 56 ++++++++++++++++++++++++--------------------- 4 files changed, 36 insertions(+), 32 deletions(-) diff --git a/grammar.js b/grammar.js index 497b8f7..ad43ec2 100644 --- a/grammar.js +++ b/grammar.js @@ -128,9 +128,9 @@ module.exports = grammar({ ), select_value: ($) => seq( - field("type", alias($.identifier, $.selection_type)), + field("name", alias($.identifier, $.selection_type)), "(", - field("condition", optional(commaSeparated($._string_literal))), + field("arguments", optional(commaSeparated($._string_literal))), ")", ), diff --git a/src/grammar.json b/src/grammar.json index c16b22d..3651dc7 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -491,7 +491,7 @@ "members": [ { "type": "FIELD", - "name": "type", + "name": "name", "content": { "type": "ALIAS", "content": { @@ -508,7 +508,7 @@ }, { "type": "FIELD", - "name": "condition", + "name": "arguments", "content": { "type": "CHOICE", "members": [ diff --git a/src/node-types.json b/src/node-types.json index 3e59430..cab1db6 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -453,7 +453,7 @@ "type": "select_value", "named": true, "fields": { - "condition": { + "arguments": { "multiple": true, "required": false, "types": [ @@ -471,7 +471,7 @@ } ] }, - "type": { + "name": { "multiple": false, "required": true, "types": [ diff --git a/src/parser.c b/src/parser.c index 02a91a2..34eedda 100644 --- a/src/parser.c +++ b/src/parser.c @@ -11,7 +11,7 @@ #define ALIAS_COUNT 1 #define TOKEN_COUNT 30 #define EXTERNAL_TOKEN_COUNT 0 -#define FIELD_COUNT 10 +#define FIELD_COUNT 11 #define MAX_ALIAS_SEQUENCE_LENGTH 6 #define PRODUCTION_ID_COUNT 19 @@ -447,24 +447,26 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { }; enum ts_field_identifiers { - field_condition = 1, + field_arguments = 1, field_element = 2, field_field = 3, field_left = 4, - field_operator = 5, - field_pattern = 6, - field_property = 7, - field_right = 8, - field_type = 9, - field_value = 10, + field_name = 5, + field_operator = 6, + field_pattern = 7, + field_property = 8, + field_right = 9, + field_type = 10, + field_value = 11, }; static const char * const ts_field_names[] = { [0] = NULL, - [field_condition] = "condition", + [field_arguments] = "arguments", [field_element] = "element", [field_field] = "field", [field_left] = "left", + [field_name] = "name", [field_operator] = "operator", [field_pattern] = "pattern", [field_property] = "property", @@ -487,11 +489,11 @@ static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [11] = {.index = 23, .length = 4}, [12] = {.index = 27, .length = 2}, [13] = {.index = 29, .length = 2}, - [14] = {.index = 5, .length = 1}, - [15] = {.index = 31, .length = 2}, - [16] = {.index = 33, .length = 3}, - [17] = {.index = 36, .length = 4}, - [18] = {.index = 40, .length = 2}, + [14] = {.index = 31, .length = 1}, + [15] = {.index = 32, .length = 2}, + [16] = {.index = 34, .length = 3}, + [17] = {.index = 37, .length = 4}, + [18] = {.index = 41, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { @@ -539,18 +541,20 @@ static const TSFieldMapEntry ts_field_map_entries[] = { {field_element, 0, .inherited = true}, {field_element, 1, .inherited = true}, [31] = - {field_condition, 2}, - {field_type, 0}, - [33] = - {field_condition, 2}, - {field_condition, 3}, - {field_type, 0}, - [36] = - {field_condition, 2}, - {field_condition, 3}, - {field_condition, 4}, - {field_type, 0}, - [40] = + {field_name, 0}, + [32] = + {field_arguments, 2}, + {field_name, 0}, + [34] = + {field_arguments, 2}, + {field_arguments, 3}, + {field_name, 0}, + [37] = + {field_arguments, 2}, + {field_arguments, 3}, + {field_arguments, 4}, + {field_name, 0}, + [41] = {field_pattern, 0}, {field_value, 2}, }; From 3bc77aab19f14750252aa353091c47e26bb35e4b Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 14:56:10 +0000 Subject: [PATCH 02/10] Remove 'selection_type' alias --- grammar.js | 2 +- queries/highlights.scm | 3 ++- src/grammar.json | 9 ++------- src/node-types.json | 6 +----- src/parser.c | 21 +-------------------- test/corpus/select.txt | 16 ++++++++-------- 6 files changed, 15 insertions(+), 42 deletions(-) diff --git a/grammar.js b/grammar.js index ad43ec2..c108823 100644 --- a/grammar.js +++ b/grammar.js @@ -128,7 +128,7 @@ module.exports = grammar({ ), select_value: ($) => seq( - field("name", alias($.identifier, $.selection_type)), + field("name", $.identifier), "(", field("arguments", optional(commaSeparated($._string_literal))), ")", diff --git a/queries/highlights.scm b/queries/highlights.scm index 4209180..13cdcde 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -51,7 +51,8 @@ (unset) (default) ] @variable.builtin -(selection_type) @function.builtin +(select_value + name: (identifier) @function.builtin) ; }}} ; Expressions {{{ diff --git a/src/grammar.json b/src/grammar.json index 3651dc7..3c81287 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -493,13 +493,8 @@ "type": "FIELD", "name": "name", "content": { - "type": "ALIAS", - "content": { - "type": "SYMBOL", - "name": "identifier" - }, - "named": true, - "value": "selection_type" + "type": "SYMBOL", + "name": "identifier" } }, { diff --git a/src/node-types.json b/src/node-types.json index cab1db6..3719f90 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -476,7 +476,7 @@ "required": true, "types": [ { - "type": "selection_type", + "type": "identifier", "named": true } ] @@ -578,10 +578,6 @@ "type": "select", "named": false }, - { - "type": "selection_type", - "named": true - }, { "type": "true", "named": false diff --git a/src/parser.c b/src/parser.c index 34eedda..af1eb6c 100644 --- a/src/parser.c +++ b/src/parser.c @@ -8,7 +8,7 @@ #define STATE_COUNT 117 #define LARGE_STATE_COUNT 2 #define SYMBOL_COUNT 59 -#define ALIAS_COUNT 1 +#define ALIAS_COUNT 0 #define TOKEN_COUNT 30 #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 11 @@ -74,7 +74,6 @@ enum ts_symbol_identifiers { aux_sym_select_value_repeat1 = 56, aux_sym_select_cases_repeat1 = 57, aux_sym_list_expression_repeat1 = 58, - alias_sym_selection_type = 59, }; static const char * const ts_symbol_names[] = { @@ -137,7 +136,6 @@ static const char * const ts_symbol_names[] = { [aux_sym_select_value_repeat1] = "select_value_repeat1", [aux_sym_select_cases_repeat1] = "select_cases_repeat1", [aux_sym_list_expression_repeat1] = "list_expression_repeat1", - [alias_sym_selection_type] = "selection_type", }; static const TSSymbol ts_symbol_map[] = { @@ -200,7 +198,6 @@ static const TSSymbol ts_symbol_map[] = { [aux_sym_select_value_repeat1] = aux_sym_select_value_repeat1, [aux_sym_select_cases_repeat1] = aux_sym_select_cases_repeat1, [aux_sym_list_expression_repeat1] = aux_sym_list_expression_repeat1, - [alias_sym_selection_type] = alias_sym_selection_type, }; static const TSSymbolMetadata ts_symbol_metadata[] = { @@ -440,10 +437,6 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = false, }, - [alias_sym_selection_type] = { - .visible = true, - .named = true, - }, }; enum ts_field_identifiers { @@ -564,18 +557,6 @@ static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE [2] = { [1] = anon_sym_PLUS_EQ, }, - [14] = { - [0] = alias_sym_selection_type, - }, - [15] = { - [0] = alias_sym_selection_type, - }, - [16] = { - [0] = alias_sym_selection_type, - }, - [17] = { - [0] = alias_sym_selection_type, - }, }; static const uint16_t ts_non_terminal_alias_map[] = { diff --git a/test/corpus/select.txt b/test/corpus/select.txt index b928e6c..7563e96 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -15,7 +15,7 @@ foo = select(release_variable("RELEASE_TEST"), { (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal)) (select_cases (select_case @@ -42,7 +42,7 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal) (interpreted_string_literal)) (select_cases @@ -72,7 +72,7 @@ foo = select(variant("arch"), { (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal)) (select_cases (select_case @@ -102,7 +102,7 @@ foo = select(variant("VARIANT"), {}) (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal)) (select_cases)))) @@ -126,7 +126,7 @@ foo = select(variant("VARIANT"), { (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal)) (select_cases (select_case @@ -162,7 +162,7 @@ foo = select(variant(), { (operator) (select_expression (select_value - (selection_type)) + (identifier)) (select_cases (select_case (interpreted_string_literal) @@ -188,7 +188,7 @@ foo = select(some_unknown_type("CONDITION"), { (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal)) (select_cases (select_case @@ -215,7 +215,7 @@ foo = select(release_variable("ONE", "TWO"), { (operator) (select_expression (select_value - (selection_type) + (identifier) (interpreted_string_literal) (interpreted_string_literal)) (select_cases From 7d8f958a90b650849c0399688016186f086e6b0e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:00:13 +0000 Subject: [PATCH 03/10] Add boolean-typed select values --- grammar.js | 1 + src/grammar.json | 4 + src/node-types.json | 4 + src/parser.c | 2356 ++++++++++++++++++++-------------------- test/corpus/select.txt | 27 + 5 files changed, 1237 insertions(+), 1155 deletions(-) diff --git a/grammar.js b/grammar.js index c108823..58b9b19 100644 --- a/grammar.js +++ b/grammar.js @@ -143,6 +143,7 @@ module.exports = grammar({ select_case: ($) => seq( field("pattern", choice( $._string_literal, + $.boolean_literal, alias("default", $.default), )), ":", diff --git a/src/grammar.json b/src/grammar.json index 3c81287..83b9867 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -606,6 +606,10 @@ "type": "SYMBOL", "name": "_string_literal" }, + { + "type": "SYMBOL", + "name": "boolean_literal" + }, { "type": "ALIAS", "content": { diff --git a/src/node-types.json b/src/node-types.json index 3719f90..9c77e07 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -353,6 +353,10 @@ "multiple": false, "required": true, "types": [ + { + "type": "boolean_literal", + "named": true + }, { "type": "default", "named": true diff --git a/src/parser.c b/src/parser.c index af1eb6c..82034c5 100644 --- a/src/parser.c +++ b/src/parser.c @@ -3526,560 +3526,589 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { eof = lexer->eof(lexer); switch (state) { case 0: - if (eof) ADVANCE(31); - if (lookahead == '"') ADVANCE(86); - if (lookahead == '(') ADVANCE(52); - if (lookahead == ')') ADVANCE(53); - if (lookahead == '+') ADVANCE(98); - if (lookahead == ',') ADVANCE(50); - if (lookahead == '-') ADVANCE(79); - if (lookahead == '/') ADVANCE(46); - if (lookahead == ':') ADVANCE(93); - if (lookahead == '=') ADVANCE(47); - if (lookahead == '[') ADVANCE(95); + if (eof) ADVANCE(38); + if (lookahead == '"') ADVANCE(95); + if (lookahead == '(') ADVANCE(59); + if (lookahead == ')') ADVANCE(60); + if (lookahead == '+') ADVANCE(107); + if (lookahead == ',') ADVANCE(57); + if (lookahead == '-') ADVANCE(88); + if (lookahead == '/') ADVANCE(53); + if (lookahead == ':') ADVANCE(102); + if (lookahead == '=') ADVANCE(54); + if (lookahead == '[') ADVANCE(104); if (lookahead == '\\') ADVANCE(11); - if (lookahead == ']') ADVANCE(96); - if (lookahead == '`') ADVANCE(28); - if (lookahead == 'd') ADVANCE(57); - if (lookahead == 'f') ADVANCE(54); - if (lookahead == 's') ADVANCE(62); - if (lookahead == 't') ADVANCE(68); - if (lookahead == 'u') ADVANCE(67); - if (lookahead == '{') ADVANCE(49); - if (lookahead == '}') ADVANCE(51); + if (lookahead == ']') ADVANCE(105); + if (lookahead == '`') ADVANCE(35); + if (lookahead == 'd') ADVANCE(64); + if (lookahead == 'f') ADVANCE(61); + if (lookahead == 's') ADVANCE(69); + if (lookahead == 't') ADVANCE(75); + if (lookahead == 'u') ADVANCE(74); + if (lookahead == '{') ADVANCE(56); + if (lookahead == '}') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(29) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); + lookahead == ' ') SKIP(36) + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); case 1: if (lookahead == '\n') SKIP(2) - if (lookahead == '"') ADVANCE(86); - if (lookahead == '/') ADVANCE(83); + if (lookahead == '"') ADVANCE(95); + if (lookahead == '/') ADVANCE(92); if (lookahead == '\\') ADVANCE(11); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(84); - if (lookahead != 0) ADVANCE(85); + lookahead == ' ') ADVANCE(93); + if (lookahead != 0) ADVANCE(94); END_STATE(); case 2: if (lookahead == '\n') SKIP(2) - if (lookahead == '/') ADVANCE(83); + if (lookahead == '/') ADVANCE(92); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(84); + lookahead == ' ') ADVANCE(93); if (lookahead != 0 && lookahead != '"' && - lookahead != '\\') ADVANCE(85); + lookahead != '\\') ADVANCE(94); END_STATE(); case 3: - if (lookahead == '"') ADVANCE(82); - if (lookahead == '(') ADVANCE(52); + if (lookahead == '"') ADVANCE(91); + if (lookahead == '(') ADVANCE(59); if (lookahead == '+') ADVANCE(10); - if (lookahead == '-') ADVANCE(79); + if (lookahead == '-') ADVANCE(88); if (lookahead == '/') ADVANCE(6); - if (lookahead == '=') ADVANCE(47); - if (lookahead == '[') ADVANCE(95); - if (lookahead == '`') ADVANCE(28); - if (lookahead == 'f') ADVANCE(54); - if (lookahead == 's') ADVANCE(62); - if (lookahead == 't') ADVANCE(68); - if (lookahead == 'u') ADVANCE(67); - if (lookahead == '{') ADVANCE(49); + if (lookahead == '=') ADVANCE(54); + if (lookahead == '[') ADVANCE(104); + if (lookahead == '`') ADVANCE(35); + if (lookahead == 'f') ADVANCE(61); + if (lookahead == 's') ADVANCE(69); + if (lookahead == 't') ADVANCE(75); + if (lookahead == 'u') ADVANCE(74); + if (lookahead == '{') ADVANCE(56); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(3) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); case 4: - if (lookahead == '"') ADVANCE(82); - if (lookahead == '-') ADVANCE(79); + if (lookahead == '"') ADVANCE(91); + if (lookahead == '-') ADVANCE(88); if (lookahead == '/') ADVANCE(6); - if (lookahead == '[') ADVANCE(95); - if (lookahead == ']') ADVANCE(96); - if (lookahead == '`') ADVANCE(28); - if (lookahead == 'f') ADVANCE(54); - if (lookahead == 's') ADVANCE(62); - if (lookahead == 't') ADVANCE(68); - if (lookahead == '{') ADVANCE(49); + if (lookahead == '[') ADVANCE(104); + if (lookahead == ']') ADVANCE(105); + if (lookahead == '`') ADVANCE(35); + if (lookahead == 'f') ADVANCE(61); + if (lookahead == 's') ADVANCE(69); + if (lookahead == 't') ADVANCE(75); + if (lookahead == '{') ADVANCE(56); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(4) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); case 5: - if (lookahead == '"') ADVANCE(82); + if (lookahead == '"') ADVANCE(91); if (lookahead == '/') ADVANCE(6); - if (lookahead == '`') ADVANCE(28); - if (lookahead == 'd') ADVANCE(14); - if (lookahead == '}') ADVANCE(51); + if (lookahead == '`') ADVANCE(35); + if (lookahead == 'd') ADVANCE(15); + if (lookahead == 'f') ADVANCE(13); + if (lookahead == 't') ADVANCE(21); + if (lookahead == '}') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') SKIP(5) END_STATE(); case 6: - if (lookahead == '*') ADVANCE(41); - if (lookahead == '/') ADVANCE(32); + if (lookahead == '*') ADVANCE(48); + if (lookahead == '/') ADVANCE(39); END_STATE(); case 7: - if (lookahead == '*') ADVANCE(45); + if (lookahead == '*') ADVANCE(52); if (lookahead == '/') ADVANCE(9); if (('\t' <= lookahead && lookahead <= '\r') || lookahead == ' ') ADVANCE(7); if (lookahead != 0) ADVANCE(8); END_STATE(); case 8: - if (lookahead == '*') ADVANCE(45); + if (lookahead == '*') ADVANCE(52); if (lookahead != 0) ADVANCE(8); END_STATE(); case 9: - if (lookahead == '*') ADVANCE(42); - if (lookahead == '/') ADVANCE(33); + if (lookahead == '*') ADVANCE(49); + if (lookahead == '/') ADVANCE(40); if (lookahead != 0) ADVANCE(8); END_STATE(); case 10: - if (lookahead == '=') ADVANCE(48); + if (lookahead == '=') ADVANCE(55); END_STATE(); case 11: - if (lookahead == 'U') ADVANCE(26); - if (lookahead == 'u') ADVANCE(22); - if (lookahead == 'x') ADVANCE(20); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); - if (lookahead != 0) ADVANCE(87); + if (lookahead == 'U') ADVANCE(33); + if (lookahead == 'u') ADVANCE(29); + if (lookahead == 'x') ADVANCE(27); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(98); + if (lookahead != 0) ADVANCE(96); END_STATE(); case 12: - if (lookahead == '`') ADVANCE(81); + if (lookahead == '`') ADVANCE(90); if (lookahead != 0) ADVANCE(12); END_STATE(); case 13: - if (lookahead == 'a') ADVANCE(18); + if (lookahead == 'a') ADVANCE(19); END_STATE(); case 14: - if (lookahead == 'e') ADVANCE(15); + if (lookahead == 'a') ADVANCE(25); END_STATE(); case 15: - if (lookahead == 'f') ADVANCE(13); + if (lookahead == 'e') ADVANCE(18); END_STATE(); case 16: - if (lookahead == 'l') ADVANCE(17); + if (lookahead == 'e') ADVANCE(84); END_STATE(); case 17: - if (lookahead == 't') ADVANCE(91); + if (lookahead == 'e') ADVANCE(86); END_STATE(); case 18: - if (lookahead == 'u') ADVANCE(16); + if (lookahead == 'f') ADVANCE(14); END_STATE(); case 19: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(87); + if (lookahead == 'l') ADVANCE(22); END_STATE(); case 20: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(19); + if (lookahead == 'l') ADVANCE(23); END_STATE(); case 21: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(20); + if (lookahead == 'r') ADVANCE(24); END_STATE(); case 22: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(21); + if (lookahead == 's') ADVANCE(17); END_STATE(); case 23: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(22); + if (lookahead == 't') ADVANCE(100); END_STATE(); case 24: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(23); + if (lookahead == 'u') ADVANCE(16); END_STATE(); case 25: - if (('0' <= lookahead && lookahead <= '9') || - ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(24); + if (lookahead == 'u') ADVANCE(20); END_STATE(); case 26: if (('0' <= lookahead && lookahead <= '9') || ('A' <= lookahead && lookahead <= 'F') || - ('a' <= lookahead && lookahead <= 'f')) ADVANCE(25); + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(96); END_STATE(); case 27: - if (lookahead != 0 && - lookahead != '\r' && - lookahead != '\\') ADVANCE(38); - if (lookahead == '\r') ADVANCE(40); - if (lookahead == '\\') ADVANCE(39); + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(26); END_STATE(); case 28: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(27); + END_STATE(); + case 29: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(28); + END_STATE(); + case 30: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(29); + END_STATE(); + case 31: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(30); + END_STATE(); + case 32: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(31); + END_STATE(); + case 33: + if (('0' <= lookahead && lookahead <= '9') || + ('A' <= lookahead && lookahead <= 'F') || + ('a' <= lookahead && lookahead <= 'f')) ADVANCE(32); + END_STATE(); + case 34: + if (lookahead != 0 && + lookahead != '\r' && + lookahead != '\\') ADVANCE(45); + if (lookahead == '\r') ADVANCE(47); + if (lookahead == '\\') ADVANCE(46); + END_STATE(); + case 35: if (lookahead != 0 && lookahead != '`') ADVANCE(12); END_STATE(); - case 29: - if (eof) ADVANCE(31); - if (lookahead == '"') ADVANCE(82); - if (lookahead == '(') ADVANCE(52); - if (lookahead == ')') ADVANCE(53); - if (lookahead == '+') ADVANCE(98); - if (lookahead == ',') ADVANCE(50); - if (lookahead == '-') ADVANCE(79); - if (lookahead == '/') ADVANCE(46); - if (lookahead == ':') ADVANCE(93); - if (lookahead == '=') ADVANCE(47); - if (lookahead == '[') ADVANCE(95); - if (lookahead == ']') ADVANCE(96); - if (lookahead == '`') ADVANCE(28); - if (lookahead == 'd') ADVANCE(57); - if (lookahead == 'f') ADVANCE(54); - if (lookahead == 's') ADVANCE(62); - if (lookahead == 't') ADVANCE(68); - if (lookahead == 'u') ADVANCE(67); - if (lookahead == '{') ADVANCE(49); - if (lookahead == '}') ADVANCE(51); + case 36: + if (eof) ADVANCE(38); + if (lookahead == '"') ADVANCE(91); + if (lookahead == '(') ADVANCE(59); + if (lookahead == ')') ADVANCE(60); + if (lookahead == '+') ADVANCE(107); + if (lookahead == ',') ADVANCE(57); + if (lookahead == '-') ADVANCE(88); + if (lookahead == '/') ADVANCE(53); + if (lookahead == ':') ADVANCE(102); + if (lookahead == '=') ADVANCE(54); + if (lookahead == '[') ADVANCE(104); + if (lookahead == ']') ADVANCE(105); + if (lookahead == '`') ADVANCE(35); + if (lookahead == 'd') ADVANCE(64); + if (lookahead == 'f') ADVANCE(61); + if (lookahead == 's') ADVANCE(69); + if (lookahead == 't') ADVANCE(75); + if (lookahead == 'u') ADVANCE(74); + if (lookahead == '{') ADVANCE(56); + if (lookahead == '}') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(29) - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); - if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); + lookahead == ' ') SKIP(36) + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); + if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); - case 30: - if (eof) ADVANCE(31); - if (lookahead == '"') ADVANCE(82); - if (lookahead == ')') ADVANCE(53); - if (lookahead == '+') ADVANCE(97); - if (lookahead == ',') ADVANCE(50); + case 37: + if (eof) ADVANCE(38); + if (lookahead == '"') ADVANCE(91); + if (lookahead == ')') ADVANCE(60); + if (lookahead == '+') ADVANCE(106); + if (lookahead == ',') ADVANCE(57); if (lookahead == '/') ADVANCE(6); - if (lookahead == ':') ADVANCE(93); - if (lookahead == ']') ADVANCE(96); - if (lookahead == '`') ADVANCE(28); - if (lookahead == '}') ADVANCE(51); + if (lookahead == ':') ADVANCE(102); + if (lookahead == ']') ADVANCE(105); + if (lookahead == '`') ADVANCE(35); + if (lookahead == '}') ADVANCE(58); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(30) - if (sym_identifier_character_set_1(lookahead)) ADVANCE(76); + lookahead == ' ') SKIP(37) + if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); - case 31: + case 38: ACCEPT_TOKEN(ts_builtin_sym_end); END_STATE(); - case 32: + case 39: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); END_STATE(); - case 33: + case 40: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); - if (lookahead == '*') ADVANCE(45); + if (lookahead == '*') ADVANCE(52); if (lookahead != 0) ADVANCE(8); END_STATE(); - case 34: + case 41: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); - if (lookahead == '\\') ADVANCE(27); + if (lookahead == '\\') ADVANCE(34); if (lookahead != 0 && - lookahead != '\n') ADVANCE(38); + lookahead != '\n') ADVANCE(45); END_STATE(); - case 35: + case 42: ACCEPT_TOKEN(anon_sym_SLASH_SLASH); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(85); + lookahead != '\\') ADVANCE(94); END_STATE(); - case 36: + case 43: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '*') ADVANCE(43); - if (lookahead == '/') ADVANCE(34); - if (lookahead == '\\') ADVANCE(27); + if (lookahead == '*') ADVANCE(50); + if (lookahead == '/') ADVANCE(41); + if (lookahead == '\\') ADVANCE(34); if (lookahead != 0 && - lookahead != '\n') ADVANCE(38); + lookahead != '\n') ADVANCE(45); END_STATE(); - case 37: + case 44: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '/') ADVANCE(36); - if (lookahead == '\\') ADVANCE(27); + if (lookahead == '/') ADVANCE(43); + if (lookahead == '\\') ADVANCE(34); if (lookahead == '\t' || (11 <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(37); + lookahead == ' ') ADVANCE(44); if (lookahead != 0 && - lookahead != '\n') ADVANCE(38); + lookahead != '\n') ADVANCE(45); END_STATE(); - case 38: + case 45: ACCEPT_TOKEN(aux_sym_comment_token1); - if (lookahead == '\\') ADVANCE(27); + if (lookahead == '\\') ADVANCE(34); if (lookahead != 0 && - lookahead != '\n') ADVANCE(38); + lookahead != '\n') ADVANCE(45); END_STATE(); - case 39: + case 46: ACCEPT_TOKEN(aux_sym_comment_token1); if (lookahead != 0 && lookahead != '\r' && - lookahead != '\\') ADVANCE(38); - if (lookahead == '\r') ADVANCE(40); - if (lookahead == '\\') ADVANCE(39); + lookahead != '\\') ADVANCE(45); + if (lookahead == '\r') ADVANCE(47); + if (lookahead == '\\') ADVANCE(46); END_STATE(); - case 40: + case 47: ACCEPT_TOKEN(aux_sym_comment_token1); if (lookahead != 0 && - lookahead != '\\') ADVANCE(38); - if (lookahead == '\\') ADVANCE(27); + lookahead != '\\') ADVANCE(45); + if (lookahead == '\\') ADVANCE(34); END_STATE(); - case 41: + case 48: ACCEPT_TOKEN(anon_sym_SLASH_STAR); END_STATE(); - case 42: + case 49: ACCEPT_TOKEN(anon_sym_SLASH_STAR); - if (lookahead == '*') ADVANCE(45); + if (lookahead == '*') ADVANCE(52); if (lookahead != 0 && lookahead != '/') ADVANCE(8); END_STATE(); - case 43: + case 50: ACCEPT_TOKEN(anon_sym_SLASH_STAR); - if (lookahead == '\\') ADVANCE(27); + if (lookahead == '\\') ADVANCE(34); if (lookahead != 0 && - lookahead != '\n') ADVANCE(38); + lookahead != '\n') ADVANCE(45); END_STATE(); - case 44: + case 51: ACCEPT_TOKEN(anon_sym_SLASH_STAR); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(85); + lookahead != '\\') ADVANCE(94); END_STATE(); - case 45: + case 52: ACCEPT_TOKEN(aux_sym_comment_token2); - if (lookahead == '*') ADVANCE(45); + if (lookahead == '*') ADVANCE(52); if (lookahead != 0 && lookahead != '/') ADVANCE(8); END_STATE(); - case 46: - ACCEPT_TOKEN(anon_sym_SLASH); - if (lookahead == '*') ADVANCE(41); - if (lookahead == '/') ADVANCE(32); - END_STATE(); - case 47: - ACCEPT_TOKEN(anon_sym_EQ); - END_STATE(); - case 48: - ACCEPT_TOKEN(anon_sym_PLUS_EQ); - END_STATE(); - case 49: - ACCEPT_TOKEN(anon_sym_LBRACE); - END_STATE(); - case 50: - ACCEPT_TOKEN(anon_sym_COMMA); - END_STATE(); - case 51: - ACCEPT_TOKEN(anon_sym_RBRACE); - END_STATE(); - case 52: - ACCEPT_TOKEN(anon_sym_LPAREN); - END_STATE(); case 53: - ACCEPT_TOKEN(anon_sym_RPAREN); + ACCEPT_TOKEN(anon_sym_SLASH); + if (lookahead == '*') ADVANCE(48); + if (lookahead == '/') ADVANCE(39); END_STATE(); case 54: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(66); - if (sym_identifier_character_set_2(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_EQ); END_STATE(); case 55: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'a') ADVANCE(74); - if (sym_identifier_character_set_2(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_PLUS_EQ); END_STATE(); case 56: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'c') ADVANCE(72); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_LBRACE); END_STATE(); case 57: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(63); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_COMMA); END_STATE(); case 58: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(56); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_RBRACE); END_STATE(); case 59: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(77); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_LPAREN); END_STATE(); case 60: - ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(71); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(anon_sym_RPAREN); END_STATE(); case 61: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(78); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'a') ADVANCE(73); + if (sym_identifier_character_set_2(lookahead)) ADVANCE(83); END_STATE(); case 62: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'e') ADVANCE(64); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'a') ADVANCE(81); + if (sym_identifier_character_set_2(lookahead)) ADVANCE(83); END_STATE(); case 63: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'f') ADVANCE(55); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'c') ADVANCE(79); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 64: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(58); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'e') ADVANCE(70); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 65: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(73); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'e') ADVANCE(63); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 66: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'l') ADVANCE(70); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'e') ADVANCE(85); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 67: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'n') ADVANCE(69); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'e') ADVANCE(78); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 68: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'r') ADVANCE(75); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'e') ADVANCE(87); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 69: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 's') ADVANCE(60); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'e') ADVANCE(71); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 70: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 's') ADVANCE(61); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'f') ADVANCE(62); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 71: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(94); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'l') ADVANCE(65); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 72: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(90); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'l') ADVANCE(80); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 73: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(92); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'l') ADVANCE(77); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 74: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'u') ADVANCE(65); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'n') ADVANCE(76); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 75: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 'u') ADVANCE(59); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 'r') ADVANCE(82); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 76: ACCEPT_TOKEN(sym_identifier); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + if (lookahead == 's') ADVANCE(67); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 77: - ACCEPT_TOKEN(anon_sym_true); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 's') ADVANCE(68); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 78: - ACCEPT_TOKEN(anon_sym_false); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 't') ADVANCE(103); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 79: - ACCEPT_TOKEN(anon_sym_DASH); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 't') ADVANCE(99); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 80: - ACCEPT_TOKEN(aux_sym_integer_literal_token1); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(80); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 't') ADVANCE(101); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 81: - ACCEPT_TOKEN(sym_raw_string_literal); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 'u') ADVANCE(72); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 82: - ACCEPT_TOKEN(anon_sym_DQUOTE); + ACCEPT_TOKEN(sym_identifier); + if (lookahead == 'u') ADVANCE(66); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 83: - ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); - if (lookahead == '*') ADVANCE(44); - if (lookahead == '/') ADVANCE(35); - if (lookahead != 0 && - lookahead != '\n' && - lookahead != '"' && - lookahead != '\\') ADVANCE(85); + ACCEPT_TOKEN(sym_identifier); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 84: - ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); - if (lookahead == '/') ADVANCE(83); - if (lookahead == '\t' || - (11 <= lookahead && lookahead <= '\r') || - lookahead == ' ') ADVANCE(84); - if (lookahead != 0 && - lookahead != '\n' && - lookahead != '"' && - lookahead != '\\') ADVANCE(85); + ACCEPT_TOKEN(anon_sym_true); END_STATE(); case 85: + ACCEPT_TOKEN(anon_sym_true); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + END_STATE(); + case 86: + ACCEPT_TOKEN(anon_sym_false); + END_STATE(); + case 87: + ACCEPT_TOKEN(anon_sym_false); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + END_STATE(); + case 88: + ACCEPT_TOKEN(anon_sym_DASH); + END_STATE(); + case 89: + ACCEPT_TOKEN(aux_sym_integer_literal_token1); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); + END_STATE(); + case 90: + ACCEPT_TOKEN(sym_raw_string_literal); + END_STATE(); + case 91: + ACCEPT_TOKEN(anon_sym_DQUOTE); + END_STATE(); + case 92: + ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); + if (lookahead == '*') ADVANCE(51); + if (lookahead == '/') ADVANCE(42); + if (lookahead != 0 && + lookahead != '\n' && + lookahead != '"' && + lookahead != '\\') ADVANCE(94); + END_STATE(); + case 93: + ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); + if (lookahead == '/') ADVANCE(92); + if (lookahead == '\t' || + (11 <= lookahead && lookahead <= '\r') || + lookahead == ' ') ADVANCE(93); + if (lookahead != 0 && + lookahead != '\n' && + lookahead != '"' && + lookahead != '\\') ADVANCE(94); + END_STATE(); + case 94: ACCEPT_TOKEN(aux_sym_interpreted_string_literal_token1); if (lookahead != 0 && lookahead != '\n' && lookahead != '"' && - lookahead != '\\') ADVANCE(85); - END_STATE(); - case 86: - ACCEPT_TOKEN(anon_sym_DQUOTE2); - END_STATE(); - case 87: - ACCEPT_TOKEN(sym_escape_sequence); - END_STATE(); - case 88: - ACCEPT_TOKEN(sym_escape_sequence); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(87); - END_STATE(); - case 89: - ACCEPT_TOKEN(sym_escape_sequence); - if (('0' <= lookahead && lookahead <= '9')) ADVANCE(88); - END_STATE(); - case 90: - ACCEPT_TOKEN(anon_sym_select); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); - END_STATE(); - case 91: - ACCEPT_TOKEN(anon_sym_default); - END_STATE(); - case 92: - ACCEPT_TOKEN(anon_sym_default); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); - END_STATE(); - case 93: - ACCEPT_TOKEN(anon_sym_COLON); - END_STATE(); - case 94: - ACCEPT_TOKEN(anon_sym_unset); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(76); + lookahead != '\\') ADVANCE(94); END_STATE(); case 95: - ACCEPT_TOKEN(anon_sym_LBRACK); + ACCEPT_TOKEN(anon_sym_DQUOTE2); END_STATE(); case 96: - ACCEPT_TOKEN(anon_sym_RBRACK); + ACCEPT_TOKEN(sym_escape_sequence); END_STATE(); case 97: - ACCEPT_TOKEN(anon_sym_PLUS); + ACCEPT_TOKEN(sym_escape_sequence); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(96); END_STATE(); case 98: + ACCEPT_TOKEN(sym_escape_sequence); + if (('0' <= lookahead && lookahead <= '9')) ADVANCE(97); + END_STATE(); + case 99: + ACCEPT_TOKEN(anon_sym_select); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + END_STATE(); + case 100: + ACCEPT_TOKEN(anon_sym_default); + END_STATE(); + case 101: + ACCEPT_TOKEN(anon_sym_default); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + END_STATE(); + case 102: + ACCEPT_TOKEN(anon_sym_COLON); + END_STATE(); + case 103: + ACCEPT_TOKEN(anon_sym_unset); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); + END_STATE(); + case 104: + ACCEPT_TOKEN(anon_sym_LBRACK); + END_STATE(); + case 105: + ACCEPT_TOKEN(anon_sym_RBRACK); + END_STATE(); + case 106: ACCEPT_TOKEN(anon_sym_PLUS); - if (lookahead == '=') ADVANCE(48); + END_STATE(); + case 107: + ACCEPT_TOKEN(anon_sym_PLUS); + if (lookahead == '=') ADVANCE(55); END_STATE(); default: return false; @@ -4088,7 +4117,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, - [1] = {.lex_state = 30}, + [1] = {.lex_state = 37}, [2] = {.lex_state = 3}, [3] = {.lex_state = 4}, [4] = {.lex_state = 4}, @@ -4098,89 +4127,89 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [8] = {.lex_state = 4}, [9] = {.lex_state = 4}, [10] = {.lex_state = 4}, - [11] = {.lex_state = 30}, - [12] = {.lex_state = 30}, + [11] = {.lex_state = 5}, + [12] = {.lex_state = 5}, [13] = {.lex_state = 5}, - [14] = {.lex_state = 30}, - [15] = {.lex_state = 30}, - [16] = {.lex_state = 5}, - [17] = {.lex_state = 5}, - [18] = {.lex_state = 30}, - [19] = {.lex_state = 30}, - [20] = {.lex_state = 30}, - [21] = {.lex_state = 30}, - [22] = {.lex_state = 30}, - [23] = {.lex_state = 30}, - [24] = {.lex_state = 30}, - [25] = {.lex_state = 30}, - [26] = {.lex_state = 30}, - [27] = {.lex_state = 30}, - [28] = {.lex_state = 30}, - [29] = {.lex_state = 30}, - [30] = {.lex_state = 30}, - [31] = {.lex_state = 30}, - [32] = {.lex_state = 30}, - [33] = {.lex_state = 30}, - [34] = {.lex_state = 30}, - [35] = {.lex_state = 30}, - [36] = {.lex_state = 30}, - [37] = {.lex_state = 30}, - [38] = {.lex_state = 1}, - [39] = {.lex_state = 3}, - [40] = {.lex_state = 1}, - [41] = {.lex_state = 5}, - [42] = {.lex_state = 30}, - [43] = {.lex_state = 1}, - [44] = {.lex_state = 30}, - [45] = {.lex_state = 0}, - [46] = {.lex_state = 0}, - [47] = {.lex_state = 30}, + [14] = {.lex_state = 37}, + [15] = {.lex_state = 37}, + [16] = {.lex_state = 37}, + [17] = {.lex_state = 37}, + [18] = {.lex_state = 37}, + [19] = {.lex_state = 37}, + [20] = {.lex_state = 37}, + [21] = {.lex_state = 37}, + [22] = {.lex_state = 37}, + [23] = {.lex_state = 37}, + [24] = {.lex_state = 37}, + [25] = {.lex_state = 37}, + [26] = {.lex_state = 37}, + [27] = {.lex_state = 37}, + [28] = {.lex_state = 37}, + [29] = {.lex_state = 37}, + [30] = {.lex_state = 37}, + [31] = {.lex_state = 37}, + [32] = {.lex_state = 37}, + [33] = {.lex_state = 37}, + [34] = {.lex_state = 37}, + [35] = {.lex_state = 5}, + [36] = {.lex_state = 37}, + [37] = {.lex_state = 37}, + [38] = {.lex_state = 37}, + [39] = {.lex_state = 1}, + [40] = {.lex_state = 37}, + [41] = {.lex_state = 1}, + [42] = {.lex_state = 3}, + [43] = {.lex_state = 37}, + [44] = {.lex_state = 1}, + [45] = {.lex_state = 37}, + [46] = {.lex_state = 37}, + [47] = {.lex_state = 0}, [48] = {.lex_state = 0}, - [49] = {.lex_state = 30}, - [50] = {.lex_state = 30}, + [49] = {.lex_state = 37}, + [50] = {.lex_state = 37}, [51] = {.lex_state = 0}, - [52] = {.lex_state = 30}, - [53] = {.lex_state = 30}, - [54] = {.lex_state = 1}, - [55] = {.lex_state = 30}, + [52] = {.lex_state = 37}, + [53] = {.lex_state = 37}, + [54] = {.lex_state = 0}, + [55] = {.lex_state = 37}, [56] = {.lex_state = 0}, - [57] = {.lex_state = 30}, - [58] = {.lex_state = 30}, + [57] = {.lex_state = 37}, + [58] = {.lex_state = 1}, [59] = {.lex_state = 0}, [60] = {.lex_state = 0}, [61] = {.lex_state = 0}, - [62] = {.lex_state = 30}, - [63] = {.lex_state = 30}, + [62] = {.lex_state = 37}, + [63] = {.lex_state = 37}, [64] = {.lex_state = 0}, - [65] = {.lex_state = 30}, - [66] = {.lex_state = 30}, + [65] = {.lex_state = 37}, + [66] = {.lex_state = 37}, [67] = {.lex_state = 0}, [68] = {.lex_state = 0}, - [69] = {.lex_state = 30}, + [69] = {.lex_state = 37}, [70] = {.lex_state = 0}, [71] = {.lex_state = 0}, - [72] = {.lex_state = 30}, - [73] = {.lex_state = 30}, - [74] = {.lex_state = 30}, - [75] = {.lex_state = 30}, + [72] = {.lex_state = 37}, + [73] = {.lex_state = 37}, + [74] = {.lex_state = 37}, + [75] = {.lex_state = 37}, [76] = {.lex_state = 0}, - [77] = {.lex_state = 30}, + [77] = {.lex_state = 37}, [78] = {.lex_state = 0}, [79] = {.lex_state = 0}, - [80] = {.lex_state = 30}, - [81] = {.lex_state = 30}, - [82] = {.lex_state = 30}, - [83] = {.lex_state = 30}, - [84] = {.lex_state = 30}, - [85] = {.lex_state = 30}, - [86] = {.lex_state = 30}, - [87] = {.lex_state = 30}, - [88] = {.lex_state = 30}, - [89] = {.lex_state = 30}, - [90] = {.lex_state = 30}, - [91] = {.lex_state = 30}, + [80] = {.lex_state = 37}, + [81] = {.lex_state = 37}, + [82] = {.lex_state = 37}, + [83] = {.lex_state = 37}, + [84] = {.lex_state = 37}, + [85] = {.lex_state = 37}, + [86] = {.lex_state = 37}, + [87] = {.lex_state = 37}, + [88] = {.lex_state = 37}, + [89] = {.lex_state = 37}, + [90] = {.lex_state = 37}, + [91] = {.lex_state = 37}, [92] = {.lex_state = 0}, - [93] = {.lex_state = 30}, + [93] = {.lex_state = 37}, [94] = {.lex_state = 0}, [95] = {.lex_state = 0}, [96] = {.lex_state = 0}, @@ -4196,7 +4225,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [106] = {.lex_state = 0}, [107] = {.lex_state = 0}, [108] = {.lex_state = 0}, - [109] = {.lex_state = 37}, + [109] = {.lex_state = 44}, [110] = {.lex_state = 0}, [111] = {.lex_state = 0}, [112] = {.lex_state = 0}, @@ -4245,7 +4274,7 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [sym_module] = STATE(82), [sym__old_module] = STATE(89), [sym__new_module] = STATE(73), - [aux_sym_source_file_repeat1] = STATE(18), + [aux_sym_source_file_repeat1] = STATE(15), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -4279,7 +4308,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(2), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, STATE(80), 1, sym__expr, @@ -4321,9 +4350,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(3), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, - STATE(42), 1, + STATE(43), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -4361,7 +4390,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(4), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, STATE(57), 1, sym__expr, @@ -4401,7 +4430,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(5), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, STATE(57), 1, sym__expr, @@ -4439,9 +4468,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(6), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, - STATE(47), 1, + STATE(57), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -4477,9 +4506,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(7), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, - STATE(27), 1, + STATE(30), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -4515,7 +4544,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(8), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, STATE(62), 1, sym__expr, @@ -4553,9 +4582,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(9), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, - STATE(57), 1, + STATE(49), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -4591,7 +4620,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(10), 1, sym_comment, - STATE(12), 1, + STATE(18), 1, sym_interpreted_string_literal, STATE(65), 1, sym__expr, @@ -4606,44 +4635,33 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [492] = 9, + [492] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(37), 1, - ts_builtin_sym_end, - ACTIONS(39), 1, - sym_identifier, - STATE(73), 1, - sym__new_module, - STATE(81), 1, - sym__definition, - STATE(89), 1, - sym__old_module, + anon_sym_RBRACE, + ACTIONS(42), 1, + sym_raw_string_literal, + ACTIONS(45), 1, + anon_sym_DQUOTE, + ACTIONS(48), 1, + anon_sym_default, + STATE(18), 1, + sym_interpreted_string_literal, + STATE(106), 1, + sym_select_case, + ACTIONS(39), 2, + anon_sym_true, + anon_sym_false, STATE(11), 2, sym_comment, - aux_sym_source_file_repeat1, - STATE(82), 2, - sym_assignment, - sym_module, - [522] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(12), 1, - sym_comment, - ACTIONS(42), 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, - [542] = 11, + aux_sym_select_cases_repeat1, + STATE(100), 2, + sym_boolean_literal, + sym__string_literal, + [529] = 12, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4652,28 +4670,59 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(44), 1, + ACTIONS(51), 1, anon_sym_RBRACE, - ACTIONS(46), 1, + ACTIONS(55), 1, anon_sym_default, STATE(12), 1, - sym_interpreted_string_literal, - STATE(13), 1, sym_comment, - STATE(16), 1, + STATE(13), 1, aux_sym_select_cases_repeat1, - STATE(100), 1, - sym__string_literal, + STATE(18), 1, + sym_interpreted_string_literal, STATE(106), 1, sym_select_case, - [576] = 4, + ACTIONS(53), 2, + anon_sym_true, + anon_sym_false, + STATE(100), 2, + sym_boolean_literal, + sym__string_literal, + [568] = 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(55), 1, + anon_sym_default, + ACTIONS(57), 1, + anon_sym_RBRACE, + STATE(11), 1, + aux_sym_select_cases_repeat1, + STATE(13), 1, + sym_comment, + STATE(18), 1, + sym_interpreted_string_literal, + STATE(106), 1, + sym_select_case, + ACTIONS(53), 2, + anon_sym_true, + anon_sym_false, + STATE(100), 2, + sym_boolean_literal, + sym__string_literal, + [607] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(14), 1, sym_comment, - ACTIONS(48), 8, + ACTIONS(59), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4682,80 +4731,19 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [596] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(15), 1, - sym_comment, - ACTIONS(50), 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, - [616] = 10, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(52), 1, - anon_sym_RBRACE, - ACTIONS(54), 1, - sym_raw_string_literal, - ACTIONS(57), 1, - anon_sym_DQUOTE, - ACTIONS(60), 1, - anon_sym_default, - STATE(12), 1, - sym_interpreted_string_literal, - STATE(100), 1, - sym__string_literal, - STATE(106), 1, - sym_select_case, - STATE(16), 2, - sym_comment, - aux_sym_select_cases_repeat1, - [648] = 11, - 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(46), 1, - anon_sym_default, - ACTIONS(63), 1, - anon_sym_RBRACE, - STATE(12), 1, - sym_interpreted_string_literal, - STATE(13), 1, - aux_sym_select_cases_repeat1, - STATE(17), 1, - sym_comment, - STATE(100), 1, - sym__string_literal, - STATE(106), 1, - sym_select_case, - [682] = 10, + [627] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(9), 1, sym_identifier, - ACTIONS(65), 1, + ACTIONS(61), 1, ts_builtin_sym_end, - STATE(11), 1, - aux_sym_source_file_repeat1, - STATE(18), 1, + STATE(15), 1, sym_comment, + STATE(17), 1, + aux_sym_source_file_repeat1, STATE(73), 1, sym__new_module, STATE(81), 1, @@ -4765,29 +4753,83 @@ static const uint16_t ts_small_parse_table[] = { STATE(82), 2, sym_assignment, sym_module, - [714] = 4, + [659] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(16), 1, + sym_comment, + ACTIONS(63), 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, + [679] = 9, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(65), 1, + ts_builtin_sym_end, + ACTIONS(67), 1, + sym_identifier, + STATE(73), 1, + sym__new_module, + STATE(81), 1, + sym__definition, + STATE(89), 1, + sym__old_module, + STATE(17), 2, + sym_comment, + aux_sym_source_file_repeat1, + STATE(82), 2, + sym_assignment, + sym_module, + [709] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(18), 1, + sym_comment, + ACTIONS(70), 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, + [729] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(19), 1, sym_comment, - ACTIONS(67), 7, + ACTIONS(72), 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, - [733] = 4, + [749] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(20), 1, sym_comment, - ACTIONS(69), 7, + ACTIONS(74), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4795,14 +4837,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [752] = 4, + [768] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(21), 1, sym_comment, - ACTIONS(71), 7, + ACTIONS(76), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4810,14 +4852,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [771] = 4, + [787] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(22), 1, sym_comment, - ACTIONS(73), 7, + ACTIONS(78), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4825,14 +4867,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [790] = 4, + [806] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(23), 1, sym_comment, - ACTIONS(75), 7, + ACTIONS(80), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4840,14 +4882,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [809] = 4, + [825] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(24), 1, sym_comment, - ACTIONS(77), 7, + ACTIONS(82), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4855,14 +4897,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [828] = 4, + [844] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(25), 1, sym_comment, - ACTIONS(79), 7, + ACTIONS(84), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4870,14 +4912,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [847] = 4, + [863] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(26), 1, sym_comment, - ACTIONS(81), 7, + ACTIONS(86), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4885,14 +4927,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [866] = 4, + [882] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(27), 1, sym_comment, - ACTIONS(83), 7, + ACTIONS(88), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4900,14 +4942,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [885] = 4, + [901] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(28), 1, sym_comment, - ACTIONS(85), 7, + ACTIONS(90), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4915,14 +4957,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [904] = 4, + [920] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(29), 1, sym_comment, - ACTIONS(87), 7, + ACTIONS(92), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4930,14 +4972,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [923] = 4, + [939] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(30), 1, sym_comment, - ACTIONS(89), 7, + ACTIONS(94), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4945,14 +4987,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [942] = 4, + [958] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(31), 1, sym_comment, - ACTIONS(91), 7, + ACTIONS(96), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4960,14 +5002,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [961] = 4, + [977] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(32), 1, sym_comment, - ACTIONS(93), 7, + ACTIONS(98), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4975,14 +5017,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [980] = 4, + [996] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(33), 1, sym_comment, - ACTIONS(95), 7, + ACTIONS(100), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4990,14 +5032,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [999] = 4, + [1015] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(34), 1, sym_comment, - ACTIONS(97), 7, + ACTIONS(102), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5005,143 +5047,21 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1018] = 8, + [1034] = 4, 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(99), 1, - anon_sym_RPAREN, - STATE(12), 1, - sym_interpreted_string_literal, STATE(35), 1, sym_comment, - STATE(92), 1, - sym__string_literal, - [1043] = 8, - 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(101), 1, - anon_sym_RPAREN, - STATE(12), 1, - sym_interpreted_string_literal, - STATE(36), 1, - sym_comment, - STATE(56), 1, - sym__string_literal, - [1068] = 8, - 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(103), 1, - anon_sym_RPAREN, - STATE(12), 1, - sym_interpreted_string_literal, - STATE(37), 1, - sym_comment, - STATE(92), 1, - sym__string_literal, - [1093] = 7, - ACTIONS(105), 1, - anon_sym_SLASH_SLASH, - ACTIONS(107), 1, - anon_sym_SLASH_STAR, - ACTIONS(109), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(111), 1, - anon_sym_DQUOTE2, - ACTIONS(113), 1, - sym_escape_sequence, - STATE(38), 1, - sym_comment, - STATE(40), 1, - aux_sym_interpreted_string_literal_repeat1, - [1115] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(117), 1, - anon_sym_LBRACE, - ACTIONS(119), 1, - anon_sym_LPAREN, - STATE(39), 1, - sym_comment, - ACTIONS(115), 2, - anon_sym_EQ, - anon_sym_PLUS_EQ, - [1135] = 7, - ACTIONS(105), 1, - anon_sym_SLASH_SLASH, - ACTIONS(107), 1, - anon_sym_SLASH_STAR, - ACTIONS(109), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(113), 1, - sym_escape_sequence, - ACTIONS(121), 1, - anon_sym_DQUOTE2, - STATE(40), 1, - sym_comment, - STATE(43), 1, - aux_sym_interpreted_string_literal_repeat1, - [1157] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(41), 1, - sym_comment, - ACTIONS(52), 4, + ACTIONS(37), 6, anon_sym_RBRACE, + anon_sym_true, + anon_sym_false, sym_raw_string_literal, anon_sym_DQUOTE, anon_sym_default, - [1173] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(123), 1, - anon_sym_COMMA, - ACTIONS(125), 1, - anon_sym_RBRACK, - ACTIONS(127), 1, - anon_sym_PLUS, - STATE(42), 1, - sym_comment, - STATE(60), 1, - aux_sym_list_expression_repeat1, - [1195] = 6, - ACTIONS(105), 1, - anon_sym_SLASH_SLASH, - ACTIONS(107), 1, - anon_sym_SLASH_STAR, - ACTIONS(129), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(132), 1, - anon_sym_DQUOTE2, - ACTIONS(134), 1, - sym_escape_sequence, - STATE(43), 2, - sym_comment, - aux_sym_interpreted_string_literal_repeat1, - [1215] = 7, + [1052] = 8, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5150,773 +5070,897 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(12), 1, + ACTIONS(104), 1, + anon_sym_RPAREN, + STATE(18), 1, sym_interpreted_string_literal, - STATE(44), 1, + STATE(36), 1, sym_comment, STATE(92), 1, sym__string_literal, - [1237] = 6, + [1077] = 8, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(137), 1, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(106), 1, + anon_sym_RPAREN, + STATE(18), 1, + sym_interpreted_string_literal, + STATE(37), 1, + sym_comment, + STATE(47), 1, + sym__string_literal, + [1102] = 8, + 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(108), 1, + anon_sym_RPAREN, + STATE(18), 1, + sym_interpreted_string_literal, + STATE(38), 1, + sym_comment, + STATE(92), 1, + sym__string_literal, + [1127] = 7, + ACTIONS(110), 1, + anon_sym_SLASH_SLASH, + ACTIONS(112), 1, + anon_sym_SLASH_STAR, + ACTIONS(114), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(116), 1, + anon_sym_DQUOTE2, + ACTIONS(118), 1, + sym_escape_sequence, + STATE(39), 1, + sym_comment, + STATE(41), 1, + aux_sym_interpreted_string_literal_repeat1, + [1149] = 7, + 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, + STATE(18), 1, + sym_interpreted_string_literal, + STATE(40), 1, + sym_comment, + STATE(92), 1, + sym__string_literal, + [1171] = 7, + ACTIONS(110), 1, + anon_sym_SLASH_SLASH, + ACTIONS(112), 1, + anon_sym_SLASH_STAR, + ACTIONS(114), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(118), 1, + sym_escape_sequence, + ACTIONS(120), 1, + anon_sym_DQUOTE2, + STATE(41), 1, + sym_comment, + STATE(44), 1, + aux_sym_interpreted_string_literal_repeat1, + [1193] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(124), 1, + anon_sym_LBRACE, + ACTIONS(126), 1, + anon_sym_LPAREN, + STATE(42), 1, + sym_comment, + ACTIONS(122), 2, + anon_sym_EQ, + anon_sym_PLUS_EQ, + [1213] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(128), 1, anon_sym_COMMA, + ACTIONS(130), 1, + anon_sym_RBRACK, + ACTIONS(132), 1, + anon_sym_PLUS, + STATE(43), 1, + sym_comment, + STATE(60), 1, + aux_sym_list_expression_repeat1, + [1235] = 6, + ACTIONS(110), 1, + anon_sym_SLASH_SLASH, + ACTIONS(112), 1, + anon_sym_SLASH_STAR, + ACTIONS(134), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(137), 1, + anon_sym_DQUOTE2, ACTIONS(139), 1, + sym_escape_sequence, + STATE(44), 2, + sym_comment, + aux_sym_interpreted_string_literal_repeat1, + [1255] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(142), 1, anon_sym_RBRACE, + ACTIONS(144), 1, + sym_identifier, STATE(45), 1, sym_comment, - STATE(64), 1, - aux_sym__old_module_repeat1, - [1256] = 6, + STATE(76), 1, + sym__colon_property, + [1274] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(99), 1, - anon_sym_RPAREN, - ACTIONS(141), 1, - anon_sym_COMMA, + ACTIONS(144), 1, + sym_identifier, + ACTIONS(146), 1, + anon_sym_RBRACE, STATE(46), 1, sym_comment, STATE(61), 1, - aux_sym_select_value_repeat1, - [1275] = 5, + sym__colon_property, + [1293] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(127), 1, - anon_sym_PLUS, + ACTIONS(148), 1, + anon_sym_COMMA, + ACTIONS(150), 1, + anon_sym_RPAREN, STATE(47), 1, sym_comment, - ACTIONS(143), 2, - ts_builtin_sym_end, - sym_identifier, - [1292] = 6, + STATE(59), 1, + aux_sym_select_value_repeat1, + [1312] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(145), 1, + ACTIONS(152), 1, anon_sym_COMMA, - ACTIONS(147), 1, + ACTIONS(154), 1, anon_sym_RBRACE, STATE(48), 1, sym_comment, STATE(64), 1, aux_sym__old_module_repeat1, - [1311] = 6, + [1331] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(149), 1, - anon_sym_RPAREN, - ACTIONS(151), 1, - sym_identifier, + ACTIONS(132), 1, + anon_sym_PLUS, STATE(49), 1, sym_comment, - STATE(78), 1, - sym__equal_property, - [1330] = 6, + ACTIONS(156), 2, + ts_builtin_sym_end, + sym_identifier, + [1348] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(153), 1, - anon_sym_RBRACE, - ACTIONS(155), 1, + ACTIONS(158), 1, + anon_sym_RPAREN, + ACTIONS(160), 1, sym_identifier, STATE(50), 1, sym_comment, - STATE(71), 1, - sym__colon_property, - [1349] = 6, + STATE(78), 1, + sym__equal_property, + [1367] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(157), 1, + ACTIONS(162), 1, anon_sym_COMMA, - ACTIONS(159), 1, + ACTIONS(164), 1, anon_sym_RPAREN, STATE(51), 1, sym_comment, STATE(67), 1, aux_sym__new_module_repeat1, - [1368] = 6, + [1386] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, + ACTIONS(144), 1, sym_identifier, - ACTIONS(161), 1, + ACTIONS(166), 1, anon_sym_RBRACE, STATE(52), 1, sym_comment, STATE(76), 1, sym__colon_property, - [1387] = 6, + [1405] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(151), 1, + ACTIONS(144), 1, sym_identifier, - ACTIONS(163), 1, - anon_sym_RPAREN, + ACTIONS(168), 1, + anon_sym_RBRACE, STATE(53), 1, sym_comment, - STATE(68), 1, - sym__equal_property, - [1406] = 5, - ACTIONS(105), 1, + STATE(71), 1, + sym__colon_property, + [1424] = 6, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(107), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(165), 1, - aux_sym_interpreted_string_literal_token1, + ACTIONS(170), 1, + anon_sym_COMMA, + ACTIONS(172), 1, + anon_sym_RBRACE, STATE(54), 1, sym_comment, - ACTIONS(167), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, - [1423] = 6, + STATE(64), 1, + aux_sym__old_module_repeat1, + [1443] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, + ACTIONS(160), 1, sym_identifier, - ACTIONS(169), 1, - anon_sym_RBRACE, + ACTIONS(174), 1, + anon_sym_RPAREN, STATE(55), 1, sym_comment, - STATE(59), 1, - sym__colon_property, - [1442] = 6, + STATE(70), 1, + sym__equal_property, + [1462] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(171), 1, + ACTIONS(176), 1, anon_sym_COMMA, - ACTIONS(173), 1, - anon_sym_RPAREN, - STATE(46), 1, - aux_sym_select_value_repeat1, - STATE(56), 1, + ACTIONS(179), 1, + anon_sym_RBRACK, + STATE(56), 2, sym_comment, - [1461] = 5, + aux_sym_list_expression_repeat1, + [1479] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(127), 1, + ACTIONS(132), 1, anon_sym_PLUS, STATE(57), 1, sym_comment, - ACTIONS(175), 2, + ACTIONS(181), 2, anon_sym_COMMA, anon_sym_RBRACK, - [1478] = 6, - ACTIONS(3), 1, + [1496] = 5, + ACTIONS(110), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(112), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, - sym_identifier, - ACTIONS(177), 1, - anon_sym_RBRACE, + ACTIONS(183), 1, + aux_sym_interpreted_string_literal_token1, STATE(58), 1, sym_comment, - STATE(76), 1, - sym__colon_property, - [1497] = 6, + ACTIONS(185), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, + [1513] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(179), 1, + ACTIONS(104), 1, + anon_sym_RPAREN, + ACTIONS(187), 1, anon_sym_COMMA, - ACTIONS(181), 1, + STATE(59), 1, + sym_comment, + STATE(68), 1, + aux_sym_select_value_repeat1, + [1532] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(189), 1, + anon_sym_COMMA, + ACTIONS(191), 1, + anon_sym_RBRACK, + STATE(56), 1, + aux_sym_list_expression_repeat1, + STATE(60), 1, + sym_comment, + [1551] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(193), 1, + anon_sym_COMMA, + ACTIONS(195), 1, anon_sym_RBRACE, STATE(48), 1, aux_sym__old_module_repeat1, - STATE(59), 1, + STATE(61), 1, sym_comment, - [1516] = 6, + [1570] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(183), 1, - anon_sym_COMMA, - ACTIONS(185), 1, - anon_sym_RBRACK, - STATE(60), 1, - sym_comment, - STATE(70), 1, - aux_sym_list_expression_repeat1, - [1535] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(187), 1, - anon_sym_COMMA, - ACTIONS(190), 1, - anon_sym_RPAREN, - STATE(61), 2, - sym_comment, - aux_sym_select_value_repeat1, - [1552] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(127), 1, + ACTIONS(132), 1, anon_sym_PLUS, STATE(62), 1, sym_comment, - ACTIONS(192), 2, + ACTIONS(197), 2, anon_sym_COMMA, anon_sym_RBRACE, - [1569] = 6, + [1587] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, + ACTIONS(144), 1, sym_identifier, - ACTIONS(194), 1, + ACTIONS(199), 1, anon_sym_RBRACE, STATE(63), 1, sym_comment, STATE(76), 1, sym__colon_property, - [1588] = 5, + [1606] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(196), 1, + ACTIONS(201), 1, anon_sym_COMMA, - ACTIONS(199), 1, + ACTIONS(204), 1, anon_sym_RBRACE, STATE(64), 2, sym_comment, aux_sym__old_module_repeat1, - [1605] = 5, + [1623] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(127), 1, + ACTIONS(132), 1, anon_sym_PLUS, STATE(65), 1, sym_comment, - ACTIONS(201), 2, + ACTIONS(206), 2, anon_sym_COMMA, anon_sym_RPAREN, - [1622] = 6, + [1640] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(151), 1, + ACTIONS(160), 1, sym_identifier, - ACTIONS(203), 1, + ACTIONS(208), 1, anon_sym_RPAREN, STATE(66), 1, sym_comment, STATE(78), 1, sym__equal_property, - [1641] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(205), 1, - anon_sym_COMMA, - ACTIONS(208), 1, - anon_sym_RPAREN, - STATE(67), 2, - sym_comment, - aux_sym__new_module_repeat1, - [1658] = 6, + [1659] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(210), 1, anon_sym_COMMA, - ACTIONS(212), 1, + ACTIONS(213), 1, anon_sym_RPAREN, - STATE(51), 1, - aux_sym__new_module_repeat1, - STATE(68), 1, + STATE(67), 2, sym_comment, - [1677] = 6, + aux_sym__new_module_repeat1, + [1676] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, + ACTIONS(215), 1, + anon_sym_COMMA, + ACTIONS(218), 1, + anon_sym_RPAREN, + STATE(68), 2, + sym_comment, + aux_sym_select_value_repeat1, + [1693] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(144), 1, sym_identifier, - ACTIONS(214), 1, + ACTIONS(220), 1, anon_sym_RBRACE, STATE(69), 1, sym_comment, STATE(76), 1, sym__colon_property, - [1696] = 5, + [1712] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(216), 1, + ACTIONS(222), 1, anon_sym_COMMA, - ACTIONS(219), 1, - anon_sym_RBRACK, - STATE(70), 2, + ACTIONS(224), 1, + anon_sym_RPAREN, + STATE(51), 1, + aux_sym__new_module_repeat1, + STATE(70), 1, sym_comment, - aux_sym_list_expression_repeat1, - [1713] = 6, + [1731] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(221), 1, + ACTIONS(226), 1, anon_sym_COMMA, - ACTIONS(223), 1, + ACTIONS(228), 1, anon_sym_RBRACE, - STATE(45), 1, + STATE(54), 1, aux_sym__old_module_repeat1, STATE(71), 1, sym_comment, - [1732] = 4, + [1750] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(72), 1, sym_comment, - ACTIONS(225), 2, + ACTIONS(230), 2, ts_builtin_sym_end, sym_identifier, - [1746] = 4, + [1764] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(73), 1, sym_comment, - ACTIONS(227), 2, + ACTIONS(232), 2, ts_builtin_sym_end, sym_identifier, - [1760] = 4, + [1778] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(74), 1, sym_comment, - ACTIONS(229), 2, + ACTIONS(234), 2, ts_builtin_sym_end, sym_identifier, - [1774] = 4, + [1792] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(75), 1, sym_comment, - ACTIONS(231), 2, + ACTIONS(236), 2, ts_builtin_sym_end, sym_identifier, - [1788] = 4, + [1806] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(76), 1, sym_comment, - ACTIONS(233), 2, + ACTIONS(238), 2, anon_sym_COMMA, anon_sym_RBRACE, - [1802] = 4, + [1820] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(77), 1, sym_comment, - ACTIONS(235), 2, + ACTIONS(240), 2, ts_builtin_sym_end, sym_identifier, - [1816] = 4, + [1834] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(78), 1, sym_comment, - ACTIONS(237), 2, + ACTIONS(242), 2, anon_sym_COMMA, anon_sym_RPAREN, - [1830] = 5, + [1848] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(239), 1, + ACTIONS(244), 1, anon_sym_LBRACE, STATE(79), 1, sym_comment, STATE(105), 1, sym_select_cases, - [1846] = 5, + [1864] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(127), 1, + ACTIONS(132), 1, anon_sym_PLUS, - ACTIONS(241), 1, + ACTIONS(246), 1, anon_sym_COMMA, STATE(80), 1, sym_comment, - [1862] = 4, + [1880] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(81), 1, sym_comment, - ACTIONS(243), 2, + ACTIONS(248), 2, ts_builtin_sym_end, sym_identifier, - [1876] = 4, + [1894] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(82), 1, sym_comment, - ACTIONS(245), 2, + ACTIONS(250), 2, ts_builtin_sym_end, sym_identifier, - [1890] = 4, + [1908] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(83), 1, sym_comment, - ACTIONS(247), 2, + ACTIONS(252), 2, ts_builtin_sym_end, sym_identifier, - [1904] = 4, + [1922] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(84), 1, sym_comment, - ACTIONS(249), 2, + ACTIONS(254), 2, ts_builtin_sym_end, sym_identifier, - [1918] = 4, + [1936] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(85), 1, sym_comment, - ACTIONS(251), 2, + ACTIONS(256), 2, ts_builtin_sym_end, sym_identifier, - [1932] = 5, + [1950] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(155), 1, + ACTIONS(144), 1, sym_identifier, STATE(76), 1, sym__colon_property, STATE(86), 1, sym_comment, - [1948] = 5, + [1966] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(253), 1, + ACTIONS(258), 1, sym_identifier, STATE(87), 1, sym_comment, STATE(103), 1, sym_select_value, - [1964] = 5, + [1982] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(151), 1, + ACTIONS(160), 1, sym_identifier, STATE(78), 1, sym__equal_property, STATE(88), 1, sym_comment, - [1980] = 4, + [1998] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(89), 1, sym_comment, - ACTIONS(227), 2, + ACTIONS(232), 2, ts_builtin_sym_end, sym_identifier, - [1994] = 4, + [2012] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(90), 1, sym_comment, - ACTIONS(255), 2, + ACTIONS(260), 2, ts_builtin_sym_end, sym_identifier, - [2008] = 4, + [2026] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(91), 1, sym_comment, - ACTIONS(257), 2, + ACTIONS(262), 2, ts_builtin_sym_end, sym_identifier, - [2022] = 4, + [2040] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(92), 1, sym_comment, - ACTIONS(190), 2, + ACTIONS(218), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2036] = 4, + [2054] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(93), 1, sym_comment, - ACTIONS(259), 2, + ACTIONS(264), 2, ts_builtin_sym_end, sym_identifier, - [2050] = 4, + [2068] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(261), 1, + ACTIONS(266), 1, anon_sym_COMMA, STATE(94), 1, sym_comment, - [2063] = 4, + [2081] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(263), 1, + ACTIONS(268), 1, anon_sym_SLASH, STATE(95), 1, sym_comment, - [2076] = 4, + [2094] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(265), 1, + ACTIONS(270), 1, aux_sym_integer_literal_token1, STATE(96), 1, sym_comment, - [2089] = 4, + [2107] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(267), 1, + ACTIONS(272), 1, anon_sym_COMMA, STATE(97), 1, sym_comment, - [2102] = 4, + [2120] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(269), 1, + ACTIONS(274), 1, anon_sym_COMMA, STATE(98), 1, sym_comment, - [2115] = 4, + [2133] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(271), 1, + ACTIONS(276), 1, anon_sym_RPAREN, STATE(99), 1, sym_comment, - [2128] = 4, + [2146] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(273), 1, + ACTIONS(278), 1, anon_sym_COLON, STATE(100), 1, sym_comment, - [2141] = 4, + [2159] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(275), 1, + ACTIONS(280), 1, anon_sym_COMMA, STATE(101), 1, sym_comment, - [2154] = 4, + [2172] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(277), 1, + ACTIONS(282), 1, anon_sym_COLON, STATE(102), 1, sym_comment, - [2167] = 4, + [2185] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(279), 1, + ACTIONS(284), 1, anon_sym_COMMA, STATE(103), 1, sym_comment, - [2180] = 4, + [2198] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(281), 1, + ACTIONS(286), 1, anon_sym_LPAREN, STATE(104), 1, sym_comment, - [2193] = 4, + [2211] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(283), 1, + ACTIONS(288), 1, anon_sym_RPAREN, STATE(105), 1, sym_comment, - [2206] = 4, + [2224] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(285), 1, + ACTIONS(290), 1, anon_sym_COMMA, STATE(106), 1, sym_comment, - [2219] = 4, + [2237] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(287), 1, + ACTIONS(292), 1, anon_sym_EQ, STATE(107), 1, sym_comment, - [2232] = 4, + [2250] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(289), 1, + ACTIONS(294), 1, anon_sym_LPAREN, STATE(108), 1, sym_comment, - [2245] = 4, - ACTIONS(105), 1, + [2263] = 4, + ACTIONS(110), 1, anon_sym_SLASH_SLASH, - ACTIONS(107), 1, + ACTIONS(112), 1, anon_sym_SLASH_STAR, - ACTIONS(291), 1, + ACTIONS(296), 1, aux_sym_comment_token1, STATE(109), 1, sym_comment, - [2258] = 4, + [2276] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(293), 1, + ACTIONS(298), 1, anon_sym_RPAREN, STATE(110), 1, sym_comment, - [2271] = 4, + [2289] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(295), 1, + ACTIONS(300), 1, ts_builtin_sym_end, STATE(111), 1, sym_comment, - [2284] = 4, + [2302] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(297), 1, + ACTIONS(302), 1, anon_sym_COMMA, STATE(112), 1, sym_comment, - [2297] = 4, - ACTIONS(105), 1, + [2315] = 4, + ACTIONS(110), 1, anon_sym_SLASH_SLASH, - ACTIONS(107), 1, + ACTIONS(112), 1, anon_sym_SLASH_STAR, - ACTIONS(299), 1, + ACTIONS(304), 1, aux_sym_comment_token2, STATE(113), 1, sym_comment, - [2310] = 4, + [2328] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(241), 1, + ACTIONS(246), 1, anon_sym_COMMA, STATE(114), 1, sym_comment, - [2323] = 1, - ACTIONS(301), 1, + [2341] = 1, + ACTIONS(306), 1, ts_builtin_sym_end, - [2327] = 1, - ACTIONS(303), 1, + [2345] = 1, + ACTIONS(308), 1, ts_builtin_sym_end, }; @@ -5931,111 +5975,111 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(9)] = 386, [SMALL_STATE(10)] = 439, [SMALL_STATE(11)] = 492, - [SMALL_STATE(12)] = 522, - [SMALL_STATE(13)] = 542, - [SMALL_STATE(14)] = 576, - [SMALL_STATE(15)] = 596, - [SMALL_STATE(16)] = 616, - [SMALL_STATE(17)] = 648, - [SMALL_STATE(18)] = 682, - [SMALL_STATE(19)] = 714, - [SMALL_STATE(20)] = 733, - [SMALL_STATE(21)] = 752, - [SMALL_STATE(22)] = 771, - [SMALL_STATE(23)] = 790, - [SMALL_STATE(24)] = 809, - [SMALL_STATE(25)] = 828, - [SMALL_STATE(26)] = 847, - [SMALL_STATE(27)] = 866, - [SMALL_STATE(28)] = 885, - [SMALL_STATE(29)] = 904, - [SMALL_STATE(30)] = 923, - [SMALL_STATE(31)] = 942, - [SMALL_STATE(32)] = 961, - [SMALL_STATE(33)] = 980, - [SMALL_STATE(34)] = 999, - [SMALL_STATE(35)] = 1018, - [SMALL_STATE(36)] = 1043, - [SMALL_STATE(37)] = 1068, - [SMALL_STATE(38)] = 1093, - [SMALL_STATE(39)] = 1115, - [SMALL_STATE(40)] = 1135, - [SMALL_STATE(41)] = 1157, - [SMALL_STATE(42)] = 1173, - [SMALL_STATE(43)] = 1195, - [SMALL_STATE(44)] = 1215, - [SMALL_STATE(45)] = 1237, - [SMALL_STATE(46)] = 1256, - [SMALL_STATE(47)] = 1275, - [SMALL_STATE(48)] = 1292, - [SMALL_STATE(49)] = 1311, - [SMALL_STATE(50)] = 1330, - [SMALL_STATE(51)] = 1349, - [SMALL_STATE(52)] = 1368, - [SMALL_STATE(53)] = 1387, - [SMALL_STATE(54)] = 1406, - [SMALL_STATE(55)] = 1423, - [SMALL_STATE(56)] = 1442, - [SMALL_STATE(57)] = 1461, - [SMALL_STATE(58)] = 1478, - [SMALL_STATE(59)] = 1497, - [SMALL_STATE(60)] = 1516, - [SMALL_STATE(61)] = 1535, - [SMALL_STATE(62)] = 1552, - [SMALL_STATE(63)] = 1569, - [SMALL_STATE(64)] = 1588, - [SMALL_STATE(65)] = 1605, - [SMALL_STATE(66)] = 1622, - [SMALL_STATE(67)] = 1641, - [SMALL_STATE(68)] = 1658, - [SMALL_STATE(69)] = 1677, - [SMALL_STATE(70)] = 1696, - [SMALL_STATE(71)] = 1713, - [SMALL_STATE(72)] = 1732, - [SMALL_STATE(73)] = 1746, - [SMALL_STATE(74)] = 1760, - [SMALL_STATE(75)] = 1774, - [SMALL_STATE(76)] = 1788, - [SMALL_STATE(77)] = 1802, - [SMALL_STATE(78)] = 1816, - [SMALL_STATE(79)] = 1830, - [SMALL_STATE(80)] = 1846, - [SMALL_STATE(81)] = 1862, - [SMALL_STATE(82)] = 1876, - [SMALL_STATE(83)] = 1890, - [SMALL_STATE(84)] = 1904, - [SMALL_STATE(85)] = 1918, - [SMALL_STATE(86)] = 1932, - [SMALL_STATE(87)] = 1948, - [SMALL_STATE(88)] = 1964, - [SMALL_STATE(89)] = 1980, - [SMALL_STATE(90)] = 1994, - [SMALL_STATE(91)] = 2008, - [SMALL_STATE(92)] = 2022, - [SMALL_STATE(93)] = 2036, - [SMALL_STATE(94)] = 2050, - [SMALL_STATE(95)] = 2063, - [SMALL_STATE(96)] = 2076, - [SMALL_STATE(97)] = 2089, - [SMALL_STATE(98)] = 2102, - [SMALL_STATE(99)] = 2115, - [SMALL_STATE(100)] = 2128, - [SMALL_STATE(101)] = 2141, - [SMALL_STATE(102)] = 2154, - [SMALL_STATE(103)] = 2167, - [SMALL_STATE(104)] = 2180, - [SMALL_STATE(105)] = 2193, - [SMALL_STATE(106)] = 2206, - [SMALL_STATE(107)] = 2219, - [SMALL_STATE(108)] = 2232, - [SMALL_STATE(109)] = 2245, - [SMALL_STATE(110)] = 2258, - [SMALL_STATE(111)] = 2271, - [SMALL_STATE(112)] = 2284, - [SMALL_STATE(113)] = 2297, - [SMALL_STATE(114)] = 2310, - [SMALL_STATE(115)] = 2323, - [SMALL_STATE(116)] = 2327, + [SMALL_STATE(12)] = 529, + [SMALL_STATE(13)] = 568, + [SMALL_STATE(14)] = 607, + [SMALL_STATE(15)] = 627, + [SMALL_STATE(16)] = 659, + [SMALL_STATE(17)] = 679, + [SMALL_STATE(18)] = 709, + [SMALL_STATE(19)] = 729, + [SMALL_STATE(20)] = 749, + [SMALL_STATE(21)] = 768, + [SMALL_STATE(22)] = 787, + [SMALL_STATE(23)] = 806, + [SMALL_STATE(24)] = 825, + [SMALL_STATE(25)] = 844, + [SMALL_STATE(26)] = 863, + [SMALL_STATE(27)] = 882, + [SMALL_STATE(28)] = 901, + [SMALL_STATE(29)] = 920, + [SMALL_STATE(30)] = 939, + [SMALL_STATE(31)] = 958, + [SMALL_STATE(32)] = 977, + [SMALL_STATE(33)] = 996, + [SMALL_STATE(34)] = 1015, + [SMALL_STATE(35)] = 1034, + [SMALL_STATE(36)] = 1052, + [SMALL_STATE(37)] = 1077, + [SMALL_STATE(38)] = 1102, + [SMALL_STATE(39)] = 1127, + [SMALL_STATE(40)] = 1149, + [SMALL_STATE(41)] = 1171, + [SMALL_STATE(42)] = 1193, + [SMALL_STATE(43)] = 1213, + [SMALL_STATE(44)] = 1235, + [SMALL_STATE(45)] = 1255, + [SMALL_STATE(46)] = 1274, + [SMALL_STATE(47)] = 1293, + [SMALL_STATE(48)] = 1312, + [SMALL_STATE(49)] = 1331, + [SMALL_STATE(50)] = 1348, + [SMALL_STATE(51)] = 1367, + [SMALL_STATE(52)] = 1386, + [SMALL_STATE(53)] = 1405, + [SMALL_STATE(54)] = 1424, + [SMALL_STATE(55)] = 1443, + [SMALL_STATE(56)] = 1462, + [SMALL_STATE(57)] = 1479, + [SMALL_STATE(58)] = 1496, + [SMALL_STATE(59)] = 1513, + [SMALL_STATE(60)] = 1532, + [SMALL_STATE(61)] = 1551, + [SMALL_STATE(62)] = 1570, + [SMALL_STATE(63)] = 1587, + [SMALL_STATE(64)] = 1606, + [SMALL_STATE(65)] = 1623, + [SMALL_STATE(66)] = 1640, + [SMALL_STATE(67)] = 1659, + [SMALL_STATE(68)] = 1676, + [SMALL_STATE(69)] = 1693, + [SMALL_STATE(70)] = 1712, + [SMALL_STATE(71)] = 1731, + [SMALL_STATE(72)] = 1750, + [SMALL_STATE(73)] = 1764, + [SMALL_STATE(74)] = 1778, + [SMALL_STATE(75)] = 1792, + [SMALL_STATE(76)] = 1806, + [SMALL_STATE(77)] = 1820, + [SMALL_STATE(78)] = 1834, + [SMALL_STATE(79)] = 1848, + [SMALL_STATE(80)] = 1864, + [SMALL_STATE(81)] = 1880, + [SMALL_STATE(82)] = 1894, + [SMALL_STATE(83)] = 1908, + [SMALL_STATE(84)] = 1922, + [SMALL_STATE(85)] = 1936, + [SMALL_STATE(86)] = 1950, + [SMALL_STATE(87)] = 1966, + [SMALL_STATE(88)] = 1982, + [SMALL_STATE(89)] = 1998, + [SMALL_STATE(90)] = 2012, + [SMALL_STATE(91)] = 2026, + [SMALL_STATE(92)] = 2040, + [SMALL_STATE(93)] = 2054, + [SMALL_STATE(94)] = 2068, + [SMALL_STATE(95)] = 2081, + [SMALL_STATE(96)] = 2094, + [SMALL_STATE(97)] = 2107, + [SMALL_STATE(98)] = 2120, + [SMALL_STATE(99)] = 2133, + [SMALL_STATE(100)] = 2146, + [SMALL_STATE(101)] = 2159, + [SMALL_STATE(102)] = 2172, + [SMALL_STATE(103)] = 2185, + [SMALL_STATE(104)] = 2198, + [SMALL_STATE(105)] = 2211, + [SMALL_STATE(106)] = 2224, + [SMALL_STATE(107)] = 2237, + [SMALL_STATE(108)] = 2250, + [SMALL_STATE(109)] = 2263, + [SMALL_STATE(110)] = 2276, + [SMALL_STATE(111)] = 2289, + [SMALL_STATE(112)] = 2302, + [SMALL_STATE(113)] = 2315, + [SMALL_STATE(114)] = 2328, + [SMALL_STATE(115)] = 2341, + [SMALL_STATE(116)] = 2345, }; static const TSParseActionEntry ts_parse_actions[] = { @@ -6044,149 +6088,151 @@ static const TSParseActionEntry ts_parse_actions[] = { [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(21), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(19), [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(104), [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(114), [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(39), - [42] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [44] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [46] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [48] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [50] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [52] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), - [54] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(12), - [57] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(38), - [60] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(100), - [63] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [67] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [71] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [99] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), - [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), - [103] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [105] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), - [107] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), - [109] = {.entry = {.count = 1, .reusable = false}}, SHIFT(54), - [111] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [129] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(54), - [132] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [134] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(54), - [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [143] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [155] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [161] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [163] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), - [165] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [167] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [169] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [171] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [173] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [175] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [177] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [179] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), - [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [187] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(44), - [190] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), - [192] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [196] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), - [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [201] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [205] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), - [208] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [210] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [212] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [214] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [216] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(9), - [219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [221] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [223] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [229] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [233] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [235] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [237] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [241] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [243] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [245] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [247] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [249] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [251] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), - [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [257] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [259] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [261] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 16), - [263] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), - [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), - [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 18), - [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 14), - [277] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [279] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), - [281] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [283] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [285] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [287] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [289] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [291] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), - [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [295] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 6, .production_id = 17), - [299] = {.entry = {.count = 1, .reusable = false}}, SHIFT(95), - [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), - [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [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(19), + [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(39), + [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(100), + [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), + [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), + [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [63] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [67] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(42), + [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), + [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), + [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), + [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), + [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [100] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [104] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), + [106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), + [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), + [110] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), + [112] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), + [114] = {.entry = {.count = 1, .reusable = false}}, SHIFT(58), + [116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), + [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), + [120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), + [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [134] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(58), + [137] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [139] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(58), + [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), + [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), + [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), + [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), + [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [156] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), + [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), + [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), + [176] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(6), + [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), + [181] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), + [183] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [185] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), + [197] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [201] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), + [204] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), + [206] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), + [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [210] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), + [213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), + [215] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(40), + [218] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), + [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), + [226] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [228] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), + [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), + [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), + [246] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [248] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [256] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), + [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), + [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), + [262] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [266] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 16), + [268] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), + [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [272] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), + [274] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 18), + [276] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [280] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 14), + [282] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [284] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), + [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [288] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), + [294] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [296] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), + [298] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [300] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 6, .production_id = 17), + [304] = {.entry = {.count = 1, .reusable = false}}, SHIFT(95), + [306] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), + [308] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index 7563e96..df720d5 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -226,6 +226,33 @@ foo = select(release_variable("ONE", "TWO"), { (default) (interpreted_string_literal)))))) +================================================================================ +Select (boolean typed) +================================================================================ + +foo = select(some_boolean("IS_TRUE"), { + true: "true", + false: "false", +}) + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (select_expression + (select_value + (identifier) + (interpreted_string_literal)) + (select_cases + (select_case + (boolean_literal) + (interpreted_string_literal)) + (select_case + (boolean_literal) + (interpreted_string_literal)))))) + ================================================================================ Select as an identifier ================================================================================ From 81667424930b7097a716141b64b1a9a0581b1d94 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:23:06 +0000 Subject: [PATCH 04/10] Remove trailing commas in 'select_value' arguments --- grammar.js | 6 +- src/grammar.json | 12 - src/parser.c | 1471 +++++++++++++++++++--------------------- test/corpus/select.txt | 28 + 4 files changed, 738 insertions(+), 779 deletions(-) diff --git a/grammar.js b/grammar.js index 58b9b19..9f68be4 100644 --- a/grammar.js +++ b/grammar.js @@ -2,6 +2,10 @@ function commaSeparated(elem) { return seq(elem, repeat(seq(",", elem)), optional(",")) } +function commaSeparatedNoTrailing(elem) { + return seq(elem, repeat(seq(",", elem))) +} + function trailingCommaSeparated(elem) { return repeat(seq(elem, ",")) } @@ -130,7 +134,7 @@ module.exports = grammar({ select_value: ($) => seq( field("name", $.identifier), "(", - field("arguments", optional(commaSeparated($._string_literal))), + field("arguments", optional(commaSeparatedNoTrailing($._string_literal))), ")", ), diff --git a/src/grammar.json b/src/grammar.json index 83b9867..89b43b4 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -529,18 +529,6 @@ } ] } - }, - { - "type": "CHOICE", - "members": [ - { - "type": "STRING", - "value": "," - }, - { - "type": "BLANK" - } - ] } ] }, diff --git a/src/parser.c b/src/parser.c index 82034c5..1fab250 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,7 +5,7 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 117 +#define STATE_COUNT 114 #define LARGE_STATE_COUNT 2 #define SYMBOL_COUNT 59 #define ALIAS_COUNT 0 @@ -13,7 +13,7 @@ #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 11 #define MAX_ALIAS_SEQUENCE_LENGTH 6 -#define PRODUCTION_ID_COUNT 19 +#define PRODUCTION_ID_COUNT 18 enum ts_symbol_identifiers { anon_sym_SLASH_SLASH = 1, @@ -485,8 +485,7 @@ 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 = 4}, - [18] = {.index = 41, .length = 2}, + [17] = {.index = 37, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { @@ -543,11 +542,6 @@ static const TSFieldMapEntry ts_field_map_entries[] = { {field_arguments, 3}, {field_name, 0}, [37] = - {field_arguments, 2}, - {field_arguments, 3}, - {field_arguments, 4}, - {field_name, 0}, - [41] = {field_pattern, 0}, {field_value, 2}, }; @@ -678,9 +672,6 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [111] = 111, [112] = 112, [113] = 113, - [114] = 114, - [115] = 115, - [116] = 116, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -4153,53 +4144,53 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [34] = {.lex_state = 37}, [35] = {.lex_state = 5}, [36] = {.lex_state = 37}, - [37] = {.lex_state = 37}, - [38] = {.lex_state = 37}, + [37] = {.lex_state = 3}, + [38] = {.lex_state = 1}, [39] = {.lex_state = 1}, - [40] = {.lex_state = 37}, - [41] = {.lex_state = 1}, - [42] = {.lex_state = 3}, - [43] = {.lex_state = 37}, - [44] = {.lex_state = 1}, - [45] = {.lex_state = 37}, - [46] = {.lex_state = 37}, + [40] = {.lex_state = 1}, + [41] = {.lex_state = 37}, + [42] = {.lex_state = 37}, + [43] = {.lex_state = 0}, + [44] = {.lex_state = 37}, + [45] = {.lex_state = 0}, + [46] = {.lex_state = 1}, [47] = {.lex_state = 0}, - [48] = {.lex_state = 0}, - [49] = {.lex_state = 37}, - [50] = {.lex_state = 37}, - [51] = {.lex_state = 0}, + [48] = {.lex_state = 37}, + [49] = {.lex_state = 0}, + [50] = {.lex_state = 0}, + [51] = {.lex_state = 37}, [52] = {.lex_state = 37}, - [53] = {.lex_state = 37}, - [54] = {.lex_state = 0}, - [55] = {.lex_state = 37}, + [53] = {.lex_state = 0}, + [54] = {.lex_state = 37}, + [55] = {.lex_state = 0}, [56] = {.lex_state = 0}, [57] = {.lex_state = 37}, - [58] = {.lex_state = 1}, - [59] = {.lex_state = 0}, - [60] = {.lex_state = 0}, + [58] = {.lex_state = 37}, + [59] = {.lex_state = 37}, + [60] = {.lex_state = 37}, [61] = {.lex_state = 0}, - [62] = {.lex_state = 37}, + [62] = {.lex_state = 0}, [63] = {.lex_state = 37}, [64] = {.lex_state = 0}, - [65] = {.lex_state = 37}, + [65] = {.lex_state = 0}, [66] = {.lex_state = 37}, - [67] = {.lex_state = 0}, + [67] = {.lex_state = 37}, [68] = {.lex_state = 0}, [69] = {.lex_state = 37}, - [70] = {.lex_state = 0}, - [71] = {.lex_state = 0}, + [70] = {.lex_state = 37}, + [71] = {.lex_state = 37}, [72] = {.lex_state = 37}, [73] = {.lex_state = 37}, - [74] = {.lex_state = 37}, + [74] = {.lex_state = 0}, [75] = {.lex_state = 37}, - [76] = {.lex_state = 0}, + [76] = {.lex_state = 37}, [77] = {.lex_state = 37}, - [78] = {.lex_state = 0}, + [78] = {.lex_state = 37}, [79] = {.lex_state = 0}, [80] = {.lex_state = 37}, [81] = {.lex_state = 37}, [82] = {.lex_state = 37}, - [83] = {.lex_state = 37}, + [83] = {.lex_state = 0}, [84] = {.lex_state = 37}, [85] = {.lex_state = 37}, [86] = {.lex_state = 37}, @@ -4207,14 +4198,14 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [88] = {.lex_state = 37}, [89] = {.lex_state = 37}, [90] = {.lex_state = 37}, - [91] = {.lex_state = 37}, + [91] = {.lex_state = 0}, [92] = {.lex_state = 0}, - [93] = {.lex_state = 37}, + [93] = {.lex_state = 0}, [94] = {.lex_state = 0}, [95] = {.lex_state = 0}, [96] = {.lex_state = 0}, [97] = {.lex_state = 0}, - [98] = {.lex_state = 0}, + [98] = {.lex_state = 44}, [99] = {.lex_state = 0}, [100] = {.lex_state = 0}, [101] = {.lex_state = 0}, @@ -4225,14 +4216,11 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [106] = {.lex_state = 0}, [107] = {.lex_state = 0}, [108] = {.lex_state = 0}, - [109] = {.lex_state = 44}, - [110] = {.lex_state = 0}, + [109] = {.lex_state = 0}, + [110] = {.lex_state = 7}, [111] = {.lex_state = 0}, - [112] = {.lex_state = 0}, - [113] = {.lex_state = 7}, - [114] = {.lex_state = 0}, - [115] = {(TSStateId)(-1)}, - [116] = {(TSStateId)(-1)}, + [112] = {(TSStateId)(-1)}, + [113] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -4267,13 +4255,13 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_PLUS] = ACTIONS(1), }, [1] = { - [sym_source_file] = STATE(111), - [sym__definition] = STATE(81), + [sym_source_file] = STATE(108), + [sym__definition] = STATE(80), [sym_comment] = STATE(1), - [sym_assignment] = STATE(82), - [sym_module] = STATE(82), + [sym_assignment] = STATE(84), + [sym_module] = STATE(84), [sym__old_module] = STATE(89), - [sym__new_module] = STATE(73), + [sym__new_module] = STATE(81), [aux_sym_source_file_repeat1] = STATE(15), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), @@ -4308,16 +4296,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(2), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(80), 1, + STATE(76), 1, sym__expr, - STATE(98), 1, + STATE(95), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4350,14 +4338,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(3), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(43), 1, + STATE(59), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4390,14 +4378,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(4), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(57), 1, + STATE(59), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4430,14 +4418,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(5), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(57), 1, + STATE(42), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4468,14 +4456,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(6), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(57), 1, + STATE(69), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4506,14 +4494,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(7), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(30), 1, + STATE(63), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4544,14 +4532,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(8), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(62), 1, + STATE(59), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4582,14 +4570,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(9), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(49), 1, + STATE(20), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4620,14 +4608,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(10), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(65), 1, + STATE(60), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(21), 7, + STATE(25), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4648,9 +4636,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, ACTIONS(48), 1, anon_sym_default, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(106), 1, + STATE(101), 1, sym_select_case, ACTIONS(39), 2, anon_sym_true, @@ -4674,13 +4662,13 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACE, ACTIONS(55), 1, anon_sym_default, + STATE(11), 1, + aux_sym_select_cases_repeat1, STATE(12), 1, sym_comment, - STATE(13), 1, - aux_sym_select_cases_repeat1, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(106), 1, + STATE(101), 1, sym_select_case, ACTIONS(53), 2, anon_sym_true, @@ -4701,13 +4689,13 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_default, ACTIONS(57), 1, anon_sym_RBRACE, - STATE(11), 1, + STATE(12), 1, aux_sym_select_cases_repeat1, STATE(13), 1, sym_comment, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(106), 1, + STATE(101), 1, sym_select_case, ACTIONS(53), 2, anon_sym_true, @@ -4744,13 +4732,13 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(17), 1, aux_sym_source_file_repeat1, - STATE(73), 1, - sym__new_module, - STATE(81), 1, + STATE(80), 1, sym__definition, + STATE(81), 1, + sym__new_module, STATE(89), 1, sym__old_module, - STATE(82), 2, + STATE(84), 2, sym_assignment, sym_module, [659] = 4, @@ -4778,16 +4766,16 @@ static const uint16_t ts_small_parse_table[] = { ts_builtin_sym_end, ACTIONS(67), 1, sym_identifier, - STATE(73), 1, - sym__new_module, - STATE(81), 1, + STATE(80), 1, sym__definition, + STATE(81), 1, + sym__new_module, STATE(89), 1, sym__old_module, STATE(17), 2, sym_comment, aux_sym_source_file_repeat1, - STATE(82), 2, + STATE(84), 2, sym_assignment, sym_module, [709] = 4, @@ -5072,212 +5060,176 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, ACTIONS(104), 1, anon_sym_RPAREN, - STATE(18), 1, + STATE(19), 1, sym_interpreted_string_literal, STATE(36), 1, sym_comment, - STATE(92), 1, + STATE(56), 1, sym__string_literal, - [1077] = 8, + [1077] = 6, 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(106), 1, - anon_sym_RPAREN, - STATE(18), 1, - sym_interpreted_string_literal, + ACTIONS(108), 1, + anon_sym_LBRACE, + ACTIONS(110), 1, + anon_sym_LPAREN, STATE(37), 1, sym_comment, - STATE(47), 1, - sym__string_literal, - [1102] = 8, - 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(108), 1, - anon_sym_RPAREN, - STATE(18), 1, - sym_interpreted_string_literal, - STATE(38), 1, - sym_comment, - STATE(92), 1, - sym__string_literal, - [1127] = 7, - ACTIONS(110), 1, - anon_sym_SLASH_SLASH, - ACTIONS(112), 1, - anon_sym_SLASH_STAR, - ACTIONS(114), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(116), 1, - anon_sym_DQUOTE2, - ACTIONS(118), 1, - sym_escape_sequence, - STATE(39), 1, - sym_comment, - STATE(41), 1, - aux_sym_interpreted_string_literal_repeat1, - [1149] = 7, - 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, - STATE(18), 1, - sym_interpreted_string_literal, - STATE(40), 1, - sym_comment, - STATE(92), 1, - sym__string_literal, - [1171] = 7, - ACTIONS(110), 1, - anon_sym_SLASH_SLASH, - ACTIONS(112), 1, - anon_sym_SLASH_STAR, - ACTIONS(114), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(118), 1, - sym_escape_sequence, - ACTIONS(120), 1, - anon_sym_DQUOTE2, - STATE(41), 1, - sym_comment, - STATE(44), 1, - aux_sym_interpreted_string_literal_repeat1, - [1193] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(124), 1, - anon_sym_LBRACE, - ACTIONS(126), 1, - anon_sym_LPAREN, - STATE(42), 1, - sym_comment, - ACTIONS(122), 2, + ACTIONS(106), 2, anon_sym_EQ, anon_sym_PLUS_EQ, - [1213] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(128), 1, - anon_sym_COMMA, - ACTIONS(130), 1, - anon_sym_RBRACK, - ACTIONS(132), 1, - anon_sym_PLUS, - STATE(43), 1, - sym_comment, - STATE(60), 1, - aux_sym_list_expression_repeat1, - [1235] = 6, - ACTIONS(110), 1, - anon_sym_SLASH_SLASH, + [1097] = 7, ACTIONS(112), 1, + anon_sym_SLASH_SLASH, + ACTIONS(114), 1, anon_sym_SLASH_STAR, - ACTIONS(134), 1, + ACTIONS(116), 1, aux_sym_interpreted_string_literal_token1, - ACTIONS(137), 1, + ACTIONS(118), 1, anon_sym_DQUOTE2, - ACTIONS(139), 1, + ACTIONS(120), 1, sym_escape_sequence, - STATE(44), 2, + STATE(38), 1, + sym_comment, + STATE(39), 1, + aux_sym_interpreted_string_literal_repeat1, + [1119] = 7, + ACTIONS(112), 1, + anon_sym_SLASH_SLASH, + ACTIONS(114), 1, + anon_sym_SLASH_STAR, + ACTIONS(116), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(120), 1, + sym_escape_sequence, + ACTIONS(122), 1, + anon_sym_DQUOTE2, + STATE(39), 1, + sym_comment, + STATE(40), 1, + aux_sym_interpreted_string_literal_repeat1, + [1141] = 6, + ACTIONS(112), 1, + anon_sym_SLASH_SLASH, + ACTIONS(114), 1, + anon_sym_SLASH_STAR, + ACTIONS(124), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(127), 1, + anon_sym_DQUOTE2, + ACTIONS(129), 1, + sym_escape_sequence, + STATE(40), 2, sym_comment, aux_sym_interpreted_string_literal_repeat1, - [1255] = 6, + [1161] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(142), 1, - anon_sym_RBRACE, - ACTIONS(144), 1, - sym_identifier, - STATE(45), 1, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + STATE(19), 1, + sym_interpreted_string_literal, + STATE(41), 1, sym_comment, - STATE(76), 1, - sym__colon_property, - [1274] = 6, + STATE(83), 1, + sym__string_literal, + [1183] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(144), 1, - sym_identifier, - ACTIONS(146), 1, - anon_sym_RBRACE, - STATE(46), 1, + ACTIONS(132), 1, + anon_sym_COMMA, + ACTIONS(134), 1, + anon_sym_RBRACK, + ACTIONS(136), 1, + anon_sym_PLUS, + STATE(42), 1, sym_comment, STATE(61), 1, - sym__colon_property, - [1293] = 6, + aux_sym_list_expression_repeat1, + [1205] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(148), 1, + ACTIONS(138), 1, anon_sym_COMMA, - ACTIONS(150), 1, - anon_sym_RPAREN, - STATE(47), 1, + ACTIONS(141), 1, + anon_sym_RBRACK, + STATE(43), 2, sym_comment, - STATE(59), 1, - aux_sym_select_value_repeat1, - [1312] = 6, + aux_sym_list_expression_repeat1, + [1222] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(152), 1, + ACTIONS(143), 1, + anon_sym_RBRACE, + ACTIONS(145), 1, + sym_identifier, + STATE(44), 1, + sym_comment, + STATE(91), 1, + sym__colon_property, + [1241] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(147), 1, anon_sym_COMMA, - ACTIONS(154), 1, + ACTIONS(149), 1, + anon_sym_RBRACE, + STATE(45), 1, + sym_comment, + STATE(55), 1, + aux_sym__old_module_repeat1, + [1260] = 5, + ACTIONS(112), 1, + anon_sym_SLASH_SLASH, + ACTIONS(114), 1, + anon_sym_SLASH_STAR, + ACTIONS(151), 1, + aux_sym_interpreted_string_literal_token1, + STATE(46), 1, + sym_comment, + ACTIONS(153), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, + [1277] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(155), 1, + anon_sym_COMMA, + ACTIONS(158), 1, + anon_sym_RPAREN, + STATE(47), 2, + sym_comment, + aux_sym_select_value_repeat1, + [1294] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(145), 1, + sym_identifier, + ACTIONS(160), 1, anon_sym_RBRACE, STATE(48), 1, sym_comment, - STATE(64), 1, - aux_sym__old_module_repeat1, - [1331] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(132), 1, - anon_sym_PLUS, - STATE(49), 1, - sym_comment, - ACTIONS(156), 2, - ts_builtin_sym_end, - sym_identifier, - [1348] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(158), 1, - anon_sym_RPAREN, - ACTIONS(160), 1, - sym_identifier, - STATE(50), 1, - sym_comment, - STATE(78), 1, - sym__equal_property, - [1367] = 6, + STATE(91), 1, + sym__colon_property, + [1313] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5286,200 +5238,203 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, ACTIONS(164), 1, anon_sym_RPAREN, - STATE(51), 1, + STATE(47), 1, + aux_sym_select_value_repeat1, + STATE(49), 1, sym_comment, - STATE(67), 1, - aux_sym__new_module_repeat1, - [1386] = 6, + [1332] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(144), 1, - sym_identifier, ACTIONS(166), 1, - anon_sym_RBRACE, - STATE(52), 1, - sym_comment, - STATE(76), 1, - sym__colon_property, - [1405] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(144), 1, - sym_identifier, + anon_sym_COMMA, ACTIONS(168), 1, anon_sym_RBRACE, - STATE(53), 1, + STATE(50), 1, sym_comment, - STATE(71), 1, - sym__colon_property, - [1424] = 6, + STATE(68), 1, + aux_sym__old_module_repeat1, + [1351] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(170), 1, - anon_sym_COMMA, + anon_sym_RPAREN, ACTIONS(172), 1, - anon_sym_RBRACE, - STATE(54), 1, + sym_identifier, + STATE(51), 1, sym_comment, - STATE(64), 1, - aux_sym__old_module_repeat1, - [1443] = 6, + STATE(74), 1, + sym__equal_property, + [1370] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(160), 1, + ACTIONS(145), 1, sym_identifier, ACTIONS(174), 1, - anon_sym_RPAREN, - STATE(55), 1, + anon_sym_RBRACE, + STATE(52), 1, sym_comment, - STATE(70), 1, - sym__equal_property, - [1462] = 5, + STATE(62), 1, + sym__colon_property, + [1389] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(176), 1, anon_sym_COMMA, - ACTIONS(179), 1, - anon_sym_RBRACK, - STATE(56), 2, - sym_comment, - aux_sym_list_expression_repeat1, - [1479] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(132), 1, - anon_sym_PLUS, - STATE(57), 1, - sym_comment, - ACTIONS(181), 2, - anon_sym_COMMA, - anon_sym_RBRACK, - [1496] = 5, - ACTIONS(110), 1, - anon_sym_SLASH_SLASH, - ACTIONS(112), 1, - anon_sym_SLASH_STAR, - ACTIONS(183), 1, - aux_sym_interpreted_string_literal_token1, - STATE(58), 1, - sym_comment, - ACTIONS(185), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, - [1513] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(104), 1, + ACTIONS(178), 1, anon_sym_RPAREN, - ACTIONS(187), 1, + STATE(53), 1, + sym_comment, + STATE(65), 1, + aux_sym__new_module_repeat1, + [1408] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(145), 1, + sym_identifier, + ACTIONS(180), 1, + anon_sym_RBRACE, + STATE(54), 1, + sym_comment, + STATE(91), 1, + sym__colon_property, + [1427] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(182), 1, anon_sym_COMMA, - STATE(59), 1, + ACTIONS(184), 1, + anon_sym_RBRACE, + STATE(55), 1, sym_comment, STATE(68), 1, - aux_sym_select_value_repeat1, - [1532] = 6, + aux_sym__old_module_repeat1, + [1446] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(189), 1, + ACTIONS(162), 1, anon_sym_COMMA, - ACTIONS(191), 1, - anon_sym_RBRACK, + ACTIONS(186), 1, + anon_sym_RPAREN, + STATE(49), 1, + aux_sym_select_value_repeat1, STATE(56), 1, - aux_sym_list_expression_repeat1, + sym_comment, + [1465] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(172), 1, + sym_identifier, + ACTIONS(188), 1, + anon_sym_RPAREN, + STATE(57), 1, + sym_comment, + STATE(64), 1, + sym__equal_property, + [1484] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(145), 1, + sym_identifier, + ACTIONS(190), 1, + anon_sym_RBRACE, + STATE(45), 1, + sym__colon_property, + STATE(58), 1, + sym_comment, + [1503] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(136), 1, + anon_sym_PLUS, + STATE(59), 1, + sym_comment, + ACTIONS(192), 2, + anon_sym_COMMA, + anon_sym_RBRACK, + [1520] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(136), 1, + anon_sym_PLUS, STATE(60), 1, sym_comment, - [1551] = 6, + ACTIONS(194), 2, + ts_builtin_sym_end, + sym_identifier, + [1537] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(193), 1, + ACTIONS(196), 1, anon_sym_COMMA, - ACTIONS(195), 1, - anon_sym_RBRACE, - STATE(48), 1, - aux_sym__old_module_repeat1, + ACTIONS(198), 1, + anon_sym_RBRACK, + STATE(43), 1, + aux_sym_list_expression_repeat1, STATE(61), 1, sym_comment, - [1570] = 5, + [1556] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, - anon_sym_PLUS, + ACTIONS(200), 1, + anon_sym_COMMA, + ACTIONS(202), 1, + anon_sym_RBRACE, + STATE(50), 1, + aux_sym__old_module_repeat1, STATE(62), 1, sym_comment, - ACTIONS(197), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1587] = 6, + [1575] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(144), 1, - sym_identifier, - ACTIONS(199), 1, - anon_sym_RBRACE, + ACTIONS(136), 1, + anon_sym_PLUS, STATE(63), 1, sym_comment, - STATE(76), 1, - sym__colon_property, - [1606] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(201), 1, + ACTIONS(204), 2, anon_sym_COMMA, - ACTIONS(204), 1, anon_sym_RBRACE, - STATE(64), 2, - sym_comment, - aux_sym__old_module_repeat1, - [1623] = 5, + [1592] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, - anon_sym_PLUS, - STATE(65), 1, - sym_comment, - ACTIONS(206), 2, + ACTIONS(206), 1, anon_sym_COMMA, - anon_sym_RPAREN, - [1640] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(160), 1, - sym_identifier, ACTIONS(208), 1, anon_sym_RPAREN, - STATE(66), 1, + STATE(53), 1, + aux_sym__new_module_repeat1, + STATE(64), 1, sym_comment, - STATE(78), 1, - sym__equal_property, - [1659] = 5, + [1611] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5488,61 +5443,80 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, ACTIONS(213), 1, anon_sym_RPAREN, - STATE(67), 2, + STATE(65), 2, sym_comment, aux_sym__new_module_repeat1, - [1676] = 5, + [1628] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(145), 1, + sym_identifier, ACTIONS(215), 1, - anon_sym_COMMA, - ACTIONS(218), 1, + anon_sym_RBRACE, + STATE(66), 1, + sym_comment, + STATE(91), 1, + sym__colon_property, + [1647] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(172), 1, + sym_identifier, + ACTIONS(217), 1, anon_sym_RPAREN, + STATE(67), 1, + sym_comment, + STATE(74), 1, + sym__equal_property, + [1666] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(219), 1, + anon_sym_COMMA, + ACTIONS(222), 1, + anon_sym_RBRACE, STATE(68), 2, sym_comment, - aux_sym_select_value_repeat1, - [1693] = 6, + aux_sym__old_module_repeat1, + [1683] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(144), 1, - sym_identifier, - ACTIONS(220), 1, - anon_sym_RBRACE, + ACTIONS(136), 1, + anon_sym_PLUS, STATE(69), 1, sym_comment, - STATE(76), 1, - sym__colon_property, - [1712] = 6, + ACTIONS(224), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1700] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(222), 1, - anon_sym_COMMA, - ACTIONS(224), 1, - anon_sym_RPAREN, - STATE(51), 1, - aux_sym__new_module_repeat1, STATE(70), 1, sym_comment, - [1731] = 6, + ACTIONS(226), 2, + ts_builtin_sym_end, + sym_identifier, + [1714] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(226), 1, - anon_sym_COMMA, - ACTIONS(228), 1, - anon_sym_RBRACE, - STATE(54), 1, - aux_sym__old_module_repeat1, STATE(71), 1, sym_comment, - [1750] = 4, + ACTIONS(228), 2, + ts_builtin_sym_end, + sym_identifier, + [1728] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5552,7 +5526,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(230), 2, ts_builtin_sym_end, sym_identifier, - [1764] = 4, + [1742] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5562,7 +5536,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(232), 2, ts_builtin_sym_end, sym_identifier, - [1778] = 4, + [1756] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5570,9 +5544,9 @@ static const uint16_t ts_small_parse_table[] = { STATE(74), 1, sym_comment, ACTIONS(234), 2, - ts_builtin_sym_end, - sym_identifier, - [1792] = 4, + anon_sym_COMMA, + anon_sym_RPAREN, + [1770] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5582,27 +5556,29 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(236), 2, ts_builtin_sym_end, sym_identifier, - [1806] = 4, + [1784] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(136), 1, + anon_sym_PLUS, + ACTIONS(238), 1, + anon_sym_COMMA, STATE(76), 1, sym_comment, - ACTIONS(238), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1820] = 4, + [1800] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(240), 1, + sym_identifier, STATE(77), 1, sym_comment, - ACTIONS(240), 2, - ts_builtin_sym_end, - sym_identifier, - [1834] = 4, + STATE(93), 1, + sym_select_value, + [1816] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5610,9 +5586,9 @@ static const uint16_t ts_small_parse_table[] = { STATE(78), 1, sym_comment, ACTIONS(242), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [1848] = 5, + ts_builtin_sym_end, + sym_identifier, + [1830] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5621,20 +5597,19 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACE, STATE(79), 1, sym_comment, - STATE(105), 1, + STATE(103), 1, sym_select_cases, - [1864] = 5, + [1846] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, - anon_sym_PLUS, - ACTIONS(246), 1, - anon_sym_COMMA, STATE(80), 1, sym_comment, - [1880] = 4, + ACTIONS(246), 2, + ts_builtin_sym_end, + sym_identifier, + [1860] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5644,7 +5619,7 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(248), 2, ts_builtin_sym_end, sym_identifier, - [1894] = 4, + [1874] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5654,147 +5629,144 @@ static const uint16_t ts_small_parse_table[] = { ACTIONS(250), 2, ts_builtin_sym_end, sym_identifier, - [1908] = 4, + [1888] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(83), 1, sym_comment, - ACTIONS(252), 2, - ts_builtin_sym_end, - sym_identifier, - [1922] = 4, + ACTIONS(158), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1902] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(84), 1, sym_comment, - ACTIONS(254), 2, + ACTIONS(252), 2, ts_builtin_sym_end, sym_identifier, - [1936] = 4, + [1916] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(85), 1, sym_comment, + ACTIONS(254), 2, + ts_builtin_sym_end, + sym_identifier, + [1930] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(145), 1, + sym_identifier, + STATE(86), 1, + sym_comment, + STATE(91), 1, + sym__colon_property, + [1946] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(87), 1, + sym_comment, ACTIONS(256), 2, ts_builtin_sym_end, sym_identifier, - [1950] = 5, + [1960] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(144), 1, + ACTIONS(172), 1, sym_identifier, - STATE(76), 1, - sym__colon_property, - STATE(86), 1, - sym_comment, - [1966] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(258), 1, - sym_identifier, - STATE(87), 1, - sym_comment, - STATE(103), 1, - sym_select_value, - [1982] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(160), 1, - sym_identifier, - STATE(78), 1, + STATE(74), 1, sym__equal_property, STATE(88), 1, sym_comment, - [1998] = 4, + [1976] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(89), 1, sym_comment, - ACTIONS(232), 2, + ACTIONS(248), 2, ts_builtin_sym_end, sym_identifier, - [2012] = 4, + [1990] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(90), 1, sym_comment, - ACTIONS(260), 2, + ACTIONS(258), 2, ts_builtin_sym_end, sym_identifier, - [2026] = 4, + [2004] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(91), 1, sym_comment, - ACTIONS(262), 2, - ts_builtin_sym_end, - sym_identifier, - [2040] = 4, + ACTIONS(260), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [2018] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(262), 1, + anon_sym_LPAREN, STATE(92), 1, sym_comment, - ACTIONS(218), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2054] = 4, + [2031] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(264), 1, + anon_sym_COMMA, STATE(93), 1, sym_comment, - ACTIONS(264), 2, - ts_builtin_sym_end, - sym_identifier, - [2068] = 4, + [2044] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(266), 1, - anon_sym_COMMA, + anon_sym_SLASH, STATE(94), 1, sym_comment, - [2081] = 4, + [2057] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(268), 1, - anon_sym_SLASH, + anon_sym_COMMA, STATE(95), 1, sym_comment, - [2094] = 4, + [2070] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(270), 1, - aux_sym_integer_literal_token1, + anon_sym_COLON, STATE(96), 1, sym_comment, - [2107] = 4, + [2083] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5803,16 +5775,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(97), 1, sym_comment, - [2120] = 4, - ACTIONS(3), 1, + [2096] = 4, + ACTIONS(112), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(114), 1, anon_sym_SLASH_STAR, ACTIONS(274), 1, - anon_sym_COMMA, + aux_sym_comment_token1, STATE(98), 1, sym_comment, - [2133] = 4, + [2109] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5821,7 +5793,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RPAREN, STATE(99), 1, sym_comment, - [2146] = 4, + [2122] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5830,7 +5802,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, STATE(100), 1, sym_comment, - [2159] = 4, + [2135] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5839,25 +5811,25 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COMMA, STATE(101), 1, sym_comment, - [2172] = 4, + [2148] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(282), 1, - anon_sym_COLON, + anon_sym_COMMA, STATE(102), 1, sym_comment, - [2185] = 4, + [2161] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(284), 1, - anon_sym_COMMA, + anon_sym_RPAREN, STATE(103), 1, sym_comment, - [2198] = 4, + [2174] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5866,101 +5838,74 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LPAREN, STATE(104), 1, sym_comment, - [2211] = 4, + [2187] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(288), 1, - anon_sym_RPAREN, + anon_sym_COMMA, STATE(105), 1, sym_comment, - [2224] = 4, + [2200] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(290), 1, - anon_sym_COMMA, + anon_sym_EQ, STATE(106), 1, sym_comment, - [2237] = 4, + [2213] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(292), 1, - anon_sym_EQ, + aux_sym_integer_literal_token1, STATE(107), 1, sym_comment, - [2250] = 4, + [2226] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(294), 1, - anon_sym_LPAREN, + ts_builtin_sym_end, STATE(108), 1, sym_comment, - [2263] = 4, - ACTIONS(110), 1, + [2239] = 4, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(112), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(296), 1, - aux_sym_comment_token1, + anon_sym_RPAREN, STATE(109), 1, sym_comment, - [2276] = 4, - ACTIONS(3), 1, + [2252] = 4, + ACTIONS(112), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(114), 1, anon_sym_SLASH_STAR, ACTIONS(298), 1, - anon_sym_RPAREN, + aux_sym_comment_token2, STATE(110), 1, sym_comment, - [2289] = 4, + [2265] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(300), 1, - ts_builtin_sym_end, + ACTIONS(238), 1, + anon_sym_COMMA, STATE(111), 1, sym_comment, - [2302] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(302), 1, - anon_sym_COMMA, - STATE(112), 1, - sym_comment, - [2315] = 4, - ACTIONS(110), 1, - anon_sym_SLASH_SLASH, - ACTIONS(112), 1, - anon_sym_SLASH_STAR, - ACTIONS(304), 1, - aux_sym_comment_token2, - STATE(113), 1, - sym_comment, - [2328] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(246), 1, - anon_sym_COMMA, - STATE(114), 1, - sym_comment, - [2341] = 1, - ACTIONS(306), 1, + [2278] = 1, + ACTIONS(300), 1, ts_builtin_sym_end, - [2345] = 1, - ACTIONS(308), 1, + [2282] = 1, + ACTIONS(302), 1, ts_builtin_sym_end, }; @@ -6001,238 +5946,232 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(35)] = 1034, [SMALL_STATE(36)] = 1052, [SMALL_STATE(37)] = 1077, - [SMALL_STATE(38)] = 1102, - [SMALL_STATE(39)] = 1127, - [SMALL_STATE(40)] = 1149, - [SMALL_STATE(41)] = 1171, - [SMALL_STATE(42)] = 1193, - [SMALL_STATE(43)] = 1213, - [SMALL_STATE(44)] = 1235, - [SMALL_STATE(45)] = 1255, - [SMALL_STATE(46)] = 1274, - [SMALL_STATE(47)] = 1293, - [SMALL_STATE(48)] = 1312, - [SMALL_STATE(49)] = 1331, - [SMALL_STATE(50)] = 1348, - [SMALL_STATE(51)] = 1367, - [SMALL_STATE(52)] = 1386, - [SMALL_STATE(53)] = 1405, - [SMALL_STATE(54)] = 1424, - [SMALL_STATE(55)] = 1443, - [SMALL_STATE(56)] = 1462, - [SMALL_STATE(57)] = 1479, - [SMALL_STATE(58)] = 1496, - [SMALL_STATE(59)] = 1513, - [SMALL_STATE(60)] = 1532, - [SMALL_STATE(61)] = 1551, - [SMALL_STATE(62)] = 1570, - [SMALL_STATE(63)] = 1587, - [SMALL_STATE(64)] = 1606, - [SMALL_STATE(65)] = 1623, - [SMALL_STATE(66)] = 1640, - [SMALL_STATE(67)] = 1659, - [SMALL_STATE(68)] = 1676, - [SMALL_STATE(69)] = 1693, - [SMALL_STATE(70)] = 1712, - [SMALL_STATE(71)] = 1731, - [SMALL_STATE(72)] = 1750, - [SMALL_STATE(73)] = 1764, - [SMALL_STATE(74)] = 1778, - [SMALL_STATE(75)] = 1792, - [SMALL_STATE(76)] = 1806, - [SMALL_STATE(77)] = 1820, - [SMALL_STATE(78)] = 1834, - [SMALL_STATE(79)] = 1848, - [SMALL_STATE(80)] = 1864, - [SMALL_STATE(81)] = 1880, - [SMALL_STATE(82)] = 1894, - [SMALL_STATE(83)] = 1908, - [SMALL_STATE(84)] = 1922, - [SMALL_STATE(85)] = 1936, - [SMALL_STATE(86)] = 1950, - [SMALL_STATE(87)] = 1966, - [SMALL_STATE(88)] = 1982, - [SMALL_STATE(89)] = 1998, - [SMALL_STATE(90)] = 2012, - [SMALL_STATE(91)] = 2026, - [SMALL_STATE(92)] = 2040, - [SMALL_STATE(93)] = 2054, - [SMALL_STATE(94)] = 2068, - [SMALL_STATE(95)] = 2081, - [SMALL_STATE(96)] = 2094, - [SMALL_STATE(97)] = 2107, - [SMALL_STATE(98)] = 2120, - [SMALL_STATE(99)] = 2133, - [SMALL_STATE(100)] = 2146, - [SMALL_STATE(101)] = 2159, - [SMALL_STATE(102)] = 2172, - [SMALL_STATE(103)] = 2185, - [SMALL_STATE(104)] = 2198, - [SMALL_STATE(105)] = 2211, - [SMALL_STATE(106)] = 2224, - [SMALL_STATE(107)] = 2237, - [SMALL_STATE(108)] = 2250, - [SMALL_STATE(109)] = 2263, - [SMALL_STATE(110)] = 2276, - [SMALL_STATE(111)] = 2289, - [SMALL_STATE(112)] = 2302, - [SMALL_STATE(113)] = 2315, - [SMALL_STATE(114)] = 2328, - [SMALL_STATE(115)] = 2341, - [SMALL_STATE(116)] = 2345, + [SMALL_STATE(38)] = 1097, + [SMALL_STATE(39)] = 1119, + [SMALL_STATE(40)] = 1141, + [SMALL_STATE(41)] = 1161, + [SMALL_STATE(42)] = 1183, + [SMALL_STATE(43)] = 1205, + [SMALL_STATE(44)] = 1222, + [SMALL_STATE(45)] = 1241, + [SMALL_STATE(46)] = 1260, + [SMALL_STATE(47)] = 1277, + [SMALL_STATE(48)] = 1294, + [SMALL_STATE(49)] = 1313, + [SMALL_STATE(50)] = 1332, + [SMALL_STATE(51)] = 1351, + [SMALL_STATE(52)] = 1370, + [SMALL_STATE(53)] = 1389, + [SMALL_STATE(54)] = 1408, + [SMALL_STATE(55)] = 1427, + [SMALL_STATE(56)] = 1446, + [SMALL_STATE(57)] = 1465, + [SMALL_STATE(58)] = 1484, + [SMALL_STATE(59)] = 1503, + [SMALL_STATE(60)] = 1520, + [SMALL_STATE(61)] = 1537, + [SMALL_STATE(62)] = 1556, + [SMALL_STATE(63)] = 1575, + [SMALL_STATE(64)] = 1592, + [SMALL_STATE(65)] = 1611, + [SMALL_STATE(66)] = 1628, + [SMALL_STATE(67)] = 1647, + [SMALL_STATE(68)] = 1666, + [SMALL_STATE(69)] = 1683, + [SMALL_STATE(70)] = 1700, + [SMALL_STATE(71)] = 1714, + [SMALL_STATE(72)] = 1728, + [SMALL_STATE(73)] = 1742, + [SMALL_STATE(74)] = 1756, + [SMALL_STATE(75)] = 1770, + [SMALL_STATE(76)] = 1784, + [SMALL_STATE(77)] = 1800, + [SMALL_STATE(78)] = 1816, + [SMALL_STATE(79)] = 1830, + [SMALL_STATE(80)] = 1846, + [SMALL_STATE(81)] = 1860, + [SMALL_STATE(82)] = 1874, + [SMALL_STATE(83)] = 1888, + [SMALL_STATE(84)] = 1902, + [SMALL_STATE(85)] = 1916, + [SMALL_STATE(86)] = 1930, + [SMALL_STATE(87)] = 1946, + [SMALL_STATE(88)] = 1960, + [SMALL_STATE(89)] = 1976, + [SMALL_STATE(90)] = 1990, + [SMALL_STATE(91)] = 2004, + [SMALL_STATE(92)] = 2018, + [SMALL_STATE(93)] = 2031, + [SMALL_STATE(94)] = 2044, + [SMALL_STATE(95)] = 2057, + [SMALL_STATE(96)] = 2070, + [SMALL_STATE(97)] = 2083, + [SMALL_STATE(98)] = 2096, + [SMALL_STATE(99)] = 2109, + [SMALL_STATE(100)] = 2122, + [SMALL_STATE(101)] = 2135, + [SMALL_STATE(102)] = 2148, + [SMALL_STATE(103)] = 2161, + [SMALL_STATE(104)] = 2174, + [SMALL_STATE(105)] = 2187, + [SMALL_STATE(106)] = 2200, + [SMALL_STATE(107)] = 2213, + [SMALL_STATE(108)] = 2226, + [SMALL_STATE(109)] = 2239, + [SMALL_STATE(110)] = 2252, + [SMALL_STATE(111)] = 2265, + [SMALL_STATE(112)] = 2278, + [SMALL_STATE(113)] = 2282, }; 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(109), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(113), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(21), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(19), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(25), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(14), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(104), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(114), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(111), + [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), [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(19), - [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(39), + [39] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(14), + [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(19), + [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(38), [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(100), - [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), + [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), + [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), [63] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [67] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(42), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [67] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(37), + [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), [100] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [104] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), - [106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), - [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), - [110] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), - [112] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), - [114] = {.entry = {.count = 1, .reusable = false}}, SHIFT(58), - [116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [124] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [134] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(58), - [137] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [139] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(58), - [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [156] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), - [176] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(6), - [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [181] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [183] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [185] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [187] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), - [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), - [197] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [199] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [201] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), - [204] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [206] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [104] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), + [106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), + [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [110] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), + [112] = {.entry = {.count = 1, .reusable = false}}, SHIFT(98), + [114] = {.entry = {.count = 1, .reusable = false}}, SHIFT(110), + [116] = {.entry = {.count = 1, .reusable = false}}, SHIFT(46), + [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), + [120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), + [124] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(46), + [127] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [129] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(46), + [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [138] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(8), + [141] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), + [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), + [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), + [151] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [153] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [155] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(41), + [158] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), + [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), + [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), + [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), + [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), + [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), + [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), + [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), + [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [192] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), + [194] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [196] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [200] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [202] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), + [204] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [206] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), + [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), [210] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), [213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [215] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(40), - [218] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), - [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), - [224] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [226] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [228] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(12), - [246] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [248] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [256] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), - [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [262] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [266] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 16), - [268] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), - [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [215] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [217] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [219] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), + [222] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), + [224] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), + [226] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), + [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), + [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [240] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), + [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), + [246] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [248] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), + [256] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), + [258] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [262] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), + [264] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), + [266] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), + [268] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 17), + [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), [272] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), - [274] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 18), + [274] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), [276] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [280] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 14), - [282] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [284] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), - [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [288] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), - [290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [294] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [296] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), - [298] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [300] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 6, .production_id = 17), - [304] = {.entry = {.count = 1, .reusable = false}}, SHIFT(95), - [306] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), - [308] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [280] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [282] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 14), + [284] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), + [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 16), + [290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [294] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [296] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [298] = {.entry = {.count = 1, .reusable = false}}, SHIFT(94), + [300] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index df720d5..fc4bf04 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -226,6 +226,34 @@ foo = select(release_variable("ONE", "TWO"), { (default) (interpreted_string_literal)))))) +================================================================================ +Select (trailing comma in arguments) +================================================================================ + +foo = select(some_boolean("VALUE",), { + true: "true", + false: "false", +}) + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (select_expression + (select_value + (identifier) + (interpreted_string_literal) + (ERROR)) + (select_cases + (select_case + (boolean_literal) + (interpreted_string_literal)) + (select_case + (boolean_literal) + (interpreted_string_literal)))))) + ================================================================================ Select (boolean typed) ================================================================================ From 96ae5421199b8b211ef3a37aadacb2b62d9eff9d Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:27:52 +0000 Subject: [PATCH 05/10] Name 'commaSeparated*' helpers consistently --- grammar.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/grammar.js b/grammar.js index 9f68be4..c75b229 100644 --- a/grammar.js +++ b/grammar.js @@ -1,4 +1,4 @@ -function commaSeparated(elem) { +function commaSeparatedOptTrailing(elem) { return seq(elem, repeat(seq(",", elem)), optional(",")) } @@ -6,7 +6,7 @@ function commaSeparatedNoTrailing(elem) { return seq(elem, repeat(seq(",", elem))) } -function trailingCommaSeparated(elem) { +function commaSeparatedTrailing(elem) { return repeat(seq(elem, ",")) } @@ -48,7 +48,7 @@ module.exports = grammar({ _old_module: ($) => seq( field("type", $.identifier), "{", - optional(commaSeparated( + optional(commaSeparatedOptTrailing( alias(field("property", $._colon_property), $.property) )), "}", @@ -57,7 +57,7 @@ module.exports = grammar({ _new_module: ($) => seq( field("type", $.identifier), "(", - optional(commaSeparated( + optional(commaSeparatedOptTrailing( alias(field("property", $._equal_property), $.property) )), ")", @@ -140,7 +140,7 @@ module.exports = grammar({ select_cases: ($) => seq( "{", - optional(trailingCommaSeparated($.select_case)), + optional(commaSeparatedTrailing($.select_case)), "}", ), @@ -161,13 +161,13 @@ module.exports = grammar({ list_expression: ($) => seq( "[", - optional(commaSeparated(field("element", $._expr))), + optional(commaSeparatedOptTrailing(field("element", $._expr))), "]", ), map_expression: ($) => seq( "{", - optional(commaSeparated( + optional(commaSeparatedOptTrailing( alias(field("property", $._colon_property), $.property) )), "}", From f267a5be95b6f2f9465dd3bbe0eda031dddb63cc Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:43:10 +0000 Subject: [PATCH 06/10] Add multi-valued `select` expression --- grammar.js | 24 +- src/grammar.json | 162 ++- src/node-types.json | 43 +- src/parser.c | 2753 ++++++++++++++++++++++++---------------- test/corpus/select.txt | 122 +- 5 files changed, 1926 insertions(+), 1178 deletions(-) diff --git a/grammar.js b/grammar.js index c75b229..a9e0d8c 100644 --- a/grammar.js +++ b/grammar.js @@ -131,7 +131,12 @@ module.exports = grammar({ ")", ), - select_value: ($) => seq( + select_value: ($) => choice( + $._select_value, + seq("(", commaSeparatedOptTrailing($._select_value), ")"), + ), + + _select_value: ($) => seq( field("name", $.identifier), "(", field("arguments", optional(commaSeparatedNoTrailing($._string_literal))), @@ -145,15 +150,22 @@ module.exports = grammar({ ), select_case: ($) => seq( - field("pattern", choice( - $._string_literal, - $.boolean_literal, - alias("default", $.default), - )), + field("pattern", $.select_pattern), ":", field("value", $._case_value) ), + select_pattern: ($) => choice( + $._select_pattern, + seq("(", commaSeparatedOptTrailing($._select_pattern), ")"), + ), + + _select_pattern: ($) => choice( + $._string_literal, + $.boolean_literal, + alias("default", $.default), + ), + _case_value: ($) => choice( alias("unset", $.unset), $._expr, diff --git a/src/grammar.json b/src/grammar.json index 89b43b4..f55607c 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -487,6 +487,65 @@ ] }, "select_value": { + "type": "CHOICE", + "members": [ + { + "type": "SYMBOL", + "name": "_select_value" + }, + { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "(" + }, + { + "type": "SEQ", + "members": [ + { + "type": "SYMBOL", + "name": "_select_value" + }, + { + "type": "REPEAT", + "content": { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "," + }, + { + "type": "SYMBOL", + "name": "_select_value" + } + ] + } + }, + { + "type": "CHOICE", + "members": [ + { + "type": "STRING", + "value": "," + }, + { + "type": "BLANK" + } + ] + } + ] + }, + { + "type": "STRING", + "value": ")" + } + ] + } + ] + }, + "_select_value": { "type": "SEQ", "members": [ { @@ -588,26 +647,8 @@ "type": "FIELD", "name": "pattern", "content": { - "type": "CHOICE", - "members": [ - { - "type": "SYMBOL", - "name": "_string_literal" - }, - { - "type": "SYMBOL", - "name": "boolean_literal" - }, - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "default" - }, - "named": true, - "value": "default" - } - ] + "type": "SYMBOL", + "name": "select_pattern" } }, { @@ -624,6 +665,87 @@ } ] }, + "select_pattern": { + "type": "CHOICE", + "members": [ + { + "type": "SYMBOL", + "name": "_select_pattern" + }, + { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "(" + }, + { + "type": "SEQ", + "members": [ + { + "type": "SYMBOL", + "name": "_select_pattern" + }, + { + "type": "REPEAT", + "content": { + "type": "SEQ", + "members": [ + { + "type": "STRING", + "value": "," + }, + { + "type": "SYMBOL", + "name": "_select_pattern" + } + ] + } + }, + { + "type": "CHOICE", + "members": [ + { + "type": "STRING", + "value": "," + }, + { + "type": "BLANK" + } + ] + } + ] + }, + { + "type": "STRING", + "value": ")" + } + ] + } + ] + }, + "_select_pattern": { + "type": "CHOICE", + "members": [ + { + "type": "SYMBOL", + "name": "_string_literal" + }, + { + "type": "SYMBOL", + "name": "boolean_literal" + }, + { + "type": "ALIAS", + "content": { + "type": "STRING", + "value": "default" + }, + "named": true, + "value": "default" + } + ] + }, "_case_value": { "type": "CHOICE", "members": [ diff --git a/src/node-types.json b/src/node-types.json index 9c77e07..f1817a2 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -354,19 +354,7 @@ "required": true, "types": [ { - "type": "boolean_literal", - "named": true - }, - { - "type": "default", - "named": true - }, - { - "type": "interpreted_string_literal", - "named": true - }, - { - "type": "raw_string_literal", + "type": "select_pattern", "named": true } ] @@ -453,6 +441,33 @@ ] } }, + { + "type": "select_pattern", + "named": true, + "fields": {}, + "children": { + "multiple": true, + "required": true, + "types": [ + { + "type": "boolean_literal", + "named": true + }, + { + "type": "default", + "named": true + }, + { + "type": "interpreted_string_literal", + "named": true + }, + { + "type": "raw_string_literal", + "named": true + } + ] + } + }, { "type": "select_value", "named": true, @@ -476,7 +491,7 @@ ] }, "name": { - "multiple": false, + "multiple": true, "required": true, "types": [ { diff --git a/src/parser.c b/src/parser.c index 1fab250..2efc422 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,15 +5,15 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 114 +#define STATE_COUNT 140 #define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 59 +#define SYMBOL_COUNT 64 #define ALIAS_COUNT 0 #define TOKEN_COUNT 30 #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 11 #define MAX_ALIAS_SEQUENCE_LENGTH 6 -#define PRODUCTION_ID_COUNT 18 +#define PRODUCTION_ID_COUNT 22 enum ts_symbol_identifiers { anon_sym_SLASH_SLASH = 1, @@ -39,8 +39,8 @@ enum ts_symbol_identifiers { anon_sym_DQUOTE2 = 21, sym_escape_sequence = 22, anon_sym_select = 23, - anon_sym_default = 24, - anon_sym_COLON = 25, + anon_sym_COLON = 24, + anon_sym_default = 25, anon_sym_unset = 26, anon_sym_LBRACK = 27, anon_sym_RBRACK = 28, @@ -59,21 +59,26 @@ enum ts_symbol_identifiers { sym_interpreted_string_literal = 41, sym_select_expression = 42, sym_select_value = 43, - sym_select_cases = 44, - sym_select_case = 45, - sym__case_value = 46, - sym_list_expression = 47, - sym_map_expression = 48, - sym_binary_expression = 49, - sym__colon_property = 50, - sym__equal_property = 51, - aux_sym_source_file_repeat1 = 52, - aux_sym__old_module_repeat1 = 53, - aux_sym__new_module_repeat1 = 54, - aux_sym_interpreted_string_literal_repeat1 = 55, - aux_sym_select_value_repeat1 = 56, - aux_sym_select_cases_repeat1 = 57, - aux_sym_list_expression_repeat1 = 58, + sym__select_value = 44, + sym_select_cases = 45, + sym_select_case = 46, + sym_select_pattern = 47, + sym__select_pattern = 48, + sym__case_value = 49, + sym_list_expression = 50, + sym_map_expression = 51, + sym_binary_expression = 52, + sym__colon_property = 53, + sym__equal_property = 54, + aux_sym_source_file_repeat1 = 55, + aux_sym__old_module_repeat1 = 56, + aux_sym__new_module_repeat1 = 57, + aux_sym_interpreted_string_literal_repeat1 = 58, + aux_sym_select_value_repeat1 = 59, + aux_sym__select_value_repeat1 = 60, + aux_sym_select_cases_repeat1 = 61, + aux_sym_select_pattern_repeat1 = 62, + aux_sym_list_expression_repeat1 = 63, }; static const char * const ts_symbol_names[] = { @@ -101,8 +106,8 @@ static const char * const ts_symbol_names[] = { [anon_sym_DQUOTE2] = "\"", [sym_escape_sequence] = "escape_sequence", [anon_sym_select] = "select", - [anon_sym_default] = "default", [anon_sym_COLON] = ":", + [anon_sym_default] = "default", [anon_sym_unset] = "unset", [anon_sym_LBRACK] = "[", [anon_sym_RBRACK] = "]", @@ -121,8 +126,11 @@ static const char * const ts_symbol_names[] = { [sym_interpreted_string_literal] = "interpreted_string_literal", [sym_select_expression] = "select_expression", [sym_select_value] = "select_value", + [sym__select_value] = "_select_value", [sym_select_cases] = "select_cases", [sym_select_case] = "select_case", + [sym_select_pattern] = "select_pattern", + [sym__select_pattern] = "_select_pattern", [sym__case_value] = "_case_value", [sym_list_expression] = "list_expression", [sym_map_expression] = "map_expression", @@ -134,7 +142,9 @@ static const char * const ts_symbol_names[] = { [aux_sym__new_module_repeat1] = "_new_module_repeat1", [aux_sym_interpreted_string_literal_repeat1] = "interpreted_string_literal_repeat1", [aux_sym_select_value_repeat1] = "select_value_repeat1", + [aux_sym__select_value_repeat1] = "_select_value_repeat1", [aux_sym_select_cases_repeat1] = "select_cases_repeat1", + [aux_sym_select_pattern_repeat1] = "select_pattern_repeat1", [aux_sym_list_expression_repeat1] = "list_expression_repeat1", }; @@ -163,8 +173,8 @@ static const TSSymbol ts_symbol_map[] = { [anon_sym_DQUOTE2] = anon_sym_DQUOTE, [sym_escape_sequence] = sym_escape_sequence, [anon_sym_select] = anon_sym_select, - [anon_sym_default] = anon_sym_default, [anon_sym_COLON] = anon_sym_COLON, + [anon_sym_default] = anon_sym_default, [anon_sym_unset] = anon_sym_unset, [anon_sym_LBRACK] = anon_sym_LBRACK, [anon_sym_RBRACK] = anon_sym_RBRACK, @@ -183,8 +193,11 @@ static const TSSymbol ts_symbol_map[] = { [sym_interpreted_string_literal] = sym_interpreted_string_literal, [sym_select_expression] = sym_select_expression, [sym_select_value] = sym_select_value, + [sym__select_value] = sym__select_value, [sym_select_cases] = sym_select_cases, [sym_select_case] = sym_select_case, + [sym_select_pattern] = sym_select_pattern, + [sym__select_pattern] = sym__select_pattern, [sym__case_value] = sym__case_value, [sym_list_expression] = sym_list_expression, [sym_map_expression] = sym_map_expression, @@ -196,7 +209,9 @@ static const TSSymbol ts_symbol_map[] = { [aux_sym__new_module_repeat1] = aux_sym__new_module_repeat1, [aux_sym_interpreted_string_literal_repeat1] = aux_sym_interpreted_string_literal_repeat1, [aux_sym_select_value_repeat1] = aux_sym_select_value_repeat1, + [aux_sym__select_value_repeat1] = aux_sym__select_value_repeat1, [aux_sym_select_cases_repeat1] = aux_sym_select_cases_repeat1, + [aux_sym_select_pattern_repeat1] = aux_sym_select_pattern_repeat1, [aux_sym_list_expression_repeat1] = aux_sym_list_expression_repeat1, }; @@ -297,14 +312,14 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = false, }, - [anon_sym_default] = { - .visible = true, - .named = true, - }, [anon_sym_COLON] = { .visible = true, .named = false, }, + [anon_sym_default] = { + .visible = true, + .named = true, + }, [anon_sym_unset] = { .visible = true, .named = true, @@ -377,6 +392,10 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, + [sym__select_value] = { + .visible = false, + .named = true, + }, [sym_select_cases] = { .visible = true, .named = true, @@ -385,6 +404,14 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, + [sym_select_pattern] = { + .visible = true, + .named = true, + }, + [sym__select_pattern] = { + .visible = false, + .named = true, + }, [sym__case_value] = { .visible = false, .named = true, @@ -429,10 +456,18 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = false, }, + [aux_sym__select_value_repeat1] = { + .visible = false, + .named = false, + }, [aux_sym_select_cases_repeat1] = { .visible = false, .named = false, }, + [aux_sym_select_pattern_repeat1] = { + .visible = false, + .named = false, + }, [aux_sym_list_expression_repeat1] = { .visible = false, .named = false, @@ -474,18 +509,22 @@ static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [3] = {.index = 5, .length = 1}, [4] = {.index = 6, .length = 4}, [5] = {.index = 10, .length = 3}, - [6] = {.index = 13, .length = 1}, - [7] = {.index = 2, .length = 3}, - [8] = {.index = 14, .length = 2}, - [9] = {.index = 16, .length = 5}, - [10] = {.index = 21, .length = 2}, - [11] = {.index = 23, .length = 4}, - [12] = {.index = 27, .length = 2}, + [6] = {.index = 13, .length = 2}, + [7] = {.index = 15, .length = 1}, + [8] = {.index = 2, .length = 3}, + [9] = {.index = 16, .length = 2}, + [10] = {.index = 18, .length = 5}, + [11] = {.index = 23, .length = 2}, + [12] = {.index = 25, .length = 4}, [13] = {.index = 29, .length = 2}, - [14] = {.index = 31, .length = 1}, - [15] = {.index = 32, .length = 2}, - [16] = {.index = 34, .length = 3}, - [17] = {.index = 37, .length = 2}, + [14] = {.index = 31, .length = 2}, + [15] = {.index = 33, .length = 2}, + [16] = {.index = 35, .length = 1}, + [17] = {.index = 36, .length = 4}, + [18] = {.index = 40, .length = 4}, + [19] = {.index = 44, .length = 2}, + [20] = {.index = 46, .length = 3}, + [21] = {.index = 49, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { @@ -508,40 +547,56 @@ static const TSFieldMapEntry ts_field_map_entries[] = { {field_property, 1}, {field_value, 1, .inherited = true}, [13] = + {field_arguments, 0, .inherited = true}, + {field_name, 0, .inherited = true}, + [15] = {field_element, 1}, - [14] = + [16] = {field_field, 0}, {field_value, 2}, - [16] = + [18] = {field_field, 2, .inherited = true}, {field_property, 2}, {field_property, 3, .inherited = true}, {field_type, 0}, {field_value, 2, .inherited = true}, - [21] = + [23] = {field_property, 0, .inherited = true}, {field_property, 1, .inherited = true}, - [23] = + [25] = {field_field, 1, .inherited = true}, {field_property, 1}, {field_property, 2, .inherited = true}, {field_value, 1, .inherited = true}, - [27] = + [29] = {field_element, 1}, {field_element, 2, .inherited = true}, - [29] = + [31] = {field_element, 0, .inherited = true}, {field_element, 1, .inherited = true}, - [31] = + [33] = + {field_arguments, 1, .inherited = true}, + {field_name, 1, .inherited = true}, + [35] = {field_name, 0}, - [32] = + [36] = + {field_arguments, 1, .inherited = true}, + {field_arguments, 2, .inherited = true}, + {field_name, 1, .inherited = true}, + {field_name, 2, .inherited = true}, + [40] = + {field_arguments, 0, .inherited = true}, + {field_arguments, 1, .inherited = true}, + {field_name, 0, .inherited = true}, + {field_name, 1, .inherited = true}, + [44] = {field_arguments, 2}, {field_name, 0}, - [34] = + [46] = {field_arguments, 2}, {field_arguments, 3}, {field_name, 0}, - [37] = + [49] = {field_pattern, 0}, {field_value, 2}, }; @@ -672,6 +727,32 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [111] = 111, [112] = 112, [113] = 113, + [114] = 114, + [115] = 115, + [116] = 116, + [117] = 117, + [118] = 118, + [119] = 119, + [120] = 120, + [121] = 121, + [122] = 122, + [123] = 123, + [124] = 124, + [125] = 125, + [126] = 126, + [127] = 127, + [128] = 128, + [129] = 129, + [130] = 130, + [131] = 131, + [132] = 132, + [133] = 133, + [134] = 134, + [135] = 135, + [136] = 136, + [137] = 137, + [138] = 138, + [139] = 139, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -3525,7 +3606,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == ',') ADVANCE(57); if (lookahead == '-') ADVANCE(88); if (lookahead == '/') ADVANCE(53); - if (lookahead == ':') ADVANCE(102); + if (lookahead == ':') ADVANCE(100); if (lookahead == '=') ADVANCE(54); if (lookahead == '[') ADVANCE(104); if (lookahead == '\\') ADVANCE(11); @@ -3562,6 +3643,19 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { lookahead != '\\') ADVANCE(94); END_STATE(); case 3: + if (lookahead == '"') ADVANCE(91); + if (lookahead == '(') ADVANCE(59); + if (lookahead == ')') ADVANCE(60); + if (lookahead == '/') ADVANCE(6); + if (lookahead == '`') ADVANCE(35); + if (lookahead == 'd') ADVANCE(15); + if (lookahead == 'f') ADVANCE(13); + if (lookahead == 't') ADVANCE(21); + if (lookahead == '}') ADVANCE(58); + if (('\t' <= lookahead && lookahead <= '\r') || + lookahead == ' ') SKIP(3) + END_STATE(); + case 4: if (lookahead == '"') ADVANCE(91); if (lookahead == '(') ADVANCE(59); if (lookahead == '+') ADVANCE(10); @@ -3576,11 +3670,11 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == 'u') ADVANCE(74); if (lookahead == '{') ADVANCE(56); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(3) + lookahead == ' ') SKIP(4) if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); - case 4: + case 5: if (lookahead == '"') ADVANCE(91); if (lookahead == '-') ADVANCE(88); if (lookahead == '/') ADVANCE(6); @@ -3592,21 +3686,10 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == 't') ADVANCE(75); if (lookahead == '{') ADVANCE(56); if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(4) + lookahead == ' ') SKIP(5) if (('0' <= lookahead && lookahead <= '9')) ADVANCE(89); if (sym_identifier_character_set_1(lookahead)) ADVANCE(83); END_STATE(); - case 5: - if (lookahead == '"') ADVANCE(91); - if (lookahead == '/') ADVANCE(6); - if (lookahead == '`') ADVANCE(35); - if (lookahead == 'd') ADVANCE(15); - if (lookahead == 'f') ADVANCE(13); - if (lookahead == 't') ADVANCE(21); - if (lookahead == '}') ADVANCE(58); - if (('\t' <= lookahead && lookahead <= '\r') || - lookahead == ' ') SKIP(5) - END_STATE(); case 6: if (lookahead == '*') ADVANCE(48); if (lookahead == '/') ADVANCE(39); @@ -3672,7 +3755,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == 's') ADVANCE(17); END_STATE(); case 23: - if (lookahead == 't') ADVANCE(100); + if (lookahead == 't') ADVANCE(101); END_STATE(); case 24: if (lookahead == 'u') ADVANCE(16); @@ -3740,7 +3823,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == ',') ADVANCE(57); if (lookahead == '-') ADVANCE(88); if (lookahead == '/') ADVANCE(53); - if (lookahead == ':') ADVANCE(102); + if (lookahead == ':') ADVANCE(100); if (lookahead == '=') ADVANCE(54); if (lookahead == '[') ADVANCE(104); if (lookahead == ']') ADVANCE(105); @@ -3760,11 +3843,12 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { case 37: if (eof) ADVANCE(38); if (lookahead == '"') ADVANCE(91); + if (lookahead == '(') ADVANCE(59); if (lookahead == ')') ADVANCE(60); if (lookahead == '+') ADVANCE(106); if (lookahead == ',') ADVANCE(57); if (lookahead == '/') ADVANCE(6); - if (lookahead == ':') ADVANCE(102); + if (lookahead == ':') ADVANCE(100); if (lookahead == ']') ADVANCE(105); if (lookahead == '`') ADVANCE(35); if (lookahead == '}') ADVANCE(58); @@ -3985,7 +4069,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 80: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(101); + if (lookahead == 't') ADVANCE(102); if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 81: @@ -4075,14 +4159,14 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 100: - ACCEPT_TOKEN(anon_sym_default); + ACCEPT_TOKEN(anon_sym_COLON); END_STATE(); case 101: ACCEPT_TOKEN(anon_sym_default); - if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 102: - ACCEPT_TOKEN(anon_sym_COLON); + ACCEPT_TOKEN(anon_sym_default); + if (sym_identifier_character_set_3(lookahead)) ADVANCE(83); END_STATE(); case 103: ACCEPT_TOKEN(anon_sym_unset); @@ -4109,22 +4193,22 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, [1] = {.lex_state = 37}, - [2] = {.lex_state = 3}, - [3] = {.lex_state = 4}, - [4] = {.lex_state = 4}, - [5] = {.lex_state = 4}, - [6] = {.lex_state = 4}, - [7] = {.lex_state = 4}, - [8] = {.lex_state = 4}, - [9] = {.lex_state = 4}, - [10] = {.lex_state = 4}, - [11] = {.lex_state = 5}, - [12] = {.lex_state = 5}, - [13] = {.lex_state = 5}, - [14] = {.lex_state = 37}, - [15] = {.lex_state = 37}, - [16] = {.lex_state = 37}, - [17] = {.lex_state = 37}, + [2] = {.lex_state = 4}, + [3] = {.lex_state = 5}, + [4] = {.lex_state = 5}, + [5] = {.lex_state = 5}, + [6] = {.lex_state = 5}, + [7] = {.lex_state = 5}, + [8] = {.lex_state = 5}, + [9] = {.lex_state = 5}, + [10] = {.lex_state = 5}, + [11] = {.lex_state = 3}, + [12] = {.lex_state = 3}, + [13] = {.lex_state = 3}, + [14] = {.lex_state = 3}, + [15] = {.lex_state = 3}, + [16] = {.lex_state = 3}, + [17] = {.lex_state = 3}, [18] = {.lex_state = 37}, [19] = {.lex_state = 37}, [20] = {.lex_state = 37}, @@ -4132,7 +4216,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [22] = {.lex_state = 37}, [23] = {.lex_state = 37}, [24] = {.lex_state = 37}, - [25] = {.lex_state = 37}, + [25] = {.lex_state = 3}, [26] = {.lex_state = 37}, [27] = {.lex_state = 37}, [28] = {.lex_state = 37}, @@ -4142,85 +4226,111 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [32] = {.lex_state = 37}, [33] = {.lex_state = 37}, [34] = {.lex_state = 37}, - [35] = {.lex_state = 5}, + [35] = {.lex_state = 37}, [36] = {.lex_state = 37}, - [37] = {.lex_state = 3}, - [38] = {.lex_state = 1}, - [39] = {.lex_state = 1}, - [40] = {.lex_state = 1}, - [41] = {.lex_state = 37}, + [37] = {.lex_state = 37}, + [38] = {.lex_state = 37}, + [39] = {.lex_state = 37}, + [40] = {.lex_state = 37}, + [41] = {.lex_state = 1}, [42] = {.lex_state = 37}, - [43] = {.lex_state = 0}, + [43] = {.lex_state = 37}, [44] = {.lex_state = 37}, - [45] = {.lex_state = 0}, - [46] = {.lex_state = 1}, - [47] = {.lex_state = 0}, + [45] = {.lex_state = 1}, + [46] = {.lex_state = 4}, + [47] = {.lex_state = 1}, [48] = {.lex_state = 37}, [49] = {.lex_state = 0}, [50] = {.lex_state = 0}, - [51] = {.lex_state = 37}, + [51] = {.lex_state = 1}, [52] = {.lex_state = 37}, [53] = {.lex_state = 0}, - [54] = {.lex_state = 37}, - [55] = {.lex_state = 0}, + [54] = {.lex_state = 0}, + [55] = {.lex_state = 37}, [56] = {.lex_state = 0}, - [57] = {.lex_state = 37}, + [57] = {.lex_state = 0}, [58] = {.lex_state = 37}, - [59] = {.lex_state = 37}, + [59] = {.lex_state = 0}, [60] = {.lex_state = 37}, [61] = {.lex_state = 0}, [62] = {.lex_state = 0}, [63] = {.lex_state = 37}, [64] = {.lex_state = 0}, - [65] = {.lex_state = 0}, - [66] = {.lex_state = 37}, + [65] = {.lex_state = 37}, + [66] = {.lex_state = 0}, [67] = {.lex_state = 37}, - [68] = {.lex_state = 0}, + [68] = {.lex_state = 37}, [69] = {.lex_state = 37}, - [70] = {.lex_state = 37}, - [71] = {.lex_state = 37}, - [72] = {.lex_state = 37}, - [73] = {.lex_state = 37}, - [74] = {.lex_state = 0}, + [70] = {.lex_state = 0}, + [71] = {.lex_state = 0}, + [72] = {.lex_state = 0}, + [73] = {.lex_state = 0}, + [74] = {.lex_state = 37}, [75] = {.lex_state = 37}, - [76] = {.lex_state = 37}, - [77] = {.lex_state = 37}, + [76] = {.lex_state = 0}, + [77] = {.lex_state = 0}, [78] = {.lex_state = 37}, [79] = {.lex_state = 0}, - [80] = {.lex_state = 37}, - [81] = {.lex_state = 37}, + [80] = {.lex_state = 0}, + [81] = {.lex_state = 0}, [82] = {.lex_state = 37}, - [83] = {.lex_state = 0}, + [83] = {.lex_state = 37}, [84] = {.lex_state = 37}, [85] = {.lex_state = 37}, - [86] = {.lex_state = 37}, + [86] = {.lex_state = 0}, [87] = {.lex_state = 37}, [88] = {.lex_state = 37}, [89] = {.lex_state = 37}, [90] = {.lex_state = 37}, - [91] = {.lex_state = 0}, - [92] = {.lex_state = 0}, - [93] = {.lex_state = 0}, - [94] = {.lex_state = 0}, + [91] = {.lex_state = 37}, + [92] = {.lex_state = 37}, + [93] = {.lex_state = 37}, + [94] = {.lex_state = 37}, [95] = {.lex_state = 0}, - [96] = {.lex_state = 0}, + [96] = {.lex_state = 37}, [97] = {.lex_state = 0}, - [98] = {.lex_state = 44}, - [99] = {.lex_state = 0}, + [98] = {.lex_state = 37}, + [99] = {.lex_state = 37}, [100] = {.lex_state = 0}, [101] = {.lex_state = 0}, - [102] = {.lex_state = 0}, - [103] = {.lex_state = 0}, + [102] = {.lex_state = 37}, + [103] = {.lex_state = 37}, [104] = {.lex_state = 0}, [105] = {.lex_state = 0}, - [106] = {.lex_state = 0}, - [107] = {.lex_state = 0}, - [108] = {.lex_state = 0}, + [106] = {.lex_state = 37}, + [107] = {.lex_state = 37}, + [108] = {.lex_state = 37}, [109] = {.lex_state = 0}, - [110] = {.lex_state = 7}, - [111] = {.lex_state = 0}, - [112] = {(TSStateId)(-1)}, - [113] = {(TSStateId)(-1)}, + [110] = {.lex_state = 0}, + [111] = {.lex_state = 37}, + [112] = {.lex_state = 0}, + [113] = {.lex_state = 0}, + [114] = {.lex_state = 0}, + [115] = {.lex_state = 0}, + [116] = {.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 = 0}, + [123] = {.lex_state = 0}, + [124] = {.lex_state = 0}, + [125] = {.lex_state = 0}, + [126] = {.lex_state = 0}, + [127] = {.lex_state = 0}, + [128] = {.lex_state = 0}, + [129] = {.lex_state = 0}, + [130] = {.lex_state = 0}, + [131] = {.lex_state = 0}, + [132] = {.lex_state = 44}, + [133] = {.lex_state = 0}, + [134] = {.lex_state = 0}, + [135] = {.lex_state = 0}, + [136] = {.lex_state = 0}, + [137] = {.lex_state = 0}, + [138] = {(TSStateId)(-1)}, + [139] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -4247,22 +4357,22 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_DQUOTE2] = ACTIONS(1), [sym_escape_sequence] = ACTIONS(1), [anon_sym_select] = ACTIONS(1), - [anon_sym_default] = ACTIONS(1), [anon_sym_COLON] = ACTIONS(1), + [anon_sym_default] = 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(108), - [sym__definition] = STATE(80), + [sym_source_file] = STATE(136), + [sym__definition] = STATE(92), [sym_comment] = STATE(1), - [sym_assignment] = STATE(84), - [sym_module] = STATE(84), - [sym__old_module] = STATE(89), - [sym__new_module] = STATE(81), - [aux_sym_source_file_repeat1] = STATE(15), + [sym_assignment] = STATE(88), + [sym_module] = STATE(88), + [sym__old_module] = STATE(94), + [sym__new_module] = STATE(84), + [aux_sym_source_file_repeat1] = STATE(20), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -4296,16 +4406,16 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(2), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(76), 1, + STATE(103), 1, sym__expr, - STATE(95), 1, + STATE(133), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4338,14 +4448,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(3), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(59), 1, + STATE(83), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4378,14 +4488,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(4), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(59), 1, + STATE(83), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4418,14 +4528,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_RBRACK, STATE(5), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, STATE(42), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4456,14 +4566,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(6), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(69), 1, + STATE(82), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4494,14 +4604,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(7), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(63), 1, + STATE(48), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4532,14 +4642,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(8), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(59), 1, + STATE(65), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4570,14 +4680,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(9), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(20), 1, + STATE(36), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4608,14 +4718,14 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, STATE(10), 1, sym_comment, - STATE(19), 1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(60), 1, + STATE(83), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(25), 7, + STATE(35), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4623,60 +4733,40 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [492] = 11, + [492] = 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(37), 1, anon_sym_RBRACE, - ACTIONS(42), 1, - sym_raw_string_literal, - ACTIONS(45), 1, - anon_sym_DQUOTE, - ACTIONS(48), 1, - anon_sym_default, - STATE(19), 1, - sym_interpreted_string_literal, - STATE(101), 1, - sym_select_case, - ACTIONS(39), 2, - anon_sym_true, - anon_sym_false, - STATE(11), 2, - sym_comment, - aux_sym_select_cases_repeat1, - STATE(100), 2, - sym_boolean_literal, - sym__string_literal, - [529] = 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(51), 1, - anon_sym_RBRACE, - ACTIONS(55), 1, + ACTIONS(39), 1, + anon_sym_LPAREN, + ACTIONS(43), 1, anon_sym_default, STATE(11), 1, - aux_sym_select_cases_repeat1, - STATE(12), 1, sym_comment, - STATE(19), 1, + STATE(12), 1, + aux_sym_select_cases_repeat1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(101), 1, + STATE(114), 1, + sym_select_pattern, + STATE(115), 1, + sym__select_pattern, + STATE(131), 1, sym_select_case, - ACTIONS(53), 2, + ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(100), 2, + STATE(56), 2, sym_boolean_literal, sym__string_literal, - [568] = 12, + [540] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4685,107 +4775,166 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(55), 1, + ACTIONS(39), 1, + anon_sym_LPAREN, + ACTIONS(43), 1, anon_sym_default, - ACTIONS(57), 1, + ACTIONS(45), 1, anon_sym_RBRACE, STATE(12), 1, - aux_sym_select_cases_repeat1, - STATE(13), 1, sym_comment, - STATE(19), 1, + STATE(13), 1, + aux_sym_select_cases_repeat1, + STATE(23), 1, sym_interpreted_string_literal, - STATE(101), 1, + STATE(114), 1, + sym_select_pattern, + STATE(115), 1, + sym__select_pattern, + STATE(131), 1, sym_select_case, - ACTIONS(53), 2, + ACTIONS(41), 2, anon_sym_true, anon_sym_false, - STATE(100), 2, + STATE(56), 2, sym_boolean_literal, sym__string_literal, - [607] = 4, + [588] = 14, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(47), 1, + anon_sym_RBRACE, + ACTIONS(49), 1, + anon_sym_LPAREN, + ACTIONS(55), 1, + sym_raw_string_literal, + ACTIONS(58), 1, + anon_sym_DQUOTE, + ACTIONS(61), 1, + anon_sym_default, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(114), 1, + sym_select_pattern, + STATE(115), 1, + sym__select_pattern, + STATE(131), 1, + sym_select_case, + ACTIONS(52), 2, + anon_sym_true, + anon_sym_false, + STATE(13), 2, + sym_comment, + aux_sym_select_cases_repeat1, + STATE(56), 2, + sym_boolean_literal, + sym__string_literal, + [634] = 11, + 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(43), 1, + anon_sym_default, + ACTIONS(64), 1, + anon_sym_RPAREN, STATE(14), 1, sym_comment, - ACTIONS(59), 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, - [627] = 10, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(105), 1, + sym__select_pattern, + ACTIONS(41), 2, + anon_sym_true, + anon_sym_false, + STATE(56), 2, + sym_boolean_literal, + sym__string_literal, + [670] = 11, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(9), 1, - sym_identifier, - ACTIONS(61), 1, - ts_builtin_sym_end, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(43), 1, + anon_sym_default, + ACTIONS(66), 1, + anon_sym_RPAREN, STATE(15), 1, sym_comment, - STATE(17), 1, - aux_sym_source_file_repeat1, - STATE(80), 1, - sym__definition, - STATE(81), 1, - sym__new_module, - STATE(89), 1, - sym__old_module, - STATE(84), 2, - sym_assignment, - sym_module, - [659] = 4, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(105), 1, + sym__select_pattern, + ACTIONS(41), 2, + anon_sym_true, + anon_sym_false, + STATE(56), 2, + sym_boolean_literal, + sym__string_literal, + [706] = 10, 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(43), 1, + anon_sym_default, STATE(16), 1, sym_comment, - ACTIONS(63), 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, - [679] = 9, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(80), 1, + sym__select_pattern, + ACTIONS(41), 2, + anon_sym_true, + anon_sym_false, + STATE(56), 2, + sym_boolean_literal, + sym__string_literal, + [739] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(65), 1, - ts_builtin_sym_end, - ACTIONS(67), 1, - sym_identifier, - STATE(80), 1, - sym__definition, - STATE(81), 1, - sym__new_module, - STATE(89), 1, - sym__old_module, - STATE(17), 2, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(43), 1, + anon_sym_default, + STATE(17), 1, sym_comment, - aux_sym_source_file_repeat1, - STATE(84), 2, - sym_assignment, - sym_module, - [709] = 4, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(105), 1, + sym__select_pattern, + ACTIONS(41), 2, + anon_sym_true, + anon_sym_false, + STATE(56), 2, + sym_boolean_literal, + sym__string_literal, + [772] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(18), 1, sym_comment, - ACTIONS(70), 8, + ACTIONS(68), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4794,90 +4943,105 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [729] = 4, + [792] = 9, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(19), 1, + ACTIONS(70), 1, + ts_builtin_sym_end, + ACTIONS(72), 1, + sym_identifier, + STATE(84), 1, + sym__new_module, + STATE(92), 1, + sym__definition, + STATE(94), 1, + sym__old_module, + STATE(19), 2, sym_comment, - ACTIONS(72), 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, - [749] = 4, + aux_sym_source_file_repeat1, + STATE(88), 2, + sym_assignment, + sym_module, + [822] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(9), 1, + sym_identifier, + ACTIONS(75), 1, + ts_builtin_sym_end, + STATE(19), 1, + aux_sym_source_file_repeat1, STATE(20), 1, sym_comment, - ACTIONS(74), 7, - ts_builtin_sym_end, - anon_sym_COMMA, - anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_RBRACK, - anon_sym_PLUS, - [768] = 4, + STATE(84), 1, + sym__new_module, + STATE(92), 1, + sym__definition, + STATE(94), 1, + sym__old_module, + STATE(88), 2, + sym_assignment, + sym_module, + [854] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(21), 1, sym_comment, - ACTIONS(76), 7, + 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, - [787] = 4, + [874] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(22), 1, sym_comment, - ACTIONS(78), 7, + ACTIONS(79), 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, - [806] = 4, + [894] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(23), 1, sym_comment, - ACTIONS(80), 7, + ACTIONS(81), 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, - [825] = 4, + [914] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(24), 1, sym_comment, - ACTIONS(82), 7, + ACTIONS(83), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4885,29 +5049,29 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [844] = 4, + [933] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(25), 1, sym_comment, - ACTIONS(84), 7, - ts_builtin_sym_end, - anon_sym_COMMA, + ACTIONS(47), 7, anon_sym_RBRACE, - anon_sym_RPAREN, - sym_identifier, - anon_sym_RBRACK, - anon_sym_PLUS, - [863] = 4, + anon_sym_LPAREN, + anon_sym_true, + anon_sym_false, + sym_raw_string_literal, + anon_sym_DQUOTE, + anon_sym_default, + [952] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(26), 1, sym_comment, - ACTIONS(86), 7, + ACTIONS(85), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4915,14 +5079,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [882] = 4, + [971] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(27), 1, sym_comment, - ACTIONS(88), 7, + ACTIONS(87), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4930,14 +5094,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [901] = 4, + [990] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(28), 1, sym_comment, - ACTIONS(90), 7, + ACTIONS(89), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4945,14 +5109,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [920] = 4, + [1009] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(29), 1, sym_comment, - ACTIONS(92), 7, + ACTIONS(91), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4960,14 +5124,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [939] = 4, + [1028] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(30), 1, sym_comment, - ACTIONS(94), 7, + ACTIONS(93), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4975,14 +5139,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [958] = 4, + [1047] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(31), 1, sym_comment, - ACTIONS(96), 7, + ACTIONS(95), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -4990,14 +5154,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [977] = 4, + [1066] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(32), 1, sym_comment, - ACTIONS(98), 7, + ACTIONS(97), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5005,14 +5169,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [996] = 4, + [1085] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(33), 1, sym_comment, - ACTIONS(100), 7, + ACTIONS(99), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5020,14 +5184,14 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1015] = 4, + [1104] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(34), 1, sym_comment, - ACTIONS(102), 7, + ACTIONS(101), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5035,96 +5199,82 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1034] = 4, + [1123] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(35), 1, sym_comment, - ACTIONS(37), 6, + ACTIONS(103), 7, + ts_builtin_sym_end, + anon_sym_COMMA, anon_sym_RBRACE, - anon_sym_true, - anon_sym_false, - sym_raw_string_literal, - anon_sym_DQUOTE, - anon_sym_default, - [1052] = 8, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [1142] = 4, 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(104), 1, - anon_sym_RPAREN, - STATE(19), 1, - sym_interpreted_string_literal, STATE(36), 1, sym_comment, - STATE(56), 1, - sym__string_literal, - [1077] = 6, + ACTIONS(105), 7, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [1161] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(108), 1, - anon_sym_LBRACE, - ACTIONS(110), 1, - anon_sym_LPAREN, STATE(37), 1, sym_comment, - ACTIONS(106), 2, - anon_sym_EQ, - anon_sym_PLUS_EQ, - [1097] = 7, - ACTIONS(112), 1, + ACTIONS(107), 7, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [1180] = 4, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(114), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(116), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(118), 1, - anon_sym_DQUOTE2, - ACTIONS(120), 1, - sym_escape_sequence, STATE(38), 1, sym_comment, - STATE(39), 1, - aux_sym_interpreted_string_literal_repeat1, - [1119] = 7, - ACTIONS(112), 1, + ACTIONS(109), 7, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [1199] = 4, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(114), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(116), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(120), 1, - sym_escape_sequence, - ACTIONS(122), 1, - anon_sym_DQUOTE2, STATE(39), 1, sym_comment, - STATE(40), 1, - aux_sym_interpreted_string_literal_repeat1, - [1141] = 6, - ACTIONS(112), 1, - anon_sym_SLASH_SLASH, - ACTIONS(114), 1, - anon_sym_SLASH_STAR, - ACTIONS(124), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(127), 1, - anon_sym_DQUOTE2, - ACTIONS(129), 1, - sym_escape_sequence, - STATE(40), 2, - sym_comment, - aux_sym_interpreted_string_literal_repeat1, - [1161] = 7, + ACTIONS(111), 7, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [1218] = 8, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5133,779 +5283,1097 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(19), 1, + ACTIONS(113), 1, + anon_sym_RPAREN, + STATE(23), 1, sym_interpreted_string_literal, - STATE(41), 1, + STATE(40), 1, sym_comment, - STATE(83), 1, + STATE(72), 1, sym__string_literal, - [1183] = 7, + [1243] = 6, + ACTIONS(115), 1, + anon_sym_SLASH_SLASH, + ACTIONS(117), 1, + anon_sym_SLASH_STAR, + ACTIONS(119), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(122), 1, + anon_sym_DQUOTE2, + ACTIONS(124), 1, + sym_escape_sequence, + STATE(41), 2, + sym_comment, + aux_sym_interpreted_string_literal_repeat1, + [1263] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(132), 1, + ACTIONS(127), 1, anon_sym_COMMA, - ACTIONS(134), 1, + ACTIONS(129), 1, anon_sym_RBRACK, - ACTIONS(136), 1, + ACTIONS(131), 1, anon_sym_PLUS, STATE(42), 1, sym_comment, - STATE(61), 1, + STATE(64), 1, aux_sym_list_expression_repeat1, - [1205] = 5, + [1285] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(138), 1, - anon_sym_COMMA, - ACTIONS(141), 1, - anon_sym_RBRACK, - STATE(43), 2, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + STATE(23), 1, + sym_interpreted_string_literal, + STATE(43), 1, sym_comment, - aux_sym_list_expression_repeat1, - [1222] = 6, + STATE(109), 1, + sym__string_literal, + [1307] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(143), 1, - anon_sym_RBRACE, - ACTIONS(145), 1, + ACTIONS(133), 1, + anon_sym_LPAREN, + ACTIONS(135), 1, sym_identifier, STATE(44), 1, sym_comment, - STATE(91), 1, - sym__colon_property, - [1241] = 6, - ACTIONS(3), 1, + STATE(135), 1, + sym__select_value, + STATE(137), 1, + sym_select_value, + [1329] = 7, + ACTIONS(115), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(117), 1, anon_sym_SLASH_STAR, - ACTIONS(147), 1, - anon_sym_COMMA, - ACTIONS(149), 1, - anon_sym_RBRACE, + ACTIONS(137), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(139), 1, + anon_sym_DQUOTE2, + ACTIONS(141), 1, + sym_escape_sequence, + STATE(41), 1, + aux_sym_interpreted_string_literal_repeat1, STATE(45), 1, sym_comment, - STATE(55), 1, - aux_sym__old_module_repeat1, - [1260] = 5, - ACTIONS(112), 1, - anon_sym_SLASH_SLASH, - ACTIONS(114), 1, - anon_sym_SLASH_STAR, - ACTIONS(151), 1, - aux_sym_interpreted_string_literal_token1, - STATE(46), 1, - sym_comment, - ACTIONS(153), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, - [1277] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(155), 1, - anon_sym_COMMA, - ACTIONS(158), 1, - anon_sym_RPAREN, - STATE(47), 2, - sym_comment, - aux_sym_select_value_repeat1, - [1294] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(145), 1, - sym_identifier, - ACTIONS(160), 1, - anon_sym_RBRACE, - STATE(48), 1, - sym_comment, - STATE(91), 1, - sym__colon_property, - [1313] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(162), 1, - anon_sym_COMMA, - ACTIONS(164), 1, - anon_sym_RPAREN, - STATE(47), 1, - aux_sym_select_value_repeat1, - STATE(49), 1, - sym_comment, - [1332] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(166), 1, - anon_sym_COMMA, - ACTIONS(168), 1, - anon_sym_RBRACE, - STATE(50), 1, - sym_comment, - STATE(68), 1, - aux_sym__old_module_repeat1, [1351] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(170), 1, - anon_sym_RPAREN, - ACTIONS(172), 1, - sym_identifier, - STATE(51), 1, - sym_comment, - STATE(74), 1, - sym__equal_property, - [1370] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(145), 1, - sym_identifier, - ACTIONS(174), 1, - anon_sym_RBRACE, - STATE(52), 1, + anon_sym_LBRACE, + ACTIONS(147), 1, + anon_sym_LPAREN, + STATE(46), 1, sym_comment, - STATE(62), 1, - sym__colon_property, - [1389] = 6, + ACTIONS(143), 2, + anon_sym_EQ, + anon_sym_PLUS_EQ, + [1371] = 7, + ACTIONS(115), 1, + anon_sym_SLASH_SLASH, + ACTIONS(117), 1, + anon_sym_SLASH_STAR, + ACTIONS(137), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(141), 1, + sym_escape_sequence, + ACTIONS(149), 1, + anon_sym_DQUOTE2, + STATE(45), 1, + aux_sym_interpreted_string_literal_repeat1, + STATE(47), 1, + sym_comment, + [1393] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(176), 1, + ACTIONS(131), 1, + anon_sym_PLUS, + STATE(48), 1, + sym_comment, + ACTIONS(151), 2, anon_sym_COMMA, - ACTIONS(178), 1, anon_sym_RPAREN, - STATE(53), 1, - sym_comment, - STATE(65), 1, - aux_sym__new_module_repeat1, - [1408] = 6, + [1410] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(145), 1, - sym_identifier, - ACTIONS(180), 1, - anon_sym_RBRACE, - STATE(54), 1, - sym_comment, - STATE(91), 1, - sym__colon_property, - [1427] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(182), 1, + ACTIONS(153), 1, anon_sym_COMMA, - ACTIONS(184), 1, - anon_sym_RBRACE, - STATE(55), 1, - sym_comment, - STATE(68), 1, - aux_sym__old_module_repeat1, - [1446] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(162), 1, - anon_sym_COMMA, - ACTIONS(186), 1, + ACTIONS(155), 1, anon_sym_RPAREN, STATE(49), 1, - aux_sym_select_value_repeat1, - STATE(56), 1, sym_comment, + STATE(73), 1, + aux_sym_select_value_repeat1, + [1429] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(157), 1, + anon_sym_COMMA, + ACTIONS(159), 1, + anon_sym_RBRACE, + STATE(50), 1, + sym_comment, + STATE(59), 1, + aux_sym__old_module_repeat1, + [1448] = 5, + ACTIONS(115), 1, + anon_sym_SLASH_SLASH, + ACTIONS(117), 1, + anon_sym_SLASH_STAR, + ACTIONS(161), 1, + aux_sym_interpreted_string_literal_token1, + STATE(51), 1, + sym_comment, + ACTIONS(163), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, [1465] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(172), 1, + ACTIONS(165), 1, + anon_sym_RBRACE, + ACTIONS(167), 1, sym_identifier, - ACTIONS(188), 1, + STATE(52), 1, + sym_comment, + STATE(101), 1, + sym__colon_property, + [1484] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(169), 1, + anon_sym_COMMA, + ACTIONS(172), 1, + anon_sym_RPAREN, + STATE(53), 2, + sym_comment, + aux_sym__select_value_repeat1, + [1501] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(174), 1, + anon_sym_COMMA, + ACTIONS(176), 1, + anon_sym_RBRACE, + STATE(54), 1, + sym_comment, + STATE(70), 1, + aux_sym__old_module_repeat1, + [1520] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(178), 1, + anon_sym_RPAREN, + ACTIONS(180), 1, + sym_identifier, + STATE(55), 1, + sym_comment, + STATE(95), 1, + sym__equal_property, + [1539] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(56), 1, + sym_comment, + ACTIONS(182), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, + [1554] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(184), 1, + anon_sym_COMMA, + ACTIONS(186), 1, anon_sym_RPAREN, STATE(57), 1, sym_comment, - STATE(64), 1, - sym__equal_property, - [1484] = 6, + STATE(76), 1, + aux_sym__new_module_repeat1, + [1573] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(145), 1, + ACTIONS(167), 1, sym_identifier, - ACTIONS(190), 1, + ACTIONS(188), 1, anon_sym_RBRACE, - STATE(45), 1, - sym__colon_property, STATE(58), 1, sym_comment, - [1503] = 5, + STATE(101), 1, + sym__colon_property, + [1592] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(136), 1, - anon_sym_PLUS, + ACTIONS(190), 1, + anon_sym_COMMA, + ACTIONS(192), 1, + anon_sym_RBRACE, STATE(59), 1, sym_comment, - ACTIONS(192), 2, - anon_sym_COMMA, - anon_sym_RBRACK, - [1520] = 5, + STATE(70), 1, + aux_sym__old_module_repeat1, + [1611] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(136), 1, - anon_sym_PLUS, + ACTIONS(167), 1, + sym_identifier, + ACTIONS(194), 1, + anon_sym_RBRACE, STATE(60), 1, sym_comment, - ACTIONS(194), 2, - ts_builtin_sym_end, - sym_identifier, - [1537] = 6, + STATE(81), 1, + sym__colon_property, + [1630] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(196), 1, anon_sym_COMMA, - ACTIONS(198), 1, - anon_sym_RBRACK, - STATE(43), 1, - aux_sym_list_expression_repeat1, - STATE(61), 1, - sym_comment, - [1556] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(200), 1, - anon_sym_COMMA, - ACTIONS(202), 1, - anon_sym_RBRACE, - STATE(50), 1, - aux_sym__old_module_repeat1, - STATE(62), 1, - sym_comment, - [1575] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(136), 1, - anon_sym_PLUS, - STATE(63), 1, - sym_comment, - ACTIONS(204), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1592] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(206), 1, - anon_sym_COMMA, - ACTIONS(208), 1, + ACTIONS(199), 1, anon_sym_RPAREN, - STATE(53), 1, - aux_sym__new_module_repeat1, - STATE(64), 1, + STATE(61), 2, sym_comment, - [1611] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(210), 1, - anon_sym_COMMA, - ACTIONS(213), 1, - anon_sym_RPAREN, - STATE(65), 2, - sym_comment, - aux_sym__new_module_repeat1, - [1628] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(145), 1, - sym_identifier, - ACTIONS(215), 1, - anon_sym_RBRACE, - STATE(66), 1, - sym_comment, - STATE(91), 1, - sym__colon_property, + aux_sym_select_pattern_repeat1, [1647] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(172), 1, + ACTIONS(201), 1, + anon_sym_COMMA, + ACTIONS(203), 1, + anon_sym_RPAREN, + STATE(53), 1, + aux_sym__select_value_repeat1, + STATE(62), 1, + sym_comment, + [1666] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(180), 1, sym_identifier, - ACTIONS(217), 1, + ACTIONS(205), 1, + anon_sym_RPAREN, + STATE(63), 1, + sym_comment, + STATE(77), 1, + sym__equal_property, + [1685] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(207), 1, + anon_sym_COMMA, + ACTIONS(209), 1, + anon_sym_RBRACK, + STATE(64), 1, + sym_comment, + STATE(79), 1, + aux_sym_list_expression_repeat1, + [1704] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(131), 1, + anon_sym_PLUS, + STATE(65), 1, + sym_comment, + ACTIONS(211), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [1721] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(213), 1, + anon_sym_COMMA, + ACTIONS(216), 1, + anon_sym_RPAREN, + STATE(66), 2, + sym_comment, + aux_sym_select_value_repeat1, + [1738] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(135), 1, + sym_identifier, + ACTIONS(218), 1, anon_sym_RPAREN, STATE(67), 1, sym_comment, - STATE(74), 1, - sym__equal_property, - [1666] = 5, + STATE(100), 1, + sym__select_value, + [1757] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(219), 1, - anon_sym_COMMA, + ACTIONS(167), 1, + sym_identifier, + ACTIONS(220), 1, + anon_sym_RBRACE, + STATE(68), 1, + sym_comment, + STATE(101), 1, + sym__colon_property, + [1776] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(167), 1, + sym_identifier, ACTIONS(222), 1, anon_sym_RBRACE, - STATE(68), 2, - sym_comment, - aux_sym__old_module_repeat1, - [1683] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(136), 1, - anon_sym_PLUS, + STATE(50), 1, + sym__colon_property, STATE(69), 1, sym_comment, - ACTIONS(224), 2, + [1795] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(224), 1, anon_sym_COMMA, - anon_sym_RPAREN, - [1700] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(70), 1, + ACTIONS(227), 1, + anon_sym_RBRACE, + STATE(70), 2, sym_comment, - ACTIONS(226), 2, - ts_builtin_sym_end, - sym_identifier, - [1714] = 4, + aux_sym__old_module_repeat1, + [1812] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(64), 1, + anon_sym_RPAREN, + ACTIONS(229), 1, + anon_sym_COMMA, + STATE(61), 1, + aux_sym_select_pattern_repeat1, STATE(71), 1, sym_comment, - ACTIONS(228), 2, - ts_builtin_sym_end, - sym_identifier, - [1728] = 4, + [1831] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(201), 1, + anon_sym_COMMA, + ACTIONS(231), 1, + anon_sym_RPAREN, + STATE(62), 1, + aux_sym__select_value_repeat1, STATE(72), 1, sym_comment, - ACTIONS(230), 2, - ts_builtin_sym_end, - sym_identifier, - [1742] = 4, + [1850] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(233), 1, + anon_sym_COMMA, + ACTIONS(235), 1, + anon_sym_RPAREN, + STATE(66), 1, + aux_sym_select_value_repeat1, STATE(73), 1, sym_comment, - ACTIONS(232), 2, - ts_builtin_sym_end, - sym_identifier, - [1756] = 4, + [1869] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(180), 1, + sym_identifier, + ACTIONS(237), 1, + anon_sym_RPAREN, STATE(74), 1, sym_comment, - ACTIONS(234), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [1770] = 4, + STATE(95), 1, + sym__equal_property, + [1888] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(135), 1, + sym_identifier, + ACTIONS(239), 1, + anon_sym_RPAREN, STATE(75), 1, sym_comment, - ACTIONS(236), 2, - ts_builtin_sym_end, - sym_identifier, - [1784] = 5, + STATE(100), 1, + sym__select_value, + [1907] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(136), 1, - anon_sym_PLUS, - ACTIONS(238), 1, + ACTIONS(241), 1, anon_sym_COMMA, - STATE(76), 1, + ACTIONS(244), 1, + anon_sym_RPAREN, + STATE(76), 2, sym_comment, - [1800] = 5, + aux_sym__new_module_repeat1, + [1924] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(240), 1, - sym_identifier, + ACTIONS(246), 1, + anon_sym_COMMA, + ACTIONS(248), 1, + anon_sym_RPAREN, + STATE(57), 1, + aux_sym__new_module_repeat1, STATE(77), 1, sym_comment, - STATE(93), 1, - sym_select_value, - [1816] = 4, + [1943] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(167), 1, + sym_identifier, + ACTIONS(250), 1, + anon_sym_RBRACE, STATE(78), 1, sym_comment, - ACTIONS(242), 2, - ts_builtin_sym_end, - sym_identifier, - [1830] = 5, + STATE(101), 1, + sym__colon_property, + [1962] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(244), 1, - anon_sym_LBRACE, - STATE(79), 1, + ACTIONS(252), 1, + anon_sym_COMMA, + ACTIONS(255), 1, + anon_sym_RBRACK, + STATE(79), 2, sym_comment, - STATE(103), 1, - sym_select_cases, - [1846] = 4, + aux_sym_list_expression_repeat1, + [1979] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(257), 1, + anon_sym_COMMA, + ACTIONS(259), 1, + anon_sym_RPAREN, + STATE(71), 1, + aux_sym_select_pattern_repeat1, STATE(80), 1, sym_comment, - ACTIONS(246), 2, - ts_builtin_sym_end, - sym_identifier, - [1860] = 4, + [1998] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(261), 1, + anon_sym_COMMA, + ACTIONS(263), 1, + anon_sym_RBRACE, + STATE(54), 1, + aux_sym__old_module_repeat1, STATE(81), 1, sym_comment, - ACTIONS(248), 2, - ts_builtin_sym_end, - sym_identifier, - [1874] = 4, + [2017] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(131), 1, + anon_sym_PLUS, STATE(82), 1, sym_comment, - ACTIONS(250), 2, + ACTIONS(265), 2, ts_builtin_sym_end, sym_identifier, - [1888] = 4, + [2034] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(131), 1, + anon_sym_PLUS, STATE(83), 1, sym_comment, - ACTIONS(158), 2, + ACTIONS(267), 2, anon_sym_COMMA, - anon_sym_RPAREN, - [1902] = 4, + anon_sym_RBRACK, + [2051] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(84), 1, sym_comment, - ACTIONS(252), 2, + ACTIONS(269), 2, ts_builtin_sym_end, sym_identifier, - [1916] = 4, + [2065] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(85), 1, sym_comment, - ACTIONS(254), 2, + ACTIONS(271), 2, ts_builtin_sym_end, sym_identifier, - [1930] = 5, + [2079] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(145), 1, - sym_identifier, + ACTIONS(273), 1, + anon_sym_LBRACE, STATE(86), 1, sym_comment, - STATE(91), 1, - sym__colon_property, - [1946] = 4, + STATE(123), 1, + sym_select_cases, + [2095] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(87), 1, sym_comment, - ACTIONS(256), 2, + ACTIONS(275), 2, ts_builtin_sym_end, sym_identifier, - [1960] = 5, + [2109] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(172), 1, - sym_identifier, - STATE(74), 1, - sym__equal_property, STATE(88), 1, sym_comment, - [1976] = 4, + ACTIONS(277), 2, + ts_builtin_sym_end, + sym_identifier, + [2123] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(167), 1, + sym_identifier, STATE(89), 1, sym_comment, - ACTIONS(248), 2, - ts_builtin_sym_end, - sym_identifier, - [1990] = 4, + STATE(101), 1, + sym__colon_property, + [2139] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(90), 1, sym_comment, - ACTIONS(258), 2, + ACTIONS(279), 2, ts_builtin_sym_end, sym_identifier, - [2004] = 4, + [2153] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(180), 1, + sym_identifier, STATE(91), 1, sym_comment, - ACTIONS(260), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [2018] = 4, + STATE(95), 1, + sym__equal_property, + [2169] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(262), 1, - anon_sym_LPAREN, STATE(92), 1, sym_comment, - [2031] = 4, + ACTIONS(281), 2, + ts_builtin_sym_end, + sym_identifier, + [2183] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(264), 1, - anon_sym_COMMA, STATE(93), 1, sym_comment, - [2044] = 4, + ACTIONS(283), 2, + ts_builtin_sym_end, + sym_identifier, + [2197] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(266), 1, - anon_sym_SLASH, STATE(94), 1, sym_comment, - [2057] = 4, + ACTIONS(269), 2, + ts_builtin_sym_end, + sym_identifier, + [2211] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(268), 1, - anon_sym_COMMA, STATE(95), 1, sym_comment, - [2070] = 4, + ACTIONS(285), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2225] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(270), 1, - anon_sym_COLON, STATE(96), 1, sym_comment, - [2083] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(272), 1, - anon_sym_COMMA, - STATE(97), 1, - sym_comment, - [2096] = 4, - ACTIONS(112), 1, - anon_sym_SLASH_SLASH, - ACTIONS(114), 1, - anon_sym_SLASH_STAR, - ACTIONS(274), 1, - aux_sym_comment_token1, - STATE(98), 1, - sym_comment, - [2109] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(276), 1, - anon_sym_RPAREN, - STATE(99), 1, - sym_comment, - [2122] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(278), 1, - anon_sym_COLON, - STATE(100), 1, - sym_comment, - [2135] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(280), 1, - anon_sym_COMMA, - STATE(101), 1, - sym_comment, - [2148] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(282), 1, - anon_sym_COMMA, - STATE(102), 1, - sym_comment, - [2161] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(284), 1, - anon_sym_RPAREN, - STATE(103), 1, - sym_comment, - [2174] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(286), 1, - anon_sym_LPAREN, - STATE(104), 1, - sym_comment, - [2187] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(288), 1, - anon_sym_COMMA, - STATE(105), 1, - sym_comment, - [2200] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(290), 1, - anon_sym_EQ, - STATE(106), 1, - sym_comment, - [2213] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(292), 1, - aux_sym_integer_literal_token1, - STATE(107), 1, - sym_comment, - [2226] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(294), 1, + ACTIONS(287), 2, ts_builtin_sym_end, - STATE(108), 1, - sym_comment, + sym_identifier, [2239] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(296), 1, + STATE(97), 1, + sym_comment, + ACTIONS(289), 2, + anon_sym_COMMA, anon_sym_RPAREN, - STATE(109), 1, - sym_comment, - [2252] = 4, - ACTIONS(112), 1, - anon_sym_SLASH_SLASH, - ACTIONS(114), 1, - anon_sym_SLASH_STAR, - ACTIONS(298), 1, - aux_sym_comment_token2, - STATE(110), 1, - sym_comment, - [2265] = 4, + [2253] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(238), 1, + STATE(98), 1, + sym_comment, + ACTIONS(291), 2, + ts_builtin_sym_end, + sym_identifier, + [2267] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(99), 1, + sym_comment, + ACTIONS(293), 2, + ts_builtin_sym_end, + sym_identifier, + [2281] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(100), 1, + sym_comment, + ACTIONS(295), 2, anon_sym_COMMA, + anon_sym_RPAREN, + [2295] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(101), 1, + sym_comment, + ACTIONS(297), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [2309] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(102), 1, + sym_comment, + ACTIONS(299), 2, + ts_builtin_sym_end, + sym_identifier, + [2323] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(131), 1, + anon_sym_PLUS, + ACTIONS(301), 1, + anon_sym_COMMA, + STATE(103), 1, + sym_comment, + [2339] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(104), 1, + sym_comment, + ACTIONS(303), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2353] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(105), 1, + sym_comment, + ACTIONS(199), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2367] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(135), 1, + sym_identifier, + STATE(49), 1, + sym__select_value, + STATE(106), 1, + sym_comment, + [2383] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(107), 1, + sym_comment, + ACTIONS(305), 2, + ts_builtin_sym_end, + sym_identifier, + [2397] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(135), 1, + sym_identifier, + STATE(100), 1, + sym__select_value, + STATE(108), 1, + sym_comment, + [2413] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(109), 1, + sym_comment, + ACTIONS(172), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2427] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(110), 1, + sym_comment, + ACTIONS(307), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2441] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, STATE(111), 1, sym_comment, - [2278] = 1, - ACTIONS(300), 1, + ACTIONS(309), 2, ts_builtin_sym_end, - [2282] = 1, - ACTIONS(302), 1, + sym_identifier, + [2455] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(311), 1, + anon_sym_LPAREN, + STATE(112), 1, + sym_comment, + [2468] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(301), 1, + anon_sym_COMMA, + STATE(113), 1, + sym_comment, + [2481] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(313), 1, + anon_sym_COLON, + STATE(114), 1, + sym_comment, + [2494] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(315), 1, + anon_sym_COLON, + STATE(115), 1, + sym_comment, + [2507] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(317), 1, + anon_sym_SLASH, + STATE(116), 1, + sym_comment, + [2520] = 4, + ACTIONS(115), 1, + anon_sym_SLASH_SLASH, + ACTIONS(117), 1, + anon_sym_SLASH_STAR, + ACTIONS(319), 1, + aux_sym_comment_token2, + STATE(117), 1, + sym_comment, + [2533] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(321), 1, + anon_sym_COMMA, + STATE(118), 1, + sym_comment, + [2546] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(323), 1, + anon_sym_COLON, + STATE(119), 1, + sym_comment, + [2559] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(325), 1, + anon_sym_COMMA, + STATE(120), 1, + sym_comment, + [2572] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(327), 1, + anon_sym_RPAREN, + STATE(121), 1, + sym_comment, + [2585] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(329), 1, + anon_sym_COMMA, + STATE(122), 1, + sym_comment, + [2598] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(331), 1, + anon_sym_RPAREN, + STATE(123), 1, + sym_comment, + [2611] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(333), 1, + anon_sym_LPAREN, + STATE(124), 1, + sym_comment, + [2624] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(335), 1, + aux_sym_integer_literal_token1, + STATE(125), 1, + sym_comment, + [2637] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(337), 1, + anon_sym_RPAREN, + STATE(126), 1, + sym_comment, + [2650] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(339), 1, + anon_sym_COMMA, + STATE(127), 1, + sym_comment, + [2663] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(341), 1, + anon_sym_COLON, + STATE(128), 1, + sym_comment, + [2676] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(343), 1, + anon_sym_COLON, + STATE(129), 1, + sym_comment, + [2689] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(345), 1, + anon_sym_EQ, + STATE(130), 1, + sym_comment, + [2702] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(347), 1, + anon_sym_COMMA, + STATE(131), 1, + sym_comment, + [2715] = 4, + ACTIONS(115), 1, + anon_sym_SLASH_SLASH, + ACTIONS(117), 1, + anon_sym_SLASH_STAR, + ACTIONS(349), 1, + aux_sym_comment_token1, + STATE(132), 1, + sym_comment, + [2728] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(351), 1, + anon_sym_COMMA, + STATE(133), 1, + sym_comment, + [2741] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(353), 1, + anon_sym_COLON, + STATE(134), 1, + sym_comment, + [2754] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(355), 1, + anon_sym_COMMA, + STATE(135), 1, + sym_comment, + [2767] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(357), 1, + ts_builtin_sym_end, + STATE(136), 1, + sym_comment, + [2780] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(359), 1, + anon_sym_COMMA, + STATE(137), 1, + sym_comment, + [2793] = 1, + ACTIONS(361), 1, + ts_builtin_sym_end, + [2797] = 1, + ACTIONS(363), 1, ts_builtin_sym_end, }; @@ -5920,258 +6388,313 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(9)] = 386, [SMALL_STATE(10)] = 439, [SMALL_STATE(11)] = 492, - [SMALL_STATE(12)] = 529, - [SMALL_STATE(13)] = 568, - [SMALL_STATE(14)] = 607, - [SMALL_STATE(15)] = 627, - [SMALL_STATE(16)] = 659, - [SMALL_STATE(17)] = 679, - [SMALL_STATE(18)] = 709, - [SMALL_STATE(19)] = 729, - [SMALL_STATE(20)] = 749, - [SMALL_STATE(21)] = 768, - [SMALL_STATE(22)] = 787, - [SMALL_STATE(23)] = 806, - [SMALL_STATE(24)] = 825, - [SMALL_STATE(25)] = 844, - [SMALL_STATE(26)] = 863, - [SMALL_STATE(27)] = 882, - [SMALL_STATE(28)] = 901, - [SMALL_STATE(29)] = 920, - [SMALL_STATE(30)] = 939, - [SMALL_STATE(31)] = 958, - [SMALL_STATE(32)] = 977, - [SMALL_STATE(33)] = 996, - [SMALL_STATE(34)] = 1015, - [SMALL_STATE(35)] = 1034, - [SMALL_STATE(36)] = 1052, - [SMALL_STATE(37)] = 1077, - [SMALL_STATE(38)] = 1097, - [SMALL_STATE(39)] = 1119, - [SMALL_STATE(40)] = 1141, - [SMALL_STATE(41)] = 1161, - [SMALL_STATE(42)] = 1183, - [SMALL_STATE(43)] = 1205, - [SMALL_STATE(44)] = 1222, - [SMALL_STATE(45)] = 1241, - [SMALL_STATE(46)] = 1260, - [SMALL_STATE(47)] = 1277, - [SMALL_STATE(48)] = 1294, - [SMALL_STATE(49)] = 1313, - [SMALL_STATE(50)] = 1332, - [SMALL_STATE(51)] = 1351, - [SMALL_STATE(52)] = 1370, - [SMALL_STATE(53)] = 1389, - [SMALL_STATE(54)] = 1408, - [SMALL_STATE(55)] = 1427, - [SMALL_STATE(56)] = 1446, - [SMALL_STATE(57)] = 1465, - [SMALL_STATE(58)] = 1484, - [SMALL_STATE(59)] = 1503, - [SMALL_STATE(60)] = 1520, - [SMALL_STATE(61)] = 1537, - [SMALL_STATE(62)] = 1556, - [SMALL_STATE(63)] = 1575, - [SMALL_STATE(64)] = 1592, - [SMALL_STATE(65)] = 1611, - [SMALL_STATE(66)] = 1628, - [SMALL_STATE(67)] = 1647, - [SMALL_STATE(68)] = 1666, - [SMALL_STATE(69)] = 1683, - [SMALL_STATE(70)] = 1700, - [SMALL_STATE(71)] = 1714, - [SMALL_STATE(72)] = 1728, - [SMALL_STATE(73)] = 1742, - [SMALL_STATE(74)] = 1756, - [SMALL_STATE(75)] = 1770, - [SMALL_STATE(76)] = 1784, - [SMALL_STATE(77)] = 1800, - [SMALL_STATE(78)] = 1816, - [SMALL_STATE(79)] = 1830, - [SMALL_STATE(80)] = 1846, - [SMALL_STATE(81)] = 1860, - [SMALL_STATE(82)] = 1874, - [SMALL_STATE(83)] = 1888, - [SMALL_STATE(84)] = 1902, - [SMALL_STATE(85)] = 1916, - [SMALL_STATE(86)] = 1930, - [SMALL_STATE(87)] = 1946, - [SMALL_STATE(88)] = 1960, - [SMALL_STATE(89)] = 1976, - [SMALL_STATE(90)] = 1990, - [SMALL_STATE(91)] = 2004, - [SMALL_STATE(92)] = 2018, - [SMALL_STATE(93)] = 2031, - [SMALL_STATE(94)] = 2044, - [SMALL_STATE(95)] = 2057, - [SMALL_STATE(96)] = 2070, - [SMALL_STATE(97)] = 2083, - [SMALL_STATE(98)] = 2096, - [SMALL_STATE(99)] = 2109, - [SMALL_STATE(100)] = 2122, - [SMALL_STATE(101)] = 2135, - [SMALL_STATE(102)] = 2148, - [SMALL_STATE(103)] = 2161, - [SMALL_STATE(104)] = 2174, - [SMALL_STATE(105)] = 2187, - [SMALL_STATE(106)] = 2200, - [SMALL_STATE(107)] = 2213, - [SMALL_STATE(108)] = 2226, - [SMALL_STATE(109)] = 2239, - [SMALL_STATE(110)] = 2252, - [SMALL_STATE(111)] = 2265, - [SMALL_STATE(112)] = 2278, - [SMALL_STATE(113)] = 2282, + [SMALL_STATE(12)] = 540, + [SMALL_STATE(13)] = 588, + [SMALL_STATE(14)] = 634, + [SMALL_STATE(15)] = 670, + [SMALL_STATE(16)] = 706, + [SMALL_STATE(17)] = 739, + [SMALL_STATE(18)] = 772, + [SMALL_STATE(19)] = 792, + [SMALL_STATE(20)] = 822, + [SMALL_STATE(21)] = 854, + [SMALL_STATE(22)] = 874, + [SMALL_STATE(23)] = 894, + [SMALL_STATE(24)] = 914, + [SMALL_STATE(25)] = 933, + [SMALL_STATE(26)] = 952, + [SMALL_STATE(27)] = 971, + [SMALL_STATE(28)] = 990, + [SMALL_STATE(29)] = 1009, + [SMALL_STATE(30)] = 1028, + [SMALL_STATE(31)] = 1047, + [SMALL_STATE(32)] = 1066, + [SMALL_STATE(33)] = 1085, + [SMALL_STATE(34)] = 1104, + [SMALL_STATE(35)] = 1123, + [SMALL_STATE(36)] = 1142, + [SMALL_STATE(37)] = 1161, + [SMALL_STATE(38)] = 1180, + [SMALL_STATE(39)] = 1199, + [SMALL_STATE(40)] = 1218, + [SMALL_STATE(41)] = 1243, + [SMALL_STATE(42)] = 1263, + [SMALL_STATE(43)] = 1285, + [SMALL_STATE(44)] = 1307, + [SMALL_STATE(45)] = 1329, + [SMALL_STATE(46)] = 1351, + [SMALL_STATE(47)] = 1371, + [SMALL_STATE(48)] = 1393, + [SMALL_STATE(49)] = 1410, + [SMALL_STATE(50)] = 1429, + [SMALL_STATE(51)] = 1448, + [SMALL_STATE(52)] = 1465, + [SMALL_STATE(53)] = 1484, + [SMALL_STATE(54)] = 1501, + [SMALL_STATE(55)] = 1520, + [SMALL_STATE(56)] = 1539, + [SMALL_STATE(57)] = 1554, + [SMALL_STATE(58)] = 1573, + [SMALL_STATE(59)] = 1592, + [SMALL_STATE(60)] = 1611, + [SMALL_STATE(61)] = 1630, + [SMALL_STATE(62)] = 1647, + [SMALL_STATE(63)] = 1666, + [SMALL_STATE(64)] = 1685, + [SMALL_STATE(65)] = 1704, + [SMALL_STATE(66)] = 1721, + [SMALL_STATE(67)] = 1738, + [SMALL_STATE(68)] = 1757, + [SMALL_STATE(69)] = 1776, + [SMALL_STATE(70)] = 1795, + [SMALL_STATE(71)] = 1812, + [SMALL_STATE(72)] = 1831, + [SMALL_STATE(73)] = 1850, + [SMALL_STATE(74)] = 1869, + [SMALL_STATE(75)] = 1888, + [SMALL_STATE(76)] = 1907, + [SMALL_STATE(77)] = 1924, + [SMALL_STATE(78)] = 1943, + [SMALL_STATE(79)] = 1962, + [SMALL_STATE(80)] = 1979, + [SMALL_STATE(81)] = 1998, + [SMALL_STATE(82)] = 2017, + [SMALL_STATE(83)] = 2034, + [SMALL_STATE(84)] = 2051, + [SMALL_STATE(85)] = 2065, + [SMALL_STATE(86)] = 2079, + [SMALL_STATE(87)] = 2095, + [SMALL_STATE(88)] = 2109, + [SMALL_STATE(89)] = 2123, + [SMALL_STATE(90)] = 2139, + [SMALL_STATE(91)] = 2153, + [SMALL_STATE(92)] = 2169, + [SMALL_STATE(93)] = 2183, + [SMALL_STATE(94)] = 2197, + [SMALL_STATE(95)] = 2211, + [SMALL_STATE(96)] = 2225, + [SMALL_STATE(97)] = 2239, + [SMALL_STATE(98)] = 2253, + [SMALL_STATE(99)] = 2267, + [SMALL_STATE(100)] = 2281, + [SMALL_STATE(101)] = 2295, + [SMALL_STATE(102)] = 2309, + [SMALL_STATE(103)] = 2323, + [SMALL_STATE(104)] = 2339, + [SMALL_STATE(105)] = 2353, + [SMALL_STATE(106)] = 2367, + [SMALL_STATE(107)] = 2383, + [SMALL_STATE(108)] = 2397, + [SMALL_STATE(109)] = 2413, + [SMALL_STATE(110)] = 2427, + [SMALL_STATE(111)] = 2441, + [SMALL_STATE(112)] = 2455, + [SMALL_STATE(113)] = 2468, + [SMALL_STATE(114)] = 2481, + [SMALL_STATE(115)] = 2494, + [SMALL_STATE(116)] = 2507, + [SMALL_STATE(117)] = 2520, + [SMALL_STATE(118)] = 2533, + [SMALL_STATE(119)] = 2546, + [SMALL_STATE(120)] = 2559, + [SMALL_STATE(121)] = 2572, + [SMALL_STATE(122)] = 2585, + [SMALL_STATE(123)] = 2598, + [SMALL_STATE(124)] = 2611, + [SMALL_STATE(125)] = 2624, + [SMALL_STATE(126)] = 2637, + [SMALL_STATE(127)] = 2650, + [SMALL_STATE(128)] = 2663, + [SMALL_STATE(129)] = 2676, + [SMALL_STATE(130)] = 2689, + [SMALL_STATE(131)] = 2702, + [SMALL_STATE(132)] = 2715, + [SMALL_STATE(133)] = 2728, + [SMALL_STATE(134)] = 2741, + [SMALL_STATE(135)] = 2754, + [SMALL_STATE(136)] = 2767, + [SMALL_STATE(137)] = 2780, + [SMALL_STATE(138)] = 2793, + [SMALL_STATE(139)] = 2797, }; 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(98), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(132), + [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(37), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(25), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(14), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(104), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(111), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(35), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [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(14), - [42] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(19), - [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(38), - [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(100), - [51] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), - [53] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [55] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [57] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [59] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [61] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [63] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [65] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [67] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(37), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [96] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [98] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [100] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [102] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [104] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [110] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), - [112] = {.entry = {.count = 1, .reusable = false}}, SHIFT(98), - [114] = {.entry = {.count = 1, .reusable = false}}, SHIFT(110), - [116] = {.entry = {.count = 1, .reusable = false}}, SHIFT(46), - [118] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [120] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [122] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [124] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(46), - [127] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [129] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(46), - [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [138] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(8), - [141] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(54), - [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), - [151] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [153] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [155] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), SHIFT_REPEAT(41), - [158] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2), - [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), - [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), - [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), - [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), - [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), - [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), - [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [192] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [194] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [196] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [200] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), - [202] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), - [204] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [206] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [208] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [210] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), - [213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [215] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [217] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [219] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), - [222] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [224] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [226] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [232] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [240] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), - [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [244] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), - [246] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [248] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [252] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [254] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [256] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [258] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [260] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [262] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), - [264] = {.entry = {.count = 1, .reusable = true}}, SHIFT(79), - [266] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), - [268] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 17), - [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [272] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), - [274] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), - [276] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [280] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [282] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 14), - [284] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [286] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 16), - [290] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [292] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [294] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [296] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [298] = {.entry = {.count = 1, .reusable = false}}, SHIFT(94), - [300] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), - [302] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), + [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), + [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), + [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), + [47] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), + [49] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(16), + [52] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(22), + [55] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(23), + [58] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(47), + [61] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(56), + [64] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), + [66] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), + [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [72] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(46), + [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), + [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 7), + [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 7), + [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 12), + [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 12), + [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 13), + [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [105] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 8), + [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 13), + [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [115] = {.entry = {.count = 1, .reusable = false}}, SHIFT(132), + [117] = {.entry = {.count = 1, .reusable = false}}, SHIFT(117), + [119] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(51), + [122] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [124] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(51), + [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), + [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), + [135] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), + [137] = {.entry = {.count = 1, .reusable = false}}, SHIFT(51), + [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), + [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), + [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), + [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), + [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), + [151] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 9), + [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [155] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), + [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), + [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [161] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [163] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), + [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), + [169] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__select_value_repeat1, 2), SHIFT_REPEAT(43), + [172] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__select_value_repeat1, 2), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), + [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), + [178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), + [182] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), + [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), + [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), + [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [196] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(17), + [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), + [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), + [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [209] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 9), + [213] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, .production_id = 18), SHIFT_REPEAT(108), + [216] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, .production_id = 18), + [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), + [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), + [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [224] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 11), SHIFT_REPEAT(89), + [227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 11), + [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [231] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), + [233] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), + [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), + [237] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), + [241] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 11), SHIFT_REPEAT(91), + [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 11), + [246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [252] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 14), SHIFT_REPEAT(10), + [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 14), + [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), + [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), + [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), + [265] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 7), + [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), + [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [277] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 10), + [281] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [283] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 10), + [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [289] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_value, 3, .production_id = 16), + [291] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 10), + [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 10), + [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, .production_id = 15), + [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_value, 4, .production_id = 19), + [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [307] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_value, 5, .production_id = 20), + [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [311] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), + [313] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [315] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), + [317] = {.entry = {.count = 1, .reusable = false}}, SHIFT(138), + [319] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), + [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 17), + [323] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), + [325] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 17), + [327] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), + [331] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [333] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), + [335] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), + [337] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [339] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 15), + [341] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [343] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), + [345] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [347] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [349] = {.entry = {.count = 1, .reusable = false}}, SHIFT(139), + [351] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 21), + [353] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), + [355] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1, .production_id = 6), + [357] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [359] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), + [361] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), + [363] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index fc4bf04..281a985 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -19,10 +19,12 @@ foo = select(release_variable("RELEASE_TEST"), { (interpreted_string_literal)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (default) + (select_pattern + (default)) (unset)))))) ================================================================================ @@ -47,10 +49,12 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { (interpreted_string_literal)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (unset)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)))))) ================================================================================ @@ -76,16 +80,20 @@ foo = select(variant("arch"), { (interpreted_string_literal)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)))))) ================================================================================ @@ -130,19 +138,24 @@ foo = select(variant("VARIANT"), { (interpreted_string_literal)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (default) + (select_pattern + (default)) (unset)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)))))) ================================================================================ @@ -165,10 +178,12 @@ foo = select(variant(), { (identifier)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (unset)) (select_case - (default) + (select_pattern + (default)) (interpreted_string_literal)))))) ================================================================================ @@ -192,10 +207,12 @@ foo = select(some_unknown_type("CONDITION"), { (interpreted_string_literal)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (default) + (select_pattern + (default)) (interpreted_string_literal)))))) ================================================================================ @@ -220,10 +237,12 @@ foo = select(release_variable("ONE", "TWO"), { (interpreted_string_literal)) (select_cases (select_case - (interpreted_string_literal) + (select_pattern + (interpreted_string_literal)) (interpreted_string_literal)) (select_case - (default) + (select_pattern + (default)) (interpreted_string_literal)))))) ================================================================================ @@ -248,10 +267,65 @@ foo = select(some_boolean("VALUE",), { (ERROR)) (select_cases (select_case - (boolean_literal) + (select_pattern + (boolean_literal)) (interpreted_string_literal)) (select_case - (boolean_literal) + (select_pattern + (boolean_literal)) + (interpreted_string_literal)))))) + +================================================================================ +Select (trailing comma in values) +================================================================================ + +foo = select(( + arch(), + os(), +), { + (default, default): "true", +}) + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (select_expression + (select_value + (identifier) + (identifier)) + (select_cases + (select_case + (select_pattern + (default) + (default)) + (interpreted_string_literal)))))) + +================================================================================ +Select (trailing comma in pattern) +================================================================================ + +foo = select((arch(), os()), { + (default, default,): "true", +}) + +-------------------------------------------------------------------------------- + +(source_file + (assignment + (identifier) + (operator) + (select_expression + (select_value + (identifier) + (identifier)) + (select_cases + (select_case + (select_pattern + (default) + (default)) (interpreted_string_literal)))))) ================================================================================ @@ -275,10 +349,12 @@ foo = select(some_boolean("IS_TRUE"), { (interpreted_string_literal)) (select_cases (select_case - (boolean_literal) + (select_pattern + (boolean_literal)) (interpreted_string_literal)) (select_case - (boolean_literal) + (select_pattern + (boolean_literal)) (interpreted_string_literal)))))) ================================================================================ From d5654de519c0c5ddac66f0f1b57a60478b97fcb9 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:47:30 +0000 Subject: [PATCH 07/10] Expose 'condition' node --- grammar.js | 6 +- queries/highlights.scm | 2 +- src/grammar.json | 8 +- src/node-types.json | 73 +- src/parser.c | 1915 ++++++++++++++++++++-------------------- test/corpus/select.txt | 66 +- 6 files changed, 1032 insertions(+), 1038 deletions(-) diff --git a/grammar.js b/grammar.js index a9e0d8c..53bbe96 100644 --- a/grammar.js +++ b/grammar.js @@ -132,11 +132,11 @@ module.exports = grammar({ ), select_value: ($) => choice( - $._select_value, - seq("(", commaSeparatedOptTrailing($._select_value), ")"), + $.condition, + seq("(", commaSeparatedOptTrailing($.condition), ")"), ), - _select_value: ($) => seq( + condition: ($) => seq( field("name", $.identifier), "(", field("arguments", optional(commaSeparatedNoTrailing($._string_literal))), diff --git a/queries/highlights.scm b/queries/highlights.scm index 13cdcde..c574ffc 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -51,7 +51,7 @@ (unset) (default) ] @variable.builtin -(select_value +(condition name: (identifier) @function.builtin) ; }}} diff --git a/src/grammar.json b/src/grammar.json index f55607c..2cc4d5c 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -491,7 +491,7 @@ "members": [ { "type": "SYMBOL", - "name": "_select_value" + "name": "condition" }, { "type": "SEQ", @@ -505,7 +505,7 @@ "members": [ { "type": "SYMBOL", - "name": "_select_value" + "name": "condition" }, { "type": "REPEAT", @@ -518,7 +518,7 @@ }, { "type": "SYMBOL", - "name": "_select_value" + "name": "condition" } ] } @@ -545,7 +545,7 @@ } ] }, - "_select_value": { + "condition": { "type": "SEQ", "members": [ { diff --git a/src/node-types.json b/src/node-types.json index f1817a2..9c0e5c8 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -177,6 +177,40 @@ "named": true, "fields": {} }, + { + "type": "condition", + "named": true, + "fields": { + "arguments": { + "multiple": true, + "required": false, + "types": [ + { + "type": ",", + "named": false + }, + { + "type": "interpreted_string_literal", + "named": true + }, + { + "type": "raw_string_literal", + "named": true + } + ] + }, + "name": { + "multiple": false, + "required": true, + "types": [ + { + "type": "identifier", + "named": true + } + ] + } + } + }, { "type": "integer_literal", "named": true, @@ -471,35 +505,16 @@ { "type": "select_value", "named": true, - "fields": { - "arguments": { - "multiple": true, - "required": false, - "types": [ - { - "type": ",", - "named": false - }, - { - "type": "interpreted_string_literal", - "named": true - }, - { - "type": "raw_string_literal", - "named": true - } - ] - }, - "name": { - "multiple": true, - "required": true, - "types": [ - { - "type": "identifier", - "named": true - } - ] - } + "fields": {}, + "children": { + "multiple": true, + "required": true, + "types": [ + { + "type": "condition", + "named": true + } + ] } }, { diff --git a/src/parser.c b/src/parser.c index 2efc422..4b3960e 100644 --- a/src/parser.c +++ b/src/parser.c @@ -5,7 +5,7 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 140 +#define STATE_COUNT 139 #define LARGE_STATE_COUNT 2 #define SYMBOL_COUNT 64 #define ALIAS_COUNT 0 @@ -13,7 +13,7 @@ #define EXTERNAL_TOKEN_COUNT 0 #define FIELD_COUNT 11 #define MAX_ALIAS_SEQUENCE_LENGTH 6 -#define PRODUCTION_ID_COUNT 22 +#define PRODUCTION_ID_COUNT 18 enum ts_symbol_identifiers { anon_sym_SLASH_SLASH = 1, @@ -59,7 +59,7 @@ enum ts_symbol_identifiers { sym_interpreted_string_literal = 41, sym_select_expression = 42, sym_select_value = 43, - sym__select_value = 44, + sym_condition = 44, sym_select_cases = 45, sym_select_case = 46, sym_select_pattern = 47, @@ -75,7 +75,7 @@ enum ts_symbol_identifiers { aux_sym__new_module_repeat1 = 57, aux_sym_interpreted_string_literal_repeat1 = 58, aux_sym_select_value_repeat1 = 59, - aux_sym__select_value_repeat1 = 60, + aux_sym_condition_repeat1 = 60, aux_sym_select_cases_repeat1 = 61, aux_sym_select_pattern_repeat1 = 62, aux_sym_list_expression_repeat1 = 63, @@ -126,7 +126,7 @@ static const char * const ts_symbol_names[] = { [sym_interpreted_string_literal] = "interpreted_string_literal", [sym_select_expression] = "select_expression", [sym_select_value] = "select_value", - [sym__select_value] = "_select_value", + [sym_condition] = "condition", [sym_select_cases] = "select_cases", [sym_select_case] = "select_case", [sym_select_pattern] = "select_pattern", @@ -142,7 +142,7 @@ static const char * const ts_symbol_names[] = { [aux_sym__new_module_repeat1] = "_new_module_repeat1", [aux_sym_interpreted_string_literal_repeat1] = "interpreted_string_literal_repeat1", [aux_sym_select_value_repeat1] = "select_value_repeat1", - [aux_sym__select_value_repeat1] = "_select_value_repeat1", + [aux_sym_condition_repeat1] = "condition_repeat1", [aux_sym_select_cases_repeat1] = "select_cases_repeat1", [aux_sym_select_pattern_repeat1] = "select_pattern_repeat1", [aux_sym_list_expression_repeat1] = "list_expression_repeat1", @@ -193,7 +193,7 @@ static const TSSymbol ts_symbol_map[] = { [sym_interpreted_string_literal] = sym_interpreted_string_literal, [sym_select_expression] = sym_select_expression, [sym_select_value] = sym_select_value, - [sym__select_value] = sym__select_value, + [sym_condition] = sym_condition, [sym_select_cases] = sym_select_cases, [sym_select_case] = sym_select_case, [sym_select_pattern] = sym_select_pattern, @@ -209,7 +209,7 @@ static const TSSymbol ts_symbol_map[] = { [aux_sym__new_module_repeat1] = aux_sym__new_module_repeat1, [aux_sym_interpreted_string_literal_repeat1] = aux_sym_interpreted_string_literal_repeat1, [aux_sym_select_value_repeat1] = aux_sym_select_value_repeat1, - [aux_sym__select_value_repeat1] = aux_sym__select_value_repeat1, + [aux_sym_condition_repeat1] = aux_sym_condition_repeat1, [aux_sym_select_cases_repeat1] = aux_sym_select_cases_repeat1, [aux_sym_select_pattern_repeat1] = aux_sym_select_pattern_repeat1, [aux_sym_list_expression_repeat1] = aux_sym_list_expression_repeat1, @@ -392,8 +392,8 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [sym__select_value] = { - .visible = false, + [sym_condition] = { + .visible = true, .named = true, }, [sym_select_cases] = { @@ -456,7 +456,7 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = false, }, - [aux_sym__select_value_repeat1] = { + [aux_sym_condition_repeat1] = { .visible = false, .named = false, }, @@ -509,22 +509,18 @@ static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = { [3] = {.index = 5, .length = 1}, [4] = {.index = 6, .length = 4}, [5] = {.index = 10, .length = 3}, - [6] = {.index = 13, .length = 2}, - [7] = {.index = 15, .length = 1}, - [8] = {.index = 2, .length = 3}, - [9] = {.index = 16, .length = 2}, - [10] = {.index = 18, .length = 5}, - [11] = {.index = 23, .length = 2}, - [12] = {.index = 25, .length = 4}, + [6] = {.index = 13, .length = 1}, + [7] = {.index = 2, .length = 3}, + [8] = {.index = 14, .length = 2}, + [9] = {.index = 16, .length = 5}, + [10] = {.index = 21, .length = 2}, + [11] = {.index = 23, .length = 4}, + [12] = {.index = 27, .length = 2}, [13] = {.index = 29, .length = 2}, - [14] = {.index = 31, .length = 2}, - [15] = {.index = 33, .length = 2}, - [16] = {.index = 35, .length = 1}, - [17] = {.index = 36, .length = 4}, - [18] = {.index = 40, .length = 4}, - [19] = {.index = 44, .length = 2}, - [20] = {.index = 46, .length = 3}, - [21] = {.index = 49, .length = 2}, + [14] = {.index = 31, .length = 1}, + [15] = {.index = 32, .length = 2}, + [16] = {.index = 34, .length = 3}, + [17] = {.index = 37, .length = 2}, }; static const TSFieldMapEntry ts_field_map_entries[] = { @@ -547,56 +543,40 @@ static const TSFieldMapEntry ts_field_map_entries[] = { {field_property, 1}, {field_value, 1, .inherited = true}, [13] = - {field_arguments, 0, .inherited = true}, - {field_name, 0, .inherited = true}, - [15] = {field_element, 1}, - [16] = + [14] = {field_field, 0}, {field_value, 2}, - [18] = + [16] = {field_field, 2, .inherited = true}, {field_property, 2}, {field_property, 3, .inherited = true}, {field_type, 0}, {field_value, 2, .inherited = true}, - [23] = + [21] = {field_property, 0, .inherited = true}, {field_property, 1, .inherited = true}, - [25] = + [23] = {field_field, 1, .inherited = true}, {field_property, 1}, {field_property, 2, .inherited = true}, {field_value, 1, .inherited = true}, - [29] = + [27] = {field_element, 1}, {field_element, 2, .inherited = true}, - [31] = + [29] = {field_element, 0, .inherited = true}, {field_element, 1, .inherited = true}, - [33] = - {field_arguments, 1, .inherited = true}, - {field_name, 1, .inherited = true}, - [35] = + [31] = {field_name, 0}, - [36] = - {field_arguments, 1, .inherited = true}, - {field_arguments, 2, .inherited = true}, - {field_name, 1, .inherited = true}, - {field_name, 2, .inherited = true}, - [40] = - {field_arguments, 0, .inherited = true}, - {field_arguments, 1, .inherited = true}, - {field_name, 0, .inherited = true}, - {field_name, 1, .inherited = true}, - [44] = + [32] = {field_arguments, 2}, {field_name, 0}, - [46] = + [34] = {field_arguments, 2}, {field_arguments, 3}, {field_name, 0}, - [49] = + [37] = {field_pattern, 0}, {field_value, 2}, }; @@ -752,7 +732,6 @@ static const TSStateId ts_primary_state_ids[STATE_COUNT] = { [136] = 136, [137] = 137, [138] = 138, - [139] = 139, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -4232,88 +4211,88 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [38] = {.lex_state = 37}, [39] = {.lex_state = 37}, [40] = {.lex_state = 37}, - [41] = {.lex_state = 1}, + [41] = {.lex_state = 4}, [42] = {.lex_state = 37}, [43] = {.lex_state = 37}, - [44] = {.lex_state = 37}, + [44] = {.lex_state = 1}, [45] = {.lex_state = 1}, - [46] = {.lex_state = 4}, - [47] = {.lex_state = 1}, + [46] = {.lex_state = 1}, + [47] = {.lex_state = 37}, [48] = {.lex_state = 37}, - [49] = {.lex_state = 0}, + [49] = {.lex_state = 37}, [50] = {.lex_state = 0}, - [51] = {.lex_state = 1}, + [51] = {.lex_state = 37}, [52] = {.lex_state = 37}, [53] = {.lex_state = 0}, [54] = {.lex_state = 0}, [55] = {.lex_state = 37}, - [56] = {.lex_state = 0}, - [57] = {.lex_state = 0}, - [58] = {.lex_state = 37}, + [56] = {.lex_state = 37}, + [57] = {.lex_state = 37}, + [58] = {.lex_state = 0}, [59] = {.lex_state = 0}, - [60] = {.lex_state = 37}, - [61] = {.lex_state = 0}, - [62] = {.lex_state = 0}, - [63] = {.lex_state = 37}, + [60] = {.lex_state = 0}, + [61] = {.lex_state = 37}, + [62] = {.lex_state = 37}, + [63] = {.lex_state = 0}, [64] = {.lex_state = 0}, - [65] = {.lex_state = 37}, + [65] = {.lex_state = 0}, [66] = {.lex_state = 0}, - [67] = {.lex_state = 37}, + [67] = {.lex_state = 0}, [68] = {.lex_state = 37}, [69] = {.lex_state = 37}, [70] = {.lex_state = 0}, - [71] = {.lex_state = 0}, - [72] = {.lex_state = 0}, + [71] = {.lex_state = 37}, + [72] = {.lex_state = 37}, [73] = {.lex_state = 0}, - [74] = {.lex_state = 37}, + [74] = {.lex_state = 1}, [75] = {.lex_state = 37}, [76] = {.lex_state = 0}, [77] = {.lex_state = 0}, - [78] = {.lex_state = 37}, + [78] = {.lex_state = 0}, [79] = {.lex_state = 0}, - [80] = {.lex_state = 0}, + [80] = {.lex_state = 37}, [81] = {.lex_state = 0}, - [82] = {.lex_state = 37}, - [83] = {.lex_state = 37}, - [84] = {.lex_state = 37}, + [82] = {.lex_state = 0}, + [83] = {.lex_state = 0}, + [84] = {.lex_state = 0}, [85] = {.lex_state = 37}, [86] = {.lex_state = 0}, - [87] = {.lex_state = 37}, + [87] = {.lex_state = 0}, [88] = {.lex_state = 37}, [89] = {.lex_state = 37}, [90] = {.lex_state = 37}, [91] = {.lex_state = 37}, [92] = {.lex_state = 37}, [93] = {.lex_state = 37}, - [94] = {.lex_state = 37}, - [95] = {.lex_state = 0}, - [96] = {.lex_state = 37}, - [97] = {.lex_state = 0}, + [94] = {.lex_state = 0}, + [95] = {.lex_state = 37}, + [96] = {.lex_state = 0}, + [97] = {.lex_state = 37}, [98] = {.lex_state = 37}, [99] = {.lex_state = 37}, - [100] = {.lex_state = 0}, - [101] = {.lex_state = 0}, - [102] = {.lex_state = 37}, - [103] = {.lex_state = 37}, - [104] = {.lex_state = 0}, - [105] = {.lex_state = 0}, + [100] = {.lex_state = 37}, + [101] = {.lex_state = 37}, + [102] = {.lex_state = 0}, + [103] = {.lex_state = 0}, + [104] = {.lex_state = 37}, + [105] = {.lex_state = 37}, [106] = {.lex_state = 37}, - [107] = {.lex_state = 37}, - [108] = {.lex_state = 37}, - [109] = {.lex_state = 0}, - [110] = {.lex_state = 0}, + [107] = {.lex_state = 0}, + [108] = {.lex_state = 0}, + [109] = {.lex_state = 37}, + [110] = {.lex_state = 37}, [111] = {.lex_state = 37}, [112] = {.lex_state = 0}, [113] = {.lex_state = 0}, [114] = {.lex_state = 0}, - [115] = {.lex_state = 0}, + [115] = {.lex_state = 44}, [116] = {.lex_state = 0}, - [117] = {.lex_state = 7}, + [117] = {.lex_state = 0}, [118] = {.lex_state = 0}, [119] = {.lex_state = 0}, [120] = {.lex_state = 0}, [121] = {.lex_state = 0}, - [122] = {.lex_state = 0}, + [122] = {.lex_state = 7}, [123] = {.lex_state = 0}, [124] = {.lex_state = 0}, [125] = {.lex_state = 0}, @@ -4323,14 +4302,13 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [129] = {.lex_state = 0}, [130] = {.lex_state = 0}, [131] = {.lex_state = 0}, - [132] = {.lex_state = 44}, + [132] = {.lex_state = 0}, [133] = {.lex_state = 0}, [134] = {.lex_state = 0}, [135] = {.lex_state = 0}, [136] = {.lex_state = 0}, - [137] = {.lex_state = 0}, + [137] = {(TSStateId)(-1)}, [138] = {(TSStateId)(-1)}, - [139] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -4366,13 +4344,13 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { }, [1] = { [sym_source_file] = STATE(136), - [sym__definition] = STATE(92), + [sym__definition] = STATE(93), [sym_comment] = STATE(1), - [sym_assignment] = STATE(88), - [sym_module] = STATE(88), - [sym__old_module] = STATE(94), - [sym__new_module] = STATE(84), - [aux_sym_source_file_repeat1] = STATE(20), + [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), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -4408,14 +4386,14 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(103), 1, + STATE(98), 1, sym__expr, - STATE(133), 1, + STATE(132), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4450,12 +4428,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(83), 1, + STATE(80), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4490,12 +4468,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(83), 1, + STATE(42), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4530,12 +4508,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(42), 1, + STATE(80), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4568,12 +4546,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(82), 1, + STATE(80), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4606,12 +4584,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(48), 1, + STATE(56), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4644,12 +4622,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(65), 1, + STATE(71), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4682,12 +4660,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(36), 1, + STATE(49), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4720,12 +4698,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(83), 1, + STATE(37), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(35), 7, + STATE(30), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -4733,40 +4711,39 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [492] = 15, + [492] = 14, 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(37), 1, anon_sym_RBRACE, ACTIONS(39), 1, anon_sym_LPAREN, - ACTIONS(43), 1, + ACTIONS(45), 1, + sym_raw_string_literal, + ACTIONS(48), 1, + anon_sym_DQUOTE, + ACTIONS(51), 1, anon_sym_default, - STATE(11), 1, - sym_comment, - STATE(12), 1, - aux_sym_select_cases_repeat1, STATE(23), 1, sym_interpreted_string_literal, STATE(114), 1, - sym_select_pattern, - STATE(115), 1, sym__select_pattern, - STATE(131), 1, + STATE(118), 1, sym_select_case, - ACTIONS(41), 2, + STATE(125), 1, + sym_select_pattern, + ACTIONS(42), 2, anon_sym_true, anon_sym_false, - STATE(56), 2, + STATE(11), 2, + sym_comment, + aux_sym_select_cases_repeat1, + STATE(82), 2, sym_boolean_literal, sym__string_literal, - [540] = 15, + [538] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -4775,12 +4752,12 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(39), 1, - anon_sym_LPAREN, - ACTIONS(43), 1, - anon_sym_default, - ACTIONS(45), 1, + ACTIONS(54), 1, anon_sym_RBRACE, + ACTIONS(56), 1, + anon_sym_LPAREN, + ACTIONS(60), 1, + anon_sym_default, STATE(12), 1, sym_comment, STATE(13), 1, @@ -4788,47 +4765,48 @@ static const uint16_t ts_small_parse_table[] = { STATE(23), 1, sym_interpreted_string_literal, STATE(114), 1, - sym_select_pattern, - STATE(115), 1, sym__select_pattern, - STATE(131), 1, + STATE(118), 1, sym_select_case, - ACTIONS(41), 2, + STATE(125), 1, + sym_select_pattern, + ACTIONS(58), 2, anon_sym_true, anon_sym_false, - STATE(56), 2, + STATE(82), 2, sym_boolean_literal, sym__string_literal, - [588] = 14, + [586] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(47), 1, - anon_sym_RBRACE, - ACTIONS(49), 1, - anon_sym_LPAREN, - ACTIONS(55), 1, + ACTIONS(21), 1, sym_raw_string_literal, - ACTIONS(58), 1, + ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(61), 1, + ACTIONS(56), 1, + anon_sym_LPAREN, + ACTIONS(60), 1, anon_sym_default, + ACTIONS(62), 1, + anon_sym_RBRACE, + STATE(11), 1, + aux_sym_select_cases_repeat1, + STATE(13), 1, + sym_comment, STATE(23), 1, sym_interpreted_string_literal, STATE(114), 1, - sym_select_pattern, - STATE(115), 1, sym__select_pattern, - STATE(131), 1, + STATE(118), 1, sym_select_case, - ACTIONS(52), 2, + STATE(125), 1, + sym_select_pattern, + ACTIONS(58), 2, anon_sym_true, anon_sym_false, - STATE(13), 2, - sym_comment, - aux_sym_select_cases_repeat1, - STATE(56), 2, + STATE(82), 2, sym_boolean_literal, sym__string_literal, [634] = 11, @@ -4840,7 +4818,7 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(43), 1, + ACTIONS(60), 1, anon_sym_default, ACTIONS(64), 1, anon_sym_RPAREN, @@ -4848,12 +4826,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(105), 1, + STATE(94), 1, sym__select_pattern, - ACTIONS(41), 2, + ACTIONS(58), 2, anon_sym_true, anon_sym_false, - STATE(56), 2, + STATE(82), 2, sym_boolean_literal, sym__string_literal, [670] = 11, @@ -4865,7 +4843,7 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(43), 1, + ACTIONS(60), 1, anon_sym_default, ACTIONS(66), 1, anon_sym_RPAREN, @@ -4873,12 +4851,12 @@ static const uint16_t ts_small_parse_table[] = { sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(105), 1, + STATE(94), 1, sym__select_pattern, - ACTIONS(41), 2, + ACTIONS(58), 2, anon_sym_true, anon_sym_false, - STATE(56), 2, + STATE(82), 2, sym_boolean_literal, sym__string_literal, [706] = 10, @@ -4890,18 +4868,18 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(43), 1, + ACTIONS(60), 1, anon_sym_default, STATE(16), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(80), 1, + STATE(94), 1, sym__select_pattern, - ACTIONS(41), 2, + ACTIONS(58), 2, anon_sym_true, anon_sym_false, - STATE(56), 2, + STATE(82), 2, sym_boolean_literal, sym__string_literal, [739] = 10, @@ -4913,87 +4891,50 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(43), 1, + ACTIONS(60), 1, anon_sym_default, STATE(17), 1, sym_comment, STATE(23), 1, sym_interpreted_string_literal, - STATE(105), 1, + STATE(59), 1, sym__select_pattern, - ACTIONS(41), 2, + ACTIONS(58), 2, anon_sym_true, anon_sym_false, - STATE(56), 2, + STATE(82), 2, sym_boolean_literal, sym__string_literal, - [772] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(18), 1, - sym_comment, - ACTIONS(68), 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, - [792] = 9, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(70), 1, - ts_builtin_sym_end, - ACTIONS(72), 1, - sym_identifier, - STATE(84), 1, - sym__new_module, - STATE(92), 1, - sym__definition, - STATE(94), 1, - sym__old_module, - STATE(19), 2, - sym_comment, - aux_sym_source_file_repeat1, - STATE(88), 2, - sym_assignment, - sym_module, - [822] = 10, + [772] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(9), 1, sym_identifier, - ACTIONS(75), 1, + ACTIONS(68), 1, ts_builtin_sym_end, - STATE(19), 1, - aux_sym_source_file_repeat1, - STATE(20), 1, + STATE(18), 1, sym_comment, - STATE(84), 1, - sym__new_module, - STATE(92), 1, + STATE(21), 1, + aux_sym_source_file_repeat1, + STATE(93), 1, sym__definition, - STATE(94), 1, + STATE(100), 1, sym__old_module, - STATE(88), 2, + STATE(101), 1, + sym__new_module, + STATE(99), 2, sym_assignment, sym_module, - [854] = 4, + [804] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - STATE(21), 1, + STATE(19), 1, sym_comment, - ACTIONS(77), 8, + ACTIONS(70), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -5002,6 +4943,43 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, + [824] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(20), 1, + sym_comment, + ACTIONS(72), 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, + [844] = 9, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(74), 1, + ts_builtin_sym_end, + ACTIONS(76), 1, + sym_identifier, + STATE(93), 1, + sym__definition, + STATE(100), 1, + sym__old_module, + STATE(101), 1, + sym__new_module, + STATE(21), 2, + sym_comment, + aux_sym_source_file_repeat1, + STATE(99), 2, + sym_assignment, + sym_module, [874] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5056,7 +5034,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(25), 1, sym_comment, - ACTIONS(47), 7, + ACTIONS(37), 7, anon_sym_RBRACE, anon_sym_LPAREN, anon_sym_true, @@ -5289,38 +5267,97 @@ static const uint16_t ts_small_parse_table[] = { sym_interpreted_string_literal, STATE(40), 1, sym_comment, - STATE(72), 1, + STATE(60), 1, sym__string_literal, [1243] = 6, - ACTIONS(115), 1, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(117), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(117), 1, + anon_sym_LBRACE, ACTIONS(119), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(122), 1, - anon_sym_DQUOTE2, - ACTIONS(124), 1, - sym_escape_sequence, - STATE(41), 2, + anon_sym_LPAREN, + STATE(41), 1, sym_comment, - aux_sym_interpreted_string_literal_repeat1, + ACTIONS(115), 2, + anon_sym_EQ, + anon_sym_PLUS_EQ, [1263] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(127), 1, + ACTIONS(121), 1, anon_sym_COMMA, - ACTIONS(129), 1, + ACTIONS(123), 1, anon_sym_RBRACK, - ACTIONS(131), 1, + ACTIONS(125), 1, anon_sym_PLUS, STATE(42), 1, sym_comment, - STATE(64), 1, + STATE(63), 1, aux_sym_list_expression_repeat1, [1285] = 7, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(127), 1, + anon_sym_LPAREN, + ACTIONS(129), 1, + sym_identifier, + STATE(43), 1, + sym_comment, + STATE(129), 1, + sym_select_value, + STATE(134), 1, + sym_condition, + [1307] = 7, + ACTIONS(131), 1, + anon_sym_SLASH_SLASH, + ACTIONS(133), 1, + anon_sym_SLASH_STAR, + ACTIONS(135), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(137), 1, + anon_sym_DQUOTE2, + ACTIONS(139), 1, + sym_escape_sequence, + STATE(44), 1, + sym_comment, + STATE(46), 1, + aux_sym_interpreted_string_literal_repeat1, + [1329] = 7, + ACTIONS(131), 1, + anon_sym_SLASH_SLASH, + ACTIONS(133), 1, + anon_sym_SLASH_STAR, + ACTIONS(135), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(139), 1, + sym_escape_sequence, + ACTIONS(141), 1, + anon_sym_DQUOTE2, + STATE(44), 1, + aux_sym_interpreted_string_literal_repeat1, + STATE(45), 1, + sym_comment, + [1351] = 6, + ACTIONS(131), 1, + anon_sym_SLASH_SLASH, + ACTIONS(133), 1, + anon_sym_SLASH_STAR, + ACTIONS(143), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(146), 1, + anon_sym_DQUOTE2, + ACTIONS(148), 1, + sym_escape_sequence, + STATE(46), 2, + sym_comment, + aux_sym_interpreted_string_literal_repeat1, + [1371] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5331,524 +5368,465 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_DQUOTE, STATE(23), 1, sym_interpreted_string_literal, - STATE(43), 1, - sym_comment, - STATE(109), 1, - sym__string_literal, - [1307] = 7, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_LPAREN, - ACTIONS(135), 1, - sym_identifier, - STATE(44), 1, - sym_comment, - STATE(135), 1, - sym__select_value, - STATE(137), 1, - sym_select_value, - [1329] = 7, - ACTIONS(115), 1, - anon_sym_SLASH_SLASH, - ACTIONS(117), 1, - anon_sym_SLASH_STAR, - ACTIONS(137), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(139), 1, - anon_sym_DQUOTE2, - ACTIONS(141), 1, - sym_escape_sequence, - STATE(41), 1, - aux_sym_interpreted_string_literal_repeat1, - STATE(45), 1, - sym_comment, - [1351] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(145), 1, - anon_sym_LBRACE, - ACTIONS(147), 1, - anon_sym_LPAREN, - STATE(46), 1, - sym_comment, - ACTIONS(143), 2, - anon_sym_EQ, - anon_sym_PLUS_EQ, - [1371] = 7, - ACTIONS(115), 1, - anon_sym_SLASH_SLASH, - ACTIONS(117), 1, - anon_sym_SLASH_STAR, - ACTIONS(137), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(141), 1, - sym_escape_sequence, - ACTIONS(149), 1, - anon_sym_DQUOTE2, - STATE(45), 1, - aux_sym_interpreted_string_literal_repeat1, STATE(47), 1, sym_comment, - [1393] = 5, + STATE(108), 1, + sym__string_literal, + [1393] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(131), 1, - anon_sym_PLUS, + ACTIONS(151), 1, + anon_sym_RBRACE, + ACTIONS(153), 1, + sym_identifier, STATE(48), 1, sym_comment, - ACTIONS(151), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [1410] = 6, + STATE(84), 1, + sym__colon_property, + [1412] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(153), 1, - anon_sym_COMMA, - ACTIONS(155), 1, - anon_sym_RPAREN, + ACTIONS(125), 1, + anon_sym_PLUS, STATE(49), 1, sym_comment, - STATE(73), 1, - aux_sym_select_value_repeat1, - [1429] = 6, + ACTIONS(155), 2, + anon_sym_COMMA, + anon_sym_RBRACE, + [1429] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(157), 1, anon_sym_COMMA, - ACTIONS(159), 1, - anon_sym_RBRACE, - STATE(50), 1, + ACTIONS(160), 1, + anon_sym_RPAREN, + STATE(50), 2, sym_comment, - STATE(59), 1, - aux_sym__old_module_repeat1, - [1448] = 5, - ACTIONS(115), 1, + aux_sym_condition_repeat1, + [1446] = 6, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(117), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(161), 1, - aux_sym_interpreted_string_literal_token1, + ACTIONS(162), 1, + anon_sym_RPAREN, + ACTIONS(164), 1, + sym_identifier, STATE(51), 1, sym_comment, - ACTIONS(163), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, + STATE(87), 1, + sym__equal_property, [1465] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(165), 1, - anon_sym_RBRACE, - ACTIONS(167), 1, + ACTIONS(129), 1, sym_identifier, + ACTIONS(166), 1, + anon_sym_RPAREN, STATE(52), 1, sym_comment, - STATE(101), 1, - sym__colon_property, - [1484] = 5, + STATE(103), 1, + sym_condition, + [1484] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(169), 1, + ACTIONS(168), 1, anon_sym_COMMA, - ACTIONS(172), 1, + ACTIONS(170), 1, anon_sym_RPAREN, - STATE(53), 2, + STATE(53), 1, sym_comment, - aux_sym__select_value_repeat1, - [1501] = 6, + STATE(73), 1, + aux_sym__new_module_repeat1, + [1503] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(174), 1, + ACTIONS(172), 1, anon_sym_COMMA, - ACTIONS(176), 1, + ACTIONS(174), 1, anon_sym_RBRACE, STATE(54), 1, sym_comment, STATE(70), 1, aux_sym__old_module_repeat1, - [1520] = 6, + [1522] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(178), 1, - anon_sym_RPAREN, - ACTIONS(180), 1, + ACTIONS(164), 1, sym_identifier, + ACTIONS(176), 1, + anon_sym_RPAREN, STATE(55), 1, sym_comment, - STATE(95), 1, + STATE(78), 1, sym__equal_property, - [1539] = 4, + [1541] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(125), 1, + anon_sym_PLUS, STATE(56), 1, sym_comment, - ACTIONS(182), 3, - anon_sym_COMMA, - anon_sym_RPAREN, - anon_sym_COLON, - [1554] = 6, + ACTIONS(178), 2, + ts_builtin_sym_end, + sym_identifier, + [1558] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(184), 1, - anon_sym_COMMA, - ACTIONS(186), 1, - anon_sym_RPAREN, + ACTIONS(153), 1, + sym_identifier, + ACTIONS(180), 1, + anon_sym_RBRACE, STATE(57), 1, sym_comment, - STATE(76), 1, - aux_sym__new_module_repeat1, - [1573] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(167), 1, - sym_identifier, - ACTIONS(188), 1, - anon_sym_RBRACE, - STATE(58), 1, - sym_comment, - STATE(101), 1, - sym__colon_property, - [1592] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(190), 1, - anon_sym_COMMA, - ACTIONS(192), 1, - anon_sym_RBRACE, - STATE(59), 1, - sym_comment, - STATE(70), 1, - aux_sym__old_module_repeat1, - [1611] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(167), 1, - sym_identifier, - ACTIONS(194), 1, - anon_sym_RBRACE, - STATE(60), 1, - sym_comment, STATE(81), 1, sym__colon_property, - [1630] = 5, + [1577] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(196), 1, + ACTIONS(182), 1, anon_sym_COMMA, - ACTIONS(199), 1, + ACTIONS(185), 1, anon_sym_RPAREN, - STATE(61), 2, - sym_comment, - aux_sym_select_pattern_repeat1, - [1647] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(201), 1, - anon_sym_COMMA, - ACTIONS(203), 1, - anon_sym_RPAREN, - STATE(53), 1, - aux_sym__select_value_repeat1, - STATE(62), 1, - sym_comment, - [1666] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(180), 1, - sym_identifier, - ACTIONS(205), 1, - anon_sym_RPAREN, - STATE(63), 1, - sym_comment, - STATE(77), 1, - sym__equal_property, - [1685] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(207), 1, - anon_sym_COMMA, - ACTIONS(209), 1, - anon_sym_RBRACK, - STATE(64), 1, - sym_comment, - STATE(79), 1, - aux_sym_list_expression_repeat1, - [1704] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(131), 1, - anon_sym_PLUS, - STATE(65), 1, - sym_comment, - ACTIONS(211), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [1721] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(213), 1, - anon_sym_COMMA, - ACTIONS(216), 1, - anon_sym_RPAREN, - STATE(66), 2, + STATE(58), 2, sym_comment, aux_sym_select_value_repeat1, - [1738] = 6, + [1594] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(135), 1, - sym_identifier, - ACTIONS(218), 1, + ACTIONS(187), 1, + anon_sym_COMMA, + ACTIONS(189), 1, anon_sym_RPAREN, + STATE(59), 1, + sym_comment, + STATE(67), 1, + aux_sym_select_pattern_repeat1, + [1613] = 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(60), 1, + sym_comment, + STATE(79), 1, + aux_sym_condition_repeat1, + [1632] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(153), 1, + sym_identifier, + ACTIONS(195), 1, + anon_sym_RBRACE, + STATE(61), 1, + sym_comment, + STATE(84), 1, + sym__colon_property, + [1651] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(153), 1, + sym_identifier, + ACTIONS(197), 1, + anon_sym_RBRACE, + STATE(62), 1, + sym_comment, + STATE(76), 1, + sym__colon_property, + [1670] = 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, + [1689] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(203), 1, + anon_sym_COMMA, + ACTIONS(206), 1, + anon_sym_RPAREN, + STATE(64), 2, + sym_comment, + aux_sym_select_pattern_repeat1, + [1706] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(208), 1, + anon_sym_COMMA, + ACTIONS(210), 1, + anon_sym_RBRACE, + STATE(65), 1, + sym_comment, + STATE(70), 1, + aux_sym__old_module_repeat1, + [1725] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(212), 1, + anon_sym_COMMA, + ACTIONS(214), 1, + anon_sym_RPAREN, + STATE(58), 1, + aux_sym_select_value_repeat1, + STATE(66), 1, + sym_comment, + [1744] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(66), 1, + anon_sym_RPAREN, + ACTIONS(216), 1, + anon_sym_COMMA, + STATE(64), 1, + aux_sym_select_pattern_repeat1, STATE(67), 1, sym_comment, - STATE(100), 1, - sym__select_value, - [1757] = 6, + [1763] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(167), 1, + ACTIONS(153), 1, sym_identifier, - ACTIONS(220), 1, + ACTIONS(218), 1, anon_sym_RBRACE, STATE(68), 1, sym_comment, - STATE(101), 1, + STATE(84), 1, sym__colon_property, - [1776] = 6, + [1782] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(167), 1, + ACTIONS(129), 1, sym_identifier, - ACTIONS(222), 1, - anon_sym_RBRACE, - STATE(50), 1, - sym__colon_property, + ACTIONS(214), 1, + anon_sym_RPAREN, STATE(69), 1, sym_comment, - [1795] = 5, + STATE(103), 1, + sym_condition, + [1801] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(224), 1, + ACTIONS(220), 1, anon_sym_COMMA, - ACTIONS(227), 1, + ACTIONS(223), 1, anon_sym_RBRACE, STATE(70), 2, sym_comment, aux_sym__old_module_repeat1, - [1812] = 6, + [1818] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(64), 1, - anon_sym_RPAREN, - ACTIONS(229), 1, - anon_sym_COMMA, - STATE(61), 1, - aux_sym_select_pattern_repeat1, + ACTIONS(125), 1, + anon_sym_PLUS, STATE(71), 1, sym_comment, - [1831] = 6, + ACTIONS(225), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [1835] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(201), 1, - anon_sym_COMMA, - ACTIONS(231), 1, + ACTIONS(164), 1, + sym_identifier, + ACTIONS(227), 1, anon_sym_RPAREN, - STATE(62), 1, - aux_sym__select_value_repeat1, STATE(72), 1, sym_comment, - [1850] = 6, + STATE(87), 1, + sym__equal_property, + [1854] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(233), 1, + ACTIONS(229), 1, anon_sym_COMMA, - ACTIONS(235), 1, + ACTIONS(232), 1, anon_sym_RPAREN, - STATE(66), 1, - aux_sym_select_value_repeat1, - STATE(73), 1, + STATE(73), 2, sym_comment, - [1869] = 6, - ACTIONS(3), 1, + aux_sym__new_module_repeat1, + [1871] = 5, + ACTIONS(131), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(133), 1, anon_sym_SLASH_STAR, - ACTIONS(180), 1, - sym_identifier, - ACTIONS(237), 1, - anon_sym_RPAREN, + ACTIONS(234), 1, + aux_sym_interpreted_string_literal_token1, STATE(74), 1, sym_comment, - STATE(95), 1, - sym__equal_property, + ACTIONS(236), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, [1888] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(135), 1, + ACTIONS(153), 1, sym_identifier, - ACTIONS(239), 1, - anon_sym_RPAREN, + ACTIONS(238), 1, + anon_sym_RBRACE, STATE(75), 1, sym_comment, - STATE(100), 1, - sym__select_value, - [1907] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(241), 1, - anon_sym_COMMA, - ACTIONS(244), 1, - anon_sym_RPAREN, - STATE(76), 2, - sym_comment, - aux_sym__new_module_repeat1, - [1924] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(246), 1, - anon_sym_COMMA, - ACTIONS(248), 1, - anon_sym_RPAREN, - STATE(57), 1, - aux_sym__new_module_repeat1, - STATE(77), 1, - sym_comment, - [1943] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(167), 1, - sym_identifier, - ACTIONS(250), 1, - anon_sym_RBRACE, - STATE(78), 1, - sym_comment, - STATE(101), 1, + STATE(84), 1, sym__colon_property, - [1962] = 5, + [1907] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(252), 1, + ACTIONS(240), 1, anon_sym_COMMA, - ACTIONS(255), 1, - anon_sym_RBRACK, - STATE(79), 2, - sym_comment, - aux_sym_list_expression_repeat1, - [1979] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(257), 1, - anon_sym_COMMA, - ACTIONS(259), 1, - anon_sym_RPAREN, - STATE(71), 1, - aux_sym_select_pattern_repeat1, - STATE(80), 1, - sym_comment, - [1998] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(261), 1, - anon_sym_COMMA, - ACTIONS(263), 1, + ACTIONS(242), 1, anon_sym_RBRACE, STATE(54), 1, aux_sym__old_module_repeat1, - STATE(81), 1, + STATE(76), 1, sym_comment, - [2017] = 5, + [1926] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(131), 1, + ACTIONS(244), 1, + anon_sym_COMMA, + ACTIONS(246), 1, + anon_sym_RPAREN, + STATE(66), 1, + aux_sym_select_value_repeat1, + STATE(77), 1, + sym_comment, + [1945] = 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, + STATE(78), 1, + sym_comment, + [1964] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(191), 1, + anon_sym_COMMA, + ACTIONS(252), 1, + anon_sym_RPAREN, + STATE(50), 1, + aux_sym_condition_repeat1, + STATE(79), 1, + sym_comment, + [1983] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(125), 1, anon_sym_PLUS, + STATE(80), 1, + sym_comment, + ACTIONS(254), 2, + anon_sym_COMMA, + anon_sym_RBRACK, + [2000] = 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, + [2019] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, STATE(82), 1, sym_comment, - ACTIONS(265), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(260), 3, + anon_sym_COMMA, + anon_sym_RPAREN, + anon_sym_COLON, [2034] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(131), 1, - anon_sym_PLUS, - STATE(83), 1, - sym_comment, - ACTIONS(267), 2, + ACTIONS(262), 1, anon_sym_COMMA, + ACTIONS(265), 1, anon_sym_RBRACK, + STATE(83), 2, + sym_comment, + aux_sym_list_expression_repeat1, [2051] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5856,9 +5834,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(84), 1, sym_comment, - ACTIONS(269), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(267), 2, + anon_sym_COMMA, + anon_sym_RBRACE, [2065] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5866,7 +5844,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(85), 1, sym_comment, - ACTIONS(271), 2, + ACTIONS(269), 2, ts_builtin_sym_end, sym_identifier, [2079] = 5, @@ -5874,11 +5852,11 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(273), 1, + ACTIONS(271), 1, anon_sym_LBRACE, STATE(86), 1, sym_comment, - STATE(123), 1, + STATE(131), 1, sym_select_cases, [2095] = 4, ACTIONS(3), 1, @@ -5887,9 +5865,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(87), 1, sym_comment, - ACTIONS(275), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(273), 2, + anon_sym_COMMA, + anon_sym_RPAREN, [2109] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5897,7 +5875,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(88), 1, sym_comment, - ACTIONS(277), 2, + ACTIONS(275), 2, ts_builtin_sym_end, sym_identifier, [2123] = 5, @@ -5905,12 +5883,12 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(167), 1, + ACTIONS(153), 1, sym_identifier, + STATE(84), 1, + sym__colon_property, STATE(89), 1, sym_comment, - STATE(101), 1, - sym__colon_property, [2139] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5918,7 +5896,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(90), 1, sym_comment, - ACTIONS(279), 2, + ACTIONS(277), 2, ts_builtin_sym_end, sym_identifier, [2153] = 5, @@ -5926,12 +5904,12 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(180), 1, + ACTIONS(164), 1, sym_identifier, + STATE(87), 1, + sym__equal_property, STATE(91), 1, sym_comment, - STATE(95), 1, - sym__equal_property, [2169] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5939,7 +5917,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(92), 1, sym_comment, - ACTIONS(281), 2, + ACTIONS(279), 2, ts_builtin_sym_end, sym_identifier, [2183] = 4, @@ -5949,7 +5927,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(93), 1, sym_comment, - ACTIONS(283), 2, + ACTIONS(281), 2, ts_builtin_sym_end, sym_identifier, [2197] = 4, @@ -5959,9 +5937,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(94), 1, sym_comment, - ACTIONS(269), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(206), 2, + anon_sym_COMMA, + anon_sym_RPAREN, [2211] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5969,9 +5947,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(95), 1, sym_comment, - ACTIONS(285), 2, - anon_sym_COMMA, - anon_sym_RPAREN, + ACTIONS(283), 2, + ts_builtin_sym_end, + sym_identifier, [2225] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5979,9 +5957,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(96), 1, sym_comment, - ACTIONS(287), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(285), 2, + anon_sym_COMMA, + anon_sym_RPAREN, [2239] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -5989,101 +5967,101 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(97), 1, sym_comment, - ACTIONS(289), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2253] = 4, + ACTIONS(287), 2, + ts_builtin_sym_end, + sym_identifier, + [2253] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(125), 1, + anon_sym_PLUS, + ACTIONS(289), 1, + anon_sym_COMMA, STATE(98), 1, sym_comment, - ACTIONS(291), 2, - ts_builtin_sym_end, - sym_identifier, - [2267] = 4, + [2269] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(99), 1, sym_comment, - ACTIONS(293), 2, + ACTIONS(291), 2, ts_builtin_sym_end, sym_identifier, - [2281] = 4, + [2283] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(100), 1, sym_comment, - ACTIONS(295), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2295] = 4, + ACTIONS(293), 2, + ts_builtin_sym_end, + sym_identifier, + [2297] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(101), 1, sym_comment, - ACTIONS(297), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - [2309] = 4, + ACTIONS(293), 2, + ts_builtin_sym_end, + sym_identifier, + [2311] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(102), 1, sym_comment, - ACTIONS(299), 2, - ts_builtin_sym_end, - sym_identifier, - [2323] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(131), 1, - anon_sym_PLUS, - ACTIONS(301), 1, - anon_sym_COMMA, - STATE(103), 1, - sym_comment, - [2339] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(104), 1, - sym_comment, - ACTIONS(303), 2, + ACTIONS(295), 2, anon_sym_COMMA, anon_sym_RPAREN, - [2353] = 4, + [2325] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(103), 1, + sym_comment, + ACTIONS(185), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2339] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(129), 1, + sym_identifier, + STATE(77), 1, + sym_condition, + STATE(104), 1, + sym_comment, + [2355] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, STATE(105), 1, sym_comment, - ACTIONS(199), 2, - anon_sym_COMMA, - anon_sym_RPAREN, - [2367] = 5, + ACTIONS(297), 2, + ts_builtin_sym_end, + sym_identifier, + [2369] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(135), 1, - sym_identifier, - STATE(49), 1, - sym__select_value, STATE(106), 1, sym_comment, + ACTIONS(299), 2, + ts_builtin_sym_end, + sym_identifier, [2383] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -6091,30 +6069,30 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(107), 1, sym_comment, - ACTIONS(305), 2, - ts_builtin_sym_end, - sym_identifier, - [2397] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(135), 1, - sym_identifier, - STATE(100), 1, - sym__select_value, - STATE(108), 1, - sym_comment, - [2413] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - STATE(109), 1, - sym_comment, - ACTIONS(172), 2, + ACTIONS(301), 2, anon_sym_COMMA, anon_sym_RPAREN, + [2397] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(108), 1, + sym_comment, + ACTIONS(160), 2, + anon_sym_COMMA, + anon_sym_RPAREN, + [2411] = 5, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(129), 1, + sym_identifier, + STATE(103), 1, + sym_condition, + STATE(109), 1, + sym_comment, [2427] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -6122,9 +6100,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(110), 1, sym_comment, - ACTIONS(307), 2, - anon_sym_COMMA, - anon_sym_RPAREN, + ACTIONS(303), 2, + ts_builtin_sym_end, + sym_identifier, [2441] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, @@ -6132,7 +6110,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_STAR, STATE(111), 1, sym_comment, - ACTIONS(309), 2, + ACTIONS(305), 2, ts_builtin_sym_end, sym_identifier, [2455] = 4, @@ -6140,8 +6118,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(311), 1, - anon_sym_LPAREN, + ACTIONS(307), 1, + anon_sym_COLON, STATE(112), 1, sym_comment, [2468] = 4, @@ -6149,8 +6127,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(301), 1, - anon_sym_COMMA, + ACTIONS(309), 1, + anon_sym_RPAREN, STATE(113), 1, sym_comment, [2481] = 4, @@ -6158,17 +6136,17 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(313), 1, + ACTIONS(311), 1, anon_sym_COLON, STATE(114), 1, sym_comment, [2494] = 4, - ACTIONS(3), 1, + ACTIONS(131), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(133), 1, anon_sym_SLASH_STAR, - ACTIONS(315), 1, - anon_sym_COLON, + ACTIONS(313), 1, + aux_sym_comment_token1, STATE(115), 1, sym_comment, [2507] = 4, @@ -6176,17 +6154,17 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(317), 1, - anon_sym_SLASH, + ACTIONS(315), 1, + anon_sym_LPAREN, STATE(116), 1, sym_comment, [2520] = 4, - ACTIONS(115), 1, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(117), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(319), 1, - aux_sym_comment_token2, + ACTIONS(317), 1, + anon_sym_COMMA, STATE(117), 1, sym_comment, [2533] = 4, @@ -6194,7 +6172,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(321), 1, + ACTIONS(319), 1, anon_sym_COMMA, STATE(118), 1, sym_comment, @@ -6203,8 +6181,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(323), 1, - anon_sym_COLON, + ACTIONS(321), 1, + anon_sym_RPAREN, STATE(119), 1, sym_comment, [2559] = 4, @@ -6212,8 +6190,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(325), 1, - anon_sym_COMMA, + ACTIONS(323), 1, + anon_sym_EQ, STATE(120), 1, sym_comment, [2572] = 4, @@ -6221,17 +6199,17 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(327), 1, - anon_sym_RPAREN, + ACTIONS(325), 1, + aux_sym_integer_literal_token1, STATE(121), 1, sym_comment, [2585] = 4, - ACTIONS(3), 1, + ACTIONS(131), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(133), 1, anon_sym_SLASH_STAR, - ACTIONS(329), 1, - anon_sym_COMMA, + ACTIONS(327), 1, + aux_sym_comment_token2, STATE(122), 1, sym_comment, [2598] = 4, @@ -6239,8 +6217,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(331), 1, - anon_sym_RPAREN, + ACTIONS(329), 1, + anon_sym_SLASH, STATE(123), 1, sym_comment, [2611] = 4, @@ -6248,8 +6226,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(333), 1, - anon_sym_LPAREN, + ACTIONS(331), 1, + anon_sym_COLON, STATE(124), 1, sym_comment, [2624] = 4, @@ -6257,8 +6235,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(335), 1, - aux_sym_integer_literal_token1, + ACTIONS(333), 1, + anon_sym_COLON, STATE(125), 1, sym_comment, [2637] = 4, @@ -6266,8 +6244,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(337), 1, - anon_sym_RPAREN, + ACTIONS(335), 1, + anon_sym_COMMA, STATE(126), 1, sym_comment, [2650] = 4, @@ -6275,8 +6253,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(339), 1, - anon_sym_COMMA, + ACTIONS(337), 1, + anon_sym_LPAREN, STATE(127), 1, sym_comment, [2663] = 4, @@ -6284,7 +6262,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(341), 1, + ACTIONS(339), 1, anon_sym_COLON, STATE(128), 1, sym_comment, @@ -6293,8 +6271,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(343), 1, - anon_sym_COLON, + ACTIONS(341), 1, + anon_sym_COMMA, STATE(129), 1, sym_comment, [2689] = 4, @@ -6302,8 +6280,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(345), 1, - anon_sym_EQ, + ACTIONS(289), 1, + anon_sym_COMMA, STATE(130), 1, sym_comment, [2702] = 4, @@ -6311,17 +6289,17 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(347), 1, - anon_sym_COMMA, + ACTIONS(343), 1, + anon_sym_RPAREN, STATE(131), 1, sym_comment, [2715] = 4, - ACTIONS(115), 1, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(117), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(349), 1, - aux_sym_comment_token1, + ACTIONS(345), 1, + anon_sym_COMMA, STATE(132), 1, sym_comment, [2728] = 4, @@ -6329,8 +6307,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(351), 1, - anon_sym_COMMA, + ACTIONS(347), 1, + anon_sym_COLON, STATE(133), 1, sym_comment, [2741] = 4, @@ -6338,8 +6316,8 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(353), 1, - anon_sym_COLON, + ACTIONS(349), 1, + anon_sym_COMMA, STATE(134), 1, sym_comment, [2754] = 4, @@ -6347,7 +6325,7 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(355), 1, + ACTIONS(351), 1, anon_sym_COMMA, STATE(135), 1, sym_comment, @@ -6356,24 +6334,15 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(357), 1, + ACTIONS(353), 1, ts_builtin_sym_end, STATE(136), 1, sym_comment, - [2780] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(359), 1, - anon_sym_COMMA, - STATE(137), 1, - sym_comment, - [2793] = 1, - ACTIONS(361), 1, + [2780] = 1, + ACTIONS(355), 1, ts_builtin_sym_end, - [2797] = 1, - ACTIONS(363), 1, + [2784] = 1, + ACTIONS(357), 1, ts_builtin_sym_end, }; @@ -6388,16 +6357,16 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(9)] = 386, [SMALL_STATE(10)] = 439, [SMALL_STATE(11)] = 492, - [SMALL_STATE(12)] = 540, - [SMALL_STATE(13)] = 588, + [SMALL_STATE(12)] = 538, + [SMALL_STATE(13)] = 586, [SMALL_STATE(14)] = 634, [SMALL_STATE(15)] = 670, [SMALL_STATE(16)] = 706, [SMALL_STATE(17)] = 739, [SMALL_STATE(18)] = 772, - [SMALL_STATE(19)] = 792, - [SMALL_STATE(20)] = 822, - [SMALL_STATE(21)] = 854, + [SMALL_STATE(19)] = 804, + [SMALL_STATE(20)] = 824, + [SMALL_STATE(21)] = 844, [SMALL_STATE(22)] = 874, [SMALL_STATE(23)] = 894, [SMALL_STATE(24)] = 914, @@ -6425,40 +6394,40 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(46)] = 1351, [SMALL_STATE(47)] = 1371, [SMALL_STATE(48)] = 1393, - [SMALL_STATE(49)] = 1410, + [SMALL_STATE(49)] = 1412, [SMALL_STATE(50)] = 1429, - [SMALL_STATE(51)] = 1448, + [SMALL_STATE(51)] = 1446, [SMALL_STATE(52)] = 1465, [SMALL_STATE(53)] = 1484, - [SMALL_STATE(54)] = 1501, - [SMALL_STATE(55)] = 1520, - [SMALL_STATE(56)] = 1539, - [SMALL_STATE(57)] = 1554, - [SMALL_STATE(58)] = 1573, - [SMALL_STATE(59)] = 1592, - [SMALL_STATE(60)] = 1611, - [SMALL_STATE(61)] = 1630, - [SMALL_STATE(62)] = 1647, - [SMALL_STATE(63)] = 1666, - [SMALL_STATE(64)] = 1685, - [SMALL_STATE(65)] = 1704, - [SMALL_STATE(66)] = 1721, - [SMALL_STATE(67)] = 1738, - [SMALL_STATE(68)] = 1757, - [SMALL_STATE(69)] = 1776, - [SMALL_STATE(70)] = 1795, - [SMALL_STATE(71)] = 1812, - [SMALL_STATE(72)] = 1831, - [SMALL_STATE(73)] = 1850, - [SMALL_STATE(74)] = 1869, + [SMALL_STATE(54)] = 1503, + [SMALL_STATE(55)] = 1522, + [SMALL_STATE(56)] = 1541, + [SMALL_STATE(57)] = 1558, + [SMALL_STATE(58)] = 1577, + [SMALL_STATE(59)] = 1594, + [SMALL_STATE(60)] = 1613, + [SMALL_STATE(61)] = 1632, + [SMALL_STATE(62)] = 1651, + [SMALL_STATE(63)] = 1670, + [SMALL_STATE(64)] = 1689, + [SMALL_STATE(65)] = 1706, + [SMALL_STATE(66)] = 1725, + [SMALL_STATE(67)] = 1744, + [SMALL_STATE(68)] = 1763, + [SMALL_STATE(69)] = 1782, + [SMALL_STATE(70)] = 1801, + [SMALL_STATE(71)] = 1818, + [SMALL_STATE(72)] = 1835, + [SMALL_STATE(73)] = 1854, + [SMALL_STATE(74)] = 1871, [SMALL_STATE(75)] = 1888, [SMALL_STATE(76)] = 1907, - [SMALL_STATE(77)] = 1924, - [SMALL_STATE(78)] = 1943, - [SMALL_STATE(79)] = 1962, - [SMALL_STATE(80)] = 1979, - [SMALL_STATE(81)] = 1998, - [SMALL_STATE(82)] = 2017, + [SMALL_STATE(77)] = 1926, + [SMALL_STATE(78)] = 1945, + [SMALL_STATE(79)] = 1964, + [SMALL_STATE(80)] = 1983, + [SMALL_STATE(81)] = 2000, + [SMALL_STATE(82)] = 2019, [SMALL_STATE(83)] = 2034, [SMALL_STATE(84)] = 2051, [SMALL_STATE(85)] = 2065, @@ -6475,17 +6444,17 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(96)] = 2225, [SMALL_STATE(97)] = 2239, [SMALL_STATE(98)] = 2253, - [SMALL_STATE(99)] = 2267, - [SMALL_STATE(100)] = 2281, - [SMALL_STATE(101)] = 2295, - [SMALL_STATE(102)] = 2309, - [SMALL_STATE(103)] = 2323, + [SMALL_STATE(99)] = 2269, + [SMALL_STATE(100)] = 2283, + [SMALL_STATE(101)] = 2297, + [SMALL_STATE(102)] = 2311, + [SMALL_STATE(103)] = 2325, [SMALL_STATE(104)] = 2339, - [SMALL_STATE(105)] = 2353, - [SMALL_STATE(106)] = 2367, + [SMALL_STATE(105)] = 2355, + [SMALL_STATE(106)] = 2369, [SMALL_STATE(107)] = 2383, [SMALL_STATE(108)] = 2397, - [SMALL_STATE(109)] = 2413, + [SMALL_STATE(109)] = 2411, [SMALL_STATE(110)] = 2427, [SMALL_STATE(111)] = 2441, [SMALL_STATE(112)] = 2455, @@ -6514,187 +6483,183 @@ static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(135)] = 2754, [SMALL_STATE(136)] = 2767, [SMALL_STATE(137)] = 2780, - [SMALL_STATE(138)] = 2793, - [SMALL_STATE(139)] = 2797, + [SMALL_STATE(138)] = 2784, }; 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(132), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(115), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), [7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 0), - [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(46), - [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(35), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(62), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(30), [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(125), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(121), - [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), - [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [43] = {.entry = {.count = 1, .reusable = true}}, SHIFT(56), - [45] = {.entry = {.count = 1, .reusable = true}}, SHIFT(126), - [47] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), - [49] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(16), - [52] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(22), - [55] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(23), - [58] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(47), - [61] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(56), - [64] = {.entry = {.count = 1, .reusable = true}}, SHIFT(134), - [66] = {.entry = {.count = 1, .reusable = true}}, SHIFT(119), - [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [72] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(46), - [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [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(24), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [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), + [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(45), + [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, 2), + [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [76] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(41), [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 7), - [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 7), - [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 12), - [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 12), - [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 13), - [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [105] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 8), - [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 13), - [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [115] = {.entry = {.count = 1, .reusable = false}}, SHIFT(132), - [117] = {.entry = {.count = 1, .reusable = false}}, SHIFT(117), - [119] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(51), - [122] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [124] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(51), - [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [135] = {.entry = {.count = 1, .reusable = true}}, SHIFT(124), - [137] = {.entry = {.count = 1, .reusable = false}}, SHIFT(51), - [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), - [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(51), - [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [145] = {.entry = {.count = 1, .reusable = true}}, SHIFT(60), - [147] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), - [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(18), - [151] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 9), - [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), - [155] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), - [157] = {.entry = {.count = 1, .reusable = true}}, SHIFT(58), - [159] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [161] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [163] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [165] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [167] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), - [169] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__select_value_repeat1, 2), SHIFT_REPEAT(43), - [172] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__select_value_repeat1, 2), - [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), - [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), - [178] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(130), - [182] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_pattern, 1), - [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(93), - [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), - [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [196] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), SHIFT_REPEAT(17), - [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_pattern_repeat1, 2), - [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(43), - [203] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [209] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 9), - [213] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, .production_id = 18), SHIFT_REPEAT(108), - [216] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, .production_id = 18), - [218] = {.entry = {.count = 1, .reusable = true}}, SHIFT(118), - [220] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), - [222] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [224] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 11), SHIFT_REPEAT(89), - [227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 11), - [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [231] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), - [233] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [235] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), - [237] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), - [239] = {.entry = {.count = 1, .reusable = true}}, SHIFT(122), - [241] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 11), SHIFT_REPEAT(91), - [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 11), - [246] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [250] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [252] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 14), SHIFT_REPEAT(10), - [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 14), - [257] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(129), - [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [263] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), - [265] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [267] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 7), - [269] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [271] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), - [275] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [277] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [279] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 10), + [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [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__expr, 1), + [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), + [99] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [101] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [103] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [105] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [107] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [109] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), + [111] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [113] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(57), + [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), + [121] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), + [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), + [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(104), + [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(127), + [131] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), + [133] = {.entry = {.count = 1, .reusable = false}}, SHIFT(122), + [135] = {.entry = {.count = 1, .reusable = false}}, SHIFT(74), + [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [143] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(74), + [146] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [148] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(74), + [151] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [153] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), + [155] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [157] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), SHIFT_REPEAT(47), + [160] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_condition_repeat1, 2), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(92), + [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), + [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), + [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(72), + [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), + [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(75), + [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [176] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), + [178] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), + [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(15), + [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(128), + [191] = {.entry = {.count = 1, .reusable = true}}, SHIFT(47), + [193] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), + [195] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [197] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [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(38), + [240] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [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(61), + [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(6), + [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__new_module, 5, .production_id = 10), - [285] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [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__select_value, 3, .production_id = 16), - [291] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 10), - [293] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 10), - [295] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_value_repeat1, 2, .production_id = 15), - [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_value, 4, .production_id = 19), - [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [307] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_value, 5, .production_id = 20), - [309] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [311] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), - [313] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [315] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 1), - [317] = {.entry = {.count = 1, .reusable = false}}, SHIFT(138), - [319] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), - [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5, .production_id = 17), - [323] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 5), - [325] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 17), - [327] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), - [329] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 15), - [331] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [333] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [335] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), - [337] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), - [339] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 3, .production_id = 15), - [341] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [343] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 3), - [345] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), - [347] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), - [349] = {.entry = {.count = 1, .reusable = false}}, SHIFT(139), - [351] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 21), - [353] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_pattern, 4), - [355] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 1, .production_id = 6), - [357] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [359] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), - [361] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3), - [363] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 2), + [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(9), + [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(43), + [317] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 5), + [319] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [321] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [323] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [325] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), + [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(26), + [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), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index 281a985..fe0bf9d 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -15,8 +15,9 @@ foo = select(release_variable("RELEASE_TEST"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal))) (select_cases (select_case (select_pattern @@ -44,9 +45,10 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal) + (interpreted_string_literal))) (select_cases (select_case (select_pattern @@ -76,8 +78,9 @@ foo = select(variant("arch"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal))) (select_cases (select_case (select_pattern @@ -110,8 +113,9 @@ foo = select(variant("VARIANT"), {}) (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal))) (select_cases)))) ================================================================================ @@ -134,8 +138,9 @@ foo = select(variant("VARIANT"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal))) (select_cases (select_case (select_pattern @@ -175,7 +180,8 @@ foo = select(variant(), { (operator) (select_expression (select_value - (identifier)) + (condition + (identifier))) (select_cases (select_case (select_pattern @@ -203,8 +209,9 @@ foo = select(some_unknown_type("CONDITION"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal))) (select_cases (select_case (select_pattern @@ -232,9 +239,10 @@ foo = select(release_variable("ONE", "TWO"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal) + (interpreted_string_literal))) (select_cases (select_case (select_pattern @@ -262,9 +270,10 @@ foo = select(some_boolean("VALUE",), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal) - (ERROR)) + (condition + (identifier) + (interpreted_string_literal) + (ERROR))) (select_cases (select_case (select_pattern @@ -294,8 +303,10 @@ foo = select(( (operator) (select_expression (select_value - (identifier) - (identifier)) + (condition + (identifier)) + (condition + (identifier))) (select_cases (select_case (select_pattern @@ -319,8 +330,10 @@ foo = select((arch(), os()), { (operator) (select_expression (select_value - (identifier) - (identifier)) + (condition + (identifier)) + (condition + (identifier))) (select_cases (select_case (select_pattern @@ -345,8 +358,9 @@ foo = select(some_boolean("IS_TRUE"), { (operator) (select_expression (select_value - (identifier) - (interpreted_string_literal)) + (condition + (identifier) + (interpreted_string_literal))) (select_cases (select_case (select_pattern From 6918efba460968cf80b3dedd82829d4224bfa869 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:49:52 +0000 Subject: [PATCH 08/10] Add queries to 'package.json' --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 2c04da4..ce8f4f9 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,11 @@ "file-types": [ "bp" ], + "folds": "queries/folds.scm", + "highlights": "queries/highlights.scm", + "indents": "queries/indents.scm", + "injections": "queries/injections.scm", + "tags": "queries/tags.scm", "injection-regex": "bp" } ] From 626ffea7128eac69e3fc0684e6a6c9bb2aa35d47 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 15:52:01 +0000 Subject: [PATCH 09/10] Add queries to Rust bindings --- bindings/rust/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bindings/rust/lib.rs b/bindings/rust/lib.rs index 22bfdfc..78e1169 100644 --- a/bindings/rust/lib.rs +++ b/bindings/rust/lib.rs @@ -35,10 +35,11 @@ pub const NODE_TYPES: &'static str = include_str!("../../src/node-types.json"); // Uncomment these to include any queries that this grammar contains -// pub const HIGHLIGHTS_QUERY: &'static str = include_str!("../../queries/highlights.scm"); -// pub const INJECTIONS_QUERY: &'static str = include_str!("../../queries/injections.scm"); -// pub const LOCALS_QUERY: &'static str = include_str!("../../queries/locals.scm"); -// pub const TAGS_QUERY: &'static str = include_str!("../../queries/tags.scm"); +pub const FOLDS_QUERY: &'static str = include_str!("../../queries/folds.scm"); +pub const HIGHLIGHTS_QUERY: &'static str = include_str!("../../queries/highlights.scm"); +pub const INDENTS_QUERY: &'static str = include_str!("../../queries/indents.scm"); +pub const INJECTIONS_QUERY: &'static str = include_str!("../../queries/injections.scm"); +pub const LOCALS_QUERY: &'static str = include_str!("../../queries/locals.scm"); #[cfg(test)] mod tests { From aa06bb8b9ffbf4bea8a1edfc453aa447dcafaeb7 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 23 Apr 2024 16:36:11 +0000 Subject: [PATCH 10/10] WIP: Add indentation queries for multi-value 'select' --- queries/indents.scm | 10 ++++++++++ test/indent/select.bp | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/queries/indents.scm b/queries/indents.scm index 9e63d1e..8fc46fc 100644 --- a/queries/indents.scm +++ b/queries/indents.scm @@ -11,6 +11,16 @@ (select_expression ")" @indent.branch) +(select_value + "(" @indent.begin) +(select_value + ")" @indent.branch) + +; (select_pattern +; "(" @indent.begin) +; (select_pattern +; ")" @indent.branch) + (select_cases) @indent.begin (select_cases "}" @indent.branch) diff --git a/test/indent/select.bp b/test/indent/select.bp index 6d95b2c..2f589a9 100644 --- a/test/indent/select.bp +++ b/test/indent/select.bp @@ -26,3 +26,25 @@ foo = select( default: 0, } ) + +foo = select(( + arch(), + os(), +), { + (default, default): [], +}) + +foo = select( + (arch(), os()), + { + (default, default): [], + } +) + +// We're really getting into more and more unlikely choices here... +foo = select((arch(), os()), { + ( + default, + default, + ): [], +})