From a3e5663ae0206270156fbeb926a174a40abbddb0 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Sat, 1 Feb 2020 22:25:01 +0200 Subject: ra_syntax: added tests for tokenization errors --- .../lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 crates/ra_syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt (limited to 'crates/ra_syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt') diff --git a/crates/ra_syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt b/crates/ra_syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt new file mode 100644 index 000000000..59c40cd65 --- /dev/null +++ b/crates/ra_syntax/test_data/lexer/err/0050_unstarted_raw_byte_string_with_ascii.txt @@ -0,0 +1,10 @@ +RAW_BYTE_STRING 5 "br## " +IDENT 1 "I" +WHITESPACE 1 " " +IDENT 4 "lack" +WHITESPACE 1 " " +IDENT 1 "a" +WHITESPACE 1 " " +IDENT 5 "quote" +EXCL 1 "!" +> error[0; 5) token("br## ") msg(Missing `"` symbol after `#` symbols to begin the raw byte string literal) -- cgit v1.2.3