From 39cfea3e2f826960d51c54727825a4af89f4bf20 Mon Sep 17 00:00:00 2001 From: Victor Quiroz Castro Date: Fri, 20 Sep 2019 11:02:24 +0200 Subject: [PATCH] fix: rename `namespace` -> `attribute` --- corpus/model.txt | 22 ++--- corpus/type.txt | 6 +- grammar.js | 6 +- src/grammar.json | 6 +- src/node-types.json | 206 ++++++++++++++++++++++---------------------- src/parser.c | 98 ++++++++++----------- 6 files changed, 172 insertions(+), 172 deletions(-) diff --git a/corpus/model.txt b/corpus/model.txt index 1aaff2b..d8b4c90 100644 --- a/corpus/model.txt +++ b/corpus/model.txt @@ -51,7 +51,7 @@ model User { ) ========================= -Model with namespaces +Model with attributes ========================= model User { @@ -70,7 +70,7 @@ model User { (column_type (identifier) ) - (namespace + (attribute (call_expression (identifier) (arguments @@ -81,7 +81,7 @@ model User { ) ) ) - (namespace + (attribute (identifier) ) ) @@ -90,7 +90,7 @@ model User { (column_type (identifier) ) - (namespace + (attribute (identifier) ) ) @@ -99,7 +99,7 @@ model User { (column_type (identifier) ) - (namespace + (attribute (call_expression (identifier) (arguments) @@ -111,7 +111,7 @@ model User { ) ========================= -Model with object namespace +Model with object attribute ========================= model User { @@ -128,10 +128,10 @@ model User { (column_type (identifier) ) - (namespace + (attribute (identifier) ) - (namespace + (attribute (member_expression (identifier) (property_identifier) @@ -162,10 +162,10 @@ model User { (column_type (identifier) ) - (namespace + (attribute (identifier) ) - (namespace + (attribute (identifier) ) ) @@ -174,7 +174,7 @@ model User { (column_type (identifier) ) - (namespace + (attribute (identifier) ) ) diff --git a/corpus/type.txt b/corpus/type.txt index bf48682..3e135d1 100644 --- a/corpus/type.txt +++ b/corpus/type.txt @@ -10,7 +10,7 @@ type UUID String @go.type("uuid.UUID") (type_declaration (identifier) (identifier) - (namespace + (attribute (call_expression (member_expression (identifier) @@ -39,7 +39,7 @@ type Numeric = Float @pg.numeric(precision: 5, scale: 2) (variable) (identifier) ) - (namespace + (attribute (call_expression (member_expression (identifier) @@ -57,7 +57,7 @@ type Numeric = Float @pg.numeric(precision: 5, scale: 2) ) ) ) - (namespace + (attribute (call_expression (member_expression (identifier) diff --git a/grammar.js b/grammar.js index 2c26b01..c623e0c 100644 --- a/grammar.js +++ b/grammar.js @@ -119,7 +119,7 @@ module.exports = grammar({ $.identifier, $.column_type, optional(repeat( - $.namespace + $.attribute )), ), @@ -139,7 +139,7 @@ module.exports = grammar({ $.identifier, $.type_expression, $.block_attribute_declaration, - $.namespace, + $.attribute, $.member_expression, $.number, $.string, @@ -210,7 +210,7 @@ module.exports = grammar({ $.arguments, )), - namespace: $ => seq( + attribute: $ => seq( '@', $._expression, ), diff --git a/src/grammar.json b/src/grammar.json index 2fc317a..a172df7 100644 --- a/src/grammar.json +++ b/src/grammar.json @@ -220,7 +220,7 @@ "type": "REPEAT", "content": { "type": "SYMBOL", - "name": "namespace" + "name": "attribute" } }, { @@ -290,7 +290,7 @@ }, { "type": "SYMBOL", - "name": "namespace" + "name": "attribute" }, { "type": "SYMBOL", @@ -883,7 +883,7 @@ ] } }, - "namespace": { + "attribute": { "type": "SEQ", "members": [ { diff --git a/src/node-types.json b/src/node-types.json index 7d32de1..64e8308 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -15,6 +15,10 @@ "type": "assignment_expression", "named": true }, + { + "type": "attribute", + "named": true + }, { "type": "binary_expression", "named": true @@ -39,10 +43,6 @@ "type": "member_expression", "named": true }, - { - "type": "namespace", - "named": true - }, { "type": "null", "named": true @@ -82,6 +82,10 @@ "type": "assignment_expression", "named": true }, + { + "type": "attribute", + "named": true + }, { "type": "binary_expression", "named": true @@ -106,10 +110,6 @@ "type": "member_expression", "named": true }, - { - "type": "namespace", - "named": true - }, { "type": "null", "named": true @@ -149,6 +149,10 @@ "type": "assignment_expression", "named": true }, + { + "type": "attribute", + "named": true + }, { "type": "binary_expression", "named": true @@ -173,10 +177,6 @@ "type": "member_expression", "named": true }, - { - "type": "namespace", - "named": true - }, { "type": "null", "named": true @@ -216,6 +216,10 @@ "type": "array", "named": true }, + { + "type": "attribute", + "named": true + }, { "type": "block_attribute_declaration", "named": true @@ -233,7 +237,70 @@ "named": true }, { - "type": "namespace", + "type": "null", + "named": true + }, + { + "type": "number", + "named": true + }, + { + "type": "string", + "named": true + }, + { + "type": "true", + "named": true + }, + { + "type": "type_expression", + "named": true + } + ] + } + }, + { + "type": "attribute", + "named": true, + "fields": {}, + "children": { + "multiple": true, + "required": false, + "types": [ + { + "type": "array", + "named": true + }, + { + "type": "assignment_expression", + "named": true + }, + { + "type": "attribute", + "named": true + }, + { + "type": "binary_expression", + "named": true + }, + { + "type": "block_attribute_declaration", + "named": true + }, + { + "type": "call_expression", + "named": true + }, + { + "type": "false", + "named": true + }, + { + "type": "identifier", + "named": true + }, + { + "type": "member_expression", "named": true }, { @@ -275,6 +342,10 @@ "type": "assignment_expression", "named": true }, + { + "type": "attribute", + "named": true + }, { "type": "binary_expression", "named": true @@ -299,10 +370,6 @@ "type": "member_expression", "named": true }, - { - "type": "namespace", - "named": true - }, { "type": "null", "named": true @@ -342,6 +409,10 @@ "type": "assignment_expression", "named": true }, + { + "type": "attribute", + "named": true + }, { "type": "binary_expression", "named": true @@ -366,10 +437,6 @@ "type": "member_expression", "named": true }, - { - "type": "namespace", - "named": true - }, { "type": "null", "named": true @@ -413,6 +480,10 @@ "type": "assignment_expression", "named": true }, + { + "type": "attribute", + "named": true + }, { "type": "binary_expression", "named": true @@ -437,10 +508,6 @@ "type": "member_expression", "named": true }, - { - "type": "namespace", - "named": true - }, { "type": "null", "named": true @@ -473,15 +540,15 @@ "required": false, "types": [ { - "type": "column_type", + "type": "attribute", "named": true }, { - "type": "identifier", + "type": "column_type", "named": true }, { - "type": "namespace", + "type": "identifier", "named": true } ] @@ -657,73 +724,6 @@ ] } }, - { - "type": "namespace", - "named": true, - "fields": {}, - "children": { - "multiple": true, - "required": false, - "types": [ - { - "type": "array", - "named": true - }, - { - "type": "assignment_expression", - "named": true - }, - { - "type": "binary_expression", - "named": true - }, - { - "type": "block_attribute_declaration", - "named": true - }, - { - "type": "call_expression", - "named": true - }, - { - "type": "false", - "named": true - }, - { - "type": "identifier", - "named": true - }, - { - "type": "member_expression", - "named": true - }, - { - "type": "namespace", - "named": true - }, - { - "type": "null", - "named": true - }, - { - "type": "number", - "named": true - }, - { - "type": "string", - "named": true - }, - { - "type": "true", - "named": true - }, - { - "type": "type_expression", - "named": true - } - ] - } - }, { "type": "program", "named": true, @@ -794,6 +794,10 @@ "type": "assignment_expression", "named": true }, + { + "type": "attribute", + "named": true + }, { "type": "binary_expression", "named": true @@ -818,10 +822,6 @@ "type": "member_expression", "named": true }, - { - "type": "namespace", - "named": true - }, { "type": "null", "named": true @@ -861,6 +861,10 @@ "type": "assignment_expression", "named": true }, + { + "type": "attribute", + "named": true + }, { "type": "binary_expression", "named": true @@ -885,10 +889,6 @@ "type": "member_expression", "named": true }, - { - "type": "namespace", - "named": true - }, { "type": "null", "named": true diff --git a/src/parser.c b/src/parser.c index b0d21e3..df79ebe 100644 --- a/src/parser.c +++ b/src/parser.c @@ -80,7 +80,7 @@ enum { sym_column_type = 63, sym_type_expression = 64, sym_call_expression = 65, - sym_namespace = 66, + sym_attribute = 66, sym_block_attribute_declaration = 67, sym_arguments = 68, sym__expression = 69, @@ -164,7 +164,7 @@ static const char *ts_symbol_names[] = { [sym_column_type] = "column_type", [sym_type_expression] = "type_expression", [sym_call_expression] = "call_expression", - [sym_namespace] = "namespace", + [sym_attribute] = "attribute", [sym_block_attribute_declaration] = "block_attribute_declaration", [sym_arguments] = "arguments", [sym__expression] = "_expression", @@ -446,7 +446,7 @@ static const TSSymbolMetadata ts_symbol_metadata[] = { .visible = true, .named = true, }, - [sym_namespace] = { + [sym_attribute] = { .visible = true, .named = true, }, @@ -1657,7 +1657,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [4] = { [sym_binary_expression] = STATE(15), - [sym_namespace] = STATE(15), + [sym_attribute] = STATE(15), [sym_block_attribute_declaration] = STATE(15), [sym__expression] = STATE(15), [sym_identifier] = STATE(16), @@ -1766,7 +1766,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [12] = { [sym_binary_expression] = STATE(26), - [sym_namespace] = STATE(26), + [sym_attribute] = STATE(26), [sym_block_attribute_declaration] = STATE(26), [sym__expression] = STATE(26), [sym_identifier] = STATE(16), @@ -1789,7 +1789,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [13] = { [sym_binary_expression] = STATE(29), - [sym_namespace] = STATE(29), + [sym_attribute] = STATE(29), [sym_block_attribute_declaration] = STATE(29), [sym__expression] = STATE(29), [sym_identifier] = STATE(85), @@ -1815,7 +1815,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [14] = { [sym_binary_expression] = STATE(31), - [sym_namespace] = STATE(31), + [sym_attribute] = STATE(31), [sym_block_attribute_declaration] = STATE(31), [sym__expression] = STATE(31), [sym_identifier] = STATE(16), @@ -1966,7 +1966,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [18] = { [sym_binary_expression] = STATE(15), - [sym_namespace] = STATE(15), + [sym_attribute] = STATE(15), [sym_block_attribute_declaration] = STATE(15), [sym__expression] = STATE(15), [sym_identifier] = STATE(16), @@ -2104,7 +2104,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(52), [sym__constructable_expression] = STATE(52), [sym_binary_expression] = STATE(52), - [sym_namespace] = STATE(52), + [sym_attribute] = STATE(52), [sym_block_attribute_declaration] = STATE(52), [sym__expression] = STATE(52), [sym_identifier] = STATE(85), @@ -2246,7 +2246,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [32] = { [sym_binary_expression] = STATE(56), - [sym_namespace] = STATE(56), + [sym_attribute] = STATE(56), [sym_block_attribute_declaration] = STATE(56), [sym__expression] = STATE(56), [sym_identifier] = STATE(16), @@ -2269,7 +2269,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [33] = { [sym_binary_expression] = STATE(57), - [sym_namespace] = STATE(57), + [sym_attribute] = STATE(57), [sym_block_attribute_declaration] = STATE(57), [sym__expression] = STATE(57), [sym_identifier] = STATE(16), @@ -2292,7 +2292,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [34] = { [sym_binary_expression] = STATE(58), - [sym_namespace] = STATE(58), + [sym_attribute] = STATE(58), [sym_block_attribute_declaration] = STATE(58), [sym__expression] = STATE(58), [sym_identifier] = STATE(16), @@ -2315,7 +2315,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [35] = { [sym_binary_expression] = STATE(59), - [sym_namespace] = STATE(59), + [sym_attribute] = STATE(59), [sym_block_attribute_declaration] = STATE(59), [sym__expression] = STATE(59), [sym_identifier] = STATE(16), @@ -2338,7 +2338,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [36] = { [sym_binary_expression] = STATE(60), - [sym_namespace] = STATE(60), + [sym_attribute] = STATE(60), [sym_block_attribute_declaration] = STATE(60), [sym__expression] = STATE(60), [sym_identifier] = STATE(16), @@ -2361,7 +2361,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [37] = { [sym_binary_expression] = STATE(62), - [sym_namespace] = STATE(62), + [sym_attribute] = STATE(62), [sym_block_attribute_declaration] = STATE(62), [sym__expression] = STATE(62), [sym_identifier] = STATE(85), @@ -2387,7 +2387,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [38] = { [sym_binary_expression] = STATE(64), - [sym_namespace] = STATE(64), + [sym_attribute] = STATE(64), [sym_block_attribute_declaration] = STATE(64), [sym__expression] = STATE(64), [sym_identifier] = STATE(16), @@ -2451,7 +2451,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [40] = { [sym_binary_expression] = STATE(65), - [sym_namespace] = STATE(65), + [sym_attribute] = STATE(65), [sym_block_attribute_declaration] = STATE(65), [sym__expression] = STATE(65), [sym_identifier] = STATE(16), @@ -2474,7 +2474,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [41] = { [sym_binary_expression] = STATE(66), - [sym_namespace] = STATE(66), + [sym_attribute] = STATE(66), [sym_block_attribute_declaration] = STATE(66), [sym__expression] = STATE(66), [sym_identifier] = STATE(16), @@ -2502,7 +2502,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [43] = { [sym_binary_expression] = STATE(15), - [sym_namespace] = STATE(15), + [sym_attribute] = STATE(15), [sym_block_attribute_declaration] = STATE(15), [sym__expression] = STATE(15), [sym_identifier] = STATE(16), @@ -3157,7 +3157,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_comment] = ACTIONS(306), }, [71] = { - [sym_namespace] = STATE(78), + [sym_attribute] = STATE(78), [aux_sym_column_declaration_repeat1] = STATE(78), [anon_sym_RBRACE] = ACTIONS(308), [anon_sym_AT_AT] = ACTIONS(308), @@ -3284,7 +3284,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_RBRACE] = ACTIONS(332), }, [78] = { - [sym_namespace] = STATE(81), + [sym_attribute] = STATE(81), [aux_sym_column_declaration_repeat1] = STATE(81), [anon_sym_RBRACE] = ACTIONS(338), [anon_sym_AT_AT] = ACTIONS(338), @@ -3341,7 +3341,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [anon_sym_RBRACE] = ACTIONS(344), }, [81] = { - [sym_namespace] = STATE(81), + [sym_attribute] = STATE(81), [aux_sym_column_declaration_repeat1] = STATE(81), [aux_sym_identifier_token1] = ACTIONS(348), [anon_sym_AT_AT] = ACTIONS(348), @@ -3358,7 +3358,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(87), [sym__constructable_expression] = STATE(87), [sym_binary_expression] = STATE(87), - [sym_namespace] = STATE(87), + [sym_attribute] = STATE(87), [sym_block_attribute_declaration] = STATE(87), [sym__expression] = STATE(87), [sym_identifier] = STATE(85), @@ -3381,7 +3381,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(89), [sym__constructable_expression] = STATE(89), [sym_binary_expression] = STATE(89), - [sym_namespace] = STATE(89), + [sym_attribute] = STATE(89), [sym_block_attribute_declaration] = STATE(89), [sym__expression] = STATE(89), [sym_identifier] = STATE(85), @@ -3555,7 +3555,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(101), [sym__constructable_expression] = STATE(101), [sym_binary_expression] = STATE(101), - [sym_namespace] = STATE(101), + [sym_attribute] = STATE(101), [sym_block_attribute_declaration] = STATE(101), [sym__expression] = STATE(101), [sym_identifier] = STATE(85), @@ -3578,7 +3578,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(102), [sym__constructable_expression] = STATE(102), [sym_binary_expression] = STATE(102), - [sym_namespace] = STATE(102), + [sym_attribute] = STATE(102), [sym_block_attribute_declaration] = STATE(102), [sym__expression] = STATE(102), [sym_identifier] = STATE(85), @@ -3601,7 +3601,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(103), [sym__constructable_expression] = STATE(103), [sym_binary_expression] = STATE(103), - [sym_namespace] = STATE(103), + [sym_attribute] = STATE(103), [sym_block_attribute_declaration] = STATE(103), [sym__expression] = STATE(103), [sym_identifier] = STATE(85), @@ -3624,7 +3624,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(104), [sym__constructable_expression] = STATE(104), [sym_binary_expression] = STATE(104), - [sym_namespace] = STATE(104), + [sym_attribute] = STATE(104), [sym_block_attribute_declaration] = STATE(104), [sym__expression] = STATE(104), [sym_identifier] = STATE(85), @@ -3647,7 +3647,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(105), [sym__constructable_expression] = STATE(105), [sym_binary_expression] = STATE(105), - [sym_namespace] = STATE(105), + [sym_attribute] = STATE(105), [sym_block_attribute_declaration] = STATE(105), [sym__expression] = STATE(105), [sym_identifier] = STATE(85), @@ -3670,7 +3670,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(107), [sym__constructable_expression] = STATE(107), [sym_binary_expression] = STATE(107), - [sym_namespace] = STATE(107), + [sym_attribute] = STATE(107), [sym_block_attribute_declaration] = STATE(107), [sym__expression] = STATE(107), [sym_identifier] = STATE(85), @@ -3722,7 +3722,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(108), [sym__constructable_expression] = STATE(108), [sym_binary_expression] = STATE(108), - [sym_namespace] = STATE(108), + [sym_attribute] = STATE(108), [sym_block_attribute_declaration] = STATE(108), [sym__expression] = STATE(108), [sym_identifier] = STATE(85), @@ -3745,7 +3745,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(109), [sym__constructable_expression] = STATE(109), [sym_binary_expression] = STATE(109), - [sym_namespace] = STATE(109), + [sym_attribute] = STATE(109), [sym_block_attribute_declaration] = STATE(109), [sym__expression] = STATE(109), [sym_identifier] = STATE(85), @@ -4220,7 +4220,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(119), [sym__constructable_expression] = STATE(119), [sym_binary_expression] = STATE(119), - [sym_namespace] = STATE(119), + [sym_attribute] = STATE(119), [sym_block_attribute_declaration] = STATE(119), [sym__expression] = STATE(119), [sym_identifier] = STATE(117), @@ -4243,7 +4243,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(121), [sym__constructable_expression] = STATE(121), [sym_binary_expression] = STATE(121), - [sym_namespace] = STATE(121), + [sym_attribute] = STATE(121), [sym_block_attribute_declaration] = STATE(121), [sym__expression] = STATE(121), [sym_identifier] = STATE(117), @@ -4422,7 +4422,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(132), [sym__constructable_expression] = STATE(132), [sym_binary_expression] = STATE(132), - [sym_namespace] = STATE(132), + [sym_attribute] = STATE(132), [sym_block_attribute_declaration] = STATE(132), [sym__expression] = STATE(132), [sym_identifier] = STATE(117), @@ -4445,7 +4445,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(133), [sym__constructable_expression] = STATE(133), [sym_binary_expression] = STATE(133), - [sym_namespace] = STATE(133), + [sym_attribute] = STATE(133), [sym_block_attribute_declaration] = STATE(133), [sym__expression] = STATE(133), [sym_identifier] = STATE(117), @@ -4468,7 +4468,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(134), [sym__constructable_expression] = STATE(134), [sym_binary_expression] = STATE(134), - [sym_namespace] = STATE(134), + [sym_attribute] = STATE(134), [sym_block_attribute_declaration] = STATE(134), [sym__expression] = STATE(134), [sym_identifier] = STATE(117), @@ -4491,7 +4491,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(135), [sym__constructable_expression] = STATE(135), [sym_binary_expression] = STATE(135), - [sym_namespace] = STATE(135), + [sym_attribute] = STATE(135), [sym_block_attribute_declaration] = STATE(135), [sym__expression] = STATE(135), [sym_identifier] = STATE(117), @@ -4514,7 +4514,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(136), [sym__constructable_expression] = STATE(136), [sym_binary_expression] = STATE(136), - [sym_namespace] = STATE(136), + [sym_attribute] = STATE(136), [sym_block_attribute_declaration] = STATE(136), [sym__expression] = STATE(136), [sym_identifier] = STATE(117), @@ -4537,7 +4537,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(138), [sym__constructable_expression] = STATE(138), [sym_binary_expression] = STATE(138), - [sym_namespace] = STATE(138), + [sym_attribute] = STATE(138), [sym_block_attribute_declaration] = STATE(138), [sym__expression] = STATE(138), [sym_identifier] = STATE(117), @@ -4590,7 +4590,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(139), [sym__constructable_expression] = STATE(139), [sym_binary_expression] = STATE(139), - [sym_namespace] = STATE(139), + [sym_attribute] = STATE(139), [sym_block_attribute_declaration] = STATE(139), [sym__expression] = STATE(139), [sym_identifier] = STATE(117), @@ -4613,7 +4613,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [sym_array] = STATE(140), [sym__constructable_expression] = STATE(140), [sym_binary_expression] = STATE(140), - [sym_namespace] = STATE(140), + [sym_attribute] = STATE(140), [sym_block_attribute_declaration] = STATE(140), [sym__expression] = STATE(140), [sym_identifier] = STATE(117), @@ -5125,7 +5125,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [aux_sym_arguments_repeat1] = STATE(152), [sym__constructable_expression] = STATE(151), [sym_binary_expression] = STATE(151), - [sym_namespace] = STATE(151), + [sym_attribute] = STATE(151), [sym_block_attribute_declaration] = STATE(151), [sym__expression] = STATE(151), [sym_identifier] = STATE(85), @@ -5187,7 +5187,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [aux_sym_arguments_repeat1] = STATE(156), [sym__constructable_expression] = STATE(155), [sym_binary_expression] = STATE(155), - [sym_namespace] = STATE(155), + [sym_attribute] = STATE(155), [sym_block_attribute_declaration] = STATE(155), [sym__expression] = STATE(155), [sym_identifier] = STATE(85), @@ -5266,7 +5266,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [aux_sym_arguments_repeat1] = STATE(161), [sym__constructable_expression] = STATE(160), [sym_binary_expression] = STATE(160), - [sym_namespace] = STATE(160), + [sym_attribute] = STATE(160), [sym_block_attribute_declaration] = STATE(160), [sym__expression] = STATE(160), [sym_identifier] = STATE(85), @@ -5328,7 +5328,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { [aux_sym_arguments_repeat1] = STATE(165), [sym__constructable_expression] = STATE(164), [sym_binary_expression] = STATE(164), - [sym_namespace] = STATE(164), + [sym_attribute] = STATE(164), [sym_block_attribute_declaration] = STATE(164), [sym__expression] = STATE(164), [sym_identifier] = STATE(85), @@ -5398,7 +5398,7 @@ static uint16_t ts_parse_table[STATE_COUNT][SYMBOL_COUNT] = { }, [167] = { [sym_binary_expression] = STATE(168), - [sym_namespace] = STATE(168), + [sym_attribute] = STATE(168), [sym_block_attribute_declaration] = STATE(168), [sym__expression] = STATE(168), [sym_identifier] = STATE(85), @@ -5554,8 +5554,8 @@ static TSParseActionEntry ts_parse_actions[] = { [172] = {.count = 1, .reusable = false}, SHIFT(92), [174] = {.count = 1, .reusable = false}, SHIFT(95), [176] = {.count = 1, .reusable = true}, SHIFT(95), - [178] = {.count = 1, .reusable = true}, REDUCE(sym_namespace, 2), - [180] = {.count = 1, .reusable = false}, REDUCE(sym_namespace, 2), + [178] = {.count = 1, .reusable = true}, REDUCE(sym_attribute, 2), + [180] = {.count = 1, .reusable = false}, REDUCE(sym_attribute, 2), [182] = {.count = 1, .reusable = true}, SHIFT(56), [184] = {.count = 1, .reusable = false}, SHIFT(56), [186] = {.count = 1, .reusable = true}, SHIFT(57),