diff --git a/crates/syntax/test_data/lexer/err/0056_empty_exponent.rs b/crates/parser/test_data/lexer/err/empty_exponent.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0056_empty_exponent.rs rename to crates/parser/test_data/lexer/err/empty_exponent.rs diff --git a/crates/parser/test_data/lexer/err/empty_exponent.txt b/crates/parser/test_data/lexer/err/empty_exponent.txt new file mode 100644 index 00000000000..af03d73ced9 --- /dev/null +++ b/crates/parser/test_data/lexer/err/empty_exponent.txt @@ -0,0 +1,48 @@ +FLOAT_NUMBER "0e" error: Missing digits after the exponent symbol +WHITESPACE "\n" +FLOAT_NUMBER "0E" error: Missing digits after the exponent symbol +WHITESPACE "\n\n" +FLOAT_NUMBER "42e+" error: Missing digits after the exponent symbol +WHITESPACE "\n" +FLOAT_NUMBER "42e-" error: Missing digits after the exponent symbol +WHITESPACE "\n" +FLOAT_NUMBER "42E+" error: Missing digits after the exponent symbol +WHITESPACE "\n" +FLOAT_NUMBER "42E-" error: Missing digits after the exponent symbol +WHITESPACE "\n\n" +INT_NUMBER "42" +DOT "." +IDENT "e" +PLUS "+" +WHITESPACE "\n" +INT_NUMBER "42" +DOT "." +IDENT "e" +MINUS "-" +WHITESPACE "\n" +INT_NUMBER "42" +DOT "." +IDENT "E" +PLUS "+" +WHITESPACE "\n" +INT_NUMBER "42" +DOT "." +IDENT "E" +MINUS "-" +WHITESPACE "\n\n" +FLOAT_NUMBER "42.2e+" error: Missing digits after the exponent symbol +WHITESPACE "\n" +FLOAT_NUMBER "42.2e-" error: Missing digits after the exponent symbol +WHITESPACE "\n" +FLOAT_NUMBER "42.2E+" error: Missing digits after the exponent symbol +WHITESPACE "\n" +FLOAT_NUMBER "42.2E-" error: Missing digits after the exponent symbol +WHITESPACE "\n\n" +FLOAT_NUMBER "42.2e+f32" error: Missing digits after the exponent symbol +WHITESPACE "\n" +FLOAT_NUMBER "42.2e-f32" error: Missing digits after the exponent symbol +WHITESPACE "\n" +FLOAT_NUMBER "42.2E+f32" error: Missing digits after the exponent symbol +WHITESPACE "\n" +FLOAT_NUMBER "42.2E-f32" error: Missing digits after the exponent symbol +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/err/0055_empty_int.rs b/crates/parser/test_data/lexer/err/empty_int.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0055_empty_int.rs rename to crates/parser/test_data/lexer/err/empty_int.rs diff --git a/crates/parser/test_data/lexer/err/empty_int.txt b/crates/parser/test_data/lexer/err/empty_int.txt new file mode 100644 index 00000000000..7f7194f4522 --- /dev/null +++ b/crates/parser/test_data/lexer/err/empty_int.txt @@ -0,0 +1,26 @@ +INT_NUMBER "0b" error: Missing digits after the integer base prefix +WHITESPACE "\n" +INT_NUMBER "0o" error: Missing digits after the integer base prefix +WHITESPACE "\n" +INT_NUMBER "0x" error: Missing digits after the integer base prefix +WHITESPACE "\n\n" +INT_NUMBER "0b_" error: Missing digits after the integer base prefix +WHITESPACE "\n" +INT_NUMBER "0o_" error: Missing digits after the integer base prefix +WHITESPACE "\n" +INT_NUMBER "0x_" error: Missing digits after the integer base prefix +WHITESPACE "\n\n" +INT_NUMBER "0bnoDigit" error: Missing digits after the integer base prefix +WHITESPACE "\n" +INT_NUMBER "0onoDigit" error: Missing digits after the integer base prefix +WHITESPACE "\n" +INT_NUMBER "0xnoDigit" error: Missing digits after the integer base prefix +WHITESPACE "\n\n" +INT_NUMBER "0xG" error: Missing digits after the integer base prefix +WHITESPACE "\n" +INT_NUMBER "0xg" error: Missing digits after the integer base prefix +WHITESPACE "\n\n" +INT_NUMBER "0x_g" error: Missing digits after the integer base prefix +WHITESPACE "\n" +INT_NUMBER "0x_G" error: Missing digits after the integer base prefix +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.rs b/crates/parser/test_data/lexer/err/lifetime_starts_with_a_number.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.rs rename to crates/parser/test_data/lexer/err/lifetime_starts_with_a_number.rs diff --git a/crates/parser/test_data/lexer/err/lifetime_starts_with_a_number.txt b/crates/parser/test_data/lexer/err/lifetime_starts_with_a_number.txt new file mode 100644 index 00000000000..e919bf2a4ae --- /dev/null +++ b/crates/parser/test_data/lexer/err/lifetime_starts_with_a_number.txt @@ -0,0 +1,4 @@ +LIFETIME_IDENT "'1" error: Lifetime name cannot start with a number +WHITESPACE "\n" +LIFETIME_IDENT "'1lifetime" error: Lifetime name cannot start with a number +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/err/0051_unclosed_block_comment_at_eof.rs b/crates/parser/test_data/lexer/err/unclosed_block_comment_at_eof.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0051_unclosed_block_comment_at_eof.rs rename to crates/parser/test_data/lexer/err/unclosed_block_comment_at_eof.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_block_comment_at_eof.txt b/crates/parser/test_data/lexer/err/unclosed_block_comment_at_eof.txt new file mode 100644 index 00000000000..7d2c3297621 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_block_comment_at_eof.txt @@ -0,0 +1 @@ +COMMENT "/*" error: Missing trailing `*/` symbols to terminate the block comment diff --git a/crates/syntax/test_data/lexer/err/0052_unclosed_block_comment_with_content.rs b/crates/parser/test_data/lexer/err/unclosed_block_comment_with_content.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0052_unclosed_block_comment_with_content.rs rename to crates/parser/test_data/lexer/err/unclosed_block_comment_with_content.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_block_comment_with_content.txt b/crates/parser/test_data/lexer/err/unclosed_block_comment_with_content.txt new file mode 100644 index 00000000000..227a20660f7 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_block_comment_with_content.txt @@ -0,0 +1 @@ +COMMENT "/* comment\n" error: Missing trailing `*/` symbols to terminate the block comment diff --git a/crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.rs b/crates/parser/test_data/lexer/err/unclosed_byte_at_eof.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_at_eof.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_at_eof.txt b/crates/parser/test_data/lexer/err/unclosed_byte_at_eof.txt new file mode 100644 index 00000000000..36944dbb2de --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_at_eof.txt @@ -0,0 +1 @@ +BYTE "b'" error: Missing trailing `'` symbol to terminate the byte literal diff --git a/crates/syntax/test_data/lexer/err/0025_unclosed_byte_string_at_eof.rs b/crates/parser/test_data/lexer/err/unclosed_byte_string_at_eof.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0025_unclosed_byte_string_at_eof.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_string_at_eof.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_string_at_eof.txt b/crates/parser/test_data/lexer/err/unclosed_byte_string_at_eof.txt new file mode 100644 index 00000000000..534a3cadcc9 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_string_at_eof.txt @@ -0,0 +1 @@ +BYTE_STRING "b\"" error: Missing trailing `"` symbol to terminate the byte string literal diff --git a/crates/syntax/test_data/lexer/err/0027_unclosed_byte_string_with_ascii_escape.rs b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_ascii_escape.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0027_unclosed_byte_string_with_ascii_escape.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_string_with_ascii_escape.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_string_with_ascii_escape.txt b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_ascii_escape.txt new file mode 100644 index 00000000000..03f61de9a84 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_ascii_escape.txt @@ -0,0 +1 @@ +BYTE_STRING "b\"\\x7f" error: Missing trailing `"` symbol to terminate the byte string literal diff --git a/crates/syntax/test_data/lexer/err/0026_unclosed_byte_string_with_ferris.rs b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_ferris.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0026_unclosed_byte_string_with_ferris.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_string_with_ferris.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_string_with_ferris.txt b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_ferris.txt new file mode 100644 index 00000000000..e11d49d1ee1 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_ferris.txt @@ -0,0 +1 @@ +BYTE_STRING "b\"πŸ¦€" error: Missing trailing `"` symbol to terminate the byte string literal diff --git a/crates/syntax/test_data/lexer/err/0030_unclosed_byte_string_with_slash.rs b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0030_unclosed_byte_string_with_slash.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash.txt b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash.txt new file mode 100644 index 00000000000..4e374b1206c --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash.txt @@ -0,0 +1 @@ +BYTE_STRING "b\"\\" error: Missing trailing `"` symbol to terminate the byte string literal diff --git a/crates/syntax/test_data/lexer/err/0032_unclosed_byte_string_with_slash_double_quote.rs b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash_double_quote.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0032_unclosed_byte_string_with_slash_double_quote.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash_double_quote.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash_double_quote.txt b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash_double_quote.txt new file mode 100644 index 00000000000..ee199758601 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash_double_quote.txt @@ -0,0 +1 @@ +BYTE_STRING "b\"\\\"" error: Missing trailing `"` symbol to terminate the byte string literal diff --git a/crates/syntax/test_data/lexer/err/0031_unclosed_byte_string_with_slash_n.rs b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash_n.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0031_unclosed_byte_string_with_slash_n.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash_n.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash_n.txt b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash_n.txt new file mode 100644 index 00000000000..b109d8629c9 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_slash_n.txt @@ -0,0 +1 @@ +BYTE_STRING "b\"\\n" error: Missing trailing `"` symbol to terminate the byte string literal diff --git a/crates/syntax/test_data/lexer/err/0029_unclosed_byte_string_with_space.rs b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_space.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0029_unclosed_byte_string_with_space.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_string_with_space.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_string_with_space.txt b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_space.txt new file mode 100644 index 00000000000..eaca94fa41e --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_space.txt @@ -0,0 +1 @@ +BYTE_STRING "b\" " error: Missing trailing `"` symbol to terminate the byte string literal diff --git a/crates/syntax/test_data/lexer/err/0028_unclosed_byte_string_with_unicode_escape.rs b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_unicode_escape.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0028_unclosed_byte_string_with_unicode_escape.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_string_with_unicode_escape.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_string_with_unicode_escape.txt b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_unicode_escape.txt new file mode 100644 index 00000000000..3b79f48bcd2 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_string_with_unicode_escape.txt @@ -0,0 +1 @@ +BYTE_STRING "b\"\\u{20AA}" error: Missing trailing `"` symbol to terminate the byte string literal diff --git a/crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.rs b/crates/parser/test_data/lexer/err/unclosed_byte_with_ascii_escape.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_with_ascii_escape.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_with_ascii_escape.txt b/crates/parser/test_data/lexer/err/unclosed_byte_with_ascii_escape.txt new file mode 100644 index 00000000000..5525376f450 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_with_ascii_escape.txt @@ -0,0 +1 @@ +BYTE "b'\\x7f" error: Missing trailing `'` symbol to terminate the byte literal diff --git a/crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.rs b/crates/parser/test_data/lexer/err/unclosed_byte_with_ferris.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_with_ferris.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_with_ferris.txt b/crates/parser/test_data/lexer/err/unclosed_byte_with_ferris.txt new file mode 100644 index 00000000000..e7a8be4f6e0 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_with_ferris.txt @@ -0,0 +1 @@ +BYTE "b'πŸ¦€" error: Missing trailing `'` symbol to terminate the byte literal diff --git a/crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.rs b/crates/parser/test_data/lexer/err/unclosed_byte_with_slash.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_with_slash.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_with_slash.txt b/crates/parser/test_data/lexer/err/unclosed_byte_with_slash.txt new file mode 100644 index 00000000000..d9937135a9b --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_with_slash.txt @@ -0,0 +1 @@ +BYTE "b'\\" error: Missing trailing `'` symbol to terminate the byte literal diff --git a/crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.rs b/crates/parser/test_data/lexer/err/unclosed_byte_with_slash_n.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_with_slash_n.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_with_slash_n.txt b/crates/parser/test_data/lexer/err/unclosed_byte_with_slash_n.txt new file mode 100644 index 00000000000..c408cdb2b57 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_with_slash_n.txt @@ -0,0 +1 @@ +BYTE "b'\\n" error: Missing trailing `'` symbol to terminate the byte literal diff --git a/crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.rs b/crates/parser/test_data/lexer/err/unclosed_byte_with_slash_single_quote.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_with_slash_single_quote.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_with_slash_single_quote.txt b/crates/parser/test_data/lexer/err/unclosed_byte_with_slash_single_quote.txt new file mode 100644 index 00000000000..b331f956074 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_with_slash_single_quote.txt @@ -0,0 +1 @@ +BYTE "b'\\'" error: Missing trailing `'` symbol to terminate the byte literal diff --git a/crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.rs b/crates/parser/test_data/lexer/err/unclosed_byte_with_space.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_with_space.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_with_space.txt b/crates/parser/test_data/lexer/err/unclosed_byte_with_space.txt new file mode 100644 index 00000000000..80c0e1c00a1 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_with_space.txt @@ -0,0 +1 @@ +BYTE "b' " error: Missing trailing `'` symbol to terminate the byte literal diff --git a/crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.rs b/crates/parser/test_data/lexer/err/unclosed_byte_with_unicode_escape.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.rs rename to crates/parser/test_data/lexer/err/unclosed_byte_with_unicode_escape.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_byte_with_unicode_escape.txt b/crates/parser/test_data/lexer/err/unclosed_byte_with_unicode_escape.txt new file mode 100644 index 00000000000..e1c3dc141e8 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_byte_with_unicode_escape.txt @@ -0,0 +1 @@ +BYTE "b'\\u{20AA}" error: Missing trailing `'` symbol to terminate the byte literal diff --git a/crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.rs b/crates/parser/test_data/lexer/err/unclosed_char_at_eof.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.rs rename to crates/parser/test_data/lexer/err/unclosed_char_at_eof.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_char_at_eof.txt b/crates/parser/test_data/lexer/err/unclosed_char_at_eof.txt new file mode 100644 index 00000000000..218c7a2d766 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_char_at_eof.txt @@ -0,0 +1 @@ +CHAR "'" error: Missing trailing `'` symbol to terminate the character literal diff --git a/crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.rs b/crates/parser/test_data/lexer/err/unclosed_char_with_ascii_escape.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.rs rename to crates/parser/test_data/lexer/err/unclosed_char_with_ascii_escape.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_char_with_ascii_escape.txt b/crates/parser/test_data/lexer/err/unclosed_char_with_ascii_escape.txt new file mode 100644 index 00000000000..a0d8e1b83a0 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_char_with_ascii_escape.txt @@ -0,0 +1 @@ +CHAR "'\\x7f" error: Missing trailing `'` symbol to terminate the character literal diff --git a/crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.rs b/crates/parser/test_data/lexer/err/unclosed_char_with_ferris.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.rs rename to crates/parser/test_data/lexer/err/unclosed_char_with_ferris.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_char_with_ferris.txt b/crates/parser/test_data/lexer/err/unclosed_char_with_ferris.txt new file mode 100644 index 00000000000..56f19cce078 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_char_with_ferris.txt @@ -0,0 +1 @@ +CHAR "'πŸ¦€" error: Missing trailing `'` symbol to terminate the character literal diff --git a/crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.rs b/crates/parser/test_data/lexer/err/unclosed_char_with_slash.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.rs rename to crates/parser/test_data/lexer/err/unclosed_char_with_slash.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_char_with_slash.txt b/crates/parser/test_data/lexer/err/unclosed_char_with_slash.txt new file mode 100644 index 00000000000..cfa0e0752aa --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_char_with_slash.txt @@ -0,0 +1 @@ +CHAR "'\\" error: Missing trailing `'` symbol to terminate the character literal diff --git a/crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.rs b/crates/parser/test_data/lexer/err/unclosed_char_with_slash_n.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.rs rename to crates/parser/test_data/lexer/err/unclosed_char_with_slash_n.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_char_with_slash_n.txt b/crates/parser/test_data/lexer/err/unclosed_char_with_slash_n.txt new file mode 100644 index 00000000000..6a42a4e22b9 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_char_with_slash_n.txt @@ -0,0 +1 @@ +CHAR "'\\n" error: Missing trailing `'` symbol to terminate the character literal diff --git a/crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.rs b/crates/parser/test_data/lexer/err/unclosed_char_with_slash_single_quote.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.rs rename to crates/parser/test_data/lexer/err/unclosed_char_with_slash_single_quote.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_char_with_slash_single_quote.txt b/crates/parser/test_data/lexer/err/unclosed_char_with_slash_single_quote.txt new file mode 100644 index 00000000000..1275f6aa857 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_char_with_slash_single_quote.txt @@ -0,0 +1 @@ +CHAR "'\\'" error: Missing trailing `'` symbol to terminate the character literal diff --git a/crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.rs b/crates/parser/test_data/lexer/err/unclosed_char_with_space.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.rs rename to crates/parser/test_data/lexer/err/unclosed_char_with_space.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_char_with_space.txt b/crates/parser/test_data/lexer/err/unclosed_char_with_space.txt new file mode 100644 index 00000000000..746c425c4e0 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_char_with_space.txt @@ -0,0 +1 @@ +CHAR "' " error: Missing trailing `'` symbol to terminate the character literal diff --git a/crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.rs b/crates/parser/test_data/lexer/err/unclosed_char_with_unicode_escape.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.rs rename to crates/parser/test_data/lexer/err/unclosed_char_with_unicode_escape.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_char_with_unicode_escape.txt b/crates/parser/test_data/lexer/err/unclosed_char_with_unicode_escape.txt new file mode 100644 index 00000000000..9abd5909821 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_char_with_unicode_escape.txt @@ -0,0 +1 @@ +CHAR "'\\u{20AA}" error: Missing trailing `'` symbol to terminate the character literal diff --git a/crates/syntax/test_data/lexer/err/0053_unclosed_nested_block_comment_entirely.rs b/crates/parser/test_data/lexer/err/unclosed_nested_block_comment_entirely.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0053_unclosed_nested_block_comment_entirely.rs rename to crates/parser/test_data/lexer/err/unclosed_nested_block_comment_entirely.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_nested_block_comment_entirely.txt b/crates/parser/test_data/lexer/err/unclosed_nested_block_comment_entirely.txt new file mode 100644 index 00000000000..15ce8905a99 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_nested_block_comment_entirely.txt @@ -0,0 +1 @@ +COMMENT "/* /* /*\n" error: Missing trailing `*/` symbols to terminate the block comment diff --git a/crates/syntax/test_data/lexer/err/0054_unclosed_nested_block_comment_partially.rs b/crates/parser/test_data/lexer/err/unclosed_nested_block_comment_partially.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0054_unclosed_nested_block_comment_partially.rs rename to crates/parser/test_data/lexer/err/unclosed_nested_block_comment_partially.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_nested_block_comment_partially.txt b/crates/parser/test_data/lexer/err/unclosed_nested_block_comment_partially.txt new file mode 100644 index 00000000000..e9b74ee7f82 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_nested_block_comment_partially.txt @@ -0,0 +1 @@ +COMMENT "/** /*! /* comment */ */\n" error: Missing trailing `*/` symbols to terminate the block comment diff --git a/crates/syntax/test_data/lexer/err/0040_unclosed_raw_byte_string_at_eof.rs b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_at_eof.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0040_unclosed_raw_byte_string_at_eof.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_byte_string_at_eof.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_at_eof.txt b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_at_eof.txt new file mode 100644 index 00000000000..6ec1780c30b --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_at_eof.txt @@ -0,0 +1 @@ +BYTE_STRING "br##\"" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal diff --git a/crates/syntax/test_data/lexer/err/0042_unclosed_raw_byte_string_with_ascii_escape.rs b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_ascii_escape.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0042_unclosed_raw_byte_string_with_ascii_escape.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_ascii_escape.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_ascii_escape.txt b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_ascii_escape.txt new file mode 100644 index 00000000000..d65f1bb2ff0 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_ascii_escape.txt @@ -0,0 +1 @@ +BYTE_STRING "br##\"\\x7f" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal diff --git a/crates/syntax/test_data/lexer/err/0041_unclosed_raw_byte_string_with_ferris.rs b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_ferris.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0041_unclosed_raw_byte_string_with_ferris.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_ferris.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_ferris.txt b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_ferris.txt new file mode 100644 index 00000000000..0f9e0a1657a --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_ferris.txt @@ -0,0 +1 @@ +BYTE_STRING "br##\"πŸ¦€" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal diff --git a/crates/syntax/test_data/lexer/err/0045_unclosed_raw_byte_string_with_slash.rs b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_slash.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0045_unclosed_raw_byte_string_with_slash.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_slash.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_slash.txt b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_slash.txt new file mode 100644 index 00000000000..202dcd2d43e --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_slash.txt @@ -0,0 +1 @@ +BYTE_STRING "br##\"\\" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal diff --git a/crates/syntax/test_data/lexer/err/0046_unclosed_raw_byte_string_with_slash_n.rs b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_slash_n.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0046_unclosed_raw_byte_string_with_slash_n.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_slash_n.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_slash_n.txt b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_slash_n.txt new file mode 100644 index 00000000000..d45485b529e --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_slash_n.txt @@ -0,0 +1 @@ +BYTE_STRING "br##\"\\n" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal diff --git a/crates/syntax/test_data/lexer/err/0044_unclosed_raw_byte_string_with_space.rs b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_space.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0044_unclosed_raw_byte_string_with_space.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_space.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_space.txt b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_space.txt new file mode 100644 index 00000000000..1bfabbc3ab6 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_space.txt @@ -0,0 +1 @@ +BYTE_STRING "br##\" " error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal diff --git a/crates/syntax/test_data/lexer/err/0043_unclosed_raw_byte_string_with_unicode_escape.rs b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_unicode_escape.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0043_unclosed_raw_byte_string_with_unicode_escape.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_unicode_escape.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_unicode_escape.txt b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_unicode_escape.txt new file mode 100644 index 00000000000..104ab8aaeef --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_byte_string_with_unicode_escape.txt @@ -0,0 +1 @@ +BYTE_STRING "br##\"\\u{20AA}" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal diff --git a/crates/syntax/test_data/lexer/err/0033_unclosed_raw_string_at_eof.rs b/crates/parser/test_data/lexer/err/unclosed_raw_string_at_eof.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0033_unclosed_raw_string_at_eof.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_string_at_eof.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_string_at_eof.txt b/crates/parser/test_data/lexer/err/unclosed_raw_string_at_eof.txt new file mode 100644 index 00000000000..71b20fd19db --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_string_at_eof.txt @@ -0,0 +1 @@ +STRING "r##\"" error: Missing trailing `"` with `#` symbols to terminate the raw string literal diff --git a/crates/syntax/test_data/lexer/err/0035_unclosed_raw_string_with_ascii_escape.rs b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_ascii_escape.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0035_unclosed_raw_string_with_ascii_escape.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_string_with_ascii_escape.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_string_with_ascii_escape.txt b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_ascii_escape.txt new file mode 100644 index 00000000000..dc106dd24a1 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_ascii_escape.txt @@ -0,0 +1 @@ +STRING "r##\"\\x7f" error: Missing trailing `"` with `#` symbols to terminate the raw string literal diff --git a/crates/syntax/test_data/lexer/err/0034_unclosed_raw_string_with_ferris.rs b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_ferris.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0034_unclosed_raw_string_with_ferris.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_string_with_ferris.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_string_with_ferris.txt b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_ferris.txt new file mode 100644 index 00000000000..30ee029f656 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_ferris.txt @@ -0,0 +1 @@ +STRING "r##\"πŸ¦€" error: Missing trailing `"` with `#` symbols to terminate the raw string literal diff --git a/crates/syntax/test_data/lexer/err/0038_unclosed_raw_string_with_slash.rs b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_slash.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0038_unclosed_raw_string_with_slash.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_string_with_slash.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_string_with_slash.txt b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_slash.txt new file mode 100644 index 00000000000..8a6f6cc4366 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_slash.txt @@ -0,0 +1 @@ +STRING "r##\"\\" error: Missing trailing `"` with `#` symbols to terminate the raw string literal diff --git a/crates/syntax/test_data/lexer/err/0039_unclosed_raw_string_with_slash_n.rs b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_slash_n.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0039_unclosed_raw_string_with_slash_n.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_string_with_slash_n.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_string_with_slash_n.txt b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_slash_n.txt new file mode 100644 index 00000000000..f46eff2516a --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_slash_n.txt @@ -0,0 +1 @@ +STRING "r##\"\\n" error: Missing trailing `"` with `#` symbols to terminate the raw string literal diff --git a/crates/syntax/test_data/lexer/err/0037_unclosed_raw_string_with_space.rs b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_space.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0037_unclosed_raw_string_with_space.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_string_with_space.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_string_with_space.txt b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_space.txt new file mode 100644 index 00000000000..49b6afea45a --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_space.txt @@ -0,0 +1 @@ +STRING "r##\" " error: Missing trailing `"` with `#` symbols to terminate the raw string literal diff --git a/crates/syntax/test_data/lexer/err/0036_unclosed_raw_string_with_unicode_escape.rs b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_unicode_escape.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0036_unclosed_raw_string_with_unicode_escape.rs rename to crates/parser/test_data/lexer/err/unclosed_raw_string_with_unicode_escape.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_raw_string_with_unicode_escape.txt b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_unicode_escape.txt new file mode 100644 index 00000000000..d10d6d8e8c2 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_raw_string_with_unicode_escape.txt @@ -0,0 +1 @@ +STRING "r##\"\\u{20AA}" error: Missing trailing `"` with `#` symbols to terminate the raw string literal diff --git a/crates/syntax/test_data/lexer/err/0017_unclosed_string_at_eof.rs b/crates/parser/test_data/lexer/err/unclosed_string_at_eof.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0017_unclosed_string_at_eof.rs rename to crates/parser/test_data/lexer/err/unclosed_string_at_eof.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_string_at_eof.txt b/crates/parser/test_data/lexer/err/unclosed_string_at_eof.txt new file mode 100644 index 00000000000..3b89ce0ca1c --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_string_at_eof.txt @@ -0,0 +1 @@ +STRING "\"" error: Missing trailing `"` symbol to terminate the string literal diff --git a/crates/syntax/test_data/lexer/err/0019_unclosed_string_with_ascii_escape.rs b/crates/parser/test_data/lexer/err/unclosed_string_with_ascii_escape.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0019_unclosed_string_with_ascii_escape.rs rename to crates/parser/test_data/lexer/err/unclosed_string_with_ascii_escape.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_string_with_ascii_escape.txt b/crates/parser/test_data/lexer/err/unclosed_string_with_ascii_escape.txt new file mode 100644 index 00000000000..6694cf17a6c --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_string_with_ascii_escape.txt @@ -0,0 +1 @@ +STRING "\"\\x7f" error: Missing trailing `"` symbol to terminate the string literal diff --git a/crates/syntax/test_data/lexer/err/0018_unclosed_string_with_ferris.rs b/crates/parser/test_data/lexer/err/unclosed_string_with_ferris.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0018_unclosed_string_with_ferris.rs rename to crates/parser/test_data/lexer/err/unclosed_string_with_ferris.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_string_with_ferris.txt b/crates/parser/test_data/lexer/err/unclosed_string_with_ferris.txt new file mode 100644 index 00000000000..5f4501c18e5 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_string_with_ferris.txt @@ -0,0 +1 @@ +STRING "\"πŸ¦€" error: Missing trailing `"` symbol to terminate the string literal diff --git a/crates/syntax/test_data/lexer/err/0022_unclosed_string_with_slash.rs b/crates/parser/test_data/lexer/err/unclosed_string_with_slash.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0022_unclosed_string_with_slash.rs rename to crates/parser/test_data/lexer/err/unclosed_string_with_slash.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_string_with_slash.txt b/crates/parser/test_data/lexer/err/unclosed_string_with_slash.txt new file mode 100644 index 00000000000..a8ac565ac84 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_string_with_slash.txt @@ -0,0 +1 @@ +STRING "\"\\" error: Missing trailing `"` symbol to terminate the string literal diff --git a/crates/syntax/test_data/lexer/err/0024_unclosed_string_with_slash_double_quote.rs b/crates/parser/test_data/lexer/err/unclosed_string_with_slash_double_quote.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0024_unclosed_string_with_slash_double_quote.rs rename to crates/parser/test_data/lexer/err/unclosed_string_with_slash_double_quote.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_string_with_slash_double_quote.txt b/crates/parser/test_data/lexer/err/unclosed_string_with_slash_double_quote.txt new file mode 100644 index 00000000000..919183b9193 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_string_with_slash_double_quote.txt @@ -0,0 +1 @@ +STRING "\"\\\"" error: Missing trailing `"` symbol to terminate the string literal diff --git a/crates/syntax/test_data/lexer/err/0023_unclosed_string_with_slash_n.rs b/crates/parser/test_data/lexer/err/unclosed_string_with_slash_n.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0023_unclosed_string_with_slash_n.rs rename to crates/parser/test_data/lexer/err/unclosed_string_with_slash_n.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_string_with_slash_n.txt b/crates/parser/test_data/lexer/err/unclosed_string_with_slash_n.txt new file mode 100644 index 00000000000..39e288af965 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_string_with_slash_n.txt @@ -0,0 +1 @@ +STRING "\"\\n" error: Missing trailing `"` symbol to terminate the string literal diff --git a/crates/syntax/test_data/lexer/err/0021_unclosed_string_with_space.rs b/crates/parser/test_data/lexer/err/unclosed_string_with_space.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0021_unclosed_string_with_space.rs rename to crates/parser/test_data/lexer/err/unclosed_string_with_space.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_string_with_space.txt b/crates/parser/test_data/lexer/err/unclosed_string_with_space.txt new file mode 100644 index 00000000000..dcff94d7ed3 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_string_with_space.txt @@ -0,0 +1 @@ +STRING "\" " error: Missing trailing `"` symbol to terminate the string literal diff --git a/crates/syntax/test_data/lexer/err/0020_unclosed_string_with_unicode_escape.rs b/crates/parser/test_data/lexer/err/unclosed_string_with_unicode_escape.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0020_unclosed_string_with_unicode_escape.rs rename to crates/parser/test_data/lexer/err/unclosed_string_with_unicode_escape.rs diff --git a/crates/parser/test_data/lexer/err/unclosed_string_with_unicode_escape.txt b/crates/parser/test_data/lexer/err/unclosed_string_with_unicode_escape.txt new file mode 100644 index 00000000000..ac232b530da --- /dev/null +++ b/crates/parser/test_data/lexer/err/unclosed_string_with_unicode_escape.txt @@ -0,0 +1 @@ +STRING "\"\\u{20AA}" error: Missing trailing `"` symbol to terminate the string literal diff --git a/crates/syntax/test_data/lexer/err/0048_unstarted_raw_byte_string_at_eof.rs b/crates/parser/test_data/lexer/err/unstarted_raw_byte_string_at_eof.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0048_unstarted_raw_byte_string_at_eof.rs rename to crates/parser/test_data/lexer/err/unstarted_raw_byte_string_at_eof.rs diff --git a/crates/parser/test_data/lexer/err/unstarted_raw_byte_string_at_eof.txt b/crates/parser/test_data/lexer/err/unstarted_raw_byte_string_at_eof.txt new file mode 100644 index 00000000000..cf942c92f3b --- /dev/null +++ b/crates/parser/test_data/lexer/err/unstarted_raw_byte_string_at_eof.txt @@ -0,0 +1 @@ +BYTE_STRING "br##" error: Missing `"` symbol after `#` symbols to begin the raw byte string literal diff --git a/crates/syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.rs b/crates/parser/test_data/lexer/err/unstarted_raw_byte_string_with_ascii.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.rs rename to crates/parser/test_data/lexer/err/unstarted_raw_byte_string_with_ascii.rs diff --git a/crates/parser/test_data/lexer/err/unstarted_raw_byte_string_with_ascii.txt b/crates/parser/test_data/lexer/err/unstarted_raw_byte_string_with_ascii.txt new file mode 100644 index 00000000000..042769c2756 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unstarted_raw_byte_string_with_ascii.txt @@ -0,0 +1,9 @@ +BYTE_STRING "br## " error: Missing `"` symbol after `#` symbols to begin the raw byte string literal +IDENT "I" +WHITESPACE " " +IDENT "lack" +WHITESPACE " " +IDENT "a" +WHITESPACE " " +IDENT "quote" +BANG "!" diff --git a/crates/syntax/test_data/lexer/err/0047_unstarted_raw_string_at_eof.rs b/crates/parser/test_data/lexer/err/unstarted_raw_string_at_eof.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0047_unstarted_raw_string_at_eof.rs rename to crates/parser/test_data/lexer/err/unstarted_raw_string_at_eof.rs diff --git a/crates/parser/test_data/lexer/err/unstarted_raw_string_at_eof.txt b/crates/parser/test_data/lexer/err/unstarted_raw_string_at_eof.txt new file mode 100644 index 00000000000..2f7c7529a95 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unstarted_raw_string_at_eof.txt @@ -0,0 +1 @@ +STRING "r##" error: Missing `"` symbol after `#` symbols to begin the raw string literal diff --git a/crates/syntax/test_data/lexer/err/0049_unstarted_raw_string_with_ascii.rs b/crates/parser/test_data/lexer/err/unstarted_raw_string_with_ascii.rs similarity index 100% rename from crates/syntax/test_data/lexer/err/0049_unstarted_raw_string_with_ascii.rs rename to crates/parser/test_data/lexer/err/unstarted_raw_string_with_ascii.rs diff --git a/crates/parser/test_data/lexer/err/unstarted_raw_string_with_ascii.txt b/crates/parser/test_data/lexer/err/unstarted_raw_string_with_ascii.txt new file mode 100644 index 00000000000..4a06b0abe74 --- /dev/null +++ b/crates/parser/test_data/lexer/err/unstarted_raw_string_with_ascii.txt @@ -0,0 +1,9 @@ +STRING "r## " error: Missing `"` symbol after `#` symbols to begin the raw string literal +IDENT "I" +WHITESPACE " " +IDENT "lack" +WHITESPACE " " +IDENT "a" +WHITESPACE " " +IDENT "quote" +BANG "!" diff --git a/crates/syntax/test_data/lexer/ok/0012_block_comment.rs b/crates/parser/test_data/lexer/ok/block_comment.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0012_block_comment.rs rename to crates/parser/test_data/lexer/ok/block_comment.rs diff --git a/crates/parser/test_data/lexer/ok/block_comment.txt b/crates/parser/test_data/lexer/ok/block_comment.txt new file mode 100644 index 00000000000..18bb5cad87f --- /dev/null +++ b/crates/parser/test_data/lexer/ok/block_comment.txt @@ -0,0 +1,6 @@ +COMMENT "/* */" +WHITESPACE "\n" +COMMENT "/**/" +WHITESPACE "\n" +COMMENT "/* /* */ */" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/ok/0008_byte_strings.rs b/crates/parser/test_data/lexer/ok/byte_strings.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0008_byte_strings.rs rename to crates/parser/test_data/lexer/ok/byte_strings.rs diff --git a/crates/parser/test_data/lexer/ok/byte_strings.txt b/crates/parser/test_data/lexer/ok/byte_strings.txt new file mode 100644 index 00000000000..c848ac368e4 --- /dev/null +++ b/crates/parser/test_data/lexer/ok/byte_strings.txt @@ -0,0 +1,22 @@ +BYTE "b''" +WHITESPACE " " +BYTE "b'x'" +WHITESPACE " " +BYTE_STRING "b\"foo\"" +WHITESPACE " " +BYTE_STRING "br\"\"" +WHITESPACE "\n" +BYTE "b''suf" +WHITESPACE " " +BYTE_STRING "b\"\"ix" +WHITESPACE " " +BYTE_STRING "br\"\"br" +WHITESPACE "\n" +BYTE "b'\\n'" +WHITESPACE " " +BYTE "b'\\\\'" +WHITESPACE " " +BYTE "b'\\''" +WHITESPACE " " +BYTE "b'hello'" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/ok/0006_chars.rs b/crates/parser/test_data/lexer/ok/chars.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0006_chars.rs rename to crates/parser/test_data/lexer/ok/chars.rs diff --git a/crates/parser/test_data/lexer/ok/chars.txt b/crates/parser/test_data/lexer/ok/chars.txt new file mode 100644 index 00000000000..66e58cc298f --- /dev/null +++ b/crates/parser/test_data/lexer/ok/chars.txt @@ -0,0 +1,16 @@ +CHAR "'x'" +WHITESPACE " " +CHAR "' '" +WHITESPACE " " +CHAR "'0'" +WHITESPACE " " +CHAR "'hello'" +WHITESPACE " " +CHAR "'\\x7f'" +WHITESPACE " " +CHAR "'\\n'" +WHITESPACE " " +CHAR "'\\\\'" +WHITESPACE " " +CHAR "'\\''" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/ok/0001_hello.rs b/crates/parser/test_data/lexer/ok/hello.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0001_hello.rs rename to crates/parser/test_data/lexer/ok/hello.rs diff --git a/crates/parser/test_data/lexer/ok/hello.txt b/crates/parser/test_data/lexer/ok/hello.txt new file mode 100644 index 00000000000..7f5ce9de1b6 --- /dev/null +++ b/crates/parser/test_data/lexer/ok/hello.txt @@ -0,0 +1,3 @@ +IDENT "hello" +WHITESPACE " " +IDENT "world" diff --git a/crates/syntax/test_data/lexer/ok/0003_ident.rs b/crates/parser/test_data/lexer/ok/ident.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0003_ident.rs rename to crates/parser/test_data/lexer/ok/ident.rs diff --git a/crates/parser/test_data/lexer/ok/ident.txt b/crates/parser/test_data/lexer/ok/ident.txt new file mode 100644 index 00000000000..5689644c07e --- /dev/null +++ b/crates/parser/test_data/lexer/ok/ident.txt @@ -0,0 +1,14 @@ +IDENT "foo" +WHITESPACE " " +IDENT "foo_" +WHITESPACE " " +IDENT "_foo" +WHITESPACE " " +UNDERSCORE "_" +WHITESPACE " " +IDENT "__" +WHITESPACE " " +IDENT "x" +WHITESPACE " " +IDENT "ΠΏΡ€ΠΈΠ²Π΅Ρ‚" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/ok/0011_keywords.rs b/crates/parser/test_data/lexer/ok/keywords.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0011_keywords.rs rename to crates/parser/test_data/lexer/ok/keywords.rs diff --git a/crates/parser/test_data/lexer/ok/keywords.txt b/crates/parser/test_data/lexer/ok/keywords.txt new file mode 100644 index 00000000000..e19b1399aa1 --- /dev/null +++ b/crates/parser/test_data/lexer/ok/keywords.txt @@ -0,0 +1,64 @@ +ASYNC_KW "async" +WHITESPACE " " +FN_KW "fn" +WHITESPACE " " +USE_KW "use" +WHITESPACE " " +STRUCT_KW "struct" +WHITESPACE " " +TRAIT_KW "trait" +WHITESPACE " " +ENUM_KW "enum" +WHITESPACE " " +IMPL_KW "impl" +WHITESPACE " " +TRUE_KW "true" +WHITESPACE " " +FALSE_KW "false" +WHITESPACE " " +AS_KW "as" +WHITESPACE " " +EXTERN_KW "extern" +WHITESPACE " " +CRATE_KW "crate" +WHITESPACE "\n" +MOD_KW "mod" +WHITESPACE " " +PUB_KW "pub" +WHITESPACE " " +SELF_KW "self" +WHITESPACE " " +SUPER_KW "super" +WHITESPACE " " +IN_KW "in" +WHITESPACE " " +WHERE_KW "where" +WHITESPACE " " +FOR_KW "for" +WHITESPACE " " +LOOP_KW "loop" +WHITESPACE " " +WHILE_KW "while" +WHITESPACE " " +IF_KW "if" +WHITESPACE " " +MATCH_KW "match" +WHITESPACE " " +CONST_KW "const" +WHITESPACE "\n" +STATIC_KW "static" +WHITESPACE " " +MUT_KW "mut" +WHITESPACE " " +TYPE_KW "type" +WHITESPACE " " +REF_KW "ref" +WHITESPACE " " +LET_KW "let" +WHITESPACE " " +ELSE_KW "else" +WHITESPACE " " +MOVE_KW "move" +WHITESPACE " " +RETURN_KW "return" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/ok/0007_lifetimes.rs b/crates/parser/test_data/lexer/ok/lifetimes.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0007_lifetimes.rs rename to crates/parser/test_data/lexer/ok/lifetimes.rs diff --git a/crates/parser/test_data/lexer/ok/lifetimes.txt b/crates/parser/test_data/lexer/ok/lifetimes.txt new file mode 100644 index 00000000000..eeb1e95414e --- /dev/null +++ b/crates/parser/test_data/lexer/ok/lifetimes.txt @@ -0,0 +1,8 @@ +LIFETIME_IDENT "'a" +WHITESPACE " " +LIFETIME_IDENT "'foo" +WHITESPACE " " +LIFETIME_IDENT "'foo_bar_baz" +WHITESPACE " " +LIFETIME_IDENT "'_" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/ok/0004_numbers.rs b/crates/parser/test_data/lexer/ok/numbers.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0004_numbers.rs rename to crates/parser/test_data/lexer/ok/numbers.rs diff --git a/crates/parser/test_data/lexer/ok/numbers.txt b/crates/parser/test_data/lexer/ok/numbers.txt new file mode 100644 index 00000000000..8d13c3f6106 --- /dev/null +++ b/crates/parser/test_data/lexer/ok/numbers.txt @@ -0,0 +1,57 @@ +INT_NUMBER "0" +WHITESPACE " " +INT_NUMBER "00" +WHITESPACE " " +INT_NUMBER "0_" +WHITESPACE " " +FLOAT_NUMBER "0." +WHITESPACE " " +INT_NUMBER "0z" +WHITESPACE "\n" +INT_NUMBER "01790" +WHITESPACE " " +INT_NUMBER "0b1790" +WHITESPACE " " +INT_NUMBER "0o1790" +WHITESPACE " " +INT_NUMBER "0x1790aAbBcCdDeEfF" +WHITESPACE " " +INT_NUMBER "001279" +WHITESPACE " " +INT_NUMBER "0_1279" +WHITESPACE " " +FLOAT_NUMBER "0.1279" +WHITESPACE " " +FLOAT_NUMBER "0e1279" +WHITESPACE " " +FLOAT_NUMBER "0E1279" +WHITESPACE "\n" +INT_NUMBER "0" +DOT "." +DOT "." +INT_NUMBER "2" +WHITESPACE "\n" +INT_NUMBER "0" +DOT "." +IDENT "foo" +L_PAREN "(" +R_PAREN ")" +WHITESPACE "\n" +FLOAT_NUMBER "0e+1" +WHITESPACE "\n" +INT_NUMBER "0" +DOT "." +IDENT "e" +PLUS "+" +INT_NUMBER "1" +WHITESPACE "\n" +FLOAT_NUMBER "0.0E-2" +WHITESPACE "\n" +FLOAT_NUMBER "0___0.10000____0000e+111__" +WHITESPACE "\n" +INT_NUMBER "1i64" +WHITESPACE " " +FLOAT_NUMBER "92.0f32" +WHITESPACE " " +INT_NUMBER "11__s" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/ok/0014_raw_ident.rs b/crates/parser/test_data/lexer/ok/raw_ident.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0014_raw_ident.rs rename to crates/parser/test_data/lexer/ok/raw_ident.rs diff --git a/crates/parser/test_data/lexer/ok/raw_ident.txt b/crates/parser/test_data/lexer/ok/raw_ident.txt new file mode 100644 index 00000000000..fddad998216 --- /dev/null +++ b/crates/parser/test_data/lexer/ok/raw_ident.txt @@ -0,0 +1,2 @@ +IDENT "r#raw_ident" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/ok/0013_raw_strings.rs b/crates/parser/test_data/lexer/ok/raw_strings.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0013_raw_strings.rs rename to crates/parser/test_data/lexer/ok/raw_strings.rs diff --git a/crates/parser/test_data/lexer/ok/raw_strings.txt b/crates/parser/test_data/lexer/ok/raw_strings.txt new file mode 100644 index 00000000000..13cf733b7d1 --- /dev/null +++ b/crates/parser/test_data/lexer/ok/raw_strings.txt @@ -0,0 +1,2 @@ +STRING "r###\"this is a r##\"raw\"## string\"###" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/ok/0010_single_line_comments.rs b/crates/parser/test_data/lexer/ok/single_line_comments.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0010_single_line_comments.rs rename to crates/parser/test_data/lexer/ok/single_line_comments.rs diff --git a/crates/parser/test_data/lexer/ok/single_line_comments.txt b/crates/parser/test_data/lexer/ok/single_line_comments.txt new file mode 100644 index 00000000000..a7681e9f508 --- /dev/null +++ b/crates/parser/test_data/lexer/ok/single_line_comments.txt @@ -0,0 +1,22 @@ +SHEBANG "#!/usr/bin/env bash" +WHITESPACE "\n" +COMMENT "// hello" +WHITESPACE "\n" +COMMENT "//! World" +WHITESPACE "\n" +COMMENT "//!! Inner line doc" +WHITESPACE "\n" +COMMENT "/// Outer line doc" +WHITESPACE "\n" +COMMENT "//// Just a comment" +WHITESPACE "\n\n" +COMMENT "//" +WHITESPACE "\n" +COMMENT "//!" +WHITESPACE "\n" +COMMENT "//!!" +WHITESPACE "\n" +COMMENT "///" +WHITESPACE "\n" +COMMENT "////" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/ok/0009_strings.rs b/crates/parser/test_data/lexer/ok/strings.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0009_strings.rs rename to crates/parser/test_data/lexer/ok/strings.rs diff --git a/crates/parser/test_data/lexer/ok/strings.txt b/crates/parser/test_data/lexer/ok/strings.txt new file mode 100644 index 00000000000..ec222591bd3 --- /dev/null +++ b/crates/parser/test_data/lexer/ok/strings.txt @@ -0,0 +1,8 @@ +STRING "\"hello\"" +WHITESPACE " " +STRING "r\"world\"" +WHITESPACE " " +STRING "\"\\n\\\"\\\\no escape\"" +WHITESPACE " " +STRING "\"multi\nline\"" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/ok/0005_symbols.rs b/crates/parser/test_data/lexer/ok/symbols.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0005_symbols.rs rename to crates/parser/test_data/lexer/ok/symbols.rs diff --git a/crates/parser/test_data/lexer/ok/symbols.txt b/crates/parser/test_data/lexer/ok/symbols.txt new file mode 100644 index 00000000000..533ccff9a87 --- /dev/null +++ b/crates/parser/test_data/lexer/ok/symbols.txt @@ -0,0 +1,77 @@ +SEMICOLON ";" +WHITESPACE " " +COMMA "," +WHITESPACE " " +L_PAREN "(" +WHITESPACE " " +R_PAREN ")" +WHITESPACE " " +L_CURLY "{" +WHITESPACE " " +R_CURLY "}" +WHITESPACE " " +L_BRACK "[" +WHITESPACE " " +R_BRACK "]" +WHITESPACE " " +L_ANGLE "<" +WHITESPACE " " +R_ANGLE ">" +WHITESPACE " " +AT "@" +WHITESPACE " " +POUND "#" +WHITESPACE " " +TILDE "~" +WHITESPACE " " +QUESTION "?" +WHITESPACE " " +DOLLAR "$" +WHITESPACE " " +AMP "&" +WHITESPACE " " +PIPE "|" +WHITESPACE " " +PLUS "+" +WHITESPACE " " +STAR "*" +WHITESPACE " " +SLASH "/" +WHITESPACE " " +CARET "^" +WHITESPACE " " +PERCENT "%" +WHITESPACE "\n" +DOT "." +WHITESPACE " " +DOT "." +DOT "." +WHITESPACE " " +DOT "." +DOT "." +DOT "." +WHITESPACE " " +DOT "." +DOT "." +EQ "=" +WHITESPACE "\n" +COLON ":" +WHITESPACE " " +COLON ":" +COLON ":" +WHITESPACE "\n" +EQ "=" +WHITESPACE " " +EQ "=" +R_ANGLE ">" +WHITESPACE "\n" +BANG "!" +WHITESPACE " " +BANG "!" +EQ "=" +WHITESPACE "\n" +MINUS "-" +WHITESPACE " " +MINUS "-" +R_ANGLE ">" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/ok/0002_whitespace.rs b/crates/parser/test_data/lexer/ok/whitespace.rs similarity index 100% rename from crates/syntax/test_data/lexer/ok/0002_whitespace.rs rename to crates/parser/test_data/lexer/ok/whitespace.rs diff --git a/crates/parser/test_data/lexer/ok/whitespace.txt b/crates/parser/test_data/lexer/ok/whitespace.txt new file mode 100644 index 00000000000..8ccb79e4ec7 --- /dev/null +++ b/crates/parser/test_data/lexer/ok/whitespace.txt @@ -0,0 +1,12 @@ +IDENT "a" +WHITESPACE " " +IDENT "b" +WHITESPACE " " +IDENT "c" +WHITESPACE "\n" +IDENT "d" +WHITESPACE "\n\n" +IDENT "e" +WHITESPACE "\t" +IDENT "f" +WHITESPACE "\n" diff --git a/crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt b/crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt deleted file mode 100644 index 135f49552be..00000000000 --- a/crates/syntax/test_data/lexer/err/0001_unclosed_char_at_eof.txt +++ /dev/null @@ -1,2 +0,0 @@ -CHAR 1 "'" -> error0..1 token("'") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt b/crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt deleted file mode 100644 index cc3933d9566..00000000000 --- a/crates/syntax/test_data/lexer/err/0002_unclosed_char_with_ferris.txt +++ /dev/null @@ -1,2 +0,0 @@ -CHAR 5 "'πŸ¦€" -> error0..5 token("'πŸ¦€") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt b/crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt deleted file mode 100644 index 21d990e6f10..00000000000 --- a/crates/syntax/test_data/lexer/err/0003_unclosed_char_with_ascii_escape.txt +++ /dev/null @@ -1,2 +0,0 @@ -CHAR 5 "'\\x7f" -> error0..5 token("'\\x7f") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt b/crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt deleted file mode 100644 index 055dba64cc6..00000000000 --- a/crates/syntax/test_data/lexer/err/0004_unclosed_char_with_unicode_escape.txt +++ /dev/null @@ -1,2 +0,0 @@ -CHAR 9 "'\\u{20AA}" -> error0..9 token("'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt b/crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt deleted file mode 100644 index 9ee5e93fa43..00000000000 --- a/crates/syntax/test_data/lexer/err/0005_unclosed_char_with_space.txt +++ /dev/null @@ -1,2 +0,0 @@ -CHAR 2 "' " -> error0..2 token("' ") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt b/crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt deleted file mode 100644 index dc3a596f636..00000000000 --- a/crates/syntax/test_data/lexer/err/0006_unclosed_char_with_slash.txt +++ /dev/null @@ -1,2 +0,0 @@ -CHAR 2 "'\\" -> error0..2 token("'\\") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt b/crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt deleted file mode 100644 index e46edea9862..00000000000 --- a/crates/syntax/test_data/lexer/err/0007_unclosed_char_with_slash_n.txt +++ /dev/null @@ -1,2 +0,0 @@ -CHAR 3 "'\\n" -> error0..3 token("'\\n") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt b/crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt deleted file mode 100644 index 8ad1e913af4..00000000000 --- a/crates/syntax/test_data/lexer/err/0008_unclosed_char_with_slash_single_quote.txt +++ /dev/null @@ -1,2 +0,0 @@ -CHAR 3 "'\\'" -> error0..3 token("'\\'") msg(Missing trailing `'` symbol to terminate the character literal) diff --git a/crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt b/crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt deleted file mode 100644 index 9d30c746699..00000000000 --- a/crates/syntax/test_data/lexer/err/0009_unclosed_byte_at_eof.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE 2 "b'" -> error0..2 token("b'") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt b/crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt deleted file mode 100644 index 9dbf4203e2f..00000000000 --- a/crates/syntax/test_data/lexer/err/0010_unclosed_byte_with_ferris.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE 6 "b'πŸ¦€" -> error0..6 token("b'πŸ¦€") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt b/crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt deleted file mode 100644 index d5d9c2ef709..00000000000 --- a/crates/syntax/test_data/lexer/err/0011_unclosed_byte_with_ascii_escape.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE 6 "b'\\x7f" -> error0..6 token("b'\\x7f") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt b/crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt deleted file mode 100644 index a99b9666a96..00000000000 --- a/crates/syntax/test_data/lexer/err/0012_unclosed_byte_with_unicode_escape.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE 10 "b'\\u{20AA}" -> error0..10 token("b'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt b/crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt deleted file mode 100644 index 8a344f71296..00000000000 --- a/crates/syntax/test_data/lexer/err/0013_unclosed_byte_with_space.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE 3 "b' " -> error0..3 token("b' ") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt b/crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt deleted file mode 100644 index b78a43c027b..00000000000 --- a/crates/syntax/test_data/lexer/err/0014_unclosed_byte_with_slash.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE 3 "b'\\" -> error0..3 token("b'\\") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt b/crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt deleted file mode 100644 index 5147363ba4e..00000000000 --- a/crates/syntax/test_data/lexer/err/0015_unclosed_byte_with_slash_n.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE 4 "b'\\n" -> error0..4 token("b'\\n") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt b/crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt deleted file mode 100644 index 261c0894f06..00000000000 --- a/crates/syntax/test_data/lexer/err/0016_unclosed_byte_with_slash_single_quote.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE 4 "b'\\'" -> error0..4 token("b'\\'") msg(Missing trailing `'` symbol to terminate the byte literal) diff --git a/crates/syntax/test_data/lexer/err/0017_unclosed_string_at_eof.txt b/crates/syntax/test_data/lexer/err/0017_unclosed_string_at_eof.txt deleted file mode 100644 index d11a8d880ea..00000000000 --- a/crates/syntax/test_data/lexer/err/0017_unclosed_string_at_eof.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 1 "\"" -> error0..1 token("\"") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/syntax/test_data/lexer/err/0018_unclosed_string_with_ferris.txt b/crates/syntax/test_data/lexer/err/0018_unclosed_string_with_ferris.txt deleted file mode 100644 index 167f942d12c..00000000000 --- a/crates/syntax/test_data/lexer/err/0018_unclosed_string_with_ferris.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 5 "\"πŸ¦€" -> error0..5 token("\"πŸ¦€") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/syntax/test_data/lexer/err/0019_unclosed_string_with_ascii_escape.txt b/crates/syntax/test_data/lexer/err/0019_unclosed_string_with_ascii_escape.txt deleted file mode 100644 index 224c653d26d..00000000000 --- a/crates/syntax/test_data/lexer/err/0019_unclosed_string_with_ascii_escape.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 5 "\"\\x7f" -> error0..5 token("\"\\x7f") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/syntax/test_data/lexer/err/0020_unclosed_string_with_unicode_escape.txt b/crates/syntax/test_data/lexer/err/0020_unclosed_string_with_unicode_escape.txt deleted file mode 100644 index 48975bbcbc4..00000000000 --- a/crates/syntax/test_data/lexer/err/0020_unclosed_string_with_unicode_escape.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 9 "\"\\u{20AA}" -> error0..9 token("\"\\u{20AA}") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/syntax/test_data/lexer/err/0021_unclosed_string_with_space.txt b/crates/syntax/test_data/lexer/err/0021_unclosed_string_with_space.txt deleted file mode 100644 index a823cca7a48..00000000000 --- a/crates/syntax/test_data/lexer/err/0021_unclosed_string_with_space.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 2 "\" " -> error0..2 token("\" ") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/syntax/test_data/lexer/err/0022_unclosed_string_with_slash.txt b/crates/syntax/test_data/lexer/err/0022_unclosed_string_with_slash.txt deleted file mode 100644 index 0914f001f55..00000000000 --- a/crates/syntax/test_data/lexer/err/0022_unclosed_string_with_slash.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 2 "\"\\" -> error0..2 token("\"\\") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/syntax/test_data/lexer/err/0023_unclosed_string_with_slash_n.txt b/crates/syntax/test_data/lexer/err/0023_unclosed_string_with_slash_n.txt deleted file mode 100644 index 5674b55fdfa..00000000000 --- a/crates/syntax/test_data/lexer/err/0023_unclosed_string_with_slash_n.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 3 "\"\\n" -> error0..3 token("\"\\n") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/syntax/test_data/lexer/err/0024_unclosed_string_with_slash_double_quote.txt b/crates/syntax/test_data/lexer/err/0024_unclosed_string_with_slash_double_quote.txt deleted file mode 100644 index 4c9a774e466..00000000000 --- a/crates/syntax/test_data/lexer/err/0024_unclosed_string_with_slash_double_quote.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 3 "\"\\\"" -> error0..3 token("\"\\\"") msg(Missing trailing `"` symbol to terminate the string literal) diff --git a/crates/syntax/test_data/lexer/err/0025_unclosed_byte_string_at_eof.txt b/crates/syntax/test_data/lexer/err/0025_unclosed_byte_string_at_eof.txt deleted file mode 100644 index 04e6b0aa4f1..00000000000 --- a/crates/syntax/test_data/lexer/err/0025_unclosed_byte_string_at_eof.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 2 "b\"" -> error0..2 token("b\"") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0026_unclosed_byte_string_with_ferris.txt b/crates/syntax/test_data/lexer/err/0026_unclosed_byte_string_with_ferris.txt deleted file mode 100644 index 0576a0609a8..00000000000 --- a/crates/syntax/test_data/lexer/err/0026_unclosed_byte_string_with_ferris.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 6 "b\"πŸ¦€" -> error0..6 token("b\"πŸ¦€") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0027_unclosed_byte_string_with_ascii_escape.txt b/crates/syntax/test_data/lexer/err/0027_unclosed_byte_string_with_ascii_escape.txt deleted file mode 100644 index 541a013d853..00000000000 --- a/crates/syntax/test_data/lexer/err/0027_unclosed_byte_string_with_ascii_escape.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 6 "b\"\\x7f" -> error0..6 token("b\"\\x7f") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0028_unclosed_byte_string_with_unicode_escape.txt b/crates/syntax/test_data/lexer/err/0028_unclosed_byte_string_with_unicode_escape.txt deleted file mode 100644 index 71b0fb2118c..00000000000 --- a/crates/syntax/test_data/lexer/err/0028_unclosed_byte_string_with_unicode_escape.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 10 "b\"\\u{20AA}" -> error0..10 token("b\"\\u{20AA}") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0029_unclosed_byte_string_with_space.txt b/crates/syntax/test_data/lexer/err/0029_unclosed_byte_string_with_space.txt deleted file mode 100644 index bd5058bc118..00000000000 --- a/crates/syntax/test_data/lexer/err/0029_unclosed_byte_string_with_space.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 3 "b\" " -> error0..3 token("b\" ") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0030_unclosed_byte_string_with_slash.txt b/crates/syntax/test_data/lexer/err/0030_unclosed_byte_string_with_slash.txt deleted file mode 100644 index 7f94f10ba15..00000000000 --- a/crates/syntax/test_data/lexer/err/0030_unclosed_byte_string_with_slash.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 3 "b\"\\" -> error0..3 token("b\"\\") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0031_unclosed_byte_string_with_slash_n.txt b/crates/syntax/test_data/lexer/err/0031_unclosed_byte_string_with_slash_n.txt deleted file mode 100644 index 9c3c089d724..00000000000 --- a/crates/syntax/test_data/lexer/err/0031_unclosed_byte_string_with_slash_n.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 4 "b\"\\n" -> error0..4 token("b\"\\n") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0032_unclosed_byte_string_with_slash_double_quote.txt b/crates/syntax/test_data/lexer/err/0032_unclosed_byte_string_with_slash_double_quote.txt deleted file mode 100644 index 884b12c8ee0..00000000000 --- a/crates/syntax/test_data/lexer/err/0032_unclosed_byte_string_with_slash_double_quote.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 4 "b\"\\\"" -> error0..4 token("b\"\\\"") msg(Missing trailing `"` symbol to terminate the byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0033_unclosed_raw_string_at_eof.txt b/crates/syntax/test_data/lexer/err/0033_unclosed_raw_string_at_eof.txt deleted file mode 100644 index 54e707b7367..00000000000 --- a/crates/syntax/test_data/lexer/err/0033_unclosed_raw_string_at_eof.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 4 "r##\"" -> error0..4 token("r##\"") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/syntax/test_data/lexer/err/0034_unclosed_raw_string_with_ferris.txt b/crates/syntax/test_data/lexer/err/0034_unclosed_raw_string_with_ferris.txt deleted file mode 100644 index 1f9889775f5..00000000000 --- a/crates/syntax/test_data/lexer/err/0034_unclosed_raw_string_with_ferris.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 8 "r##\"πŸ¦€" -> error0..8 token("r##\"πŸ¦€") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/syntax/test_data/lexer/err/0035_unclosed_raw_string_with_ascii_escape.txt b/crates/syntax/test_data/lexer/err/0035_unclosed_raw_string_with_ascii_escape.txt deleted file mode 100644 index 93f6f72ae60..00000000000 --- a/crates/syntax/test_data/lexer/err/0035_unclosed_raw_string_with_ascii_escape.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 8 "r##\"\\x7f" -> error0..8 token("r##\"\\x7f") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/syntax/test_data/lexer/err/0036_unclosed_raw_string_with_unicode_escape.txt b/crates/syntax/test_data/lexer/err/0036_unclosed_raw_string_with_unicode_escape.txt deleted file mode 100644 index 1d2ebc60fdf..00000000000 --- a/crates/syntax/test_data/lexer/err/0036_unclosed_raw_string_with_unicode_escape.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 12 "r##\"\\u{20AA}" -> error0..12 token("r##\"\\u{20AA}") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/syntax/test_data/lexer/err/0037_unclosed_raw_string_with_space.txt b/crates/syntax/test_data/lexer/err/0037_unclosed_raw_string_with_space.txt deleted file mode 100644 index c567ab7e282..00000000000 --- a/crates/syntax/test_data/lexer/err/0037_unclosed_raw_string_with_space.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 5 "r##\" " -> error0..5 token("r##\" ") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/syntax/test_data/lexer/err/0038_unclosed_raw_string_with_slash.txt b/crates/syntax/test_data/lexer/err/0038_unclosed_raw_string_with_slash.txt deleted file mode 100644 index 343b20323a1..00000000000 --- a/crates/syntax/test_data/lexer/err/0038_unclosed_raw_string_with_slash.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 5 "r##\"\\" -> error0..5 token("r##\"\\") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/syntax/test_data/lexer/err/0039_unclosed_raw_string_with_slash_n.txt b/crates/syntax/test_data/lexer/err/0039_unclosed_raw_string_with_slash_n.txt deleted file mode 100644 index 041a4273758..00000000000 --- a/crates/syntax/test_data/lexer/err/0039_unclosed_raw_string_with_slash_n.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 6 "r##\"\\n" -> error0..6 token("r##\"\\n") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal) diff --git a/crates/syntax/test_data/lexer/err/0040_unclosed_raw_byte_string_at_eof.txt b/crates/syntax/test_data/lexer/err/0040_unclosed_raw_byte_string_at_eof.txt deleted file mode 100644 index efaa1cafd93..00000000000 --- a/crates/syntax/test_data/lexer/err/0040_unclosed_raw_byte_string_at_eof.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 5 "br##\"" -> error0..5 token("br##\"") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0041_unclosed_raw_byte_string_with_ferris.txt b/crates/syntax/test_data/lexer/err/0041_unclosed_raw_byte_string_with_ferris.txt deleted file mode 100644 index b6c938f94e9..00000000000 --- a/crates/syntax/test_data/lexer/err/0041_unclosed_raw_byte_string_with_ferris.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 9 "br##\"πŸ¦€" -> error0..9 token("br##\"πŸ¦€") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0042_unclosed_raw_byte_string_with_ascii_escape.txt b/crates/syntax/test_data/lexer/err/0042_unclosed_raw_byte_string_with_ascii_escape.txt deleted file mode 100644 index f82efe49acc..00000000000 --- a/crates/syntax/test_data/lexer/err/0042_unclosed_raw_byte_string_with_ascii_escape.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 9 "br##\"\\x7f" -> error0..9 token("br##\"\\x7f") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0043_unclosed_raw_byte_string_with_unicode_escape.txt b/crates/syntax/test_data/lexer/err/0043_unclosed_raw_byte_string_with_unicode_escape.txt deleted file mode 100644 index 4e4a576961a..00000000000 --- a/crates/syntax/test_data/lexer/err/0043_unclosed_raw_byte_string_with_unicode_escape.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 13 "br##\"\\u{20AA}" -> error0..13 token("br##\"\\u{20AA}") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0044_unclosed_raw_byte_string_with_space.txt b/crates/syntax/test_data/lexer/err/0044_unclosed_raw_byte_string_with_space.txt deleted file mode 100644 index 0018c8623c2..00000000000 --- a/crates/syntax/test_data/lexer/err/0044_unclosed_raw_byte_string_with_space.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 6 "br##\" " -> error0..6 token("br##\" ") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0045_unclosed_raw_byte_string_with_slash.txt b/crates/syntax/test_data/lexer/err/0045_unclosed_raw_byte_string_with_slash.txt deleted file mode 100644 index c3ba4ae82b8..00000000000 --- a/crates/syntax/test_data/lexer/err/0045_unclosed_raw_byte_string_with_slash.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 6 "br##\"\\" -> error0..6 token("br##\"\\") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0046_unclosed_raw_byte_string_with_slash_n.txt b/crates/syntax/test_data/lexer/err/0046_unclosed_raw_byte_string_with_slash_n.txt deleted file mode 100644 index 7bda72276fe..00000000000 --- a/crates/syntax/test_data/lexer/err/0046_unclosed_raw_byte_string_with_slash_n.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 7 "br##\"\\n" -> error0..7 token("br##\"\\n") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0047_unstarted_raw_string_at_eof.txt b/crates/syntax/test_data/lexer/err/0047_unstarted_raw_string_at_eof.txt deleted file mode 100644 index ce92d2ff75b..00000000000 --- a/crates/syntax/test_data/lexer/err/0047_unstarted_raw_string_at_eof.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 3 "r##" -> error0..3 token("r##") msg(Missing `"` symbol after `#` symbols to begin the raw string literal) diff --git a/crates/syntax/test_data/lexer/err/0048_unstarted_raw_byte_string_at_eof.txt b/crates/syntax/test_data/lexer/err/0048_unstarted_raw_byte_string_at_eof.txt deleted file mode 100644 index a75d9030c4d..00000000000 --- a/crates/syntax/test_data/lexer/err/0048_unstarted_raw_byte_string_at_eof.txt +++ /dev/null @@ -1,2 +0,0 @@ -BYTE_STRING 4 "br##" -> error0..4 token("br##") msg(Missing `"` symbol after `#` symbols to begin the raw byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0049_unstarted_raw_string_with_ascii.txt b/crates/syntax/test_data/lexer/err/0049_unstarted_raw_string_with_ascii.txt deleted file mode 100644 index 516e0b78ed0..00000000000 --- a/crates/syntax/test_data/lexer/err/0049_unstarted_raw_string_with_ascii.txt +++ /dev/null @@ -1,10 +0,0 @@ -STRING 4 "r## " -IDENT 1 "I" -WHITESPACE 1 " " -IDENT 4 "lack" -WHITESPACE 1 " " -IDENT 1 "a" -WHITESPACE 1 " " -IDENT 5 "quote" -BANG 1 "!" -> error0..4 token("r## ") msg(Missing `"` symbol after `#` symbols to begin the raw string literal) diff --git a/crates/syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt b/crates/syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt deleted file mode 100644 index 2f8a6f5f29f..00000000000 --- a/crates/syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt +++ /dev/null @@ -1,10 +0,0 @@ -BYTE_STRING 5 "br## " -IDENT 1 "I" -WHITESPACE 1 " " -IDENT 4 "lack" -WHITESPACE 1 " " -IDENT 1 "a" -WHITESPACE 1 " " -IDENT 5 "quote" -BANG 1 "!" -> error0..5 token("br## ") msg(Missing `"` symbol after `#` symbols to begin the raw byte string literal) diff --git a/crates/syntax/test_data/lexer/err/0051_unclosed_block_comment_at_eof.txt b/crates/syntax/test_data/lexer/err/0051_unclosed_block_comment_at_eof.txt deleted file mode 100644 index 2a256e9dffd..00000000000 --- a/crates/syntax/test_data/lexer/err/0051_unclosed_block_comment_at_eof.txt +++ /dev/null @@ -1,2 +0,0 @@ -COMMENT 2 "/*" -> error0..2 token("/*") msg(Missing trailing `*/` symbols to terminate the block comment) diff --git a/crates/syntax/test_data/lexer/err/0052_unclosed_block_comment_with_content.txt b/crates/syntax/test_data/lexer/err/0052_unclosed_block_comment_with_content.txt deleted file mode 100644 index 8e8490302a5..00000000000 --- a/crates/syntax/test_data/lexer/err/0052_unclosed_block_comment_with_content.txt +++ /dev/null @@ -1,2 +0,0 @@ -COMMENT 11 "/* comment\n" -> error0..11 token("/* comment\n") msg(Missing trailing `*/` symbols to terminate the block comment) diff --git a/crates/syntax/test_data/lexer/err/0053_unclosed_nested_block_comment_entirely.txt b/crates/syntax/test_data/lexer/err/0053_unclosed_nested_block_comment_entirely.txt deleted file mode 100644 index b7d28fc05d5..00000000000 --- a/crates/syntax/test_data/lexer/err/0053_unclosed_nested_block_comment_entirely.txt +++ /dev/null @@ -1,2 +0,0 @@ -COMMENT 9 "/* /* /*\n" -> error0..9 token("/* /* /*\n") msg(Missing trailing `*/` symbols to terminate the block comment) diff --git a/crates/syntax/test_data/lexer/err/0054_unclosed_nested_block_comment_partially.txt b/crates/syntax/test_data/lexer/err/0054_unclosed_nested_block_comment_partially.txt deleted file mode 100644 index 4742d2c12ca..00000000000 --- a/crates/syntax/test_data/lexer/err/0054_unclosed_nested_block_comment_partially.txt +++ /dev/null @@ -1,2 +0,0 @@ -COMMENT 25 "/** /*! /* comment */ */\n" -> error0..25 token("/** /*! /* comment */ */\n") msg(Missing trailing `*/` symbols to terminate the block comment) diff --git a/crates/syntax/test_data/lexer/err/0055_empty_int.txt b/crates/syntax/test_data/lexer/err/0055_empty_int.txt deleted file mode 100644 index bcd094b6ef7..00000000000 --- a/crates/syntax/test_data/lexer/err/0055_empty_int.txt +++ /dev/null @@ -1,39 +0,0 @@ -INT_NUMBER 2 "0b" -WHITESPACE 1 "\n" -INT_NUMBER 2 "0o" -WHITESPACE 1 "\n" -INT_NUMBER 2 "0x" -WHITESPACE 2 "\n\n" -INT_NUMBER 3 "0b_" -WHITESPACE 1 "\n" -INT_NUMBER 3 "0o_" -WHITESPACE 1 "\n" -INT_NUMBER 3 "0x_" -WHITESPACE 2 "\n\n" -INT_NUMBER 9 "0bnoDigit" -WHITESPACE 1 "\n" -INT_NUMBER 9 "0onoDigit" -WHITESPACE 1 "\n" -INT_NUMBER 9 "0xnoDigit" -WHITESPACE 2 "\n\n" -INT_NUMBER 3 "0xG" -WHITESPACE 1 "\n" -INT_NUMBER 3 "0xg" -WHITESPACE 2 "\n\n" -INT_NUMBER 4 "0x_g" -WHITESPACE 1 "\n" -INT_NUMBER 4 "0x_G" -WHITESPACE 1 "\n" -> 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/syntax/test_data/lexer/err/0056_empty_exponent.txt b/crates/syntax/test_data/lexer/err/0056_empty_exponent.txt deleted file mode 100644 index 6a645a6a44c..00000000000 --- a/crates/syntax/test_data/lexer/err/0056_empty_exponent.txt +++ /dev/null @@ -1,62 +0,0 @@ -FLOAT_NUMBER 2 "0e" -WHITESPACE 1 "\n" -FLOAT_NUMBER 2 "0E" -WHITESPACE 2 "\n\n" -FLOAT_NUMBER 4 "42e+" -WHITESPACE 1 "\n" -FLOAT_NUMBER 4 "42e-" -WHITESPACE 1 "\n" -FLOAT_NUMBER 4 "42E+" -WHITESPACE 1 "\n" -FLOAT_NUMBER 4 "42E-" -WHITESPACE 2 "\n\n" -INT_NUMBER 2 "42" -DOT 1 "." -IDENT 1 "e" -PLUS 1 "+" -WHITESPACE 1 "\n" -INT_NUMBER 2 "42" -DOT 1 "." -IDENT 1 "e" -MINUS 1 "-" -WHITESPACE 1 "\n" -INT_NUMBER 2 "42" -DOT 1 "." -IDENT 1 "E" -PLUS 1 "+" -WHITESPACE 1 "\n" -INT_NUMBER 2 "42" -DOT 1 "." -IDENT 1 "E" -MINUS 1 "-" -WHITESPACE 2 "\n\n" -FLOAT_NUMBER 6 "42.2e+" -WHITESPACE 1 "\n" -FLOAT_NUMBER 6 "42.2e-" -WHITESPACE 1 "\n" -FLOAT_NUMBER 6 "42.2E+" -WHITESPACE 1 "\n" -FLOAT_NUMBER 6 "42.2E-" -WHITESPACE 2 "\n\n" -FLOAT_NUMBER 9 "42.2e+f32" -WHITESPACE 1 "\n" -FLOAT_NUMBER 9 "42.2e-f32" -WHITESPACE 1 "\n" -FLOAT_NUMBER 9 "42.2E+f32" -WHITESPACE 1 "\n" -FLOAT_NUMBER 9 "42.2E-f32" -WHITESPACE 1 "\n" -> 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/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt b/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt deleted file mode 100644 index b746404d226..00000000000 --- a/crates/syntax/test_data/lexer/err/0057_lifetime_starts_with_a_number.txt +++ /dev/null @@ -1,6 +0,0 @@ -LIFETIME_IDENT 2 "'1" -WHITESPACE 1 "\n" -LIFETIME_IDENT 10 "'1lifetime" -WHITESPACE 1 "\n" -> error0..2 token("'1") msg(Lifetime name cannot start with a number) -> error3..13 token("'1lifetime") msg(Lifetime name cannot start with a number) diff --git a/crates/syntax/test_data/lexer/ok/0001_hello.txt b/crates/syntax/test_data/lexer/ok/0001_hello.txt deleted file mode 100644 index 27a5940a9c1..00000000000 --- a/crates/syntax/test_data/lexer/ok/0001_hello.txt +++ /dev/null @@ -1,3 +0,0 @@ -IDENT 5 "hello" -WHITESPACE 1 " " -IDENT 5 "world" diff --git a/crates/syntax/test_data/lexer/ok/0002_whitespace.txt b/crates/syntax/test_data/lexer/ok/0002_whitespace.txt deleted file mode 100644 index 01d260918ee..00000000000 --- a/crates/syntax/test_data/lexer/ok/0002_whitespace.txt +++ /dev/null @@ -1,12 +0,0 @@ -IDENT 1 "a" -WHITESPACE 1 " " -IDENT 1 "b" -WHITESPACE 2 " " -IDENT 1 "c" -WHITESPACE 1 "\n" -IDENT 1 "d" -WHITESPACE 2 "\n\n" -IDENT 1 "e" -WHITESPACE 1 "\t" -IDENT 1 "f" -WHITESPACE 1 "\n" diff --git a/crates/syntax/test_data/lexer/ok/0003_ident.txt b/crates/syntax/test_data/lexer/ok/0003_ident.txt deleted file mode 100644 index 4a0d5c05312..00000000000 --- a/crates/syntax/test_data/lexer/ok/0003_ident.txt +++ /dev/null @@ -1,14 +0,0 @@ -IDENT 3 "foo" -WHITESPACE 1 " " -IDENT 4 "foo_" -WHITESPACE 1 " " -IDENT 4 "_foo" -WHITESPACE 1 " " -UNDERSCORE 1 "_" -WHITESPACE 1 " " -IDENT 2 "__" -WHITESPACE 1 " " -IDENT 1 "x" -WHITESPACE 1 " " -IDENT 12 "ΠΏΡ€ΠΈΠ²Π΅Ρ‚" -WHITESPACE 1 "\n" diff --git a/crates/syntax/test_data/lexer/ok/0004_numbers.txt b/crates/syntax/test_data/lexer/ok/0004_numbers.txt deleted file mode 100644 index e19fc5789e3..00000000000 --- a/crates/syntax/test_data/lexer/ok/0004_numbers.txt +++ /dev/null @@ -1,57 +0,0 @@ -INT_NUMBER 1 "0" -WHITESPACE 1 " " -INT_NUMBER 2 "00" -WHITESPACE 1 " " -INT_NUMBER 2 "0_" -WHITESPACE 1 " " -FLOAT_NUMBER 2 "0." -WHITESPACE 1 " " -INT_NUMBER 2 "0z" -WHITESPACE 1 "\n" -INT_NUMBER 5 "01790" -WHITESPACE 1 " " -INT_NUMBER 6 "0b1790" -WHITESPACE 1 " " -INT_NUMBER 6 "0o1790" -WHITESPACE 1 " " -INT_NUMBER 18 "0x1790aAbBcCdDeEfF" -WHITESPACE 1 " " -INT_NUMBER 6 "001279" -WHITESPACE 1 " " -INT_NUMBER 6 "0_1279" -WHITESPACE 1 " " -FLOAT_NUMBER 6 "0.1279" -WHITESPACE 1 " " -FLOAT_NUMBER 6 "0e1279" -WHITESPACE 1 " " -FLOAT_NUMBER 6 "0E1279" -WHITESPACE 1 "\n" -INT_NUMBER 1 "0" -DOT 1 "." -DOT 1 "." -INT_NUMBER 1 "2" -WHITESPACE 1 "\n" -INT_NUMBER 1 "0" -DOT 1 "." -IDENT 3 "foo" -L_PAREN 1 "(" -R_PAREN 1 ")" -WHITESPACE 1 "\n" -FLOAT_NUMBER 4 "0e+1" -WHITESPACE 1 "\n" -INT_NUMBER 1 "0" -DOT 1 "." -IDENT 1 "e" -PLUS 1 "+" -INT_NUMBER 1 "1" -WHITESPACE 1 "\n" -FLOAT_NUMBER 6 "0.0E-2" -WHITESPACE 1 "\n" -FLOAT_NUMBER 26 "0___0.10000____0000e+111__" -WHITESPACE 1 "\n" -INT_NUMBER 4 "1i64" -WHITESPACE 1 " " -FLOAT_NUMBER 7 "92.0f32" -WHITESPACE 1 " " -INT_NUMBER 5 "11__s" -WHITESPACE 1 "\n" diff --git a/crates/syntax/test_data/lexer/ok/0005_symbols.txt b/crates/syntax/test_data/lexer/ok/0005_symbols.txt deleted file mode 100644 index 2049c2f1d66..00000000000 --- a/crates/syntax/test_data/lexer/ok/0005_symbols.txt +++ /dev/null @@ -1,77 +0,0 @@ -SEMICOLON 1 ";" -WHITESPACE 1 " " -COMMA 1 "," -WHITESPACE 1 " " -L_PAREN 1 "(" -WHITESPACE 1 " " -R_PAREN 1 ")" -WHITESPACE 1 " " -L_CURLY 1 "{" -WHITESPACE 1 " " -R_CURLY 1 "}" -WHITESPACE 1 " " -L_BRACK 1 "[" -WHITESPACE 1 " " -R_BRACK 1 "]" -WHITESPACE 1 " " -L_ANGLE 1 "<" -WHITESPACE 1 " " -R_ANGLE 1 ">" -WHITESPACE 1 " " -AT 1 "@" -WHITESPACE 1 " " -POUND 1 "#" -WHITESPACE 1 " " -TILDE 1 "~" -WHITESPACE 1 " " -QUESTION 1 "?" -WHITESPACE 1 " " -DOLLAR 1 "$" -WHITESPACE 1 " " -AMP 1 "&" -WHITESPACE 1 " " -PIPE 1 "|" -WHITESPACE 1 " " -PLUS 1 "+" -WHITESPACE 1 " " -STAR 1 "*" -WHITESPACE 1 " " -SLASH 1 "/" -WHITESPACE 1 " " -CARET 1 "^" -WHITESPACE 1 " " -PERCENT 1 "%" -WHITESPACE 1 "\n" -DOT 1 "." -WHITESPACE 1 " " -DOT 1 "." -DOT 1 "." -WHITESPACE 1 " " -DOT 1 "." -DOT 1 "." -DOT 1 "." -WHITESPACE 1 " " -DOT 1 "." -DOT 1 "." -EQ 1 "=" -WHITESPACE 1 "\n" -COLON 1 ":" -WHITESPACE 1 " " -COLON 1 ":" -COLON 1 ":" -WHITESPACE 1 "\n" -EQ 1 "=" -WHITESPACE 1 " " -EQ 1 "=" -R_ANGLE 1 ">" -WHITESPACE 1 "\n" -BANG 1 "!" -WHITESPACE 1 " " -BANG 1 "!" -EQ 1 "=" -WHITESPACE 1 "\n" -MINUS 1 "-" -WHITESPACE 1 " " -MINUS 1 "-" -R_ANGLE 1 ">" -WHITESPACE 1 "\n" diff --git a/crates/syntax/test_data/lexer/ok/0006_chars.txt b/crates/syntax/test_data/lexer/ok/0006_chars.txt deleted file mode 100644 index 756477dc919..00000000000 --- a/crates/syntax/test_data/lexer/ok/0006_chars.txt +++ /dev/null @@ -1,16 +0,0 @@ -CHAR 3 "'x'" -WHITESPACE 1 " " -CHAR 3 "' '" -WHITESPACE 1 " " -CHAR 3 "'0'" -WHITESPACE 1 " " -CHAR 7 "'hello'" -WHITESPACE 1 " " -CHAR 6 "'\\x7f'" -WHITESPACE 1 " " -CHAR 4 "'\\n'" -WHITESPACE 1 " " -CHAR 4 "'\\\\'" -WHITESPACE 1 " " -CHAR 4 "'\\''" -WHITESPACE 1 "\n" diff --git a/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt b/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt deleted file mode 100644 index 32ed9ed506b..00000000000 --- a/crates/syntax/test_data/lexer/ok/0007_lifetimes.txt +++ /dev/null @@ -1,8 +0,0 @@ -LIFETIME_IDENT 2 "'a" -WHITESPACE 1 " " -LIFETIME_IDENT 4 "'foo" -WHITESPACE 1 " " -LIFETIME_IDENT 12 "'foo_bar_baz" -WHITESPACE 1 " " -LIFETIME_IDENT 2 "'_" -WHITESPACE 1 "\n" diff --git a/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt b/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt deleted file mode 100644 index 06d6bdd1f9f..00000000000 --- a/crates/syntax/test_data/lexer/ok/0008_byte_strings.txt +++ /dev/null @@ -1,22 +0,0 @@ -BYTE 3 "b''" -WHITESPACE 1 " " -BYTE 4 "b'x'" -WHITESPACE 1 " " -BYTE_STRING 6 "b\"foo\"" -WHITESPACE 1 " " -BYTE_STRING 4 "br\"\"" -WHITESPACE 1 "\n" -BYTE 6 "b''suf" -WHITESPACE 1 " " -BYTE_STRING 5 "b\"\"ix" -WHITESPACE 1 " " -BYTE_STRING 6 "br\"\"br" -WHITESPACE 1 "\n" -BYTE 5 "b'\\n'" -WHITESPACE 1 " " -BYTE 5 "b'\\\\'" -WHITESPACE 1 " " -BYTE 5 "b'\\''" -WHITESPACE 1 " " -BYTE 8 "b'hello'" -WHITESPACE 1 "\n" diff --git a/crates/syntax/test_data/lexer/ok/0009_strings.txt b/crates/syntax/test_data/lexer/ok/0009_strings.txt deleted file mode 100644 index 988a8877bd7..00000000000 --- a/crates/syntax/test_data/lexer/ok/0009_strings.txt +++ /dev/null @@ -1,8 +0,0 @@ -STRING 7 "\"hello\"" -WHITESPACE 1 " " -STRING 8 "r\"world\"" -WHITESPACE 1 " " -STRING 17 "\"\\n\\\"\\\\no escape\"" -WHITESPACE 1 " " -STRING 12 "\"multi\nline\"" -WHITESPACE 1 "\n" diff --git a/crates/syntax/test_data/lexer/ok/0010_single_line_comments.txt b/crates/syntax/test_data/lexer/ok/0010_single_line_comments.txt deleted file mode 100644 index 98a3818c06c..00000000000 --- a/crates/syntax/test_data/lexer/ok/0010_single_line_comments.txt +++ /dev/null @@ -1,22 +0,0 @@ -SHEBANG 19 "#!/usr/bin/env bash" -WHITESPACE 1 "\n" -COMMENT 8 "// hello" -WHITESPACE 1 "\n" -COMMENT 9 "//! World" -WHITESPACE 1 "\n" -COMMENT 19 "//!! Inner line doc" -WHITESPACE 1 "\n" -COMMENT 18 "/// Outer line doc" -WHITESPACE 1 "\n" -COMMENT 19 "//// Just a comment" -WHITESPACE 2 "\n\n" -COMMENT 2 "//" -WHITESPACE 1 "\n" -COMMENT 3 "//!" -WHITESPACE 1 "\n" -COMMENT 4 "//!!" -WHITESPACE 1 "\n" -COMMENT 3 "///" -WHITESPACE 1 "\n" -COMMENT 4 "////" -WHITESPACE 1 "\n" diff --git a/crates/syntax/test_data/lexer/ok/0011_keywords.txt b/crates/syntax/test_data/lexer/ok/0011_keywords.txt deleted file mode 100644 index 22c00eefb62..00000000000 --- a/crates/syntax/test_data/lexer/ok/0011_keywords.txt +++ /dev/null @@ -1,64 +0,0 @@ -ASYNC_KW 5 "async" -WHITESPACE 1 " " -FN_KW 2 "fn" -WHITESPACE 1 " " -USE_KW 3 "use" -WHITESPACE 1 " " -STRUCT_KW 6 "struct" -WHITESPACE 1 " " -TRAIT_KW 5 "trait" -WHITESPACE 1 " " -ENUM_KW 4 "enum" -WHITESPACE 1 " " -IMPL_KW 4 "impl" -WHITESPACE 1 " " -TRUE_KW 4 "true" -WHITESPACE 1 " " -FALSE_KW 5 "false" -WHITESPACE 1 " " -AS_KW 2 "as" -WHITESPACE 1 " " -EXTERN_KW 6 "extern" -WHITESPACE 1 " " -CRATE_KW 5 "crate" -WHITESPACE 1 "\n" -MOD_KW 3 "mod" -WHITESPACE 1 " " -PUB_KW 3 "pub" -WHITESPACE 1 " " -SELF_KW 4 "self" -WHITESPACE 1 " " -SUPER_KW 5 "super" -WHITESPACE 1 " " -IN_KW 2 "in" -WHITESPACE 1 " " -WHERE_KW 5 "where" -WHITESPACE 1 " " -FOR_KW 3 "for" -WHITESPACE 1 " " -LOOP_KW 4 "loop" -WHITESPACE 1 " " -WHILE_KW 5 "while" -WHITESPACE 1 " " -IF_KW 2 "if" -WHITESPACE 1 " " -MATCH_KW 5 "match" -WHITESPACE 1 " " -CONST_KW 5 "const" -WHITESPACE 1 "\n" -STATIC_KW 6 "static" -WHITESPACE 1 " " -MUT_KW 3 "mut" -WHITESPACE 1 " " -TYPE_KW 4 "type" -WHITESPACE 1 " " -REF_KW 3 "ref" -WHITESPACE 1 " " -LET_KW 3 "let" -WHITESPACE 1 " " -ELSE_KW 4 "else" -WHITESPACE 1 " " -MOVE_KW 4 "move" -WHITESPACE 1 " " -RETURN_KW 6 "return" -WHITESPACE 1 "\n" diff --git a/crates/syntax/test_data/lexer/ok/0012_block_comment.txt b/crates/syntax/test_data/lexer/ok/0012_block_comment.txt deleted file mode 100644 index 2618e287e63..00000000000 --- a/crates/syntax/test_data/lexer/ok/0012_block_comment.txt +++ /dev/null @@ -1,6 +0,0 @@ -COMMENT 5 "/* */" -WHITESPACE 1 "\n" -COMMENT 4 "/**/" -WHITESPACE 1 "\n" -COMMENT 11 "/* /* */ */" -WHITESPACE 1 "\n" diff --git a/crates/syntax/test_data/lexer/ok/0013_raw_strings.txt b/crates/syntax/test_data/lexer/ok/0013_raw_strings.txt deleted file mode 100644 index db0d5ffd143..00000000000 --- a/crates/syntax/test_data/lexer/ok/0013_raw_strings.txt +++ /dev/null @@ -1,2 +0,0 @@ -STRING 36 "r###\"this is a r##\"raw\"## string\"###" -WHITESPACE 1 "\n" diff --git a/crates/syntax/test_data/lexer/ok/0014_raw_ident.txt b/crates/syntax/test_data/lexer/ok/0014_raw_ident.txt deleted file mode 100644 index 484689693ba..00000000000 --- a/crates/syntax/test_data/lexer/ok/0014_raw_ident.txt +++ /dev/null @@ -1,2 +0,0 @@ -IDENT 11 "r#raw_ident" -WHITESPACE 1 "\n"