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/0150_impl_type_params.rast | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast') diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast b/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast new file mode 100644 index 000000000..2d46eebb3 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast @@ -0,0 +1,38 @@ +SOURCE_FILE@[0; 29) + IMPL_DEF@[0; 28) + IMPL_KW@[0; 4) "impl" + TYPE_PARAM_LIST@[4; 18) + L_ANGLE@[4; 5) "<" + CONST_PARAM@[5; 17) + CONST_KW@[5; 10) "const" + WHITESPACE@[10; 11) " " + NAME@[11; 12) + IDENT@[11; 12) "N" + COLON@[12; 13) ":" + WHITESPACE@[13; 14) " " + PATH_TYPE@[14; 17) + PATH@[14; 17) + PATH_SEGMENT@[14; 17) + NAME_REF@[14; 17) + IDENT@[14; 17) "u32" + R_ANGLE@[17; 18) ">" + WHITESPACE@[18; 19) " " + PATH_TYPE@[19; 25) + PATH@[19; 25) + PATH_SEGMENT@[19; 25) + NAME_REF@[19; 22) + IDENT@[19; 22) "Bar" + TYPE_ARG_LIST@[22; 25) + L_ANGLE@[22; 23) "<" + TYPE_ARG@[23; 24) + PATH_TYPE@[23; 24) + PATH@[23; 24) + PATH_SEGMENT@[23; 24) + NAME_REF@[23; 24) + IDENT@[23; 24) "N" + R_ANGLE@[24; 25) ">" + WHITESPACE@[25; 26) " " + ITEM_LIST@[26; 28) + L_CURLY@[26; 27) "{" + R_CURLY@[27; 28) "}" + WHITESPACE@[28; 29) "\n" -- cgit v1.2.3