From 9fdf984958901a6bf16772c2c88b3163f044b390 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Thu, 6 Feb 2020 02:33:18 +0200 Subject: ra_syntax: reshape SyntaxError for the sake of removing redundancy --- crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 index 181bcdb9e..01d71db8f 100644 --- 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 @@ -14,5 +14,5 @@ SOURCE_FILE@[0; 21) RECORD_FIELD_DEF_LIST@[19; 21) L_CURLY@[19; 20) "{" R_CURLY@[20; 21) "}" -error 0: expected an item -error 3: expected an item +error [0; 1): expected an item +error [3; 4): expected an item -- cgit v1.2.3 From fc5e7b8807f6d438028389b030dfae00965a8cd5 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Mon, 17 Feb 2020 23:14:31 +0200 Subject: ra_syntax: migrate test data to 0-length text-range of SyntaxError when constructed from TextUnit --- crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 index 01d71db8f..2d653715e 100644 --- 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 @@ -14,5 +14,5 @@ SOURCE_FILE@[0; 21) RECORD_FIELD_DEF_LIST@[19; 21) L_CURLY@[19; 20) "{" R_CURLY@[20; 21) "}" -error [0; 1): expected an item -error [3; 4): expected an item +error [0; 0): expected an item +error [3; 3): expected an item -- cgit v1.2.3