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. --- .../test_data/parser/inline/ok/0078_type_item.rast | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/inline/ok/0078_type_item.rast (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0078_type_item.rast') diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0078_type_item.rast b/crates/ra_syntax/test_data/parser/inline/ok/0078_type_item.rast new file mode 100644 index 000000000..4bc0b1858 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0078_type_item.rast @@ -0,0 +1,16 @@ +SOURCE_FILE@[0; 16) + TYPE_ALIAS_DEF@[0; 15) + TYPE_KW@[0; 4) "type" + WHITESPACE@[4; 5) " " + NAME@[5; 8) + IDENT@[5; 8) "Foo" + WHITESPACE@[8; 9) " " + EQ@[9; 10) "=" + WHITESPACE@[10; 11) " " + PATH_TYPE@[11; 14) + PATH@[11; 14) + PATH_SEGMENT@[11; 14) + NAME_REF@[11; 14) + IDENT@[11; 14) "Bar" + SEMI@[14; 15) ";" + WHITESPACE@[15; 16) "\n" -- cgit v1.2.3