From 2efdf41bdb178ebf1ff0f8e3b335f491c84d7fa3 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 11 Feb 2019 19:23:13 +0300 Subject: make macro a NameOwner --- crates/ra_syntax/tests/data/parser/err/0028_macro_2.0.txt | 3 ++- crates/ra_syntax/tests/data/parser/inline/ok/0062_mod_contents.txt | 3 ++- .../ra_syntax/tests/data/parser/inline/ok/0096_no_semi_after_block.txt | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'crates/ra_syntax/tests/data/parser') diff --git a/crates/ra_syntax/tests/data/parser/err/0028_macro_2.0.txt b/crates/ra_syntax/tests/data/parser/err/0028_macro_2.0.txt index 12919fab7..440bd7f92 100644 --- a/crates/ra_syntax/tests/data/parser/err/0028_macro_2.0.txt +++ b/crates/ra_syntax/tests/data/parser/err/0028_macro_2.0.txt @@ -6,7 +6,8 @@ SOURCE_FILE@[0; 349) IDENT@[0; 5) "macro" err: `expected EXCL` WHITESPACE@[5; 6) - IDENT@[6; 21) "parse_use_trees" + NAME@[6; 21) + IDENT@[6; 21) "parse_use_trees" TOKEN_TREE@[21; 41) L_PAREN@[21; 22) DOLLAR@[22; 23) diff --git a/crates/ra_syntax/tests/data/parser/inline/ok/0062_mod_contents.txt b/crates/ra_syntax/tests/data/parser/inline/ok/0062_mod_contents.txt index 62528ca47..6ccd0ffc3 100644 --- a/crates/ra_syntax/tests/data/parser/inline/ok/0062_mod_contents.txt +++ b/crates/ra_syntax/tests/data/parser/inline/ok/0062_mod_contents.txt @@ -19,7 +19,8 @@ SOURCE_FILE@[0; 70) IDENT@[12; 23) "macro_rules" EXCL@[23; 24) WHITESPACE@[24; 25) - IDENT@[25; 28) "foo" + NAME@[25; 28) + IDENT@[25; 28) "foo" WHITESPACE@[28; 29) TOKEN_TREE@[29; 31) L_CURLY@[29; 30) diff --git a/crates/ra_syntax/tests/data/parser/inline/ok/0096_no_semi_after_block.txt b/crates/ra_syntax/tests/data/parser/inline/ok/0096_no_semi_after_block.txt index 63b230091..ac789651a 100644 --- a/crates/ra_syntax/tests/data/parser/inline/ok/0096_no_semi_after_block.txt +++ b/crates/ra_syntax/tests/data/parser/inline/ok/0096_no_semi_after_block.txt @@ -92,7 +92,8 @@ SOURCE_FILE@[0; 167) IDENT@[109; 120) "macro_rules" EXCL@[120; 121) WHITESPACE@[121; 122) - IDENT@[122; 126) "test" + NAME@[122; 126) + IDENT@[122; 126) "test" WHITESPACE@[126; 127) TOKEN_TREE@[127; 152) L_CURLY@[127; 128) -- cgit v1.2.3