From 459241f272748ff2e57b2c7e84f5a04f78d67edb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 24 Jul 2019 12:38:21 +0300 Subject: move syntax tests to unit tests --- .../parser/err/0001_item_recovery_in_file.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.txt (limited to 'crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.txt') diff --git a/crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.txt b/crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.txt new file mode 100644 index 000000000..7cfb54ef8 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.txt @@ -0,0 +1,18 @@ +SOURCE_FILE@[0; 21) + ERROR@[0; 2) + IF_KW@[0; 2) "if" + WHITESPACE@[2; 3) " " + ERROR@[3; 8) + MATCH_KW@[3; 8) "match" + WHITESPACE@[8; 10) "\n\n" + STRUCT_DEF@[10; 21) + STRUCT_KW@[10; 16) "struct" + WHITESPACE@[16; 17) " " + NAME@[17; 18) + IDENT@[17; 18) "S" + WHITESPACE@[18; 19) " " + NAMED_FIELD_DEF_LIST@[19; 21) + L_CURLY@[19; 20) "{" + R_CURLY@[20; 21) "}" +error 0: expected an item +error 3: expected an item -- cgit v1.2.3