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/0044_block_items.rast | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast') diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast b/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast new file mode 100644 index 000000000..e75d569f0 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast @@ -0,0 +1,30 @@ +SOURCE_FILE@[0; 21) + FN_DEF@[0; 20) + FN_KW@[0; 2) "fn" + WHITESPACE@[2; 3) " " + NAME@[3; 4) + IDENT@[3; 4) "a" + PARAM_LIST@[4; 6) + L_PAREN@[4; 5) "(" + R_PAREN@[5; 6) ")" + WHITESPACE@[6; 7) " " + BLOCK_EXPR@[7; 20) + BLOCK@[7; 20) + L_CURLY@[7; 8) "{" + WHITESPACE@[8; 9) " " + FN_DEF@[9; 18) + FN_KW@[9; 11) "fn" + WHITESPACE@[11; 12) " " + NAME@[12; 13) + IDENT@[12; 13) "b" + PARAM_LIST@[13; 15) + L_PAREN@[13; 14) "(" + R_PAREN@[14; 15) ")" + WHITESPACE@[15; 16) " " + BLOCK_EXPR@[16; 18) + BLOCK@[16; 18) + L_CURLY@[16; 17) "{" + R_CURLY@[17; 18) "}" + WHITESPACE@[18; 19) " " + R_CURLY@[19; 20) "}" + WHITESPACE@[20; 21) "\n" -- cgit v1.2.3