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. --- crates/ra_syntax/test_data/parser/ok/0037_mod.rast | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/ok/0037_mod.rast (limited to 'crates/ra_syntax/test_data/parser/ok/0037_mod.rast') diff --git a/crates/ra_syntax/test_data/parser/ok/0037_mod.rast b/crates/ra_syntax/test_data/parser/ok/0037_mod.rast new file mode 100644 index 000000000..3af40a104 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0037_mod.rast @@ -0,0 +1,16 @@ +SOURCE_FILE@[0; 93) + COMMENT@[0; 60) "// https://github.com ..." + WHITESPACE@[60; 62) "\n\n" + MODULE@[62; 93) + COMMENT@[62; 70) "//! docs" + WHITESPACE@[70; 71) "\n" + COMMENT@[71; 82) "// non-docs" + WHITESPACE@[82; 83) "\n" + MOD_KW@[83; 86) "mod" + WHITESPACE@[86; 87) " " + NAME@[87; 90) + IDENT@[87; 90) "foo" + WHITESPACE@[90; 91) " " + ITEM_LIST@[91; 93) + L_CURLY@[91; 92) "{" + R_CURLY@[92; 93) "}" -- cgit v1.2.3