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/err/0004_use_path_bad_segment.rast | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast (limited to 'crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast') diff --git a/crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast b/crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast new file mode 100644 index 000000000..5f6e10986 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast @@ -0,0 +1,16 @@ +SOURCE_FILE@[0; 12) + USE_ITEM@[0; 12) + USE_KW@[0; 3) "use" + WHITESPACE@[3; 4) " " + USE_TREE@[4; 11) + PATH@[4; 11) + PATH@[4; 7) + PATH_SEGMENT@[4; 7) + NAME_REF@[4; 7) + IDENT@[4; 7) "foo" + COLONCOLON@[7; 9) "::" + PATH_SEGMENT@[9; 11) + ERROR@[9; 11) + INT_NUMBER@[9; 11) "92" + SEMI@[11; 12) ";" +error [9; 9): expected identifier -- cgit v1.2.3