From 8843588fca7a6022b86800d5d2539594c0de93cf Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 24 Apr 2020 23:51:02 +0200 Subject: Convert tests to text-size --- .../lexer/err/0001_unclosed_char_at_eof.txt | 2 +- .../lexer/err/0002_unclosed_char_with_ferris.txt | 2 +- .../err/0003_unclosed_char_with_ascii_escape.txt | 2 +- .../err/0004_unclosed_char_with_unicode_escape.txt | 2 +- .../lexer/err/0005_unclosed_char_with_space.txt | 2 +- .../lexer/err/0006_unclosed_char_with_slash.txt | 2 +- .../lexer/err/0007_unclosed_char_with_slash_n.txt | 2 +- .../0008_unclosed_char_with_slash_single_quote.txt | 2 +- .../lexer/err/0009_unclosed_byte_at_eof.txt | 2 +- .../lexer/err/0010_unclosed_byte_with_ferris.txt | 2 +- .../err/0011_unclosed_byte_with_ascii_escape.txt | 2 +- .../err/0012_unclosed_byte_with_unicode_escape.txt | 2 +- .../lexer/err/0013_unclosed_byte_with_space.txt | 2 +- .../lexer/err/0014_unclosed_byte_with_slash.txt | 2 +- .../lexer/err/0015_unclosed_byte_with_slash_n.txt | 2 +- .../0016_unclosed_byte_with_slash_single_quote.txt | 2 +- .../lexer/err/0017_unclosed_string_at_eof.txt | 2 +- .../lexer/err/0018_unclosed_string_with_ferris.txt | 2 +- .../err/0019_unclosed_string_with_ascii_escape.txt | 2 +- .../0020_unclosed_string_with_unicode_escape.txt | 2 +- .../lexer/err/0021_unclosed_string_with_space.txt | 2 +- .../lexer/err/0022_unclosed_string_with_slash.txt | 2 +- .../err/0023_unclosed_string_with_slash_n.txt | 2 +- ...024_unclosed_string_with_slash_double_quote.txt | 2 +- .../lexer/err/0025_unclosed_byte_string_at_eof.txt | 2 +- .../err/0026_unclosed_byte_string_with_ferris.txt | 2 +- ...0027_unclosed_byte_string_with_ascii_escape.txt | 2 +- ...28_unclosed_byte_string_with_unicode_escape.txt | 2 +- .../err/0029_unclosed_byte_string_with_space.txt | 2 +- .../err/0030_unclosed_byte_string_with_slash.txt | 2 +- .../err/0031_unclosed_byte_string_with_slash_n.txt | 2 +- ...nclosed_byte_string_with_slash_double_quote.txt | 2 +- .../lexer/err/0033_unclosed_raw_string_at_eof.txt | 2 +- .../err/0034_unclosed_raw_string_with_ferris.txt | 2 +- .../0035_unclosed_raw_string_with_ascii_escape.txt | 2 +- ...036_unclosed_raw_string_with_unicode_escape.txt | 2 +- .../err/0037_unclosed_raw_string_with_space.txt | 2 +- .../err/0038_unclosed_raw_string_with_slash.txt | 2 +- .../err/0039_unclosed_raw_string_with_slash_n.txt | 2 +- .../err/0040_unclosed_raw_byte_string_at_eof.txt | 2 +- .../0041_unclosed_raw_byte_string_with_ferris.txt | 2 +- ..._unclosed_raw_byte_string_with_ascii_escape.txt | 2 +- ...nclosed_raw_byte_string_with_unicode_escape.txt | 2 +- .../0044_unclosed_raw_byte_string_with_space.txt | 2 +- .../0045_unclosed_raw_byte_string_with_slash.txt | 2 +- .../0046_unclosed_raw_byte_string_with_slash_n.txt | 2 +- .../lexer/err/0047_unstarted_raw_string_at_eof.txt | 2 +- .../err/0048_unstarted_raw_byte_string_at_eof.txt | 2 +- .../err/0049_unstarted_raw_string_with_ascii.txt | 2 +- .../0050_unstarted_raw_byte_string_with_ascii.txt | 2 +- .../err/0051_unclosed_block_comment_at_eof.txt | 2 +- .../0052_unclosed_block_comment_with_content.txt | 2 +- ...0053_unclosed_nested_block_comment_entirely.txt | 2 +- ...054_unclosed_nested_block_comment_partially.txt | 2 +- .../test_data/lexer/err/0055_empty_int.txt | 26 ++++++++++---------- .../test_data/lexer/err/0056_empty_exponent.txt | 28 +++++++++++----------- .../err/0057_lifetime_strarts_with_a_number.txt | 4 ++-- 57 files changed, 83 insertions(+), 83 deletions(-) (limited to 'crates/ra_syntax/test_data/lexer') diff --git a/crates/ra_syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt b/crates/ra_syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt index f24e1fd32..4d5ad74df 100644 --- a/crates/ra_syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt +++ b/crates/ra_syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt @@ -1,2 +1,2 @@ CHAR 1 "\'" -> error[0; 1) token("\'") msg(Missing trailing `'` symbol to terminate the character literal) +> error0..1 token("\'") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt b/crates/ra_syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt index bd08cfc44..eafdb3c7c 100644 --- a/crates/ra_syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt +++ b/crates/ra_syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt @@ -1,2 +1,2 @@ CHAR 5 "\'🦀" -> error[0; 5) token("\'🦀") msg(Missing trailing `'` symbol to terminate the character literal) +> error0..5 token("\'🦀") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt b/crates/ra_syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt index 0ee22912d..cc2b4866a 100644 --- a/crates/ra_syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt +++ b/crates/ra_syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt @@ -1,2 +1,2 @@ CHAR 5 "\'\\x7f" -> error[0; 5) token("\'\\x7f") msg(Missing trailing `'` symbol to terminate the character literal) +> error0..5 token("\'\\x7f") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt b/crates/ra_syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt index 96fac42ce..a6d422cb3 100644 --- a/crates/ra_syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt +++ b/crates/ra_syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt @@ -1,2 +1,2 @@ CHAR 9 "\'\\u{20AA}" -> error[0; 9) token("\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the character literal) +> error0..9 token("\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt b/crates/ra_syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt index 2059f3f81..47e7baa70 100644 --- a/crates/ra_syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt +++ b/crates/ra_syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt @@ -1,2 +1,2 @@ CHAR 2 "\' " -> error[0; 2) token("\' ") msg(Missing trailing `'` symbol to terminate the character literal) +> error0..2 token("\' ") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt b/crates/ra_syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt index 7dd376e59..511029d80 100644 --- a/crates/ra_syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt +++ b/crates/ra_syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt @@ -1,2 +1,2 @@ CHAR 2 "\'\\" -> error[0; 2) token("\'\\") msg(Missing trailing `'` symbol to terminate the character literal) +> error0..2 token("\'\\") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt b/crates/ra_syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt index ef7a0a147..d2ba5742c 100644 --- a/crates/ra_syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt +++ b/crates/ra_syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt @@ -1,2 +1,2 @@ CHAR 3 "\'\\n" -> error[0; 3) token("\'\\n") msg(Missing trailing `'` symbol to terminate the character literal) +> error0..3 token("\'\\n") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt b/crates/ra_syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt index 13fc5ea9a..ae9a7f0e2 100644 --- a/crates/ra_syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt +++ b/crates/ra_syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt @@ -1,2 +1,2 @@ CHAR 3 "\'\\\'" -> error[0; 3) token("\'\\\'") msg(Missing trailing `'` symbol to terminate the character literal) +> error0..3 token("\'\\\'") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt b/crates/ra_syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt index 269d68c74..ff1504592 100644 --- a/crates/ra_syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt +++ b/crates/ra_syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt @@ -1,2 +1,2 @@ BYTE 2 "b\'" -> error[0; 2) token("b\'") msg(Missing trailing `'` symbol to terminate the byte literal) +> error0..2 token("b\'") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt b/crates/ra_syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt index 91a76e479..34f7bd6d4 100644 --- a/crates/ra_syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt +++ b/crates/ra_syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt @@ -1,2 +1,2 @@ BYTE 6 "b\'🦀" -> error[0; 6) token("b\'🦀") msg(Missing trailing `'` symbol to terminate the byte literal) +> error0..6 token("b\'🦀") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt b/crates/ra_syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt index b8c804a18..c964d0f00 100644 --- a/crates/ra_syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt +++ b/crates/ra_syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt @@ -1,2 +1,2 @@ BYTE 6 "b\'\\x7f" -> error[0; 6) token("b\'\\x7f") msg(Missing trailing `'` symbol to terminate the byte literal) +> error0..6 token("b\'\\x7f") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt b/crates/ra_syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt index dfca22a59..cc65fb86f 100644 --- a/crates/ra_syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt +++ b/crates/ra_syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt @@ -1,2 +1,2 @@ BYTE 10 "b\'\\u{20AA}" -> error[0; 10) token("b\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the byte literal) +> error0..10 token("b\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt b/crates/ra_syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt index 51a1cceab..800834a14 100644 --- a/crates/ra_syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt +++ b/crates/ra_syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt @@ -1,2 +1,2 @@ BYTE 3 "b\' " -> error[0; 3) token("b\' ") msg(Missing trailing `'` symbol to terminate the byte literal) +> error0..3 token("b\' ") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt b/crates/ra_syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt index 24e835c27..7b85ee646 100644 --- a/crates/ra_syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt +++ b/crates/ra_syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt @@ -1,2 +1,2 @@ BYTE 3 "b\'\\" -> error[0; 3) token("b\'\\") msg(Missing trailing `'` symbol to terminate the byte literal) +> error0..3 token("b\'\\") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt b/crates/ra_syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt index f1e39a41b..4b9a63117 100644 --- a/crates/ra_syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt +++ b/crates/ra_syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt @@ -1,2 +1,2 @@ BYTE 4 "b\'\\n" -> error[0; 4) token("b\'\\n") msg(Missing trailing `'` symbol to terminate the byte literal) +> error0..4 token("b\'\\n") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt b/crates/ra_syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt index f8ffe815d..fe337f8d3 100644 --- a/crates/ra_syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt +++ b/crates/ra_syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt @@ -1,2 +1,2 @@ BYTE 4 "b\'\\\'" -> error[0; 4) token("b\'\\\'") msg(Missing trailing `'` symbol to terminate the byte literal) +> error0..4 token("b\'\\\'") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0017_unclosed_string_at_eof.txt b/crates/ra_syntax/test_data/lexer/err/0017_unclosed_string_at_eof.txt index 823daaf6f..d11a8d880 100644 --- a/crates/ra_syntax/test_data/lexer/err/0017_unclosed_string_at_eof.txt +++ b/crates/ra_syntax/test_data/lexer/err/0017_unclosed_string_at_eof.txt @@ -1,2 +1,2 @@ STRING 1 "\"" -> error[0; 1) token("\"") msg(Missing trailing `"` symbol to terminate the string literal) +> error0..1 token("\"") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0018_unclosed_string_with_ferris.txt b/crates/ra_syntax/test_data/lexer/err/0018_unclosed_string_with_ferris.txt index 164580eb3..167f942d1 100644 --- a/crates/ra_syntax/test_data/lexer/err/0018_unclosed_string_with_ferris.txt +++ b/crates/ra_syntax/test_data/lexer/err/0018_unclosed_string_with_ferris.txt @@ -1,2 +1,2 @@ STRING 5 "\"🦀" -> error[0; 5) token("\"🦀") msg(Missing trailing `"` symbol to terminate the string literal) +> error0..5 token("\"🦀") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0019_unclosed_string_with_ascii_escape.txt b/crates/ra_syntax/test_data/lexer/err/0019_unclosed_string_with_ascii_escape.txt index 4453827c3..224c653d2 100644 --- a/crates/ra_syntax/test_data/lexer/err/0019_unclosed_string_with_ascii_escape.txt +++ b/crates/ra_syntax/test_data/lexer/err/0019_unclosed_string_with_ascii_escape.txt @@ -1,2 +1,2 @@ STRING 5 "\"\\x7f" -> error[0; 5) token("\"\\x7f") msg(Missing trailing `"` symbol to terminate the string literal) +> error0..5 token("\"\\x7f") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0020_unclosed_string_with_unicode_escape.txt b/crates/ra_syntax/test_data/lexer/err/0020_unclosed_string_with_unicode_escape.txt index aa614f304..48975bbcb 100644 --- a/crates/ra_syntax/test_data/lexer/err/0020_unclosed_string_with_unicode_escape.txt +++ b/crates/ra_syntax/test_data/lexer/err/0020_unclosed_string_with_unicode_escape.txt @@ -1,2 +1,2 @@ STRING 9 "\"\\u{20AA}" -> error[0; 9) token("\"\\u{20AA}") msg(Missing trailing `"` symbol to terminate the string literal) +> error0..9 token("\"\\u{20AA}") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0021_unclosed_string_with_space.txt b/crates/ra_syntax/test_data/lexer/err/0021_unclosed_string_with_space.txt index b7db1236f..a823cca7a 100644 --- a/crates/ra_syntax/test_data/lexer/err/0021_unclosed_string_with_space.txt +++ b/crates/ra_syntax/test_data/lexer/err/0021_unclosed_string_with_space.txt @@ -1,2 +1,2 @@ STRING 2 "\" " -> error[0; 2) token("\" ") msg(Missing trailing `"` symbol to terminate the string literal) +> error0..2 token("\" ") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0022_unclosed_string_with_slash.txt b/crates/ra_syntax/test_data/lexer/err/0022_unclosed_string_with_slash.txt index 9d3df3799..0914f001f 100644 --- a/crates/ra_syntax/test_data/lexer/err/0022_unclosed_string_with_slash.txt +++ b/crates/ra_syntax/test_data/lexer/err/0022_unclosed_string_with_slash.txt @@ -1,2 +1,2 @@ STRING 2 "\"\\" -> error[0; 2) token("\"\\") msg(Missing trailing `"` symbol to terminate the string literal) +> error0..2 token("\"\\") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0023_unclosed_string_with_slash_n.txt b/crates/ra_syntax/test_data/lexer/err/0023_unclosed_string_with_slash_n.txt index e3eb672b6..5674b55fd 100644 --- a/crates/ra_syntax/test_data/lexer/err/0023_unclosed_string_with_slash_n.txt +++ b/crates/ra_syntax/test_data/lexer/err/0023_unclosed_string_with_slash_n.txt @@ -1,2 +1,2 @@ STRING 3 "\"\\n" -> error[0; 3) token("\"\\n") msg(Missing trailing `"` symbol to terminate the string literal) +> error0..3 token("\"\\n") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0024_unclosed_string_with_slash_double_quote.txt b/crates/ra_syntax/test_data/lexer/err/0024_unclosed_string_with_slash_double_quote.txt index 041d7fb6e..4c9a774e4 100644 --- a/crates/ra_syntax/test_data/lexer/err/0024_unclosed_string_with_slash_double_quote.txt +++ b/crates/ra_syntax/test_data/lexer/err/0024_unclosed_string_with_slash_double_quote.txt @@ -1,2 +1,2 @@ STRING 3 "\"\\\"" -> error[0; 3) token("\"\\\"") msg(Missing trailing `"` symbol to terminate the string literal) +> error0..3 token("\"\\\"") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0025_unclosed_byte_string_at_eof.txt b/crates/ra_syntax/test_data/lexer/err/0025_unclosed_byte_string_at_eof.txt index be7970a83..04e6b0aa4 100644 --- a/crates/ra_syntax/test_data/lexer/err/0025_unclosed_byte_string_at_eof.txt +++ b/crates/ra_syntax/test_data/lexer/err/0025_unclosed_byte_string_at_eof.txt @@ -1,2 +1,2 @@ BYTE_STRING 2 "b\"" -> error[0; 2) token("b\"") msg(Missing trailing `"` symbol to terminate the byte string literal) +> error0..2 token("b\"") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0026_unclosed_byte_string_with_ferris.txt b/crates/ra_syntax/test_data/lexer/err/0026_unclosed_byte_string_with_ferris.txt index bf9aab132..0576a0609 100644 --- a/crates/ra_syntax/test_data/lexer/err/0026_unclosed_byte_string_with_ferris.txt +++ b/crates/ra_syntax/test_data/lexer/err/0026_unclosed_byte_string_with_ferris.txt @@ -1,2 +1,2 @@ BYTE_STRING 6 "b\"🦀" -> error[0; 6) token("b\"🦀") msg(Missing trailing `"` symbol to terminate the byte string literal) +> error0..6 token("b\"🦀") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0027_unclosed_byte_string_with_ascii_escape.txt b/crates/ra_syntax/test_data/lexer/err/0027_unclosed_byte_string_with_ascii_escape.txt index 76e16d7d3..541a013d8 100644 --- a/crates/ra_syntax/test_data/lexer/err/0027_unclosed_byte_string_with_ascii_escape.txt +++ b/crates/ra_syntax/test_data/lexer/err/0027_unclosed_byte_string_with_ascii_escape.txt @@ -1,2 +1,2 @@ BYTE_STRING 6 "b\"\\x7f" -> error[0; 6) token("b\"\\x7f") msg(Missing trailing `"` symbol to terminate the byte string literal) +> error0..6 token("b\"\\x7f") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0028_unclosed_byte_string_with_unicode_escape.txt b/crates/ra_syntax/test_data/lexer/err/0028_unclosed_byte_string_with_unicode_escape.txt index 09adffa16..71b0fb211 100644 --- a/crates/ra_syntax/test_data/lexer/err/0028_unclosed_byte_string_with_unicode_escape.txt +++ b/crates/ra_syntax/test_data/lexer/err/0028_unclosed_byte_string_with_unicode_escape.txt @@ -1,2 +1,2 @@ BYTE_STRING 10 "b\"\\u{20AA}" -> error[0; 10) token("b\"\\u{20AA}") msg(Missing trailing `"` symbol to terminate the byte string literal) +> error0..10 token("b\"\\u{20AA}") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0029_unclosed_byte_string_with_space.txt b/crates/ra_syntax/test_data/lexer/err/0029_unclosed_byte_string_with_space.txt index fcb7253c8..bd5058bc1 100644 --- a/crates/ra_syntax/test_data/lexer/err/0029_unclosed_byte_string_with_space.txt +++ b/crates/ra_syntax/test_data/lexer/err/0029_unclosed_byte_string_with_space.txt @@ -1,2 +1,2 @@ BYTE_STRING 3 "b\" " -> error[0; 3) token("b\" ") msg(Missing trailing `"` symbol to terminate the byte string literal) +> error0..3 token("b\" ") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0030_unclosed_byte_string_with_slash.txt b/crates/ra_syntax/test_data/lexer/err/0030_unclosed_byte_string_with_slash.txt index 0a1b3e269..7f94f10ba 100644 --- a/crates/ra_syntax/test_data/lexer/err/0030_unclosed_byte_string_with_slash.txt +++ b/crates/ra_syntax/test_data/lexer/err/0030_unclosed_byte_string_with_slash.txt @@ -1,2 +1,2 @@ BYTE_STRING 3 "b\"\\" -> error[0; 3) token("b\"\\") msg(Missing trailing `"` symbol to terminate the byte string literal) +> error0..3 token("b\"\\") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0031_unclosed_byte_string_with_slash_n.txt b/crates/ra_syntax/test_data/lexer/err/0031_unclosed_byte_string_with_slash_n.txt index 1fb89d2b6..9c3c089d7 100644 --- a/crates/ra_syntax/test_data/lexer/err/0031_unclosed_byte_string_with_slash_n.txt +++ b/crates/ra_syntax/test_data/lexer/err/0031_unclosed_byte_string_with_slash_n.txt @@ -1,2 +1,2 @@ BYTE_STRING 4 "b\"\\n" -> error[0; 4) token("b\"\\n") msg(Missing trailing `"` symbol to terminate the byte string literal) +> error0..4 token("b\"\\n") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0032_unclosed_byte_string_with_slash_double_quote.txt b/crates/ra_syntax/test_data/lexer/err/0032_unclosed_byte_string_with_slash_double_quote.txt index 718d36992..884b12c8e 100644 --- a/crates/ra_syntax/test_data/lexer/err/0032_unclosed_byte_string_with_slash_double_quote.txt +++ b/crates/ra_syntax/test_data/lexer/err/0032_unclosed_byte_string_with_slash_double_quote.txt @@ -1,2 +1,2 @@ BYTE_STRING 4 "b\"\\\"" -> error[0; 4) token("b\"\\\"") msg(Missing trailing `"` symbol to terminate the byte string literal) +> error0..4 token("b\"\\\"") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0033_unclosed_raw_string_at_eof.txt b/crates/ra_syntax/test_data/lexer/err/0033_unclosed_raw_string_at_eof.txt index 93348f548..6fd59ccc0 100644 --- a/crates/ra_syntax/test_data/lexer/err/0033_unclosed_raw_string_at_eof.txt +++ b/crates/ra_syntax/test_data/lexer/err/0033_unclosed_raw_string_at_eof.txt @@ -1,2 +1,2 @@ RAW_STRING 4 "r##\"" -> error[0; 4) token("r##\"") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) +> error0..4 token("r##\"") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0034_unclosed_raw_string_with_ferris.txt b/crates/ra_syntax/test_data/lexer/err/0034_unclosed_raw_string_with_ferris.txt index 42c70dfe8..8d9ca0e8f 100644 --- a/crates/ra_syntax/test_data/lexer/err/0034_unclosed_raw_string_with_ferris.txt +++ b/crates/ra_syntax/test_data/lexer/err/0034_unclosed_raw_string_with_ferris.txt @@ -1,2 +1,2 @@ RAW_STRING 8 "r##\"🦀" -> error[0; 8) token("r##\"🦀") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) +> error0..8 token("r##\"🦀") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0035_unclosed_raw_string_with_ascii_escape.txt b/crates/ra_syntax/test_data/lexer/err/0035_unclosed_raw_string_with_ascii_escape.txt index 2bdeea0ff..a906380c7 100644 --- a/crates/ra_syntax/test_data/lexer/err/0035_unclosed_raw_string_with_ascii_escape.txt +++ b/crates/ra_syntax/test_data/lexer/err/0035_unclosed_raw_string_with_ascii_escape.txt @@ -1,2 +1,2 @@ RAW_STRING 8 "r##\"\\x7f" -> error[0; 8) token("r##\"\\x7f") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) +> error0..8 token("r##\"\\x7f") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0036_unclosed_raw_string_with_unicode_escape.txt b/crates/ra_syntax/test_data/lexer/err/0036_unclosed_raw_string_with_unicode_escape.txt index 667d4d79f..5667c6149 100644 --- a/crates/ra_syntax/test_data/lexer/err/0036_unclosed_raw_string_with_unicode_escape.txt +++ b/crates/ra_syntax/test_data/lexer/err/0036_unclosed_raw_string_with_unicode_escape.txt @@ -1,2 +1,2 @@ RAW_STRING 12 "r##\"\\u{20AA}" -> error[0; 12) token("r##\"\\u{20AA}") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) +> error0..12 token("r##\"\\u{20AA}") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0037_unclosed_raw_string_with_space.txt b/crates/ra_syntax/test_data/lexer/err/0037_unclosed_raw_string_with_space.txt index dd9597a1a..141c8268e 100644 --- a/crates/ra_syntax/test_data/lexer/err/0037_unclosed_raw_string_with_space.txt +++ b/crates/ra_syntax/test_data/lexer/err/0037_unclosed_raw_string_with_space.txt @@ -1,2 +1,2 @@ RAW_STRING 5 "r##\" " -> error[0; 5) token("r##\" ") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) +> error0..5 token("r##\" ") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0038_unclosed_raw_string_with_slash.txt b/crates/ra_syntax/test_data/lexer/err/0038_unclosed_raw_string_with_slash.txt index 6ac6e3d62..f61d4cc91 100644 --- a/crates/ra_syntax/test_data/lexer/err/0038_unclosed_raw_string_with_slash.txt +++ b/crates/ra_syntax/test_data/lexer/err/0038_unclosed_raw_string_with_slash.txt @@ -1,2 +1,2 @@ RAW_STRING 5 "r##\"\\" -> error[0; 5) token("r##\"\\") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) +> error0..5 token("r##\"\\") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0039_unclosed_raw_string_with_slash_n.txt b/crates/ra_syntax/test_data/lexer/err/0039_unclosed_raw_string_with_slash_n.txt index 9d35443f5..12e2c0fc0 100644 --- a/crates/ra_syntax/test_data/lexer/err/0039_unclosed_raw_string_with_slash_n.txt +++ b/crates/ra_syntax/test_data/lexer/err/0039_unclosed_raw_string_with_slash_n.txt @@ -1,2 +1,2 @@ RAW_STRING 6 "r##\"\\n" -> error[0; 6) token("r##\"\\n") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) +> error0..6 token("r##\"\\n") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0040_unclosed_raw_byte_string_at_eof.txt b/crates/ra_syntax/test_data/lexer/err/0040_unclosed_raw_byte_string_at_eof.txt index 81fa39ea5..fe12cb5fc 100644 --- a/crates/ra_syntax/test_data/lexer/err/0040_unclosed_raw_byte_string_at_eof.txt +++ b/crates/ra_syntax/test_data/lexer/err/0040_unclosed_raw_byte_string_at_eof.txt @@ -1,2 +1,2 @@ RAW_BYTE_STRING 5 "br##\"" -> error[0; 5) token("br##\"") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) +> error0..5 token("br##\"") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0041_unclosed_raw_byte_string_with_ferris.txt b/crates/ra_syntax/test_data/lexer/err/0041_unclosed_raw_byte_string_with_ferris.txt index c2503a4d0..5be2a7861 100644 --- a/crates/ra_syntax/test_data/lexer/err/0041_unclosed_raw_byte_string_with_ferris.txt +++ b/crates/ra_syntax/test_data/lexer/err/0041_unclosed_raw_byte_string_with_ferris.txt @@ -1,2 +1,2 @@ RAW_BYTE_STRING 9 "br##\"🦀" -> error[0; 9) token("br##\"🦀") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) +> error0..9 token("br##\"🦀") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0042_unclosed_raw_byte_string_with_ascii_escape.txt b/crates/ra_syntax/test_data/lexer/err/0042_unclosed_raw_byte_string_with_ascii_escape.txt index 3bd3d8152..6cbe08d07 100644 --- a/crates/ra_syntax/test_data/lexer/err/0042_unclosed_raw_byte_string_with_ascii_escape.txt +++ b/crates/ra_syntax/test_data/lexer/err/0042_unclosed_raw_byte_string_with_ascii_escape.txt @@ -1,2 +1,2 @@ RAW_BYTE_STRING 9 "br##\"\\x7f" -> error[0; 9) token("br##\"\\x7f") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) +> error0..9 token("br##\"\\x7f") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0043_unclosed_raw_byte_string_with_unicode_escape.txt b/crates/ra_syntax/test_data/lexer/err/0043_unclosed_raw_byte_string_with_unicode_escape.txt index a512f0428..f56a4f984 100644 --- a/crates/ra_syntax/test_data/lexer/err/0043_unclosed_raw_byte_string_with_unicode_escape.txt +++ b/crates/ra_syntax/test_data/lexer/err/0043_unclosed_raw_byte_string_with_unicode_escape.txt @@ -1,2 +1,2 @@ RAW_BYTE_STRING 13 "br##\"\\u{20AA}" -> error[0; 13) token("br##\"\\u{20AA}") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) +> error0..13 token("br##\"\\u{20AA}") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0044_unclosed_raw_byte_string_with_space.txt b/crates/ra_syntax/test_data/lexer/err/0044_unclosed_raw_byte_string_with_space.txt index dc616a623..3d32ce34e 100644 --- a/crates/ra_syntax/test_data/lexer/err/0044_unclosed_raw_byte_string_with_space.txt +++ b/crates/ra_syntax/test_data/lexer/err/0044_unclosed_raw_byte_string_with_space.txt @@ -1,2 +1,2 @@ RAW_BYTE_STRING 6 "br##\" " -> error[0; 6) token("br##\" ") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) +> error0..6 token("br##\" ") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0045_unclosed_raw_byte_string_with_slash.txt b/crates/ra_syntax/test_data/lexer/err/0045_unclosed_raw_byte_string_with_slash.txt index debafe380..320fea177 100644 --- a/crates/ra_syntax/test_data/lexer/err/0045_unclosed_raw_byte_string_with_slash.txt +++ b/crates/ra_syntax/test_data/lexer/err/0045_unclosed_raw_byte_string_with_slash.txt @@ -1,2 +1,2 @@ RAW_BYTE_STRING 6 "br##\"\\" -> error[0; 6) token("br##\"\\") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) +> error0..6 token("br##\"\\") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0046_unclosed_raw_byte_string_with_slash_n.txt b/crates/ra_syntax/test_data/lexer/err/0046_unclosed_raw_byte_string_with_slash_n.txt index 524e617b7..b3a56380c 100644 --- a/crates/ra_syntax/test_data/lexer/err/0046_unclosed_raw_byte_string_with_slash_n.txt +++ b/crates/ra_syntax/test_data/lexer/err/0046_unclosed_raw_byte_string_with_slash_n.txt @@ -1,2 +1,2 @@ RAW_BYTE_STRING 7 "br##\"\\n" -> error[0; 7) token("br##\"\\n") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) +> error0..7 token("br##\"\\n") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0047_unstarted_raw_string_at_eof.txt b/crates/ra_syntax/test_data/lexer/err/0047_unstarted_raw_string_at_eof.txt index 00b046840..5af1e2d97 100644 --- a/crates/ra_syntax/test_data/lexer/err/0047_unstarted_raw_string_at_eof.txt +++ b/crates/ra_syntax/test_data/lexer/err/0047_unstarted_raw_string_at_eof.txt @@ -1,2 +1,2 @@ RAW_STRING 3 "r##" -> error[0; 3) token("r##") msg(Missing `"` symbol after `#` symbols to begin the raw string literal) +> error0..3 token("r##") msg(Missing `"` symbol after `#` symbols to begin the raw string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0048_unstarted_raw_byte_string_at_eof.txt b/crates/ra_syntax/test_data/lexer/err/0048_unstarted_raw_byte_string_at_eof.txt index 33b25e60f..aec7afd92 100644 --- a/crates/ra_syntax/test_data/lexer/err/0048_unstarted_raw_byte_string_at_eof.txt +++ b/crates/ra_syntax/test_data/lexer/err/0048_unstarted_raw_byte_string_at_eof.txt @@ -1,2 +1,2 @@ RAW_BYTE_STRING 4 "br##" -> error[0; 4) token("br##") msg(Missing `"` symbol after `#` symbols to begin the raw byte string literal) +> error0..4 token("br##") msg(Missing `"` symbol after `#` symbols to begin the raw byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0049_unstarted_raw_string_with_ascii.txt b/crates/ra_syntax/test_data/lexer/err/0049_unstarted_raw_string_with_ascii.txt index 290e0bd7c..e22fe5374 100644 --- a/crates/ra_syntax/test_data/lexer/err/0049_unstarted_raw_string_with_ascii.txt +++ b/crates/ra_syntax/test_data/lexer/err/0049_unstarted_raw_string_with_ascii.txt @@ -7,4 +7,4 @@ IDENT 1 "a" WHITESPACE 1 " " IDENT 5 "quote" BANG 1 "!" -> error[0; 4) token("r## ") msg(Missing `"` symbol after `#` symbols to begin the raw string literal) +> error0..4 token("r## ") msg(Missing `"` symbol after `#` symbols to begin the raw string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt b/crates/ra_syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt index 5c492906d..d74ea4c27 100644 --- a/crates/ra_syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt +++ b/crates/ra_syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt @@ -7,4 +7,4 @@ IDENT 1 "a" WHITESPACE 1 " " IDENT 5 "quote" BANG 1 "!" -> error[0; 5) token("br## ") msg(Missing `"` symbol after `#` symbols to begin the raw byte string literal) +> error0..5 token("br## ") msg(Missing `"` symbol after `#` symbols to begin the raw byte string literal) diff --git a/crates/ra_syntax/test_data/lexer/err/0051_unclosed_block_comment_at_eof.txt b/crates/ra_syntax/test_data/lexer/err/0051_unclosed_block_comment_at_eof.txt index 5d04cdaa4..2a256e9df 100644 --- a/crates/ra_syntax/test_data/lexer/err/0051_unclosed_block_comment_at_eof.txt +++ b/crates/ra_syntax/test_data/lexer/err/0051_unclosed_block_comment_at_eof.txt @@ -1,2 +1,2 @@ COMMENT 2 "/*" -> error[0; 2) token("/*") msg(Missing trailing `*/` symbols to terminate the block comment) +> error0..2 token("/*") msg(Missing trailing `*/` symbols to terminate the block comment) diff --git a/crates/ra_syntax/test_data/lexer/err/0052_unclosed_block_comment_with_content.txt b/crates/ra_syntax/test_data/lexer/err/0052_unclosed_block_comment_with_content.txt index 8c6b678e3..8e8490302 100644 --- a/crates/ra_syntax/test_data/lexer/err/0052_unclosed_block_comment_with_content.txt +++ b/crates/ra_syntax/test_data/lexer/err/0052_unclosed_block_comment_with_content.txt @@ -1,2 +1,2 @@ COMMENT 11 "/* comment\n" -> error[0; 11) token("/* comment\n") msg(Missing trailing `*/` symbols to terminate the block comment) +> error0..11 token("/* comment\n") msg(Missing trailing `*/` symbols to terminate the block comment) diff --git a/crates/ra_syntax/test_data/lexer/err/0053_unclosed_nested_block_comment_entirely.txt b/crates/ra_syntax/test_data/lexer/err/0053_unclosed_nested_block_comment_entirely.txt index 250de34d9..b7d28fc05 100644 --- a/crates/ra_syntax/test_data/lexer/err/0053_unclosed_nested_block_comment_entirely.txt +++ b/crates/ra_syntax/test_data/lexer/err/0053_unclosed_nested_block_comment_entirely.txt @@ -1,2 +1,2 @@ COMMENT 9 "/* /* /*\n" -> error[0; 9) token("/* /* /*\n") msg(Missing trailing `*/` symbols to terminate the block comment) +> error0..9 token("/* /* /*\n") msg(Missing trailing `*/` symbols to terminate the block comment) diff --git a/crates/ra_syntax/test_data/lexer/err/0054_unclosed_nested_block_comment_partially.txt b/crates/ra_syntax/test_data/lexer/err/0054_unclosed_nested_block_comment_partially.txt index f97f2a8c7..4742d2c12 100644 --- a/crates/ra_syntax/test_data/lexer/err/0054_unclosed_nested_block_comment_partially.txt +++ b/crates/ra_syntax/test_data/lexer/err/0054_unclosed_nested_block_comment_partially.txt @@ -1,2 +1,2 @@ COMMENT 25 "/** /*! /* comment */ */\n" -> error[0; 25) token("/** /*! /* comment */ */\n") msg(Missing trailing `*/` symbols to terminate the block comment) +> error0..25 token("/** /*! /* comment */ */\n") msg(Missing trailing `*/` symbols to terminate the block comment) diff --git a/crates/ra_syntax/test_data/lexer/err/0055_empty_int.txt b/crates/ra_syntax/test_data/lexer/err/0055_empty_int.txt index 2fe5bd950..bcd094b6e 100644 --- a/crates/ra_syntax/test_data/lexer/err/0055_empty_int.txt +++ b/crates/ra_syntax/test_data/lexer/err/0055_empty_int.txt @@ -24,16 +24,16 @@ INT_NUMBER 4 "0x_g" WHITESPACE 1 "\n" INT_NUMBER 4 "0x_G" WHITESPACE 1 "\n" -> error[0; 2) token("0b") msg(Missing digits after the integer base prefix) -> error[3; 5) token("0o") msg(Missing digits after the integer base prefix) -> error[6; 8) token("0x") msg(Missing digits after the integer base prefix) -> error[10; 13) token("0b_") msg(Missing digits after the integer base prefix) -> error[14; 17) token("0o_") msg(Missing digits after the integer base prefix) -> error[18; 21) token("0x_") msg(Missing digits after the integer base prefix) -> error[23; 32) token("0bnoDigit") msg(Missing digits after the integer base prefix) -> error[33; 42) token("0onoDigit") msg(Missing digits after the integer base prefix) -> error[43; 52) token("0xnoDigit") msg(Missing digits after the integer base prefix) -> error[54; 57) token("0xG") msg(Missing digits after the integer base prefix) -> error[58; 61) token("0xg") msg(Missing digits after the integer base prefix) -> error[63; 67) token("0x_g") msg(Missing digits after the integer base prefix) -> error[68; 72) token("0x_G") msg(Missing digits after the integer base prefix) +> error0..2 token("0b") msg(Missing digits after the integer base prefix) +> error3..5 token("0o") msg(Missing digits after the integer base prefix) +> error6..8 token("0x") msg(Missing digits after the integer base prefix) +> error10..13 token("0b_") msg(Missing digits after the integer base prefix) +> error14..17 token("0o_") msg(Missing digits after the integer base prefix) +> error18..21 token("0x_") msg(Missing digits after the integer base prefix) +> error23..32 token("0bnoDigit") msg(Missing digits after the integer base prefix) +> error33..42 token("0onoDigit") msg(Missing digits after the integer base prefix) +> error43..52 token("0xnoDigit") msg(Missing digits after the integer base prefix) +> error54..57 token("0xG") msg(Missing digits after the integer base prefix) +> error58..61 token("0xg") msg(Missing digits after the integer base prefix) +> error63..67 token("0x_g") msg(Missing digits after the integer base prefix) +> error68..72 token("0x_G") msg(Missing digits after the integer base prefix) diff --git a/crates/ra_syntax/test_data/lexer/err/0056_empty_exponent.txt b/crates/ra_syntax/test_data/lexer/err/0056_empty_exponent.txt index ab35e20a5..6a645a6a4 100644 --- a/crates/ra_syntax/test_data/lexer/err/0056_empty_exponent.txt +++ b/crates/ra_syntax/test_data/lexer/err/0056_empty_exponent.txt @@ -46,17 +46,17 @@ FLOAT_NUMBER 9 "42.2E+f32" WHITESPACE 1 "\n" FLOAT_NUMBER 9 "42.2E-f32" WHITESPACE 1 "\n" -> error[0; 2) token("0e") msg(Missing digits after the exponent symbol) -> error[3; 5) token("0E") msg(Missing digits after the exponent symbol) -> error[7; 11) token("42e+") msg(Missing digits after the exponent symbol) -> error[12; 16) token("42e-") msg(Missing digits after the exponent symbol) -> error[17; 21) token("42E+") msg(Missing digits after the exponent symbol) -> error[22; 26) token("42E-") msg(Missing digits after the exponent symbol) -> error[53; 59) token("42.2e+") msg(Missing digits after the exponent symbol) -> error[60; 66) token("42.2e-") msg(Missing digits after the exponent symbol) -> error[67; 73) token("42.2E+") msg(Missing digits after the exponent symbol) -> error[74; 80) token("42.2E-") msg(Missing digits after the exponent symbol) -> error[82; 91) token("42.2e+f32") msg(Missing digits after the exponent symbol) -> error[92; 101) token("42.2e-f32") msg(Missing digits after the exponent symbol) -> error[102; 111) token("42.2E+f32") msg(Missing digits after the exponent symbol) -> error[112; 121) token("42.2E-f32") msg(Missing digits after the exponent symbol) +> error0..2 token("0e") msg(Missing digits after the exponent symbol) +> error3..5 token("0E") msg(Missing digits after the exponent symbol) +> error7..11 token("42e+") msg(Missing digits after the exponent symbol) +> error12..16 token("42e-") msg(Missing digits after the exponent symbol) +> error17..21 token("42E+") msg(Missing digits after the exponent symbol) +> error22..26 token("42E-") msg(Missing digits after the exponent symbol) +> error53..59 token("42.2e+") msg(Missing digits after the exponent symbol) +> error60..66 token("42.2e-") msg(Missing digits after the exponent symbol) +> error67..73 token("42.2E+") msg(Missing digits after the exponent symbol) +> error74..80 token("42.2E-") msg(Missing digits after the exponent symbol) +> error82..91 token("42.2e+f32") msg(Missing digits after the exponent symbol) +> error92..101 token("42.2e-f32") msg(Missing digits after the exponent symbol) +> error102..111 token("42.2E+f32") msg(Missing digits after the exponent symbol) +> error112..121 token("42.2E-f32") msg(Missing digits after the exponent symbol) diff --git a/crates/ra_syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt b/crates/ra_syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt index 89b38bfac..e138bcebc 100644 --- a/crates/ra_syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt +++ b/crates/ra_syntax/test_data/lexer/err/0057_lifetime_strarts_with_a_number.txt @@ -2,5 +2,5 @@ LIFETIME 2 "\'1" WHITESPACE 1 "\n" LIFETIME 10 "\'1lifetime" WHITESPACE 1 "\n" -> error[0; 2) token("\'1") msg(Lifetime name cannot start with a number) -> error[3; 13) token("\'1lifetime") msg(Lifetime name cannot start with a number) +> error0..2 token("\'1") msg(Lifetime name cannot start with a number) +> error3..13 token("\'1lifetime") msg(Lifetime name cannot start with a number) -- cgit v1.2.3