From 1d6eef1350ee0793fcd2a0eb191cdb127b76a49d Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 11 Jun 2021 18:12:51 +0200 Subject: Update ungrammar --- .../parser/inline/ok/0054_record_field_attrs.rast | 25 +++-- .../parser/inline/ok/0115_tuple_field_attrs.rast | 25 +++-- .../inline/ok/0118_impl_inner_attributes.rast | 17 +-- .../inline/ok/0120_match_arms_inner_attribute.rast | 51 +++++---- .../ok/0121_match_arms_outer_attributes.rast | 125 +++++++++++---------- .../ok/0122_generic_lifetime_type_attribute.rast | 34 +++--- .../ok/0125_record_literal_field_with_attr.rast | 17 +-- .../parser/inline/ok/0126_attr_on_expr_stmt.rast | 45 ++++---- .../inline/ok/0127_attr_on_last_expr_in_block.rast | 18 +-- .../test_data/parser/inline/ok/0130_let_stmt.rast | 9 +- .../inline/ok/0138_self_param_outer_attr.rast | 9 +- .../parser/inline/ok/0139_param_outer_arg.rast | 9 +- .../parser/inline/ok/0145_record_pat_field.rast | 23 ++-- .../parser/inline/ok/0150_array_attrs.rast | 17 +-- .../parser/inline/ok/0152_arg_with_attr.rast | 9 +- .../parser/inline/ok/0154_tuple_attrs.rast | 17 +-- 16 files changed, 239 insertions(+), 211 deletions(-) (limited to 'crates/syntax/test_data/parser/inline/ok') diff --git a/crates/syntax/test_data/parser/inline/ok/0054_record_field_attrs.rast b/crates/syntax/test_data/parser/inline/ok/0054_record_field_attrs.rast index 9ae271817..402950bcc 100644 --- a/crates/syntax/test_data/parser/inline/ok/0054_record_field_attrs.rast +++ b/crates/syntax/test_data/parser/inline/ok/0054_record_field_attrs.rast @@ -12,18 +12,19 @@ SOURCE_FILE@0..64 ATTR@15..43 POUND@15..16 "#" L_BRACK@16..17 "[" - PATH@17..22 - PATH_SEGMENT@17..22 - NAME_REF@17..22 - IDENT@17..22 "serde" - TOKEN_TREE@22..42 - L_PAREN@22..23 "(" - IDENT@23..27 "with" - WHITESPACE@27..28 " " - EQ@28..29 "=" - WHITESPACE@29..30 " " - STRING@30..41 "\"url_serde\"" - R_PAREN@41..42 ")" + META@17..42 + PATH@17..22 + PATH_SEGMENT@17..22 + NAME_REF@17..22 + IDENT@17..22 "serde" + TOKEN_TREE@22..42 + L_PAREN@22..23 "(" + IDENT@23..27 "with" + WHITESPACE@27..28 " " + EQ@28..29 "=" + WHITESPACE@29..30 " " + STRING@30..41 "\"url_serde\"" + R_PAREN@41..42 ")" R_BRACK@42..43 "]" WHITESPACE@43..48 "\n " VISIBILITY@48..51 diff --git a/crates/syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rast b/crates/syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rast index 4d09c9f50..db2b645b0 100644 --- a/crates/syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rast +++ b/crates/syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rast @@ -12,18 +12,19 @@ SOURCE_FILE@0..60 ATTR@15..43 POUND@15..16 "#" L_BRACK@16..17 "[" - PATH@17..22 - PATH_SEGMENT@17..22 - NAME_REF@17..22 - IDENT@17..22 "serde" - TOKEN_TREE@22..42 - L_PAREN@22..23 "(" - IDENT@23..27 "with" - WHITESPACE@27..28 " " - EQ@28..29 "=" - WHITESPACE@29..30 " " - STRING@30..41 "\"url_serde\"" - R_PAREN@41..42 ")" + META@17..42 + PATH@17..22 + PATH_SEGMENT@17..22 + NAME_REF@17..22 + IDENT@17..22 "serde" + TOKEN_TREE@22..42 + L_PAREN@22..23 "(" + IDENT@23..27 "with" + WHITESPACE@27..28 " " + EQ@28..29 "=" + WHITESPACE@29..30 " " + STRING@30..41 "\"url_serde\"" + R_PAREN@41..42 ")" R_BRACK@42..43 "]" WHITESPACE@43..48 "\n " VISIBILITY@48..51 diff --git a/crates/syntax/test_data/parser/inline/ok/0118_impl_inner_attributes.rast b/crates/syntax/test_data/parser/inline/ok/0118_impl_inner_attributes.rast index 141a7b203..24ac1d66a 100644 --- a/crates/syntax/test_data/parser/inline/ok/0118_impl_inner_attributes.rast +++ b/crates/syntax/test_data/parser/inline/ok/0118_impl_inner_attributes.rast @@ -26,14 +26,15 @@ SOURCE_FILE@0..94 POUND@54..55 "#" BANG@55..56 "!" L_BRACK@56..57 "[" - PATH@57..60 - PATH_SEGMENT@57..60 - NAME_REF@57..60 - IDENT@57..60 "doc" - TOKEN_TREE@60..90 - L_PAREN@60..61 "(" - STRING@61..89 "\"This is also a doc c ..." - R_PAREN@89..90 ")" + META@57..90 + PATH@57..60 + PATH_SEGMENT@57..60 + NAME_REF@57..60 + IDENT@57..60 "doc" + TOKEN_TREE@60..90 + L_PAREN@60..61 "(" + STRING@61..89 "\"This is also a doc c ..." + R_PAREN@89..90 ")" R_BRACK@90..91 "]" WHITESPACE@91..92 "\n" R_CURLY@92..93 "}" diff --git a/crates/syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.rast b/crates/syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.rast index ec7a00f1d..7fbeee203 100644 --- a/crates/syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.rast +++ b/crates/syntax/test_data/parser/inline/ok/0120_match_arms_inner_attribute.rast @@ -25,42 +25,45 @@ SOURCE_FILE@0..139 POUND@34..35 "#" BANG@35..36 "!" L_BRACK@36..37 "[" - PATH@37..40 - PATH_SEGMENT@37..40 - NAME_REF@37..40 - IDENT@37..40 "doc" - TOKEN_TREE@40..59 - L_PAREN@40..41 "(" - STRING@41..58 "\"Inner attribute\"" - R_PAREN@58..59 ")" + META@37..59 + PATH@37..40 + PATH_SEGMENT@37..40 + NAME_REF@37..40 + IDENT@37..40 "doc" + TOKEN_TREE@40..59 + L_PAREN@40..41 "(" + STRING@41..58 "\"Inner attribute\"" + R_PAREN@58..59 ")" R_BRACK@59..60 "]" WHITESPACE@60..69 "\n " ATTR@69..86 POUND@69..70 "#" BANG@70..71 "!" L_BRACK@71..72 "[" - PATH@72..75 - PATH_SEGMENT@72..75 - NAME_REF@72..75 - IDENT@72..75 "doc" - TOKEN_TREE@75..85 - L_PAREN@75..76 "(" - STRING@76..84 "\"Can be\"" - R_PAREN@84..85 ")" + META@72..85 + PATH@72..75 + PATH_SEGMENT@72..75 + NAME_REF@72..75 + IDENT@72..75 "doc" + TOKEN_TREE@75..85 + L_PAREN@75..76 "(" + STRING@76..84 "\"Can be\"" + R_PAREN@84..85 ")" R_BRACK@85..86 "]" WHITESPACE@86..95 "\n " ATTR@95..113 POUND@95..96 "#" BANG@96..97 "!" L_BRACK@97..98 "[" - PATH@98..101 - PATH_SEGMENT@98..101 - NAME_REF@98..101 - IDENT@98..101 "doc" - TOKEN_TREE@101..112 - L_PAREN@101..102 "(" - STRING@102..111 "\"Stacked\"" - R_PAREN@111..112 ")" + META@98..112 + PATH@98..101 + PATH_SEGMENT@98..101 + NAME_REF@98..101 + IDENT@98..101 "doc" + TOKEN_TREE@101..112 + L_PAREN@101..102 "(" + STRING@102..111 "\"Stacked\"" + R_PAREN@111..112 ")" R_BRACK@112..113 "]" WHITESPACE@113..122 "\n " MATCH_ARM@122..129 diff --git a/crates/syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.rast b/crates/syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.rast index 97924da05..40852f514 100644 --- a/crates/syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.rast +++ b/crates/syntax/test_data/parser/inline/ok/0121_match_arms_outer_attributes.rast @@ -25,18 +25,19 @@ SOURCE_FILE@0..259 ATTR@34..58 POUND@34..35 "#" L_BRACK@35..36 "[" - PATH@36..39 - PATH_SEGMENT@36..39 - NAME_REF@36..39 - IDENT@36..39 "cfg" - TOKEN_TREE@39..57 - L_PAREN@39..40 "(" - IDENT@40..47 "feature" - WHITESPACE@47..48 " " - EQ@48..49 "=" - WHITESPACE@49..50 " " - STRING@50..56 "\"some\"" - R_PAREN@56..57 ")" + META@36..57 + PATH@36..39 + PATH_SEGMENT@36..39 + NAME_REF@36..39 + IDENT@36..39 "cfg" + TOKEN_TREE@39..57 + L_PAREN@39..40 "(" + IDENT@40..47 "feature" + WHITESPACE@47..48 " " + EQ@48..49 "=" + WHITESPACE@49..50 " " + STRING@50..56 "\"some\"" + R_PAREN@56..57 ")" R_BRACK@57..58 "]" WHITESPACE@58..67 "\n " WILDCARD_PAT@67..68 @@ -53,18 +54,19 @@ SOURCE_FILE@0..259 ATTR@84..109 POUND@84..85 "#" L_BRACK@85..86 "[" - PATH@86..89 - PATH_SEGMENT@86..89 - NAME_REF@86..89 - IDENT@86..89 "cfg" - TOKEN_TREE@89..108 - L_PAREN@89..90 "(" - IDENT@90..97 "feature" - WHITESPACE@97..98 " " - EQ@98..99 "=" - WHITESPACE@99..100 " " - STRING@100..107 "\"other\"" - R_PAREN@107..108 ")" + META@86..108 + PATH@86..89 + PATH_SEGMENT@86..89 + NAME_REF@86..89 + IDENT@86..89 "cfg" + TOKEN_TREE@89..108 + L_PAREN@89..90 "(" + IDENT@90..97 "feature" + WHITESPACE@97..98 " " + EQ@98..99 "=" + WHITESPACE@99..100 " " + STRING@100..107 "\"other\"" + R_PAREN@107..108 ")" R_BRACK@108..109 "]" WHITESPACE@109..118 "\n " WILDCARD_PAT@118..119 @@ -81,52 +83,55 @@ SOURCE_FILE@0..259 ATTR@135..159 POUND@135..136 "#" L_BRACK@136..137 "[" - PATH@137..140 - PATH_SEGMENT@137..140 - NAME_REF@137..140 - IDENT@137..140 "cfg" - TOKEN_TREE@140..158 - L_PAREN@140..141 "(" - IDENT@141..148 "feature" - WHITESPACE@148..149 " " - EQ@149..150 "=" - WHITESPACE@150..151 " " - STRING@151..157 "\"many\"" - R_PAREN@157..158 ")" + META@137..158 + PATH@137..140 + PATH_SEGMENT@137..140 + NAME_REF@137..140 + IDENT@137..140 "cfg" + TOKEN_TREE@140..158 + L_PAREN@140..141 "(" + IDENT@141..148 "feature" + WHITESPACE@148..149 " " + EQ@149..150 "=" + WHITESPACE@150..151 " " + STRING@151..157 "\"many\"" + R_PAREN@157..158 ")" R_BRACK@158..159 "]" WHITESPACE@159..168 "\n " ATTR@168..198 POUND@168..169 "#" L_BRACK@169..170 "[" - PATH@170..173 - PATH_SEGMENT@170..173 - NAME_REF@170..173 - IDENT@170..173 "cfg" - TOKEN_TREE@173..197 - L_PAREN@173..174 "(" - IDENT@174..181 "feature" - WHITESPACE@181..182 " " - EQ@182..183 "=" - WHITESPACE@183..184 " " - STRING@184..196 "\"attributes\"" - R_PAREN@196..197 ")" + META@170..197 + PATH@170..173 + PATH_SEGMENT@170..173 + NAME_REF@170..173 + IDENT@170..173 "cfg" + TOKEN_TREE@173..197 + L_PAREN@173..174 "(" + IDENT@174..181 "feature" + WHITESPACE@181..182 " " + EQ@182..183 "=" + WHITESPACE@183..184 " " + STRING@184..196 "\"attributes\"" + R_PAREN@196..197 ")" R_BRACK@197..198 "]" WHITESPACE@198..207 "\n " ATTR@207..233 POUND@207..208 "#" L_BRACK@208..209 "[" - PATH@209..212 - PATH_SEGMENT@209..212 - NAME_REF@209..212 - IDENT@209..212 "cfg" - TOKEN_TREE@212..232 - L_PAREN@212..213 "(" - IDENT@213..220 "feature" - WHITESPACE@220..221 " " - EQ@221..222 "=" - WHITESPACE@222..223 " " - STRING@223..231 "\"before\"" - R_PAREN@231..232 ")" + META@209..232 + PATH@209..212 + PATH_SEGMENT@209..212 + NAME_REF@209..212 + IDENT@209..212 "cfg" + TOKEN_TREE@212..232 + L_PAREN@212..213 "(" + IDENT@213..220 "feature" + WHITESPACE@220..221 " " + EQ@221..222 "=" + WHITESPACE@222..223 " " + STRING@223..231 "\"before\"" + R_PAREN@231..232 ")" R_BRACK@232..233 "]" WHITESPACE@233..242 "\n " WILDCARD_PAT@242..243 diff --git a/crates/syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast b/crates/syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast index 616aa984e..840181383 100644 --- a/crates/syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast +++ b/crates/syntax/test_data/parser/inline/ok/0122_generic_lifetime_type_attribute.rast @@ -10,14 +10,15 @@ SOURCE_FILE@0..64 ATTR@7..26 POUND@7..8 "#" L_BRACK@8..9 "[" - PATH@9..15 - PATH_SEGMENT@9..15 - NAME_REF@9..15 - IDENT@9..15 "derive" - TOKEN_TREE@15..25 - L_PAREN@15..16 "(" - IDENT@16..24 "Lifetime" - R_PAREN@24..25 ")" + META@9..25 + PATH@9..15 + PATH_SEGMENT@9..15 + NAME_REF@9..15 + IDENT@9..15 "derive" + TOKEN_TREE@15..25 + L_PAREN@15..16 "(" + IDENT@16..24 "Lifetime" + R_PAREN@24..25 ")" R_BRACK@25..26 "]" WHITESPACE@26..27 " " LIFETIME@27..29 @@ -28,14 +29,15 @@ SOURCE_FILE@0..64 ATTR@31..46 POUND@31..32 "#" L_BRACK@32..33 "[" - PATH@33..39 - PATH_SEGMENT@33..39 - NAME_REF@33..39 - IDENT@33..39 "derive" - TOKEN_TREE@39..45 - L_PAREN@39..40 "(" - IDENT@40..44 "Type" - R_PAREN@44..45 ")" + META@33..45 + PATH@33..39 + PATH_SEGMENT@33..39 + NAME_REF@33..39 + IDENT@33..39 "derive" + TOKEN_TREE@39..45 + L_PAREN@39..40 "(" + IDENT@40..44 "Type" + R_PAREN@44..45 ")" R_BRACK@45..46 "]" WHITESPACE@46..47 " " NAME@47..48 diff --git a/crates/syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rast b/crates/syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rast index 54ea2c7c6..5e82214c0 100644 --- a/crates/syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rast +++ b/crates/syntax/test_data/parser/inline/ok/0125_record_literal_field_with_attr.rast @@ -24,14 +24,15 @@ SOURCE_FILE@0..46 ATTR@20..32 POUND@20..21 "#" L_BRACK@21..22 "[" - PATH@22..25 - PATH_SEGMENT@22..25 - NAME_REF@22..25 - IDENT@22..25 "cfg" - TOKEN_TREE@25..31 - L_PAREN@25..26 "(" - IDENT@26..30 "test" - R_PAREN@30..31 ")" + META@22..31 + PATH@22..25 + PATH_SEGMENT@22..25 + NAME_REF@22..25 + IDENT@22..25 "cfg" + TOKEN_TREE@25..31 + L_PAREN@25..26 "(" + IDENT@26..30 "test" + R_PAREN@30..31 ")" R_BRACK@31..32 "]" WHITESPACE@32..33 " " NAME_REF@33..38 diff --git a/crates/syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.rast b/crates/syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.rast index 0342e64f3..178204fec 100644 --- a/crates/syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.rast +++ b/crates/syntax/test_data/parser/inline/ok/0126_attr_on_expr_stmt.rast @@ -15,10 +15,11 @@ SOURCE_FILE@0..82 ATTR@15..19 POUND@15..16 "#" L_BRACK@16..17 "[" - PATH@17..18 - PATH_SEGMENT@17..18 - NAME_REF@17..18 - IDENT@17..18 "A" + META@17..18 + PATH@17..18 + PATH_SEGMENT@17..18 + NAME_REF@17..18 + IDENT@17..18 "A" R_BRACK@18..19 "]" WHITESPACE@19..20 " " CALL_EXPR@20..25 @@ -36,10 +37,11 @@ SOURCE_FILE@0..82 ATTR@31..35 POUND@31..32 "#" L_BRACK@32..33 "[" - PATH@33..34 - PATH_SEGMENT@33..34 - NAME_REF@33..34 - IDENT@33..34 "B" + META@33..34 + PATH@33..34 + PATH_SEGMENT@33..34 + NAME_REF@33..34 + IDENT@33..34 "B" R_BRACK@34..35 "]" WHITESPACE@35..36 " " MACRO_CALL@36..42 @@ -56,19 +58,21 @@ SOURCE_FILE@0..82 ATTR@47..51 POUND@47..48 "#" L_BRACK@48..49 "[" - PATH@49..50 - PATH_SEGMENT@49..50 - NAME_REF@49..50 - IDENT@49..50 "C" + META@49..50 + PATH@49..50 + PATH_SEGMENT@49..50 + NAME_REF@49..50 + IDENT@49..50 "C" R_BRACK@50..51 "]" WHITESPACE@51..52 " " ATTR@52..56 POUND@52..53 "#" L_BRACK@53..54 "[" - PATH@54..55 - PATH_SEGMENT@54..55 - NAME_REF@54..55 - IDENT@54..55 "D" + META@54..55 + PATH@54..55 + PATH_SEGMENT@54..55 + NAME_REF@54..55 + IDENT@54..55 "D" R_BRACK@55..56 "]" WHITESPACE@56..57 " " BLOCK_EXPR@57..59 @@ -79,10 +83,11 @@ SOURCE_FILE@0..82 ATTR@64..68 POUND@64..65 "#" L_BRACK@65..66 "[" - PATH@66..67 - PATH_SEGMENT@66..67 - NAME_REF@66..67 - IDENT@66..67 "D" + META@66..67 + PATH@66..67 + PATH_SEGMENT@66..67 + NAME_REF@66..67 + IDENT@66..67 "D" R_BRACK@67..68 "]" WHITESPACE@68..69 " " RETURN_EXPR@69..78 diff --git a/crates/syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.rast b/crates/syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.rast index 3b46e5b47..9daac234a 100644 --- a/crates/syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.rast +++ b/crates/syntax/test_data/parser/inline/ok/0127_attr_on_last_expr_in_block.rast @@ -19,10 +19,11 @@ SOURCE_FILE@0..47 ATTR@17..21 POUND@17..18 "#" L_BRACK@18..19 "[" - PATH@19..20 - PATH_SEGMENT@19..20 - NAME_REF@19..20 - IDENT@19..20 "A" + META@19..20 + PATH@19..20 + PATH_SEGMENT@19..20 + NAME_REF@19..20 + IDENT@19..20 "A" R_BRACK@20..21 "]" WHITESPACE@21..22 " " MACRO_CALL@22..28 @@ -42,10 +43,11 @@ SOURCE_FILE@0..47 ATTR@36..40 POUND@36..37 "#" L_BRACK@37..38 "[" - PATH@38..39 - PATH_SEGMENT@38..39 - NAME_REF@38..39 - IDENT@38..39 "B" + META@38..39 + PATH@38..39 + PATH_SEGMENT@38..39 + NAME_REF@38..39 + IDENT@38..39 "B" R_BRACK@39..40 "]" WHITESPACE@40..41 " " AMP@41..42 "&" diff --git a/crates/syntax/test_data/parser/inline/ok/0130_let_stmt.rast b/crates/syntax/test_data/parser/inline/ok/0130_let_stmt.rast index 4c07cefa6..c3a79836a 100644 --- a/crates/syntax/test_data/parser/inline/ok/0130_let_stmt.rast +++ b/crates/syntax/test_data/parser/inline/ok/0130_let_stmt.rast @@ -109,10 +109,11 @@ SOURCE_FILE@0..135 ATTR@120..127 POUND@120..121 "#" L_BRACK@121..122 "[" - PATH@122..126 - PATH_SEGMENT@122..126 - NAME_REF@122..126 - IDENT@122..126 "attr" + META@122..126 + PATH@122..126 + PATH_SEGMENT@122..126 + NAME_REF@122..126 + IDENT@122..126 "attr" R_BRACK@126..127 "]" PARAM_LIST@127..129 PIPE@127..128 "|" diff --git a/crates/syntax/test_data/parser/inline/ok/0138_self_param_outer_attr.rast b/crates/syntax/test_data/parser/inline/ok/0138_self_param_outer_attr.rast index c54e64e3f..891eace59 100644 --- a/crates/syntax/test_data/parser/inline/ok/0138_self_param_outer_attr.rast +++ b/crates/syntax/test_data/parser/inline/ok/0138_self_param_outer_attr.rast @@ -10,10 +10,11 @@ SOURCE_FILE@0..26 ATTR@5..16 POUND@5..6 "#" L_BRACK@6..7 "[" - PATH@7..15 - PATH_SEGMENT@7..15 - NAME_REF@7..15 - IDENT@7..15 "must_use" + META@7..15 + PATH@7..15 + PATH_SEGMENT@7..15 + NAME_REF@7..15 + IDENT@7..15 "must_use" R_BRACK@15..16 "]" WHITESPACE@16..17 " " NAME@17..21 diff --git a/crates/syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast b/crates/syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast index a84088bf3..a363e592b 100644 --- a/crates/syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast +++ b/crates/syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast @@ -10,10 +10,11 @@ SOURCE_FILE@0..28 ATTR@5..13 POUND@5..6 "#" L_BRACK@6..7 "[" - PATH@7..12 - PATH_SEGMENT@7..12 - NAME_REF@7..12 - IDENT@7..12 "attr1" + META@7..12 + PATH@7..12 + PATH_SEGMENT@7..12 + NAME_REF@7..12 + IDENT@7..12 "attr1" R_BRACK@12..13 "]" WHITESPACE@13..14 " " IDENT_PAT@14..17 diff --git a/crates/syntax/test_data/parser/inline/ok/0145_record_pat_field.rast b/crates/syntax/test_data/parser/inline/ok/0145_record_pat_field.rast index e9202a612..c606a7c9b 100644 --- a/crates/syntax/test_data/parser/inline/ok/0145_record_pat_field.rast +++ b/crates/syntax/test_data/parser/inline/ok/0145_record_pat_field.rast @@ -87,17 +87,18 @@ SOURCE_FILE@0..102 ATTR@73..86 POUND@73..74 "#" L_BRACK@74..75 "[" - PATH@75..78 - PATH_SEGMENT@75..78 - NAME_REF@75..78 - IDENT@75..78 "cfg" - TOKEN_TREE@78..85 - L_PAREN@78..79 "(" - IDENT@79..82 "any" - TOKEN_TREE@82..84 - L_PAREN@82..83 "(" - R_PAREN@83..84 ")" - R_PAREN@84..85 ")" + META@75..85 + PATH@75..78 + PATH_SEGMENT@75..78 + NAME_REF@75..78 + IDENT@75..78 "cfg" + TOKEN_TREE@78..85 + L_PAREN@78..79 "(" + IDENT@79..82 "any" + TOKEN_TREE@82..84 + L_PAREN@82..83 "(" + R_PAREN@83..84 ")" + R_PAREN@84..85 ")" R_BRACK@85..86 "]" WHITESPACE@86..87 " " NAME_REF@87..88 diff --git a/crates/syntax/test_data/parser/inline/ok/0150_array_attrs.rast b/crates/syntax/test_data/parser/inline/ok/0150_array_attrs.rast index f284aafcd..26cdc2945 100644 --- a/crates/syntax/test_data/parser/inline/ok/0150_array_attrs.rast +++ b/crates/syntax/test_data/parser/inline/ok/0150_array_attrs.rast @@ -31,14 +31,15 @@ SOURCE_FILE@0..40 ATTR@23..35 POUND@23..24 "#" L_BRACK@24..25 "[" - PATH@25..28 - PATH_SEGMENT@25..28 - NAME_REF@25..28 - IDENT@25..28 "cfg" - TOKEN_TREE@28..34 - L_PAREN@28..29 "(" - IDENT@29..33 "test" - R_PAREN@33..34 ")" + META@25..34 + PATH@25..28 + PATH_SEGMENT@25..28 + NAME_REF@25..28 + IDENT@25..28 "cfg" + TOKEN_TREE@28..34 + L_PAREN@28..29 "(" + IDENT@29..33 "test" + R_PAREN@33..34 ")" R_BRACK@34..35 "]" WHITESPACE@35..36 " " INT_NUMBER@36..37 "2" diff --git a/crates/syntax/test_data/parser/inline/ok/0152_arg_with_attr.rast b/crates/syntax/test_data/parser/inline/ok/0152_arg_with_attr.rast index 2905c5f1a..1d20765b0 100644 --- a/crates/syntax/test_data/parser/inline/ok/0152_arg_with_attr.rast +++ b/crates/syntax/test_data/parser/inline/ok/0152_arg_with_attr.rast @@ -23,10 +23,11 @@ SOURCE_FILE@0..34 ATTR@20..27 POUND@20..21 "#" L_BRACK@21..22 "[" - PATH@22..26 - PATH_SEGMENT@22..26 - NAME_REF@22..26 - IDENT@22..26 "attr" + META@22..26 + PATH@22..26 + PATH_SEGMENT@22..26 + NAME_REF@22..26 + IDENT@22..26 "attr" R_BRACK@26..27 "]" WHITESPACE@27..28 " " INT_NUMBER@28..30 "92" diff --git a/crates/syntax/test_data/parser/inline/ok/0154_tuple_attrs.rast b/crates/syntax/test_data/parser/inline/ok/0154_tuple_attrs.rast index d34b21abe..3b6612677 100644 --- a/crates/syntax/test_data/parser/inline/ok/0154_tuple_attrs.rast +++ b/crates/syntax/test_data/parser/inline/ok/0154_tuple_attrs.rast @@ -34,14 +34,15 @@ SOURCE_FILE@0..43 ATTR@26..38 POUND@26..27 "#" L_BRACK@27..28 "[" - PATH@28..31 - PATH_SEGMENT@28..31 - NAME_REF@28..31 - IDENT@28..31 "cfg" - TOKEN_TREE@31..37 - L_PAREN@31..32 "(" - IDENT@32..36 "test" - R_PAREN@36..37 ")" + META@28..37 + PATH@28..31 + PATH_SEGMENT@28..31 + NAME_REF@28..31 + IDENT@28..31 "cfg" + TOKEN_TREE@31..37 + L_PAREN@31..32 "(" + IDENT@32..36 "test" + R_PAREN@36..37 ")" R_BRACK@37..38 "]" WHITESPACE@38..39 " " INT_NUMBER@39..40 "2" -- cgit v1.2.3