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/0125_crate_keyword_path.rast | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/inline/ok/0125_crate_keyword_path.rast (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0125_crate_keyword_path.rast') diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0125_crate_keyword_path.rast b/crates/ra_syntax/test_data/parser/inline/ok/0125_crate_keyword_path.rast new file mode 100644 index 000000000..6a9f3bf72 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0125_crate_keyword_path.rast @@ -0,0 +1,32 @@ +SOURCE_FILE@[0; 27) + FN_DEF@[0; 26) + FN_KW@[0; 2) "fn" + WHITESPACE@[2; 3) " " + NAME@[3; 6) + IDENT@[3; 6) "foo" + PARAM_LIST@[6; 8) + L_PAREN@[6; 7) "(" + R_PAREN@[7; 8) ")" + WHITESPACE@[8; 9) " " + BLOCK_EXPR@[9; 26) + BLOCK@[9; 26) + L_CURLY@[9; 10) "{" + WHITESPACE@[10; 11) " " + EXPR_STMT@[11; 24) + CALL_EXPR@[11; 23) + PATH_EXPR@[11; 21) + PATH@[11; 21) + PATH@[11; 16) + PATH_SEGMENT@[11; 16) + CRATE_KW@[11; 16) "crate" + COLONCOLON@[16; 18) "::" + PATH_SEGMENT@[18; 21) + NAME_REF@[18; 21) + IDENT@[18; 21) "foo" + ARG_LIST@[21; 23) + L_PAREN@[21; 22) "(" + R_PAREN@[22; 23) ")" + SEMI@[23; 24) ";" + WHITESPACE@[24; 25) " " + R_CURLY@[25; 26) "}" + WHITESPACE@[26; 27) "\n" -- cgit v1.2.3