From da091b130347c4d6d8c75acb8e65c30a17dc1f5e Mon Sep 17 00:00:00 2001 From: veetaha Date: Mon, 6 Apr 2020 14:04:26 +0300 Subject: Migrate tests .txt -> .rast The sytax tree output files now use .rast extension (rust-analyzer syntax tree or rust abstract syntax tree (whatever)). This format has a editors/code/ra_syntax_tree.tmGrammar.json declaration that supplies nice syntax highlighting for .rast files. --- .../parser/inline/ok/0047_unsafe_default_impl.rast | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.rast (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.rast') diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.rast b/crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.rast new file mode 100644 index 000000000..0a768a8e3 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.rast @@ -0,0 +1,18 @@ +SOURCE_FILE@[0; 27) + IMPL_DEF@[0; 26) + UNSAFE_KW@[0; 6) "unsafe" + WHITESPACE@[6; 7) " " + DEFAULT_KW@[7; 14) "default" + WHITESPACE@[14; 15) " " + IMPL_KW@[15; 19) "impl" + WHITESPACE@[19; 20) " " + PATH_TYPE@[20; 23) + PATH@[20; 23) + PATH_SEGMENT@[20; 23) + NAME_REF@[20; 23) + IDENT@[20; 23) "Foo" + WHITESPACE@[23; 24) " " + ITEM_LIST@[24; 26) + L_CURLY@[24; 25) "{" + R_CURLY@[25; 26) "}" + WHITESPACE@[26; 27) "\n" -- cgit v1.2.3