aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/tests/data/lexer
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-18 10:13:34 +0100
committerAleksey Kladov <[email protected]>2018-08-18 10:13:34 +0100
commita5eeef0eeed092cb663afc3b0cda2c0df0c7e793 (patch)
tree21b328cfe466870edf586ca58a115e1171b2f54f /crates/libsyntax2/tests/data/lexer
parentc7b1be6be345f97d6c4fd9ff3c51a94fb817fa56 (diff)
better char lexing
Diffstat (limited to 'crates/libsyntax2/tests/data/lexer')
-rw-r--r--crates/libsyntax2/tests/data/lexer/0006_chars.rs2
-rw-r--r--crates/libsyntax2/tests/data/lexer/0006_chars.txt10
2 files changed, 11 insertions, 1 deletions
diff --git a/crates/libsyntax2/tests/data/lexer/0006_chars.rs b/crates/libsyntax2/tests/data/lexer/0006_chars.rs
index 03598d908..454ee0a5f 100644
--- a/crates/libsyntax2/tests/data/lexer/0006_chars.rs
+++ b/crates/libsyntax2/tests/data/lexer/0006_chars.rs
@@ -1 +1 @@
'x' ' ' '0' 'x' ' ' '0' 'hello' '\x7f' '\n' '\\' '\''
diff --git a/crates/libsyntax2/tests/data/lexer/0006_chars.txt b/crates/libsyntax2/tests/data/lexer/0006_chars.txt
index ecaf22355..950954fbc 100644
--- a/crates/libsyntax2/tests/data/lexer/0006_chars.txt
+++ b/crates/libsyntax2/tests/data/lexer/0006_chars.txt
@@ -3,4 +3,14 @@ WHITESPACE 1 " "
3CHAR 3 "\' \'" 3CHAR 3 "\' \'"
4WHITESPACE 1 " " 4WHITESPACE 1 " "
5CHAR 3 "\'0\'" 5CHAR 3 "\'0\'"
6WHITESPACE 1 " "
7CHAR 7 "\'hello\'"
8WHITESPACE 1 " "
9CHAR 6 "\'\\x7f\'"
10WHITESPACE 1 " "
11CHAR 4 "\'\\n\'"
12WHITESPACE 1 " "
13CHAR 4 "\'\\\\\'"
14WHITESPACE 1 " "
15CHAR 4 "\'\\\'\'"
6WHITESPACE 1 "\n" 16WHITESPACE 1 "\n"