diff options
author | Aleksey Kladov <[email protected]> | 2020-04-24 22:51:02 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-25 10:59:18 +0100 |
commit | 8843588fca7a6022b86800d5d2539594c0de93cf (patch) | |
tree | 3c5162068377dbd53dbf40b602baeeed7aa82285 /crates/ra_syntax/test_data/lexer/err | |
parent | b1d5817dd18b7b5fc102a63b084b1ee7ff4f9996 (diff) |
Convert tests to text-size
Diffstat (limited to 'crates/ra_syntax/test_data/lexer/err')
57 files changed, 83 insertions, 83 deletions
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 @@ | |||
1 | CHAR 1 "\'" | 1 | CHAR 1 "\'" |
2 | > error[0; 1) token("\'") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > 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 @@ | |||
1 | CHAR 5 "\'🦀" | 1 | CHAR 5 "\'🦀" |
2 | > error[0; 5) token("\'🦀") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > 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 @@ | |||
1 | CHAR 5 "\'\\x7f" | 1 | CHAR 5 "\'\\x7f" |
2 | > error[0; 5) token("\'\\x7f") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > 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 @@ | |||
1 | CHAR 9 "\'\\u{20AA}" | 1 | CHAR 9 "\'\\u{20AA}" |
2 | > error[0; 9) token("\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > 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 @@ | |||
1 | CHAR 2 "\' " | 1 | CHAR 2 "\' " |
2 | > error[0; 2) token("\' ") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > 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 @@ | |||
1 | CHAR 2 "\'\\" | 1 | CHAR 2 "\'\\" |
2 | > error[0; 2) token("\'\\") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > 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 @@ | |||
1 | CHAR 3 "\'\\n" | 1 | CHAR 3 "\'\\n" |
2 | > error[0; 3) token("\'\\n") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > 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 @@ | |||
1 | CHAR 3 "\'\\\'" | 1 | CHAR 3 "\'\\\'" |
2 | > error[0; 3) token("\'\\\'") msg(Missing trailing `'` symbol to terminate the character literal) | 2 | > 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 @@ | |||
1 | BYTE 2 "b\'" | 1 | BYTE 2 "b\'" |
2 | > error[0; 2) token("b\'") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > 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 @@ | |||
1 | BYTE 6 "b\'🦀" | 1 | BYTE 6 "b\'🦀" |
2 | > error[0; 6) token("b\'🦀") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > 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 @@ | |||
1 | BYTE 6 "b\'\\x7f" | 1 | BYTE 6 "b\'\\x7f" |
2 | > error[0; 6) token("b\'\\x7f") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > 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 @@ | |||
1 | BYTE 10 "b\'\\u{20AA}" | 1 | BYTE 10 "b\'\\u{20AA}" |
2 | > error[0; 10) token("b\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > 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 @@ | |||
1 | BYTE 3 "b\' " | 1 | BYTE 3 "b\' " |
2 | > error[0; 3) token("b\' ") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > 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 @@ | |||
1 | BYTE 3 "b\'\\" | 1 | BYTE 3 "b\'\\" |
2 | > error[0; 3) token("b\'\\") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > 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 @@ | |||
1 | BYTE 4 "b\'\\n" | 1 | BYTE 4 "b\'\\n" |
2 | > error[0; 4) token("b\'\\n") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > 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 @@ | |||
1 | BYTE 4 "b\'\\\'" | 1 | BYTE 4 "b\'\\\'" |
2 | > error[0; 4) token("b\'\\\'") msg(Missing trailing `'` symbol to terminate the byte literal) | 2 | > 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 @@ | |||
1 | STRING 1 "\"" | 1 | STRING 1 "\"" |
2 | > error[0; 1) token("\"") msg(Missing trailing `"` symbol to terminate the string literal) | 2 | > 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 @@ | |||
1 | STRING 5 "\"🦀" | 1 | STRING 5 "\"🦀" |
2 | > error[0; 5) token("\"🦀") msg(Missing trailing `"` symbol to terminate the string literal) | 2 | > 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 @@ | |||
1 | STRING 5 "\"\\x7f" | 1 | STRING 5 "\"\\x7f" |
2 | > error[0; 5) token("\"\\x7f") msg(Missing trailing `"` symbol to terminate the string literal) | 2 | > 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 @@ | |||
1 | STRING 9 "\"\\u{20AA}" | 1 | STRING 9 "\"\\u{20AA}" |
2 | > error[0; 9) token("\"\\u{20AA}") msg(Missing trailing `"` symbol to terminate the string literal) | 2 | > 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 @@ | |||
1 | STRING 2 "\" " | 1 | STRING 2 "\" " |
2 | > error[0; 2) token("\" ") msg(Missing trailing `"` symbol to terminate the string literal) | 2 | > 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 @@ | |||
1 | STRING 2 "\"\\" | 1 | STRING 2 "\"\\" |
2 | > error[0; 2) token("\"\\") msg(Missing trailing `"` symbol to terminate the string literal) | 2 | > 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 @@ | |||
1 | STRING 3 "\"\\n" | 1 | STRING 3 "\"\\n" |
2 | > error[0; 3) token("\"\\n") msg(Missing trailing `"` symbol to terminate the string literal) | 2 | > 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 @@ | |||
1 | STRING 3 "\"\\\"" | 1 | STRING 3 "\"\\\"" |
2 | > error[0; 3) token("\"\\\"") msg(Missing trailing `"` symbol to terminate the string literal) | 2 | > 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 @@ | |||
1 | BYTE_STRING 2 "b\"" | 1 | BYTE_STRING 2 "b\"" |
2 | > error[0; 2) token("b\"") msg(Missing trailing `"` symbol to terminate the byte string literal) | 2 | > 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 @@ | |||
1 | BYTE_STRING 6 "b\"🦀" | 1 | BYTE_STRING 6 "b\"🦀" |
2 | > error[0; 6) token("b\"🦀") msg(Missing trailing `"` symbol to terminate the byte string literal) | 2 | > 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 @@ | |||
1 | BYTE_STRING 6 "b\"\\x7f" | 1 | BYTE_STRING 6 "b\"\\x7f" |
2 | > error[0; 6) token("b\"\\x7f") msg(Missing trailing `"` symbol to terminate the byte string literal) | 2 | > 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 @@ | |||
1 | BYTE_STRING 10 "b\"\\u{20AA}" | 1 | BYTE_STRING 10 "b\"\\u{20AA}" |
2 | > error[0; 10) token("b\"\\u{20AA}") msg(Missing trailing `"` symbol to terminate the byte string literal) | 2 | > 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 @@ | |||
1 | BYTE_STRING 3 "b\" " | 1 | BYTE_STRING 3 "b\" " |
2 | > error[0; 3) token("b\" ") msg(Missing trailing `"` symbol to terminate the byte string literal) | 2 | > 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 @@ | |||
1 | BYTE_STRING 3 "b\"\\" | 1 | BYTE_STRING 3 "b\"\\" |
2 | > error[0; 3) token("b\"\\") msg(Missing trailing `"` symbol to terminate the byte string literal) | 2 | > 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 @@ | |||
1 | BYTE_STRING 4 "b\"\\n" | 1 | BYTE_STRING 4 "b\"\\n" |
2 | > error[0; 4) token("b\"\\n") msg(Missing trailing `"` symbol to terminate the byte string literal) | 2 | > 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 @@ | |||
1 | BYTE_STRING 4 "b\"\\\"" | 1 | BYTE_STRING 4 "b\"\\\"" |
2 | > error[0; 4) token("b\"\\\"") msg(Missing trailing `"` symbol to terminate the byte string literal) | 2 | > 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 @@ | |||
1 | RAW_STRING 4 "r##\"" | 1 | RAW_STRING 4 "r##\"" |
2 | > error[0; 4) token("r##\"") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) | 2 | > 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 @@ | |||
1 | RAW_STRING 8 "r##\"🦀" | 1 | RAW_STRING 8 "r##\"🦀" |
2 | > error[0; 8) token("r##\"🦀") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) | 2 | > 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 @@ | |||
1 | RAW_STRING 8 "r##\"\\x7f" | 1 | RAW_STRING 8 "r##\"\\x7f" |
2 | > error[0; 8) token("r##\"\\x7f") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) | 2 | > 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 @@ | |||
1 | RAW_STRING 12 "r##\"\\u{20AA}" | 1 | RAW_STRING 12 "r##\"\\u{20AA}" |
2 | > error[0; 12) token("r##\"\\u{20AA}") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) | 2 | > 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 @@ | |||
1 | RAW_STRING 5 "r##\" " | 1 | RAW_STRING 5 "r##\" " |
2 | > error[0; 5) token("r##\" ") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) | 2 | > 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 @@ | |||
1 | RAW_STRING 5 "r##\"\\" | 1 | RAW_STRING 5 "r##\"\\" |
2 | > error[0; 5) token("r##\"\\") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) | 2 | > 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 @@ | |||
1 | RAW_STRING 6 "r##\"\\n" | 1 | RAW_STRING 6 "r##\"\\n" |
2 | > error[0; 6) token("r##\"\\n") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) | 2 | > 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 @@ | |||
1 | RAW_BYTE_STRING 5 "br##\"" | 1 | RAW_BYTE_STRING 5 "br##\"" |
2 | > error[0; 5) token("br##\"") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) | 2 | > 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 @@ | |||
1 | RAW_BYTE_STRING 9 "br##\"🦀" | 1 | RAW_BYTE_STRING 9 "br##\"🦀" |
2 | > error[0; 9) token("br##\"🦀") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) | 2 | > 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 @@ | |||
1 | RAW_BYTE_STRING 9 "br##\"\\x7f" | 1 | RAW_BYTE_STRING 9 "br##\"\\x7f" |
2 | > error[0; 9) token("br##\"\\x7f") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) | 2 | > 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 @@ | |||
1 | RAW_BYTE_STRING 13 "br##\"\\u{20AA}" | 1 | RAW_BYTE_STRING 13 "br##\"\\u{20AA}" |
2 | > error[0; 13) token("br##\"\\u{20AA}") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) | 2 | > 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 @@ | |||
1 | RAW_BYTE_STRING 6 "br##\" " | 1 | RAW_BYTE_STRING 6 "br##\" " |
2 | > error[0; 6) token("br##\" ") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) | 2 | > 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 @@ | |||
1 | RAW_BYTE_STRING 6 "br##\"\\" | 1 | RAW_BYTE_STRING 6 "br##\"\\" |
2 | > error[0; 6) token("br##\"\\") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) | 2 | > 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 @@ | |||
1 | RAW_BYTE_STRING 7 "br##\"\\n" | 1 | RAW_BYTE_STRING 7 "br##\"\\n" |
2 | > error[0; 7) token("br##\"\\n") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) | 2 | > 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 @@ | |||
1 | RAW_STRING 3 "r##" | 1 | RAW_STRING 3 "r##" |
2 | > error[0; 3) token("r##") msg(Missing `"` symbol after `#` symbols to begin the raw string literal) | 2 | > 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 @@ | |||
1 | RAW_BYTE_STRING 4 "br##" | 1 | RAW_BYTE_STRING 4 "br##" |
2 | > error[0; 4) token("br##") msg(Missing `"` symbol after `#` symbols to begin the raw byte string literal) | 2 | > 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" | |||
7 | WHITESPACE 1 " " | 7 | WHITESPACE 1 " " |
8 | IDENT 5 "quote" | 8 | IDENT 5 "quote" |
9 | BANG 1 "!" | 9 | BANG 1 "!" |
10 | > error[0; 4) token("r## ") msg(Missing `"` symbol after `#` symbols to begin the raw string literal) | 10 | > 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" | |||
7 | WHITESPACE 1 " " | 7 | WHITESPACE 1 " " |
8 | IDENT 5 "quote" | 8 | IDENT 5 "quote" |
9 | BANG 1 "!" | 9 | BANG 1 "!" |
10 | > error[0; 5) token("br## ") msg(Missing `"` symbol after `#` symbols to begin the raw byte string literal) | 10 | > 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 @@ | |||
1 | COMMENT 2 "/*" | 1 | COMMENT 2 "/*" |
2 | > error[0; 2) token("/*") msg(Missing trailing `*/` symbols to terminate the block comment) | 2 | > 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 @@ | |||
1 | COMMENT 11 "/* comment\n" | 1 | COMMENT 11 "/* comment\n" |
2 | > error[0; 11) token("/* comment\n") msg(Missing trailing `*/` symbols to terminate the block comment) | 2 | > 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 @@ | |||
1 | COMMENT 9 "/* /* /*\n" | 1 | COMMENT 9 "/* /* /*\n" |
2 | > error[0; 9) token("/* /* /*\n") msg(Missing trailing `*/` symbols to terminate the block comment) | 2 | > 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 @@ | |||
1 | COMMENT 25 "/** /*! /* comment */ */\n" | 1 | COMMENT 25 "/** /*! /* comment */ */\n" |
2 | > error[0; 25) token("/** /*! /* comment */ */\n") msg(Missing trailing `*/` symbols to terminate the block comment) | 2 | > 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" | |||
24 | WHITESPACE 1 "\n" | 24 | WHITESPACE 1 "\n" |
25 | INT_NUMBER 4 "0x_G" | 25 | INT_NUMBER 4 "0x_G" |
26 | WHITESPACE 1 "\n" | 26 | WHITESPACE 1 "\n" |
27 | > error[0; 2) token("0b") msg(Missing digits after the integer base prefix) | 27 | > error0..2 token("0b") msg(Missing digits after the integer base prefix) |
28 | > error[3; 5) token("0o") msg(Missing digits after the integer base prefix) | 28 | > error3..5 token("0o") msg(Missing digits after the integer base prefix) |
29 | > error[6; 8) token("0x") msg(Missing digits after the integer base prefix) | 29 | > error6..8 token("0x") msg(Missing digits after the integer base prefix) |
30 | > error[10; 13) token("0b_") msg(Missing digits after the integer base prefix) | 30 | > error10..13 token("0b_") msg(Missing digits after the integer base prefix) |
31 | > error[14; 17) token("0o_") msg(Missing digits after the integer base prefix) | 31 | > error14..17 token("0o_") msg(Missing digits after the integer base prefix) |
32 | > error[18; 21) token("0x_") msg(Missing digits after the integer base prefix) | 32 | > error18..21 token("0x_") msg(Missing digits after the integer base prefix) |
33 | > error[23; 32) token("0bnoDigit") msg(Missing digits after the integer base prefix) | 33 | > error23..32 token("0bnoDigit") msg(Missing digits after the integer base prefix) |
34 | > error[33; 42) token("0onoDigit") msg(Missing digits after the integer base prefix) | 34 | > error33..42 token("0onoDigit") msg(Missing digits after the integer base prefix) |
35 | > error[43; 52) token("0xnoDigit") msg(Missing digits after the integer base prefix) | 35 | > error43..52 token("0xnoDigit") msg(Missing digits after the integer base prefix) |
36 | > error[54; 57) token("0xG") msg(Missing digits after the integer base prefix) | 36 | > error54..57 token("0xG") msg(Missing digits after the integer base prefix) |
37 | > error[58; 61) token("0xg") msg(Missing digits after the integer base prefix) | 37 | > error58..61 token("0xg") msg(Missing digits after the integer base prefix) |
38 | > error[63; 67) token("0x_g") msg(Missing digits after the integer base prefix) | 38 | > error63..67 token("0x_g") msg(Missing digits after the integer base prefix) |
39 | > error[68; 72) token("0x_G") msg(Missing digits after the integer base prefix) | 39 | > 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" | |||
46 | WHITESPACE 1 "\n" | 46 | WHITESPACE 1 "\n" |
47 | FLOAT_NUMBER 9 "42.2E-f32" | 47 | FLOAT_NUMBER 9 "42.2E-f32" |
48 | WHITESPACE 1 "\n" | 48 | WHITESPACE 1 "\n" |
49 | > error[0; 2) token("0e") msg(Missing digits after the exponent symbol) | 49 | > error0..2 token("0e") msg(Missing digits after the exponent symbol) |
50 | > error[3; 5) token("0E") msg(Missing digits after the exponent symbol) | 50 | > error3..5 token("0E") msg(Missing digits after the exponent symbol) |
51 | > error[7; 11) token("42e+") msg(Missing digits after the exponent symbol) | 51 | > error7..11 token("42e+") msg(Missing digits after the exponent symbol) |
52 | > error[12; 16) token("42e-") msg(Missing digits after the exponent symbol) | 52 | > error12..16 token("42e-") msg(Missing digits after the exponent symbol) |
53 | > error[17; 21) token("42E+") msg(Missing digits after the exponent symbol) | 53 | > error17..21 token("42E+") msg(Missing digits after the exponent symbol) |
54 | > error[22; 26) token("42E-") msg(Missing digits after the exponent symbol) | 54 | > error22..26 token("42E-") msg(Missing digits after the exponent symbol) |
55 | > error[53; 59) token("42.2e+") msg(Missing digits after the exponent symbol) | 55 | > error53..59 token("42.2e+") msg(Missing digits after the exponent symbol) |
56 | > error[60; 66) token("42.2e-") msg(Missing digits after the exponent symbol) | 56 | > error60..66 token("42.2e-") msg(Missing digits after the exponent symbol) |
57 | > error[67; 73) token("42.2E+") msg(Missing digits after the exponent symbol) | 57 | > error67..73 token("42.2E+") msg(Missing digits after the exponent symbol) |
58 | > error[74; 80) token("42.2E-") msg(Missing digits after the exponent symbol) | 58 | > error74..80 token("42.2E-") msg(Missing digits after the exponent symbol) |
59 | > error[82; 91) token("42.2e+f32") msg(Missing digits after the exponent symbol) | 59 | > error82..91 token("42.2e+f32") msg(Missing digits after the exponent symbol) |
60 | > error[92; 101) token("42.2e-f32") msg(Missing digits after the exponent symbol) | 60 | > error92..101 token("42.2e-f32") msg(Missing digits after the exponent symbol) |
61 | > error[102; 111) token("42.2E+f32") msg(Missing digits after the exponent symbol) | 61 | > error102..111 token("42.2E+f32") msg(Missing digits after the exponent symbol) |
62 | > error[112; 121) token("42.2E-f32") msg(Missing digits after the exponent symbol) | 62 | > 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" | |||
2 | WHITESPACE 1 "\n" | 2 | WHITESPACE 1 "\n" |
3 | LIFETIME 10 "\'1lifetime" | 3 | LIFETIME 10 "\'1lifetime" |
4 | WHITESPACE 1 "\n" | 4 | WHITESPACE 1 "\n" |
5 | > error[0; 2) token("\'1") msg(Lifetime name cannot start with a number) | 5 | > error0..2 token("\'1") msg(Lifetime name cannot start with a number) |
6 | > error[3; 13) token("\'1lifetime") msg(Lifetime name cannot start with a number) | 6 | > error3..13 token("\'1lifetime") msg(Lifetime name cannot start with a number) |