diff --git a/grammar.js b/grammar.js index 78659be..86d0dd6 100644 --- a/grammar.js +++ b/grammar.js @@ -2,6 +2,10 @@ function commaSeparated(elem) { return seq(elem, repeat(seq(",", elem)), optional(",")) } +function trailingCommaSeparated(elem) { + return repeat(seq(elem, ",")) +} + module.exports = grammar({ name: "blueprint", @@ -119,11 +123,10 @@ module.exports = grammar({ "(", choice($.select_value, $.soong_config_variable), ",", - $._select_cases, + $.select_cases, ")", ), - // FIXME: simplify with 'soong_config_variable'? select_value: ($) => seq( field("type", alias( choice("product_variable", "release_variable", "variant"), @@ -134,7 +137,6 @@ module.exports = grammar({ ")", ), - // FIXME soong_config_variable: ($) => seq( field("type", alias("soong_config_variable", $.selection_type)), "(", @@ -149,18 +151,26 @@ module.exports = grammar({ ")", ), - _select_cases: ($) => seq( + select_cases: ($) => seq( "{", - optional(repeat(seq($.select_case, ","))), + optional(trailingCommaSeparated($.select_case)), + // default *must* be the last one, enforced at parse-time... + optional(seq($.default_case, ",")), "}", ), select_case: ($) => seq( - field("pattern", choice(alias("default", $.default), $._string_literal)), + field("pattern", $._string_literal), ":", field("value", $._case_value) ), + default_case: ($) => seq( + field("pattern", "default"), + ":", + field("value", $._case_value), + ), + _case_value: ($) => choice( alias("unset", $.unset), $._expr, diff --git a/queries/highlights.scm b/queries/highlights.scm index 124c334..9541314 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -9,22 +9,6 @@ (integer_literal ("-") @operator) ; }}} -; Punctuation {{{ -[ - "," - ":" -] @punctuation.delimiter - -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket -; }}} - ; Literal {{{ (boolean_literal) @boolean @@ -49,21 +33,4 @@ field: (identifier) @variable.member)) ; }}} -; Built-ins {{{ -[ - (unset) - (default) -] @variable.builtin -(selection_type) @function.builtin -; }}} - -; Expressions {{{ -(map_expression - (property - field: (identifier) @property)) - -(select_expression - "select" @keyword.conditional) -; }}} - ; vim: sw=2 foldmethod=marker diff --git a/src/grammar.json b/src/grammar.json index 1dc5a08..c9b0e32 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -482,7 +482,7 @@ }, { "type": "SYMBOL", - "name": "_select_cases" + "name": "select_cases" }, { "type": "STRING", @@ -592,7 +592,7 @@ } ] }, - "_select_cases": { + "select_cases": { "type": "SEQ", "members": [ { @@ -623,6 +623,27 @@ } ] }, + { + "type": "CHOICE", + "members": [ + { + "type": "SEQ", + "members": [ + { + "type": "SYMBOL", + "name": "default_case" + }, + { + "type": "STRING", + "value": "," + } + ] + }, + { + "type": "BLANK" + } + ] + }, { "type": "STRING", "value": "}" @@ -636,22 +657,33 @@ "type": "FIELD", "name": "pattern", "content": { - "type": "CHOICE", - "members": [ - { - "type": "ALIAS", - "content": { - "type": "STRING", - "value": "default" - }, - "named": true, - "value": "default" - }, - { - "type": "SYMBOL", - "name": "_string_literal" - } - ] + "type": "SYMBOL", + "name": "_string_literal" + } + }, + { + "type": "STRING", + "value": ":" + }, + { + "type": "FIELD", + "name": "value", + "content": { + "type": "SYMBOL", + "name": "_case_value" + } + } + ] + }, + "default_case": { + "type": "SEQ", + "members": [ + { + "type": "FIELD", + "name": "pattern", + "content": { + "type": "STRING", + "value": "default" } }, { diff --git a/src/node-types.json b/src/node-types.json index 6eb385e..0a7db28 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -177,6 +177,68 @@ "named": true, "fields": {} }, + { + "type": "default_case", + "named": true, + "fields": { + "pattern": { + "multiple": false, + "required": true, + "types": [ + { + "type": "default", + "named": false + } + ] + }, + "value": { + "multiple": false, + "required": true, + "types": [ + { + "type": "binary_expression", + "named": true + }, + { + "type": "boolean_literal", + "named": true + }, + { + "type": "identifier", + "named": true + }, + { + "type": "integer_literal", + "named": true + }, + { + "type": "interpreted_string_literal", + "named": true + }, + { + "type": "list_expression", + "named": true + }, + { + "type": "map_expression", + "named": true + }, + { + "type": "raw_string_literal", + "named": true + }, + { + "type": "select_expression", + "named": true + }, + { + "type": "unset", + "named": true + } + ] + } + } + }, { "type": "integer_literal", "named": true, @@ -358,10 +420,6 @@ "multiple": false, "required": true, "types": [ - { - "type": "default", - "named": true - }, { "type": "interpreted_string_literal", "named": true @@ -420,6 +478,25 @@ } } }, + { + "type": "select_cases", + "named": true, + "fields": {}, + "children": { + "multiple": true, + "required": false, + "types": [ + { + "type": "default_case", + "named": true + }, + { + "type": "select_case", + "named": true + } + ] + } + }, { "type": "select_expression", "named": true, @@ -429,7 +506,7 @@ "required": true, "types": [ { - "type": "select_case", + "type": "select_cases", "named": true }, { @@ -596,7 +673,7 @@ }, { "type": "default", - "named": true + "named": false }, { "type": "escape_sequence", diff --git a/src/parser.c b/src/parser.c index 20ee16e..f7c2b6f 100644 --- a/src/parser.c +++ b/src/parser.c @@ -6,9 +6,9 @@ #endif #define LANGUAGE_VERSION 14 -#define STATE_COUNT 114 +#define STATE_COUNT 123 #define LARGE_STATE_COUNT 2 -#define SYMBOL_COUNT 64 +#define SYMBOL_COUNT 65 #define ALIAS_COUNT 0 #define TOKEN_COUNT 34 #define EXTERNAL_TOKEN_COUNT 0 @@ -44,8 +44,8 @@ enum ts_symbol_identifiers { anon_sym_release_variable = 25, anon_sym_variant = 26, anon_sym_soong_config_variable = 27, - anon_sym_default = 28, - anon_sym_COLON = 29, + anon_sym_COLON = 28, + anon_sym_default = 29, anon_sym_unset = 30, anon_sym_LBRACK = 31, anon_sym_RBRACK = 32, @@ -66,20 +66,21 @@ enum ts_symbol_identifiers { sym_select_expression = 47, sym_select_value = 48, sym_soong_config_variable = 49, - sym__select_cases = 50, + sym_select_cases = 50, sym_select_case = 51, - sym__case_value = 52, - sym_list_expression = 53, - sym_map_expression = 54, - sym_binary_expression = 55, - sym__colon_property = 56, - sym__equal_property = 57, - aux_sym_source_file_repeat1 = 58, - aux_sym__old_module_repeat1 = 59, - aux_sym__new_module_repeat1 = 60, - aux_sym_interpreted_string_literal_repeat1 = 61, - aux_sym__select_cases_repeat1 = 62, - aux_sym_list_expression_repeat1 = 63, + sym_default_case = 52, + sym__case_value = 53, + sym_list_expression = 54, + sym_map_expression = 55, + sym_binary_expression = 56, + sym__colon_property = 57, + sym__equal_property = 58, + aux_sym_source_file_repeat1 = 59, + aux_sym__old_module_repeat1 = 60, + aux_sym__new_module_repeat1 = 61, + aux_sym_interpreted_string_literal_repeat1 = 62, + aux_sym_select_cases_repeat1 = 63, + aux_sym_list_expression_repeat1 = 64, }; static const char * const ts_symbol_names[] = { @@ -111,8 +112,8 @@ static const char * const ts_symbol_names[] = { [anon_sym_release_variable] = "selection_type", [anon_sym_variant] = "selection_type", [anon_sym_soong_config_variable] = "selection_type", - [anon_sym_default] = "default", [anon_sym_COLON] = ":", + [anon_sym_default] = "default", [anon_sym_unset] = "unset", [anon_sym_LBRACK] = "[", [anon_sym_RBRACK] = "]", @@ -133,8 +134,9 @@ static const char * const ts_symbol_names[] = { [sym_select_expression] = "select_expression", [sym_select_value] = "select_value", [sym_soong_config_variable] = "soong_config_variable", - [sym__select_cases] = "_select_cases", + [sym_select_cases] = "select_cases", [sym_select_case] = "select_case", + [sym_default_case] = "default_case", [sym__case_value] = "_case_value", [sym_list_expression] = "list_expression", [sym_map_expression] = "map_expression", @@ -145,7 +147,7 @@ static const char * const ts_symbol_names[] = { [aux_sym__old_module_repeat1] = "_old_module_repeat1", [aux_sym__new_module_repeat1] = "_new_module_repeat1", [aux_sym_interpreted_string_literal_repeat1] = "interpreted_string_literal_repeat1", - [aux_sym__select_cases_repeat1] = "_select_cases_repeat1", + [aux_sym_select_cases_repeat1] = "select_cases_repeat1", [aux_sym_list_expression_repeat1] = "list_expression_repeat1", }; @@ -178,8 +180,8 @@ static const TSSymbol ts_symbol_map[] = { [anon_sym_release_variable] = anon_sym_product_variable, [anon_sym_variant] = anon_sym_product_variable, [anon_sym_soong_config_variable] = anon_sym_product_variable, - [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, @@ -200,8 +202,9 @@ static const TSSymbol ts_symbol_map[] = { [sym_select_expression] = sym_select_expression, [sym_select_value] = sym_select_value, [sym_soong_config_variable] = sym_soong_config_variable, - [sym__select_cases] = sym__select_cases, + [sym_select_cases] = sym_select_cases, [sym_select_case] = sym_select_case, + [sym_default_case] = sym_default_case, [sym__case_value] = sym__case_value, [sym_list_expression] = sym_list_expression, [sym_map_expression] = sym_map_expression, @@ -212,7 +215,7 @@ static const TSSymbol ts_symbol_map[] = { [aux_sym__old_module_repeat1] = aux_sym__old_module_repeat1, [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_cases_repeat1] = aux_sym__select_cases_repeat1, + [aux_sym_select_cases_repeat1] = aux_sym_select_cases_repeat1, [aux_sym_list_expression_repeat1] = aux_sym_list_expression_repeat1, }; @@ -329,14 +332,14 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [anon_sym_default] = { - .visible = true, - .named = true, - }, [anon_sym_COLON] = { .visible = true, .named = false, }, + [anon_sym_default] = { + .visible = true, + .named = false, + }, [anon_sym_unset] = { .visible = true, .named = true, @@ -417,14 +420,18 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [sym__select_cases] = { - .visible = false, + [sym_select_cases] = { + .visible = true, .named = true, }, [sym_select_case] = { .visible = true, .named = true, }, + [sym_default_case] = { + .visible = true, + .named = true, + }, [sym__case_value] = { .visible = false, .named = true, @@ -465,7 +472,7 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = false, .named = false, }, - [aux_sym__select_cases_repeat1] = { + [aux_sym_select_cases_repeat1] = { .visible = false, .named = false, }, @@ -708,6 +715,15 @@ 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, }; static inline bool sym_identifier_character_set_1(int32_t c) { @@ -4577,7 +4593,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == ',') ADVANCE(103); if (lookahead == '-') ADVANCE(188); if (lookahead == '/') ADVANCE(99); - if (lookahead == ':') ADVANCE(210); + if (lookahead == ':') ADVANCE(208); if (lookahead == '=') ADVANCE(100); if (lookahead == '[') ADVANCE(212); if (lookahead == '\\') ADVANCE(11); @@ -4861,7 +4877,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == 's') ADVANCE(39); END_STATE(); case 67: - if (lookahead == 't') ADVANCE(208); + if (lookahead == 't') ADVANCE(209); END_STATE(); case 68: if (lookahead == 't') ADVANCE(204); @@ -4937,7 +4953,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == ',') ADVANCE(103); if (lookahead == '-') ADVANCE(188); if (lookahead == '/') ADVANCE(99); - if (lookahead == ':') ADVANCE(210); + if (lookahead == ':') ADVANCE(208); if (lookahead == '=') ADVANCE(100); if (lookahead == '[') ADVANCE(212); if (lookahead == ']') ADVANCE(213); @@ -4964,7 +4980,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (lookahead == '+') ADVANCE(214); if (lookahead == ',') ADVANCE(103); if (lookahead == '/') ADVANCE(6); - if (lookahead == ':') ADVANCE(210); + if (lookahead == ':') ADVANCE(208); if (lookahead == ']') ADVANCE(213); if (lookahead == '`') ADVANCE(83); if (lookahead == '}') ADVANCE(104); @@ -5417,7 +5433,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { END_STATE(); case 176: ACCEPT_TOKEN(sym_identifier); - if (lookahead == 't') ADVANCE(209); + if (lookahead == 't') ADVANCE(210); if (sym_identifier_character_set_4(lookahead)) ADVANCE(185); END_STATE(); case 177: @@ -5559,14 +5575,14 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) { if (sym_identifier_character_set_4(lookahead)) ADVANCE(185); END_STATE(); case 208: - ACCEPT_TOKEN(anon_sym_default); + ACCEPT_TOKEN(anon_sym_COLON); END_STATE(); case 209: ACCEPT_TOKEN(anon_sym_default); - if (sym_identifier_character_set_4(lookahead)) ADVANCE(185); END_STATE(); case 210: - ACCEPT_TOKEN(anon_sym_COLON); + ACCEPT_TOKEN(anon_sym_default); + if (sym_identifier_character_set_4(lookahead)) ADVANCE(185); END_STATE(); case 211: ACCEPT_TOKEN(anon_sym_unset); @@ -5594,7 +5610,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [0] = {.lex_state = 0}, [1] = {.lex_state = 85}, [2] = {.lex_state = 3}, - [3] = {.lex_state = 4}, + [3] = {.lex_state = 3}, [4] = {.lex_state = 4}, [5] = {.lex_state = 4}, [6] = {.lex_state = 4}, @@ -5602,7 +5618,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [8] = {.lex_state = 4}, [9] = {.lex_state = 4}, [10] = {.lex_state = 4}, - [11] = {.lex_state = 85}, + [11] = {.lex_state = 4}, [12] = {.lex_state = 5}, [13] = {.lex_state = 5}, [14] = {.lex_state = 5}, @@ -5626,53 +5642,53 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [32] = {.lex_state = 85}, [33] = {.lex_state = 85}, [34] = {.lex_state = 85}, - [35] = {.lex_state = 5}, - [36] = {.lex_state = 1}, - [37] = {.lex_state = 3}, + [35] = {.lex_state = 85}, + [36] = {.lex_state = 5}, + [37] = {.lex_state = 85}, [38] = {.lex_state = 85}, - [39] = {.lex_state = 85}, - [40] = {.lex_state = 1}, - [41] = {.lex_state = 85}, - [42] = {.lex_state = 5}, + [39] = {.lex_state = 1}, + [40] = {.lex_state = 85}, + [41] = {.lex_state = 1}, + [42] = {.lex_state = 85}, [43] = {.lex_state = 1}, - [44] = {.lex_state = 85}, - [45] = {.lex_state = 85}, - [46] = {.lex_state = 85}, + [44] = {.lex_state = 3}, + [45] = {.lex_state = 5}, + [46] = {.lex_state = 0}, [47] = {.lex_state = 0}, - [48] = {.lex_state = 1}, + [48] = {.lex_state = 85}, [49] = {.lex_state = 85}, - [50] = {.lex_state = 0}, + [50] = {.lex_state = 85}, [51] = {.lex_state = 0}, [52] = {.lex_state = 85}, - [53] = {.lex_state = 85}, + [53] = {.lex_state = 1}, [54] = {.lex_state = 0}, - [55] = {.lex_state = 85}, - [56] = {.lex_state = 0}, - [57] = {.lex_state = 85}, + [55] = {.lex_state = 0}, + [56] = {.lex_state = 85}, + [57] = {.lex_state = 0}, [58] = {.lex_state = 85}, - [59] = {.lex_state = 85}, + [59] = {.lex_state = 0}, [60] = {.lex_state = 0}, [61] = {.lex_state = 85}, - [62] = {.lex_state = 0}, - [63] = {.lex_state = 0}, + [62] = {.lex_state = 85}, + [63] = {.lex_state = 85}, [64] = {.lex_state = 0}, [65] = {.lex_state = 85}, [66] = {.lex_state = 85}, - [67] = {.lex_state = 85}, - [68] = {.lex_state = 0}, + [67] = {.lex_state = 0}, + [68] = {.lex_state = 85}, [69] = {.lex_state = 85}, - [70] = {.lex_state = 0}, + [70] = {.lex_state = 85}, [71] = {.lex_state = 85}, [72] = {.lex_state = 0}, - [73] = {.lex_state = 85}, + [73] = {.lex_state = 0}, [74] = {.lex_state = 85}, [75] = {.lex_state = 85}, [76] = {.lex_state = 85}, [77] = {.lex_state = 85}, [78] = {.lex_state = 85}, [79] = {.lex_state = 85}, - [80] = {.lex_state = 0}, - [81] = {.lex_state = 85}, + [80] = {.lex_state = 85}, + [81] = {.lex_state = 0}, [82] = {.lex_state = 85}, [83] = {.lex_state = 85}, [84] = {.lex_state = 85}, @@ -5680,7 +5696,7 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [86] = {.lex_state = 85}, [87] = {.lex_state = 85}, [88] = {.lex_state = 85}, - [89] = {.lex_state = 92}, + [89] = {.lex_state = 85}, [90] = {.lex_state = 0}, [91] = {.lex_state = 0}, [92] = {.lex_state = 0}, @@ -5700,11 +5716,20 @@ static const TSLexMode ts_lex_modes[STATE_COUNT] = { [106] = {.lex_state = 0}, [107] = {.lex_state = 0}, [108] = {.lex_state = 0}, - [109] = {.lex_state = 7}, + [109] = {.lex_state = 92}, [110] = {.lex_state = 0}, [111] = {.lex_state = 0}, - [112] = {(TSStateId)(-1)}, - [113] = {(TSStateId)(-1)}, + [112] = {.lex_state = 0}, + [113] = {.lex_state = 0}, + [114] = {.lex_state = 7}, + [115] = {.lex_state = 0}, + [116] = {.lex_state = 0}, + [117] = {.lex_state = 0}, + [118] = {.lex_state = 0}, + [119] = {.lex_state = 0}, + [120] = {.lex_state = 0}, + [121] = {(TSStateId)(-1)}, + [122] = {(TSStateId)(-1)}, }; static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { @@ -5736,23 +5761,23 @@ static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_release_variable] = ACTIONS(1), [anon_sym_variant] = ACTIONS(1), [anon_sym_soong_config_variable] = 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(104), - [sym__definition] = STATE(82), + [sym_source_file] = STATE(110), + [sym__definition] = STATE(77), [sym_line_comment] = STATE(1), [sym_block_comment] = STATE(1), - [sym_assignment] = STATE(78), - [sym_module] = STATE(78), - [sym__old_module] = STATE(76), - [sym__new_module] = STATE(75), - [aux_sym_source_file_repeat1] = STATE(16), + [sym_assignment] = STATE(79), + [sym_module] = STATE(79), + [sym__old_module] = STATE(80), + [sym__new_module] = STATE(84), + [aux_sym_source_file_repeat1] = STATE(17), [ts_builtin_sym_end] = ACTIONS(7), [anon_sym_SLASH_SLASH] = ACTIONS(3), [anon_sym_SLASH_STAR] = ACTIONS(5), @@ -5784,11 +5809,11 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_unset, ACTIONS(29), 1, anon_sym_LBRACK, - STATE(11), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(79), 1, + STATE(75), 1, sym__expr, - STATE(91), 1, + STATE(119), 1, sym__case_value, ACTIONS(15), 2, anon_sym_true, @@ -5796,7 +5821,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(2), 2, sym_line_comment, sym_block_comment, - STATE(24), 7, + STATE(26), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5804,7 +5829,50 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [60] = 16, + [60] = 17, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(11), 1, + anon_sym_LBRACE, + ACTIONS(13), 1, + sym_identifier, + ACTIONS(17), 1, + anon_sym_DASH, + ACTIONS(19), 1, + aux_sym_integer_literal_token1, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(25), 1, + anon_sym_select, + ACTIONS(27), 1, + anon_sym_unset, + ACTIONS(29), 1, + anon_sym_LBRACK, + STATE(19), 1, + sym_interpreted_string_literal, + STATE(75), 1, + sym__expr, + STATE(118), 1, + sym__case_value, + ACTIONS(15), 2, + anon_sym_true, + anon_sym_false, + STATE(3), 2, + sym_line_comment, + sym_block_comment, + STATE(26), 7, + sym_boolean_literal, + sym_integer_literal, + sym__string_literal, + sym_select_expression, + sym_list_expression, + sym_map_expression, + sym_binary_expression, + [120] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5827,17 +5895,17 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, ACTIONS(31), 1, anon_sym_RBRACK, - STATE(11), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(58), 1, + STATE(56), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(3), 2, + STATE(4), 2, sym_line_comment, sym_block_comment, - STATE(24), 7, + STATE(26), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5845,7 +5913,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [117] = 16, + [177] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5868,17 +5936,17 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, ACTIONS(33), 1, anon_sym_RBRACK, - STATE(11), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(44), 1, + STATE(42), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, anon_sym_false, - STATE(4), 2, + STATE(5), 2, sym_line_comment, sym_block_comment, - STATE(24), 7, + STATE(26), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5886,7 +5954,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [174] = 16, + [234] = 16, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5909,48 +5977,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_LBRACK, ACTIONS(35), 1, anon_sym_RBRACK, - STATE(11), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(58), 1, - sym__expr, - ACTIONS(15), 2, - anon_sym_true, - anon_sym_false, - STATE(5), 2, - sym_line_comment, - sym_block_comment, - STATE(24), 7, - sym_boolean_literal, - sym_integer_literal, - sym__string_literal, - sym_select_expression, - sym_list_expression, - sym_map_expression, - sym_binary_expression, - [231] = 15, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(11), 1, - anon_sym_LBRACE, - ACTIONS(13), 1, - sym_identifier, - ACTIONS(17), 1, - anon_sym_DASH, - ACTIONS(19), 1, - aux_sym_integer_literal_token1, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - ACTIONS(25), 1, - anon_sym_select, - ACTIONS(29), 1, - anon_sym_LBRACK, - STATE(11), 1, - sym_interpreted_string_literal, - STATE(45), 1, + STATE(56), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -5958,7 +5987,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(6), 2, sym_line_comment, sym_block_comment, - STATE(24), 7, + STATE(26), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -5966,7 +5995,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [285] = 15, + [291] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -5987,9 +6016,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_select, ACTIONS(29), 1, anon_sym_LBRACK, - STATE(11), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(58), 1, + STATE(65), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -5997,7 +6026,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(7), 2, sym_line_comment, sym_block_comment, - STATE(24), 7, + STATE(26), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6005,7 +6034,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [339] = 15, + [345] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6026,9 +6055,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_select, ACTIONS(29), 1, anon_sym_LBRACK, - STATE(11), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(25), 1, + STATE(62), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -6036,7 +6065,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(8), 2, sym_line_comment, sym_block_comment, - STATE(24), 7, + STATE(26), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6044,7 +6073,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [393] = 15, + [399] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6065,9 +6094,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_select, ACTIONS(29), 1, anon_sym_LBRACK, - STATE(11), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(57), 1, + STATE(28), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -6075,7 +6104,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(9), 2, sym_line_comment, sym_block_comment, - STATE(24), 7, + STATE(26), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6083,7 +6112,7 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [447] = 15, + [453] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6104,9 +6133,9 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_select, ACTIONS(29), 1, anon_sym_LBRACK, - STATE(11), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(66), 1, + STATE(56), 1, sym__expr, ACTIONS(15), 2, anon_sym_true, @@ -6114,7 +6143,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(10), 2, sym_line_comment, sym_block_comment, - STATE(24), 7, + STATE(26), 7, sym_boolean_literal, sym_integer_literal, sym__string_literal, @@ -6122,47 +6151,46 @@ static const uint16_t ts_small_parse_table[] = { sym_list_expression, sym_map_expression, sym_binary_expression, - [501] = 4, + [507] = 15, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(11), 1, + anon_sym_LBRACE, + ACTIONS(13), 1, + sym_identifier, + ACTIONS(17), 1, + anon_sym_DASH, + ACTIONS(19), 1, + aux_sym_integer_literal_token1, + ACTIONS(21), 1, + sym_raw_string_literal, + ACTIONS(23), 1, + anon_sym_DQUOTE, + ACTIONS(25), 1, + anon_sym_select, + ACTIONS(29), 1, + anon_sym_LBRACK, + STATE(19), 1, + sym_interpreted_string_literal, + STATE(58), 1, + sym__expr, + ACTIONS(15), 2, + anon_sym_true, + anon_sym_false, STATE(11), 2, sym_line_comment, sym_block_comment, - ACTIONS(37), 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, - [522] = 10, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(39), 1, - anon_sym_RBRACE, - ACTIONS(41), 1, - sym_raw_string_literal, - ACTIONS(44), 1, - anon_sym_DQUOTE, - ACTIONS(47), 1, - anon_sym_default, - STATE(11), 1, - sym_interpreted_string_literal, - STATE(90), 1, - sym_select_case, - STATE(101), 1, + STATE(26), 7, + sym_boolean_literal, + sym_integer_literal, sym__string_literal, - STATE(12), 3, - sym_line_comment, - sym_block_comment, - aux_sym__select_cases_repeat1, - [555] = 11, + sym_select_expression, + sym_list_expression, + sym_map_expression, + sym_binary_expression, + [561] = 12, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6171,46 +6199,72 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - ACTIONS(50), 1, + ACTIONS(37), 1, anon_sym_RBRACE, - ACTIONS(52), 1, + ACTIONS(39), 1, anon_sym_default, - STATE(11), 1, + STATE(14), 1, + aux_sym_select_cases_repeat1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(12), 1, - aux_sym__select_cases_repeat1, - STATE(90), 1, - sym_select_case, - STATE(101), 1, + STATE(102), 1, sym__string_literal, + STATE(103), 1, + sym_select_case, + STATE(113), 1, + sym_default_case, + STATE(12), 2, + sym_line_comment, + sym_block_comment, + [599] = 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(39), 1, + anon_sym_default, + ACTIONS(41), 1, + anon_sym_RBRACE, + STATE(12), 1, + aux_sym_select_cases_repeat1, + STATE(19), 1, + sym_interpreted_string_literal, + STATE(102), 1, + sym__string_literal, + STATE(103), 1, + sym_select_case, + STATE(104), 1, + sym_default_case, STATE(13), 2, sym_line_comment, sym_block_comment, - [590] = 11, + [637] = 9, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(21), 1, + ACTIONS(45), 1, sym_raw_string_literal, - ACTIONS(23), 1, + ACTIONS(48), 1, anon_sym_DQUOTE, - ACTIONS(52), 1, - anon_sym_default, - ACTIONS(54), 1, - anon_sym_RBRACE, - STATE(11), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(13), 1, - aux_sym__select_cases_repeat1, - STATE(90), 1, - sym_select_case, - STATE(101), 1, + STATE(102), 1, sym__string_literal, - STATE(14), 2, + STATE(103), 1, + sym_select_case, + ACTIONS(43), 2, + anon_sym_RBRACE, + anon_sym_default, + STATE(14), 3, sym_line_comment, sym_block_comment, - [625] = 4, + aux_sym_select_cases_repeat1, + [668] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6218,7 +6272,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(15), 2, sym_line_comment, sym_block_comment, - ACTIONS(56), 8, + ACTIONS(51), 8, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6227,69 +6281,69 @@ static const uint16_t ts_small_parse_table[] = { anon_sym_COLON, anon_sym_RBRACK, anon_sym_PLUS, - [646] = 10, + [689] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(16), 2, + sym_line_comment, + sym_block_comment, + ACTIONS(53), 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, + [710] = 10, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(9), 1, sym_identifier, - ACTIONS(58), 1, + ACTIONS(55), 1, ts_builtin_sym_end, STATE(18), 1, aux_sym_source_file_repeat1, - STATE(75), 1, - sym__new_module, - STATE(76), 1, - sym__old_module, - STATE(82), 1, + STATE(77), 1, sym__definition, - STATE(16), 2, - sym_line_comment, - sym_block_comment, - STATE(78), 2, - sym_assignment, - sym_module, - [679] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, + STATE(80), 1, + sym__old_module, + STATE(84), 1, + sym__new_module, STATE(17), 2, sym_line_comment, sym_block_comment, - ACTIONS(60), 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, - [700] = 9, + STATE(79), 2, + sym_assignment, + sym_module, + [743] = 9, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(62), 1, + ACTIONS(57), 1, ts_builtin_sym_end, - ACTIONS(64), 1, + ACTIONS(59), 1, sym_identifier, - STATE(75), 1, - sym__new_module, - STATE(76), 1, - sym__old_module, - STATE(82), 1, + STATE(77), 1, sym__definition, - STATE(78), 2, + STATE(80), 1, + sym__old_module, + STATE(84), 1, + sym__new_module, + STATE(79), 2, sym_assignment, sym_module, STATE(18), 3, sym_line_comment, sym_block_comment, aux_sym_source_file_repeat1, - [731] = 4, + [774] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6297,15 +6351,16 @@ static const uint16_t ts_small_parse_table[] = { STATE(19), 2, sym_line_comment, sym_block_comment, - ACTIONS(67), 7, + ACTIONS(62), 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, - [751] = 4, + [795] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6313,7 +6368,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(20), 2, sym_line_comment, sym_block_comment, - ACTIONS(69), 7, + ACTIONS(64), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6321,7 +6376,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [771] = 4, + [815] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6329,7 +6384,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(21), 2, sym_line_comment, sym_block_comment, - ACTIONS(71), 7, + ACTIONS(66), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6337,7 +6392,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [791] = 4, + [835] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6345,7 +6400,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(22), 2, sym_line_comment, sym_block_comment, - ACTIONS(73), 7, + ACTIONS(68), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6353,7 +6408,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [811] = 4, + [855] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6361,7 +6416,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(23), 2, sym_line_comment, sym_block_comment, - ACTIONS(75), 7, + ACTIONS(70), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6369,7 +6424,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [831] = 4, + [875] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6377,7 +6432,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(24), 2, sym_line_comment, sym_block_comment, - ACTIONS(77), 7, + ACTIONS(72), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6385,7 +6440,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [851] = 4, + [895] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6393,7 +6448,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(25), 2, sym_line_comment, sym_block_comment, - ACTIONS(79), 7, + ACTIONS(74), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6401,7 +6456,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [871] = 4, + [915] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6409,7 +6464,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(26), 2, sym_line_comment, sym_block_comment, - ACTIONS(81), 7, + ACTIONS(76), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6417,7 +6472,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [891] = 4, + [935] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6425,7 +6480,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(27), 2, sym_line_comment, sym_block_comment, - ACTIONS(83), 7, + ACTIONS(78), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6433,7 +6488,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [911] = 4, + [955] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6441,7 +6496,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(28), 2, sym_line_comment, sym_block_comment, - ACTIONS(85), 7, + ACTIONS(80), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6449,7 +6504,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [931] = 4, + [975] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6457,7 +6512,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(29), 2, sym_line_comment, sym_block_comment, - ACTIONS(87), 7, + ACTIONS(82), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6465,7 +6520,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [951] = 4, + [995] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6473,7 +6528,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(30), 2, sym_line_comment, sym_block_comment, - ACTIONS(89), 7, + ACTIONS(84), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6481,7 +6536,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [971] = 4, + [1015] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6489,7 +6544,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(31), 2, sym_line_comment, sym_block_comment, - ACTIONS(91), 7, + ACTIONS(86), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6497,7 +6552,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [991] = 4, + [1035] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6505,7 +6560,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(32), 2, sym_line_comment, sym_block_comment, - ACTIONS(93), 7, + ACTIONS(88), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6513,7 +6568,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1011] = 4, + [1055] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6521,7 +6576,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(33), 2, sym_line_comment, sym_block_comment, - ACTIONS(95), 7, + ACTIONS(90), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6529,7 +6584,7 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1031] = 4, + [1075] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6537,7 +6592,7 @@ static const uint16_t ts_small_parse_table[] = { STATE(34), 2, sym_line_comment, sym_block_comment, - ACTIONS(97), 7, + ACTIONS(92), 7, ts_builtin_sym_end, anon_sym_COMMA, anon_sym_RBRACE, @@ -6545,54 +6600,40 @@ static const uint16_t ts_small_parse_table[] = { sym_identifier, anon_sym_RBRACK, anon_sym_PLUS, - [1051] = 6, + [1095] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(101), 1, - anon_sym_soong_config_variable, STATE(35), 2, sym_line_comment, sym_block_comment, - STATE(103), 2, - sym_select_value, - sym_soong_config_variable, - ACTIONS(99), 3, - anon_sym_product_variable, - anon_sym_release_variable, - anon_sym_variant, - [1074] = 6, - ACTIONS(103), 1, - anon_sym_SLASH_SLASH, - ACTIONS(105), 1, - anon_sym_SLASH_STAR, - ACTIONS(107), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(110), 1, - anon_sym_DQUOTE2, - ACTIONS(112), 1, - sym_escape_sequence, - STATE(36), 3, - sym_line_comment, - sym_block_comment, - aux_sym_interpreted_string_literal_repeat1, - [1095] = 6, + ACTIONS(94), 7, + ts_builtin_sym_end, + anon_sym_COMMA, + anon_sym_RBRACE, + anon_sym_RPAREN, + sym_identifier, + anon_sym_RBRACK, + anon_sym_PLUS, + [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, - ACTIONS(115), 2, - anon_sym_EQ, - anon_sym_PLUS_EQ, - STATE(37), 2, + ACTIONS(98), 1, + anon_sym_soong_config_variable, + STATE(36), 2, sym_line_comment, sym_block_comment, - [1116] = 7, + STATE(98), 2, + sym_select_value, + sym_soong_config_variable, + ACTIONS(96), 3, + anon_sym_product_variable, + anon_sym_release_variable, + anon_sym_variant, + [1138] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6601,46 +6642,46 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(11), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(93), 1, + STATE(92), 1, + sym__string_literal, + STATE(37), 2, + sym_line_comment, + sym_block_comment, + [1161] = 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(19), 1, + sym_interpreted_string_literal, + STATE(107), 1, sym__string_literal, STATE(38), 2, sym_line_comment, sym_block_comment, - [1139] = 7, - ACTIONS(3), 1, + [1184] = 7, + ACTIONS(100), 1, anon_sym_SLASH_SLASH, - ACTIONS(5), 1, + ACTIONS(102), 1, anon_sym_SLASH_STAR, - ACTIONS(21), 1, - sym_raw_string_literal, - ACTIONS(23), 1, - anon_sym_DQUOTE, - STATE(11), 1, - sym_interpreted_string_literal, - STATE(92), 1, - sym__string_literal, - STATE(39), 2, - sym_line_comment, - sym_block_comment, - [1162] = 7, - ACTIONS(103), 1, - anon_sym_SLASH_SLASH, - ACTIONS(105), 1, - anon_sym_SLASH_STAR, - ACTIONS(121), 1, + ACTIONS(104), 1, aux_sym_interpreted_string_literal_token1, - ACTIONS(123), 1, + ACTIONS(106), 1, anon_sym_DQUOTE2, - ACTIONS(125), 1, + ACTIONS(108), 1, sym_escape_sequence, STATE(43), 1, aux_sym_interpreted_string_literal_repeat1, - STATE(40), 2, + STATE(39), 2, sym_line_comment, sym_block_comment, - [1185] = 7, + [1207] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, @@ -6649,1107 +6690,1233 @@ static const uint16_t ts_small_parse_table[] = { sym_raw_string_literal, ACTIONS(23), 1, anon_sym_DQUOTE, - STATE(11), 1, + STATE(19), 1, sym_interpreted_string_literal, - STATE(105), 1, + STATE(93), 1, sym__string_literal, + STATE(40), 2, + sym_line_comment, + sym_block_comment, + [1230] = 7, + ACTIONS(100), 1, + anon_sym_SLASH_SLASH, + ACTIONS(102), 1, + anon_sym_SLASH_STAR, + ACTIONS(104), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(108), 1, + sym_escape_sequence, + ACTIONS(110), 1, + anon_sym_DQUOTE2, + STATE(39), 1, + aux_sym_interpreted_string_literal_repeat1, STATE(41), 2, sym_line_comment, sym_block_comment, - [1208] = 4, + [1253] = 7, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, + ACTIONS(112), 1, + anon_sym_COMMA, + ACTIONS(114), 1, + anon_sym_RBRACK, + ACTIONS(116), 1, + anon_sym_PLUS, + STATE(60), 1, + aux_sym_list_expression_repeat1, STATE(42), 2, sym_line_comment, sym_block_comment, - ACTIONS(39), 4, + [1276] = 6, + ACTIONS(100), 1, + anon_sym_SLASH_SLASH, + ACTIONS(102), 1, + anon_sym_SLASH_STAR, + ACTIONS(118), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(121), 1, + anon_sym_DQUOTE2, + ACTIONS(123), 1, + sym_escape_sequence, + STATE(43), 3, + sym_line_comment, + sym_block_comment, + aux_sym_interpreted_string_literal_repeat1, + [1297] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(128), 1, + anon_sym_LBRACE, + ACTIONS(130), 1, + anon_sym_LPAREN, + ACTIONS(126), 2, + anon_sym_EQ, + anon_sym_PLUS_EQ, + STATE(44), 2, + sym_line_comment, + sym_block_comment, + [1318] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + STATE(45), 2, + sym_line_comment, + sym_block_comment, + ACTIONS(43), 4, anon_sym_RBRACE, sym_raw_string_literal, anon_sym_DQUOTE, anon_sym_default, - [1225] = 7, - ACTIONS(103), 1, - anon_sym_SLASH_SLASH, - ACTIONS(105), 1, - anon_sym_SLASH_STAR, - ACTIONS(121), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(125), 1, - sym_escape_sequence, - ACTIONS(127), 1, - anon_sym_DQUOTE2, - STATE(36), 1, - aux_sym_interpreted_string_literal_repeat1, - STATE(43), 2, - sym_line_comment, - sym_block_comment, - [1248] = 7, + [1335] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(129), 1, + ACTIONS(132), 1, anon_sym_COMMA, - ACTIONS(131), 1, - anon_sym_RBRACK, - ACTIONS(133), 1, - anon_sym_PLUS, - STATE(62), 1, - aux_sym_list_expression_repeat1, - STATE(44), 2, - sym_line_comment, - sym_block_comment, - [1271] = 5, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, - ACTIONS(135), 2, - anon_sym_COMMA, - anon_sym_RBRACE, - STATE(45), 2, - sym_line_comment, - sym_block_comment, - [1289] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(137), 1, - anon_sym_RBRACE, - ACTIONS(139), 1, - sym_identifier, - STATE(47), 1, - sym__colon_property, + ACTIONS(134), 1, + anon_sym_RPAREN, + STATE(51), 1, + aux_sym__new_module_repeat1, STATE(46), 2, sym_line_comment, sym_block_comment, - [1309] = 6, + [1355] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(141), 1, + ACTIONS(136), 1, anon_sym_COMMA, - ACTIONS(143), 1, + ACTIONS(138), 1, anon_sym_RBRACE, - STATE(56), 1, + STATE(64), 1, aux_sym__old_module_repeat1, STATE(47), 2, sym_line_comment, sym_block_comment, - [1329] = 5, - ACTIONS(103), 1, + [1375] = 6, + ACTIONS(3), 1, anon_sym_SLASH_SLASH, - ACTIONS(105), 1, + ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(145), 1, - aux_sym_interpreted_string_literal_token1, - ACTIONS(147), 2, - anon_sym_DQUOTE2, - sym_escape_sequence, + ACTIONS(140), 1, + anon_sym_RBRACE, + ACTIONS(142), 1, + sym_identifier, + STATE(73), 1, + sym__colon_property, STATE(48), 2, sym_line_comment, sym_block_comment, - [1347] = 6, + [1395] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(139), 1, + ACTIONS(144), 1, + anon_sym_RPAREN, + ACTIONS(146), 1, sym_identifier, - ACTIONS(149), 1, - anon_sym_RBRACE, - STATE(70), 1, - sym__colon_property, + STATE(72), 1, + sym__equal_property, STATE(49), 2, sym_line_comment, sym_block_comment, - [1367] = 5, + [1415] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(151), 1, - anon_sym_COMMA, - ACTIONS(154), 1, - anon_sym_RBRACK, - STATE(50), 3, + ACTIONS(142), 1, + sym_identifier, + ACTIONS(148), 1, + anon_sym_RBRACE, + STATE(57), 1, + sym__colon_property, + STATE(50), 2, sym_line_comment, sym_block_comment, - aux_sym_list_expression_repeat1, - [1385] = 6, + [1435] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(156), 1, + ACTIONS(150), 1, anon_sym_COMMA, - ACTIONS(158), 1, - anon_sym_RBRACE, - STATE(68), 1, - aux_sym__old_module_repeat1, + ACTIONS(152), 1, + anon_sym_RPAREN, + STATE(67), 1, + aux_sym__new_module_repeat1, STATE(51), 2, sym_line_comment, sym_block_comment, - [1405] = 6, + [1455] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(142), 1, + sym_identifier, + ACTIONS(154), 1, + anon_sym_RBRACE, + STATE(73), 1, + sym__colon_property, + STATE(52), 2, + sym_line_comment, + sym_block_comment, + [1475] = 5, + ACTIONS(100), 1, + anon_sym_SLASH_SLASH, + ACTIONS(102), 1, + anon_sym_SLASH_STAR, + ACTIONS(156), 1, + aux_sym_interpreted_string_literal_token1, + ACTIONS(158), 2, + anon_sym_DQUOTE2, + sym_escape_sequence, + STATE(53), 2, + sym_line_comment, + sym_block_comment, + [1493] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, ACTIONS(160), 1, - anon_sym_RPAREN, - ACTIONS(162), 1, - sym_identifier, - STATE(72), 1, - sym__equal_property, - STATE(52), 2, - sym_line_comment, - sym_block_comment, - [1425] = 6, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(139), 1, - sym_identifier, - ACTIONS(164), 1, - anon_sym_RBRACE, - STATE(60), 1, - sym__colon_property, - STATE(53), 2, - sym_line_comment, - sym_block_comment, - [1445] = 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_RPAREN, + ACTIONS(162), 1, + anon_sym_RBRACE, STATE(64), 1, - aux_sym__new_module_repeat1, + aux_sym__old_module_repeat1, STATE(54), 2, sym_line_comment, sym_block_comment, - [1465] = 6, + [1513] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(139), 1, - sym_identifier, - ACTIONS(170), 1, + ACTIONS(164), 1, + anon_sym_COMMA, + ACTIONS(166), 1, anon_sym_RBRACE, - STATE(70), 1, - sym__colon_property, + STATE(54), 1, + aux_sym__old_module_repeat1, STATE(55), 2, sym_line_comment, sym_block_comment, - [1485] = 6, + [1533] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(172), 1, + ACTIONS(116), 1, + anon_sym_PLUS, + ACTIONS(168), 2, anon_sym_COMMA, - ACTIONS(174), 1, - anon_sym_RBRACE, - STATE(68), 1, - aux_sym__old_module_repeat1, + anon_sym_RBRACK, STATE(56), 2, sym_line_comment, sym_block_comment, - [1505] = 5, + [1551] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, - ACTIONS(176), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(170), 1, + anon_sym_COMMA, + ACTIONS(172), 1, + anon_sym_RBRACE, + STATE(47), 1, + aux_sym__old_module_repeat1, STATE(57), 2, sym_line_comment, sym_block_comment, - [1523] = 5, + [1571] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, + ACTIONS(116), 1, anon_sym_PLUS, - ACTIONS(178), 2, - anon_sym_COMMA, - anon_sym_RBRACK, + ACTIONS(174), 2, + ts_builtin_sym_end, + sym_identifier, STATE(58), 2, sym_line_comment, sym_block_comment, - [1541] = 6, + [1589] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(162), 1, - sym_identifier, - ACTIONS(180), 1, - anon_sym_RPAREN, - STATE(63), 1, - sym__equal_property, - STATE(59), 2, + ACTIONS(176), 1, + anon_sym_COMMA, + ACTIONS(179), 1, + anon_sym_RBRACK, + STATE(59), 3, sym_line_comment, sym_block_comment, - [1561] = 6, + aux_sym_list_expression_repeat1, + [1607] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(182), 1, + ACTIONS(181), 1, anon_sym_COMMA, - ACTIONS(184), 1, - anon_sym_RBRACE, - STATE(51), 1, - aux_sym__old_module_repeat1, + ACTIONS(183), 1, + anon_sym_RBRACK, + STATE(59), 1, + aux_sym_list_expression_repeat1, STATE(60), 2, sym_line_comment, sym_block_comment, - [1581] = 6, + [1627] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(139), 1, + ACTIONS(142), 1, sym_identifier, - ACTIONS(186), 1, + ACTIONS(185), 1, anon_sym_RBRACE, - STATE(70), 1, + STATE(55), 1, sym__colon_property, STATE(61), 2, sym_line_comment, sym_block_comment, - [1601] = 6, + [1647] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(188), 1, + ACTIONS(116), 1, + anon_sym_PLUS, + ACTIONS(187), 2, anon_sym_COMMA, - ACTIONS(190), 1, - anon_sym_RBRACK, - STATE(50), 1, - aux_sym_list_expression_repeat1, + anon_sym_RBRACE, STATE(62), 2, sym_line_comment, sym_block_comment, - [1621] = 6, + [1665] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(192), 1, - anon_sym_COMMA, - ACTIONS(194), 1, - anon_sym_RPAREN, - STATE(54), 1, - aux_sym__new_module_repeat1, + ACTIONS(142), 1, + sym_identifier, + ACTIONS(189), 1, + anon_sym_RBRACE, + STATE(73), 1, + sym__colon_property, STATE(63), 2, sym_line_comment, sym_block_comment, - [1641] = 5, + [1685] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(196), 1, + ACTIONS(191), 1, anon_sym_COMMA, - ACTIONS(199), 1, - anon_sym_RPAREN, + ACTIONS(194), 1, + anon_sym_RBRACE, STATE(64), 3, sym_line_comment, sym_block_comment, - aux_sym__new_module_repeat1, - [1659] = 6, + aux_sym__old_module_repeat1, + [1703] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(162), 1, - sym_identifier, - ACTIONS(201), 1, + ACTIONS(116), 1, + anon_sym_PLUS, + ACTIONS(196), 2, + anon_sym_COMMA, anon_sym_RPAREN, - STATE(72), 1, - sym__equal_property, STATE(65), 2, sym_line_comment, sym_block_comment, - [1679] = 5, + [1721] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, - ACTIONS(203), 2, - anon_sym_COMMA, + ACTIONS(146), 1, + sym_identifier, + ACTIONS(198), 1, anon_sym_RPAREN, + STATE(72), 1, + sym__equal_property, STATE(66), 2, sym_line_comment, sym_block_comment, - [1697] = 6, + [1741] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(139), 1, + ACTIONS(200), 1, + anon_sym_COMMA, + ACTIONS(203), 1, + anon_sym_RPAREN, + STATE(67), 3, + sym_line_comment, + sym_block_comment, + aux_sym__new_module_repeat1, + [1759] = 6, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(146), 1, sym_identifier, ACTIONS(205), 1, - anon_sym_RBRACE, - STATE(70), 1, - sym__colon_property, - STATE(67), 2, + anon_sym_RPAREN, + STATE(46), 1, + sym__equal_property, + STATE(68), 2, sym_line_comment, sym_block_comment, - [1717] = 5, + [1779] = 6, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(207), 1, - anon_sym_COMMA, - ACTIONS(210), 1, - anon_sym_RBRACE, - STATE(68), 3, - sym_line_comment, - sym_block_comment, - aux_sym__old_module_repeat1, - [1735] = 4, - ACTIONS(3), 1, - anon_sym_SLASH_SLASH, - ACTIONS(5), 1, - anon_sym_SLASH_STAR, - ACTIONS(212), 2, - ts_builtin_sym_end, + ACTIONS(142), 1, sym_identifier, + ACTIONS(207), 1, + anon_sym_RBRACE, + STATE(73), 1, + sym__colon_property, STATE(69), 2, sym_line_comment, sym_block_comment, - [1750] = 4, + [1799] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(214), 2, - anon_sym_COMMA, - anon_sym_RBRACE, + ACTIONS(209), 2, + ts_builtin_sym_end, + sym_identifier, STATE(70), 2, sym_line_comment, sym_block_comment, - [1765] = 4, + [1814] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(216), 2, - ts_builtin_sym_end, + ACTIONS(146), 1, sym_identifier, + STATE(72), 1, + sym__equal_property, STATE(71), 2, sym_line_comment, sym_block_comment, - [1780] = 4, + [1831] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(218), 2, + ACTIONS(211), 2, anon_sym_COMMA, anon_sym_RPAREN, STATE(72), 2, sym_line_comment, sym_block_comment, - [1795] = 4, + [1846] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(220), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(213), 2, + anon_sym_COMMA, + anon_sym_RBRACE, STATE(73), 2, sym_line_comment, sym_block_comment, - [1810] = 4, + [1861] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(222), 2, + ACTIONS(215), 2, ts_builtin_sym_end, sym_identifier, STATE(74), 2, sym_line_comment, sym_block_comment, - [1825] = 4, + [1876] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(224), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(116), 1, + anon_sym_PLUS, + ACTIONS(217), 1, + anon_sym_COMMA, STATE(75), 2, sym_line_comment, sym_block_comment, - [1840] = 4, + [1893] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(224), 2, + ACTIONS(219), 2, ts_builtin_sym_end, sym_identifier, STATE(76), 2, sym_line_comment, sym_block_comment, - [1855] = 4, + [1908] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(226), 2, + ACTIONS(221), 2, ts_builtin_sym_end, sym_identifier, STATE(77), 2, sym_line_comment, sym_block_comment, - [1870] = 4, + [1923] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(228), 2, + ACTIONS(223), 2, ts_builtin_sym_end, sym_identifier, STATE(78), 2, sym_line_comment, sym_block_comment, - [1885] = 5, + [1938] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(133), 1, - anon_sym_PLUS, - ACTIONS(230), 1, - anon_sym_COMMA, + ACTIONS(225), 2, + ts_builtin_sym_end, + sym_identifier, STATE(79), 2, sym_line_comment, sym_block_comment, - [1902] = 5, + [1953] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(232), 1, - anon_sym_LBRACE, - STATE(95), 1, - sym__select_cases, + ACTIONS(227), 2, + ts_builtin_sym_end, + sym_identifier, STATE(80), 2, sym_line_comment, sym_block_comment, - [1919] = 4, + [1968] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(234), 2, - ts_builtin_sym_end, - sym_identifier, + ACTIONS(229), 1, + anon_sym_LBRACE, + STATE(95), 1, + sym_select_cases, STATE(81), 2, sym_line_comment, sym_block_comment, - [1934] = 4, + [1985] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(236), 2, + ACTIONS(231), 2, ts_builtin_sym_end, sym_identifier, STATE(82), 2, sym_line_comment, sym_block_comment, - [1949] = 4, + [2000] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(238), 2, + ACTIONS(233), 2, ts_builtin_sym_end, sym_identifier, STATE(83), 2, sym_line_comment, sym_block_comment, - [1964] = 4, + [2015] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(240), 2, + ACTIONS(227), 2, ts_builtin_sym_end, sym_identifier, STATE(84), 2, sym_line_comment, sym_block_comment, - [1979] = 4, + [2030] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(242), 2, + ACTIONS(235), 2, ts_builtin_sym_end, sym_identifier, STATE(85), 2, sym_line_comment, sym_block_comment, - [1994] = 5, + [2045] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(139), 1, + ACTIONS(237), 2, + ts_builtin_sym_end, sym_identifier, - STATE(70), 1, - sym__colon_property, STATE(86), 2, sym_line_comment, sym_block_comment, - [2011] = 4, + [2060] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(244), 2, + ACTIONS(239), 2, ts_builtin_sym_end, sym_identifier, STATE(87), 2, sym_line_comment, sym_block_comment, - [2026] = 5, + [2075] = 5, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(162), 1, + ACTIONS(142), 1, sym_identifier, - STATE(72), 1, - sym__equal_property, + STATE(73), 1, + sym__colon_property, STATE(88), 2, sym_line_comment, sym_block_comment, - [2043] = 4, - ACTIONS(103), 1, - anon_sym_SLASH_SLASH, - ACTIONS(105), 1, - anon_sym_SLASH_STAR, - ACTIONS(246), 1, - aux_sym_line_comment_token1, - STATE(89), 2, - sym_line_comment, - sym_block_comment, - [2057] = 4, + [2092] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(248), 1, + ACTIONS(241), 2, + ts_builtin_sym_end, + sym_identifier, + STATE(89), 2, + sym_line_comment, + sym_block_comment, + [2107] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(243), 1, anon_sym_COMMA, STATE(90), 2, sym_line_comment, sym_block_comment, - [2071] = 4, + [2121] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(250), 1, + ACTIONS(245), 1, anon_sym_COMMA, STATE(91), 2, sym_line_comment, sym_block_comment, - [2085] = 4, + [2135] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(252), 1, + ACTIONS(247), 1, anon_sym_RPAREN, STATE(92), 2, sym_line_comment, sym_block_comment, - [2099] = 4, + [2149] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(254), 1, + ACTIONS(249), 1, anon_sym_COMMA, STATE(93), 2, sym_line_comment, sym_block_comment, - [2113] = 4, + [2163] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(256), 1, - anon_sym_SLASH, + ACTIONS(251), 1, + aux_sym_integer_literal_token1, STATE(94), 2, sym_line_comment, sym_block_comment, - [2127] = 4, + [2177] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(258), 1, + ACTIONS(253), 1, anon_sym_RPAREN, STATE(95), 2, sym_line_comment, sym_block_comment, - [2141] = 4, + [2191] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(260), 1, - anon_sym_COLON, + ACTIONS(255), 1, + anon_sym_RPAREN, STATE(96), 2, sym_line_comment, sym_block_comment, - [2155] = 4, + [2205] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(262), 1, - aux_sym_integer_literal_token1, + ACTIONS(257), 1, + anon_sym_SLASH, STATE(97), 2, sym_line_comment, sym_block_comment, - [2169] = 4, + [2219] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(264), 1, + ACTIONS(259), 1, anon_sym_COMMA, STATE(98), 2, sym_line_comment, sym_block_comment, - [2183] = 4, + [2233] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(266), 1, - anon_sym_LPAREN, + ACTIONS(261), 1, + anon_sym_RBRACE, STATE(99), 2, sym_line_comment, sym_block_comment, - [2197] = 4, + [2247] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(268), 1, + ACTIONS(263), 1, anon_sym_RPAREN, STATE(100), 2, sym_line_comment, sym_block_comment, - [2211] = 4, + [2261] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(270), 1, + ACTIONS(265), 1, anon_sym_COLON, STATE(101), 2, sym_line_comment, sym_block_comment, - [2225] = 4, + [2275] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(272), 1, - anon_sym_EQ, + ACTIONS(267), 1, + anon_sym_COLON, STATE(102), 2, sym_line_comment, sym_block_comment, - [2239] = 4, + [2289] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(274), 1, + ACTIONS(269), 1, anon_sym_COMMA, STATE(103), 2, sym_line_comment, sym_block_comment, - [2253] = 4, + [2303] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(276), 1, - ts_builtin_sym_end, + ACTIONS(271), 1, + anon_sym_COMMA, STATE(104), 2, sym_line_comment, sym_block_comment, - [2267] = 4, + [2317] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(278), 1, - anon_sym_RPAREN, + ACTIONS(273), 1, + anon_sym_COLON, STATE(105), 2, sym_line_comment, sym_block_comment, - [2281] = 4, + [2331] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(280), 1, - anon_sym_LPAREN, + ACTIONS(275), 1, + anon_sym_EQ, STATE(106), 2, sym_line_comment, sym_block_comment, - [2295] = 4, + [2345] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(282), 1, - anon_sym_LPAREN, + ACTIONS(277), 1, + anon_sym_RPAREN, STATE(107), 2, sym_line_comment, sym_block_comment, - [2309] = 4, + [2359] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(284), 1, - anon_sym_RPAREN, + ACTIONS(279), 1, + anon_sym_LPAREN, STATE(108), 2, sym_line_comment, sym_block_comment, - [2323] = 4, - ACTIONS(103), 1, + [2373] = 4, + ACTIONS(100), 1, anon_sym_SLASH_SLASH, - ACTIONS(105), 1, + ACTIONS(102), 1, anon_sym_SLASH_STAR, - ACTIONS(286), 1, - aux_sym_block_comment_token1, + ACTIONS(281), 1, + aux_sym_line_comment_token1, STATE(109), 2, sym_line_comment, sym_block_comment, - [2337] = 4, + [2387] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(288), 1, - anon_sym_COMMA, + ACTIONS(283), 1, + ts_builtin_sym_end, STATE(110), 2, sym_line_comment, sym_block_comment, - [2351] = 4, + [2401] = 4, ACTIONS(3), 1, anon_sym_SLASH_SLASH, ACTIONS(5), 1, anon_sym_SLASH_STAR, - ACTIONS(230), 1, - anon_sym_COMMA, + ACTIONS(285), 1, + anon_sym_RBRACE, STATE(111), 2, sym_line_comment, sym_block_comment, - [2365] = 1, - ACTIONS(290), 1, + [2415] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(287), 1, + anon_sym_RPAREN, + STATE(112), 2, + sym_line_comment, + sym_block_comment, + [2429] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(289), 1, + anon_sym_COMMA, + STATE(113), 2, + sym_line_comment, + sym_block_comment, + [2443] = 4, + ACTIONS(100), 1, + anon_sym_SLASH_SLASH, + ACTIONS(102), 1, + anon_sym_SLASH_STAR, + ACTIONS(291), 1, + aux_sym_block_comment_token1, + STATE(114), 2, + sym_line_comment, + sym_block_comment, + [2457] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(293), 1, + anon_sym_LPAREN, + STATE(115), 2, + sym_line_comment, + sym_block_comment, + [2471] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(217), 1, + anon_sym_COMMA, + STATE(116), 2, + sym_line_comment, + sym_block_comment, + [2485] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(295), 1, + anon_sym_LPAREN, + STATE(117), 2, + sym_line_comment, + sym_block_comment, + [2499] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(297), 1, + anon_sym_COMMA, + STATE(118), 2, + sym_line_comment, + sym_block_comment, + [2513] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(299), 1, + anon_sym_COMMA, + STATE(119), 2, + sym_line_comment, + sym_block_comment, + [2527] = 4, + ACTIONS(3), 1, + anon_sym_SLASH_SLASH, + ACTIONS(5), 1, + anon_sym_SLASH_STAR, + ACTIONS(301), 1, + anon_sym_RPAREN, + STATE(120), 2, + sym_line_comment, + sym_block_comment, + [2541] = 1, + ACTIONS(303), 1, ts_builtin_sym_end, - [2369] = 1, - ACTIONS(292), 1, + [2545] = 1, + ACTIONS(305), 1, ts_builtin_sym_end, }; static const uint32_t ts_small_parse_table_map[] = { [SMALL_STATE(2)] = 0, [SMALL_STATE(3)] = 60, - [SMALL_STATE(4)] = 117, - [SMALL_STATE(5)] = 174, - [SMALL_STATE(6)] = 231, - [SMALL_STATE(7)] = 285, - [SMALL_STATE(8)] = 339, - [SMALL_STATE(9)] = 393, - [SMALL_STATE(10)] = 447, - [SMALL_STATE(11)] = 501, - [SMALL_STATE(12)] = 522, - [SMALL_STATE(13)] = 555, - [SMALL_STATE(14)] = 590, - [SMALL_STATE(15)] = 625, - [SMALL_STATE(16)] = 646, - [SMALL_STATE(17)] = 679, - [SMALL_STATE(18)] = 700, - [SMALL_STATE(19)] = 731, - [SMALL_STATE(20)] = 751, - [SMALL_STATE(21)] = 771, - [SMALL_STATE(22)] = 791, - [SMALL_STATE(23)] = 811, - [SMALL_STATE(24)] = 831, - [SMALL_STATE(25)] = 851, - [SMALL_STATE(26)] = 871, - [SMALL_STATE(27)] = 891, - [SMALL_STATE(28)] = 911, - [SMALL_STATE(29)] = 931, - [SMALL_STATE(30)] = 951, - [SMALL_STATE(31)] = 971, - [SMALL_STATE(32)] = 991, - [SMALL_STATE(33)] = 1011, - [SMALL_STATE(34)] = 1031, - [SMALL_STATE(35)] = 1051, - [SMALL_STATE(36)] = 1074, - [SMALL_STATE(37)] = 1095, - [SMALL_STATE(38)] = 1116, - [SMALL_STATE(39)] = 1139, - [SMALL_STATE(40)] = 1162, - [SMALL_STATE(41)] = 1185, - [SMALL_STATE(42)] = 1208, - [SMALL_STATE(43)] = 1225, - [SMALL_STATE(44)] = 1248, - [SMALL_STATE(45)] = 1271, - [SMALL_STATE(46)] = 1289, - [SMALL_STATE(47)] = 1309, - [SMALL_STATE(48)] = 1329, - [SMALL_STATE(49)] = 1347, - [SMALL_STATE(50)] = 1367, - [SMALL_STATE(51)] = 1385, - [SMALL_STATE(52)] = 1405, - [SMALL_STATE(53)] = 1425, - [SMALL_STATE(54)] = 1445, - [SMALL_STATE(55)] = 1465, - [SMALL_STATE(56)] = 1485, - [SMALL_STATE(57)] = 1505, - [SMALL_STATE(58)] = 1523, - [SMALL_STATE(59)] = 1541, - [SMALL_STATE(60)] = 1561, - [SMALL_STATE(61)] = 1581, - [SMALL_STATE(62)] = 1601, - [SMALL_STATE(63)] = 1621, - [SMALL_STATE(64)] = 1641, - [SMALL_STATE(65)] = 1659, - [SMALL_STATE(66)] = 1679, - [SMALL_STATE(67)] = 1697, - [SMALL_STATE(68)] = 1717, - [SMALL_STATE(69)] = 1735, - [SMALL_STATE(70)] = 1750, - [SMALL_STATE(71)] = 1765, - [SMALL_STATE(72)] = 1780, - [SMALL_STATE(73)] = 1795, - [SMALL_STATE(74)] = 1810, - [SMALL_STATE(75)] = 1825, - [SMALL_STATE(76)] = 1840, - [SMALL_STATE(77)] = 1855, - [SMALL_STATE(78)] = 1870, - [SMALL_STATE(79)] = 1885, - [SMALL_STATE(80)] = 1902, - [SMALL_STATE(81)] = 1919, - [SMALL_STATE(82)] = 1934, - [SMALL_STATE(83)] = 1949, - [SMALL_STATE(84)] = 1964, - [SMALL_STATE(85)] = 1979, - [SMALL_STATE(86)] = 1994, - [SMALL_STATE(87)] = 2011, - [SMALL_STATE(88)] = 2026, - [SMALL_STATE(89)] = 2043, - [SMALL_STATE(90)] = 2057, - [SMALL_STATE(91)] = 2071, - [SMALL_STATE(92)] = 2085, - [SMALL_STATE(93)] = 2099, - [SMALL_STATE(94)] = 2113, - [SMALL_STATE(95)] = 2127, - [SMALL_STATE(96)] = 2141, - [SMALL_STATE(97)] = 2155, - [SMALL_STATE(98)] = 2169, - [SMALL_STATE(99)] = 2183, - [SMALL_STATE(100)] = 2197, - [SMALL_STATE(101)] = 2211, - [SMALL_STATE(102)] = 2225, - [SMALL_STATE(103)] = 2239, - [SMALL_STATE(104)] = 2253, - [SMALL_STATE(105)] = 2267, - [SMALL_STATE(106)] = 2281, - [SMALL_STATE(107)] = 2295, - [SMALL_STATE(108)] = 2309, - [SMALL_STATE(109)] = 2323, - [SMALL_STATE(110)] = 2337, - [SMALL_STATE(111)] = 2351, - [SMALL_STATE(112)] = 2365, - [SMALL_STATE(113)] = 2369, + [SMALL_STATE(4)] = 120, + [SMALL_STATE(5)] = 177, + [SMALL_STATE(6)] = 234, + [SMALL_STATE(7)] = 291, + [SMALL_STATE(8)] = 345, + [SMALL_STATE(9)] = 399, + [SMALL_STATE(10)] = 453, + [SMALL_STATE(11)] = 507, + [SMALL_STATE(12)] = 561, + [SMALL_STATE(13)] = 599, + [SMALL_STATE(14)] = 637, + [SMALL_STATE(15)] = 668, + [SMALL_STATE(16)] = 689, + [SMALL_STATE(17)] = 710, + [SMALL_STATE(18)] = 743, + [SMALL_STATE(19)] = 774, + [SMALL_STATE(20)] = 795, + [SMALL_STATE(21)] = 815, + [SMALL_STATE(22)] = 835, + [SMALL_STATE(23)] = 855, + [SMALL_STATE(24)] = 875, + [SMALL_STATE(25)] = 895, + [SMALL_STATE(26)] = 915, + [SMALL_STATE(27)] = 935, + [SMALL_STATE(28)] = 955, + [SMALL_STATE(29)] = 975, + [SMALL_STATE(30)] = 995, + [SMALL_STATE(31)] = 1015, + [SMALL_STATE(32)] = 1035, + [SMALL_STATE(33)] = 1055, + [SMALL_STATE(34)] = 1075, + [SMALL_STATE(35)] = 1095, + [SMALL_STATE(36)] = 1115, + [SMALL_STATE(37)] = 1138, + [SMALL_STATE(38)] = 1161, + [SMALL_STATE(39)] = 1184, + [SMALL_STATE(40)] = 1207, + [SMALL_STATE(41)] = 1230, + [SMALL_STATE(42)] = 1253, + [SMALL_STATE(43)] = 1276, + [SMALL_STATE(44)] = 1297, + [SMALL_STATE(45)] = 1318, + [SMALL_STATE(46)] = 1335, + [SMALL_STATE(47)] = 1355, + [SMALL_STATE(48)] = 1375, + [SMALL_STATE(49)] = 1395, + [SMALL_STATE(50)] = 1415, + [SMALL_STATE(51)] = 1435, + [SMALL_STATE(52)] = 1455, + [SMALL_STATE(53)] = 1475, + [SMALL_STATE(54)] = 1493, + [SMALL_STATE(55)] = 1513, + [SMALL_STATE(56)] = 1533, + [SMALL_STATE(57)] = 1551, + [SMALL_STATE(58)] = 1571, + [SMALL_STATE(59)] = 1589, + [SMALL_STATE(60)] = 1607, + [SMALL_STATE(61)] = 1627, + [SMALL_STATE(62)] = 1647, + [SMALL_STATE(63)] = 1665, + [SMALL_STATE(64)] = 1685, + [SMALL_STATE(65)] = 1703, + [SMALL_STATE(66)] = 1721, + [SMALL_STATE(67)] = 1741, + [SMALL_STATE(68)] = 1759, + [SMALL_STATE(69)] = 1779, + [SMALL_STATE(70)] = 1799, + [SMALL_STATE(71)] = 1814, + [SMALL_STATE(72)] = 1831, + [SMALL_STATE(73)] = 1846, + [SMALL_STATE(74)] = 1861, + [SMALL_STATE(75)] = 1876, + [SMALL_STATE(76)] = 1893, + [SMALL_STATE(77)] = 1908, + [SMALL_STATE(78)] = 1923, + [SMALL_STATE(79)] = 1938, + [SMALL_STATE(80)] = 1953, + [SMALL_STATE(81)] = 1968, + [SMALL_STATE(82)] = 1985, + [SMALL_STATE(83)] = 2000, + [SMALL_STATE(84)] = 2015, + [SMALL_STATE(85)] = 2030, + [SMALL_STATE(86)] = 2045, + [SMALL_STATE(87)] = 2060, + [SMALL_STATE(88)] = 2075, + [SMALL_STATE(89)] = 2092, + [SMALL_STATE(90)] = 2107, + [SMALL_STATE(91)] = 2121, + [SMALL_STATE(92)] = 2135, + [SMALL_STATE(93)] = 2149, + [SMALL_STATE(94)] = 2163, + [SMALL_STATE(95)] = 2177, + [SMALL_STATE(96)] = 2191, + [SMALL_STATE(97)] = 2205, + [SMALL_STATE(98)] = 2219, + [SMALL_STATE(99)] = 2233, + [SMALL_STATE(100)] = 2247, + [SMALL_STATE(101)] = 2261, + [SMALL_STATE(102)] = 2275, + [SMALL_STATE(103)] = 2289, + [SMALL_STATE(104)] = 2303, + [SMALL_STATE(105)] = 2317, + [SMALL_STATE(106)] = 2331, + [SMALL_STATE(107)] = 2345, + [SMALL_STATE(108)] = 2359, + [SMALL_STATE(109)] = 2373, + [SMALL_STATE(110)] = 2387, + [SMALL_STATE(111)] = 2401, + [SMALL_STATE(112)] = 2415, + [SMALL_STATE(113)] = 2429, + [SMALL_STATE(114)] = 2443, + [SMALL_STATE(115)] = 2457, + [SMALL_STATE(116)] = 2471, + [SMALL_STATE(117)] = 2485, + [SMALL_STATE(118)] = 2499, + [SMALL_STATE(119)] = 2513, + [SMALL_STATE(120)] = 2527, + [SMALL_STATE(121)] = 2541, + [SMALL_STATE(122)] = 2545, }; 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(89), - [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), + [3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(109), + [5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(114), [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(46), - [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(24), - [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(20), - [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(97), - [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), - [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), - [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), - [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(99), - [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(111), - [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), - [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), - [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), - [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(28), - [37] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), - [39] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__select_cases_repeat1, 2), - [41] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__select_cases_repeat1, 2), SHIFT_REPEAT(11), - [44] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__select_cases_repeat1, 2), SHIFT_REPEAT(40), - [47] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__select_cases_repeat1, 2), SHIFT_REPEAT(101), - [50] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), - [52] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), - [54] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), - [56] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), - [58] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), - [60] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), - [62] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), - [64] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(37), - [67] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), - [69] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), - [71] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), - [73] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), - [75] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), - [77] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), - [79] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), - [81] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), - [83] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), - [85] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), - [87] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), - [89] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), - [91] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), - [93] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), - [95] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), - [97] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), - [99] = {.entry = {.count = 1, .reusable = true}}, SHIFT(107), - [101] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), - [103] = {.entry = {.count = 1, .reusable = false}}, SHIFT(89), - [105] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), - [107] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(48), - [110] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), - [112] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(48), - [115] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), - [117] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), - [119] = {.entry = {.count = 1, .reusable = true}}, SHIFT(59), - [121] = {.entry = {.count = 1, .reusable = false}}, SHIFT(48), - [123] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17), - [125] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), - [127] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), - [129] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), - [131] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21), - [133] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), - [135] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), - [137] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), - [139] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), - [141] = {.entry = {.count = 1, .reusable = true}}, SHIFT(55), - [143] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), - [145] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [147] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), - [149] = {.entry = {.count = 1, .reusable = true}}, SHIFT(73), - [151] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(7), - [154] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), - [156] = {.entry = {.count = 1, .reusable = true}}, SHIFT(67), - [158] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), - [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(71), - [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(102), - [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), - [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(65), - [168] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), - [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(26), - [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), - [174] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), - [176] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), - [178] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), - [180] = {.entry = {.count = 1, .reusable = true}}, SHIFT(77), - [182] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), - [184] = {.entry = {.count = 1, .reusable = true}}, SHIFT(84), - [186] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), - [188] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), - [190] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), - [192] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), - [194] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), - [196] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), - [199] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), - [201] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), - [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), - [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), - [207] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(86), - [210] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), - [212] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), - [214] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), - [216] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), - [218] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), - [220] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), - [222] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), - [224] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), - [226] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), - [228] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), - [230] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), - [232] = {.entry = {.count = 1, .reusable = true}}, SHIFT(14), - [234] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), - [236] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), - [238] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), - [240] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), - [242] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), - [244] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), - [246] = {.entry = {.count = 1, .reusable = false}}, SHIFT(113), - [248] = {.entry = {.count = 1, .reusable = true}}, SHIFT(42), - [250] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 16), - [252] = {.entry = {.count = 1, .reusable = true}}, SHIFT(98), - [254] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), - [256] = {.entry = {.count = 1, .reusable = false}}, SHIFT(112), - [258] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), - [260] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), - [262] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), - [264] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 14), - [266] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), - [268] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_cases, 2), - [270] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), - [272] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10), - [274] = {.entry = {.count = 1, .reusable = true}}, SHIFT(80), - [276] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), - [278] = {.entry = {.count = 1, .reusable = true}}, SHIFT(110), - [280] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), - [282] = {.entry = {.count = 1, .reusable = true}}, SHIFT(39), - [284] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__select_cases, 3), - [286] = {.entry = {.count = 1, .reusable = false}}, SHIFT(94), - [288] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_soong_config_variable, 6, .production_id = 15), - [290] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_block_comment, 3), - [292] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_line_comment, 2), + [9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(44), + [11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(61), + [13] = {.entry = {.count = 1, .reusable = false}}, SHIFT(26), + [15] = {.entry = {.count = 1, .reusable = false}}, SHIFT(21), + [17] = {.entry = {.count = 1, .reusable = true}}, SHIFT(94), + [19] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20), + [21] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19), + [23] = {.entry = {.count = 1, .reusable = true}}, SHIFT(41), + [25] = {.entry = {.count = 1, .reusable = false}}, SHIFT(115), + [27] = {.entry = {.count = 1, .reusable = false}}, SHIFT(116), + [29] = {.entry = {.count = 1, .reusable = true}}, SHIFT(5), + [31] = {.entry = {.count = 1, .reusable = true}}, SHIFT(31), + [33] = {.entry = {.count = 1, .reusable = true}}, SHIFT(29), + [35] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23), + [37] = {.entry = {.count = 1, .reusable = true}}, SHIFT(112), + [39] = {.entry = {.count = 1, .reusable = true}}, SHIFT(101), + [41] = {.entry = {.count = 1, .reusable = true}}, SHIFT(100), + [43] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), + [45] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(19), + [48] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_select_cases_repeat1, 2), SHIFT_REPEAT(41), + [51] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 2), + [53] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_interpreted_string_literal, 3), + [55] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_source_file, 1), + [57] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), + [59] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 2), SHIFT_REPEAT(44), + [62] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__string_literal, 1), + [64] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 1), + [66] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_boolean_literal, 1), + [68] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 5, .production_id = 11), + [70] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 6), + [72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_expression, 6), + [74] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 3, .production_id = 6), + [76] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__expr, 1), + [78] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 4, .production_id = 12), + [80] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_binary_expression, 3, .production_id = 7), + [82] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 2), + [84] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 5), + [86] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_list_expression, 5, .production_id = 12), + [88] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 4, .production_id = 11), + [90] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 2), + [92] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_map_expression, 3, .production_id = 5), + [94] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_integer_literal, 2), + [96] = {.entry = {.count = 1, .reusable = true}}, SHIFT(108), + [98] = {.entry = {.count = 1, .reusable = true}}, SHIFT(117), + [100] = {.entry = {.count = 1, .reusable = false}}, SHIFT(109), + [102] = {.entry = {.count = 1, .reusable = false}}, SHIFT(114), + [104] = {.entry = {.count = 1, .reusable = false}}, SHIFT(53), + [106] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16), + [108] = {.entry = {.count = 1, .reusable = true}}, SHIFT(53), + [110] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15), + [112] = {.entry = {.count = 1, .reusable = true}}, SHIFT(6), + [114] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25), + [116] = {.entry = {.count = 1, .reusable = true}}, SHIFT(9), + [118] = {.entry = {.count = 2, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(53), + [121] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), + [123] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 2), SHIFT_REPEAT(53), + [126] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11), + [128] = {.entry = {.count = 1, .reusable = true}}, SHIFT(50), + [130] = {.entry = {.count = 1, .reusable = true}}, SHIFT(68), + [132] = {.entry = {.count = 1, .reusable = true}}, SHIFT(49), + [134] = {.entry = {.count = 1, .reusable = true}}, SHIFT(82), + [136] = {.entry = {.count = 1, .reusable = true}}, SHIFT(63), + [138] = {.entry = {.count = 1, .reusable = true}}, SHIFT(76), + [140] = {.entry = {.count = 1, .reusable = true}}, SHIFT(78), + [142] = {.entry = {.count = 1, .reusable = true}}, SHIFT(105), + [144] = {.entry = {.count = 1, .reusable = true}}, SHIFT(85), + [146] = {.entry = {.count = 1, .reusable = true}}, SHIFT(106), + [148] = {.entry = {.count = 1, .reusable = true}}, SHIFT(86), + [150] = {.entry = {.count = 1, .reusable = true}}, SHIFT(66), + [152] = {.entry = {.count = 1, .reusable = true}}, SHIFT(74), + [154] = {.entry = {.count = 1, .reusable = true}}, SHIFT(30), + [156] = {.entry = {.count = 1, .reusable = false}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [158] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_interpreted_string_literal_repeat1, 1), + [160] = {.entry = {.count = 1, .reusable = true}}, SHIFT(69), + [162] = {.entry = {.count = 1, .reusable = true}}, SHIFT(32), + [164] = {.entry = {.count = 1, .reusable = true}}, SHIFT(52), + [166] = {.entry = {.count = 1, .reusable = true}}, SHIFT(34), + [168] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 6), + [170] = {.entry = {.count = 1, .reusable = true}}, SHIFT(48), + [172] = {.entry = {.count = 1, .reusable = true}}, SHIFT(83), + [174] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_assignment, 3, .production_id = 2), + [176] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), SHIFT_REPEAT(10), + [179] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_list_expression_repeat1, 2, .production_id = 13), + [181] = {.entry = {.count = 1, .reusable = true}}, SHIFT(4), + [183] = {.entry = {.count = 1, .reusable = true}}, SHIFT(27), + [185] = {.entry = {.count = 1, .reusable = true}}, SHIFT(33), + [187] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__colon_property, 3, .production_id = 8), + [189] = {.entry = {.count = 1, .reusable = true}}, SHIFT(87), + [191] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(88), + [194] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 10), + [196] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__equal_property, 3, .production_id = 8), + [198] = {.entry = {.count = 1, .reusable = true}}, SHIFT(89), + [200] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), SHIFT_REPEAT(71), + [203] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 10), + [205] = {.entry = {.count = 1, .reusable = true}}, SHIFT(70), + [207] = {.entry = {.count = 1, .reusable = true}}, SHIFT(22), + [209] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 3, .production_id = 3), + [211] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__new_module_repeat1, 2, .production_id = 5), + [213] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym__old_module_repeat1, 2, .production_id = 5), + [215] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 9), + [217] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__case_value, 1), + [219] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 9), + [221] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_source_file_repeat1, 1), + [223] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 5, .production_id = 4), + [225] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__definition, 1), + [227] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_module, 1, .production_id = 1), + [229] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13), + [231] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 4, .production_id = 4), + [233] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 4, .production_id = 4), + [235] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 5, .production_id = 4), + [237] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 3, .production_id = 3), + [239] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__old_module, 6, .production_id = 9), + [241] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__new_module, 6, .production_id = 9), + [243] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_value, 4, .production_id = 14), + [245] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_soong_config_variable, 6, .production_id = 15), + [247] = {.entry = {.count = 1, .reusable = true}}, SHIFT(90), + [249] = {.entry = {.count = 1, .reusable = true}}, SHIFT(38), + [251] = {.entry = {.count = 1, .reusable = true}}, SHIFT(35), + [253] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24), + [255] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 5), + [257] = {.entry = {.count = 1, .reusable = false}}, SHIFT(122), + [259] = {.entry = {.count = 1, .reusable = true}}, SHIFT(81), + [261] = {.entry = {.count = 1, .reusable = true}}, SHIFT(96), + [263] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 2), + [265] = {.entry = {.count = 1, .reusable = true}}, SHIFT(3), + [267] = {.entry = {.count = 1, .reusable = true}}, SHIFT(2), + [269] = {.entry = {.count = 1, .reusable = true}}, SHIFT(45), + [271] = {.entry = {.count = 1, .reusable = true}}, SHIFT(111), + [273] = {.entry = {.count = 1, .reusable = true}}, SHIFT(8), + [275] = {.entry = {.count = 1, .reusable = true}}, SHIFT(7), + [277] = {.entry = {.count = 1, .reusable = true}}, SHIFT(91), + [279] = {.entry = {.count = 1, .reusable = true}}, SHIFT(37), + [281] = {.entry = {.count = 1, .reusable = false}}, SHIFT(121), + [283] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(), + [285] = {.entry = {.count = 1, .reusable = true}}, SHIFT(120), + [287] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 3), + [289] = {.entry = {.count = 1, .reusable = true}}, SHIFT(99), + [291] = {.entry = {.count = 1, .reusable = false}}, SHIFT(97), + [293] = {.entry = {.count = 1, .reusable = true}}, SHIFT(36), + [295] = {.entry = {.count = 1, .reusable = true}}, SHIFT(40), + [297] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_default_case, 3, .production_id = 16), + [299] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_case, 3, .production_id = 16), + [301] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_select_cases, 4), + [303] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_line_comment, 2), + [305] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_block_comment, 3), }; #ifdef __cplusplus diff --git a/test/corpus/select.txt b/test/corpus/select.txt index 6cffe57..92f1342 100644 --- a/test/corpus/select.txt +++ b/test/corpus/select.txt @@ -17,12 +17,12 @@ foo = select(release_variable("RELEASE_TEST"), { (select_value (selection_type) (interpreted_string_literal)) - (select_case - (interpreted_string_literal) - (interpreted_string_literal)) - (select_case - (default) - (unset))))) + (select_cases + (select_case + (interpreted_string_literal) + (interpreted_string_literal)) + (default_case + (unset)))))) ================================================================================ Select (soong config variable) @@ -44,12 +44,13 @@ foo = select(soong_config_variable("my_namespace", "my_var"), { (selection_type) (interpreted_string_literal) (interpreted_string_literal)) - (select_case - (interpreted_string_literal) - (unset)) - (select_case - (interpreted_string_literal) - (interpreted_string_literal))))) + (select_cases + (select_case + (interpreted_string_literal) + (unset)) + (select_case + (interpreted_string_literal) + (interpreted_string_literal)))))) ================================================================================ Select (no default) @@ -72,18 +73,19 @@ foo = select(variant("arch"), { (select_value (selection_type) (interpreted_string_literal)) - (select_case - (interpreted_string_literal) - (interpreted_string_literal)) - (select_case - (interpreted_string_literal) - (interpreted_string_literal)) - (select_case - (interpreted_string_literal) - (interpreted_string_literal)) - (select_case - (interpreted_string_literal) - (interpreted_string_literal))))) + (select_cases + (select_case + (interpreted_string_literal) + (interpreted_string_literal)) + (select_case + (interpreted_string_literal) + (interpreted_string_literal)) + (select_case + (interpreted_string_literal) + (interpreted_string_literal)) + (select_case + (interpreted_string_literal) + (interpreted_string_literal)))))) ================================================================================ Select (no values) @@ -100,7 +102,8 @@ foo = select(variant("VARIANT"), {}) (select_expression (select_value (selection_type) - (interpreted_string_literal))))) + (interpreted_string_literal)) + (select_cases)))) ================================================================================ Select (default in wrong order) @@ -124,21 +127,22 @@ foo = select(variant("VARIANT"), { (select_value (selection_type) (interpreted_string_literal)) - (select_case - (interpreted_string_literal) - (interpreted_string_literal)) - (select_case - (interpreted_string_literal) - (interpreted_string_literal)) - (select_case - (default) - (unset)) - (select_case - (interpreted_string_literal) - (interpreted_string_literal)) - (select_case - (interpreted_string_literal) - (interpreted_string_literal))))) + (select_cases + (select_case + (interpreted_string_literal) + (interpreted_string_literal)) + (select_case + (interpreted_string_literal) + (interpreted_string_literal)) + (ERROR + (default_case + (unset))) + (select_case + (interpreted_string_literal) + (interpreted_string_literal)) + (select_case + (interpreted_string_literal) + (interpreted_string_literal)))))) ================================================================================ Select (no condition) @@ -159,12 +163,12 @@ foo = select(variant(), { (select_value (selection_type) (MISSING raw_string_literal)) - (select_case - (interpreted_string_literal) - (unset)) - (select_case - (default) - (interpreted_string_literal))))) + (select_cases + (select_case + (interpreted_string_literal) + (unset)) + (default_case + (interpreted_string_literal)))))) ================================================================================ Select (invalid type) @@ -185,30 +189,6 @@ foo = select(some_unknown_type("CONDITION"), { (identifier) (identifier) (interpreted_string_literal) - (interpreted_string_literal) - (default)) + (interpreted_string_literal)) (interpreted_string_literal)) (ERROR)) - -================================================================================ -Select as an identifier -================================================================================ - -select = 42 - -foo { - select: false, -} - --------------------------------------------------------------------------------- - -(source_file - (assignment - (identifier) - (operator) - (integer_literal)) - (module - (identifier) - (property - (identifier) - (boolean_literal)))) diff --git a/test/highlight/builtins.bp b/test/highlight/builtins.bp deleted file mode 100644 index 508a8ed..0000000 --- a/test/highlight/builtins.bp +++ /dev/null @@ -1,14 +0,0 @@ -foo = select(soong_config_variable("my_namespace", "my_var"), { - // ^ function.builtin - "foo": unset, - // ^ variable.builtin - default: select(variant("VARIANT") {}), - // <- variable.builtin - // ^ function.builtin -}) - -/* Assigning to builtins is conveniently not allowed at runtime */ -unset = 12 -// <- variable.builtin -default = 27 -// <- variable.builtin diff --git a/test/highlight/properties.bp b/test/highlight/properties.bp deleted file mode 100644 index 6bc97ef..0000000 --- a/test/highlight/properties.bp +++ /dev/null @@ -1,7 +0,0 @@ -foo { - field: { - // <- variable.member - key: 42, - // <- property - }, -} diff --git a/test/highlight/punctuation.bp b/test/highlight/punctuation.bp deleted file mode 100644 index bc00194..0000000 --- a/test/highlight/punctuation.bp +++ /dev/null @@ -1,15 +0,0 @@ -foo ( - // <- punctuation.bracket - bar = [ - //^ punctuation.bracket - { - // <- punctuation.bracket - key: "value", - // ^ punctuation.delimiter - // ^ punctuation.delimiter - }, - // <- punctuation.bracket - ] - // <- punctuation.bracket -) -// <- punctuation.bracket diff --git a/test/highlight/select.bp b/test/highlight/select.bp deleted file mode 100644 index 831608d..0000000 --- a/test/highlight/select.bp +++ /dev/null @@ -1,15 +0,0 @@ -foo = select(soong_config_variable("my_namespace", "my_var"), { - // ^ keyword.conditional - "foo": unset, - default: "bar", -}) - -// It can still be used as a normal variable name -select = 42 -// <- variable - -// Or module property -foo { - select: 42, - // <- variable.member -}