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/0025_slice_type.rast | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/inline/ok/0025_slice_type.rast (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0025_slice_type.rast') diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0025_slice_type.rast b/crates/ra_syntax/test_data/parser/inline/ok/0025_slice_type.rast new file mode 100644 index 000000000..b3a24281e --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0025_slice_type.rast @@ -0,0 +1,17 @@ +SOURCE_FILE@[0; 15) + TYPE_ALIAS_DEF@[0; 14) + TYPE_KW@[0; 4) "type" + WHITESPACE@[4; 5) " " + NAME@[5; 6) + IDENT@[5; 6) "T" + WHITESPACE@[6; 7) " " + EQ@[7; 8) "=" + WHITESPACE@[8; 9) " " + SLICE_TYPE@[9; 13) + L_BRACK@[9; 10) "[" + TUPLE_TYPE@[10; 12) + L_PAREN@[10; 11) "(" + R_PAREN@[11; 12) ")" + R_BRACK@[12; 13) "]" + SEMI@[13; 14) ";" + WHITESPACE@[14; 15) "\n" -- cgit v1.2.3