From 2f24fb4f2c5d8708533a1b0155e1e884bd4b2ba2 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 31 Dec 2017 14:02:55 +0300 Subject: Lexer: byte strings --- tests/data/lexer/0008_strings.rs | 1 + tests/data/lexer/0008_strings.txt | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/data/lexer/0008_strings.rs create mode 100644 tests/data/lexer/0008_strings.txt (limited to 'tests/data/lexer') diff --git a/tests/data/lexer/0008_strings.rs b/tests/data/lexer/0008_strings.rs new file mode 100644 index 000000000..1ffc7bb9d --- /dev/null +++ b/tests/data/lexer/0008_strings.rs @@ -0,0 +1 @@ +b'' b'x' b"foo" br"" \ No newline at end of file diff --git a/tests/data/lexer/0008_strings.txt b/tests/data/lexer/0008_strings.txt new file mode 100644 index 000000000..d4ff4b558 --- /dev/null +++ b/tests/data/lexer/0008_strings.txt @@ -0,0 +1,7 @@ +BYTE 3 "b\'\'" +WHITESPACE 1 " " +BYTE 4 "b\'x\'" +WHITESPACE 1 " " +BYTE_STRING 6 "b\"foo\"" +WHITESPACE 1 " " +RAW_BYTE_STRING 4 "br\"\"" -- cgit v1.2.3