diff options
author | Aleksey Kladov <[email protected]> | 2018-08-18 10:13:34 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-18 10:13:34 +0100 |
commit | a5eeef0eeed092cb663afc3b0cda2c0df0c7e793 (patch) | |
tree | 21b328cfe466870edf586ca58a115e1171b2f54f /crates/libsyntax2/tests/data | |
parent | c7b1be6be345f97d6c4fd9ff3c51a94fb817fa56 (diff) |
better char lexing
Diffstat (limited to 'crates/libsyntax2/tests/data')
-rw-r--r-- | crates/libsyntax2/tests/data/lexer/0006_chars.rs | 2 | ||||
-rw-r--r-- | crates/libsyntax2/tests/data/lexer/0006_chars.txt | 10 |
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 " " | |||
3 | CHAR 3 "\' \'" | 3 | CHAR 3 "\' \'" |
4 | WHITESPACE 1 " " | 4 | WHITESPACE 1 " " |
5 | CHAR 3 "\'0\'" | 5 | CHAR 3 "\'0\'" |
6 | WHITESPACE 1 " " | ||
7 | CHAR 7 "\'hello\'" | ||
8 | WHITESPACE 1 " " | ||
9 | CHAR 6 "\'\\x7f\'" | ||
10 | WHITESPACE 1 " " | ||
11 | CHAR 4 "\'\\n\'" | ||
12 | WHITESPACE 1 " " | ||
13 | CHAR 4 "\'\\\\\'" | ||
14 | WHITESPACE 1 " " | ||
15 | CHAR 4 "\'\\\'\'" | ||
6 | WHITESPACE 1 "\n" | 16 | WHITESPACE 1 "\n" |