diff options
author | Aleksey Kladov <[email protected]> | 2018-08-22 11:22:06 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-22 11:22:06 +0100 |
commit | a4f140b0f3fa0e1fcedb2c8472e5bb6cbf051684 (patch) | |
tree | 10e5a08a721a4d9716d518e87b360179202efc92 /crates/libsyntax2/tests/data/lexer | |
parent | e8dfb92641f64b772204d7670c7286cb9b8b398b (diff) |
no escape
Diffstat (limited to 'crates/libsyntax2/tests/data/lexer')
6 files changed, 10 insertions, 1 deletions
diff --git a/crates/libsyntax2/tests/data/lexer/0009_strings.rs b/crates/libsyntax2/tests/data/lexer/0009_strings.rs index 7b7faa5d8..4ddb5bffc 100644 --- a/crates/libsyntax2/tests/data/lexer/0009_strings.rs +++ b/crates/libsyntax2/tests/data/lexer/0009_strings.rs | |||
@@ -1 +1,2 @@ | |||
1 | "hello" r"world" | 1 | "hello" r"world" "\n\"\\no escape" "multi |
2 | line" | ||
diff --git a/crates/libsyntax2/tests/data/lexer/0009_strings.txt b/crates/libsyntax2/tests/data/lexer/0009_strings.txt index 7fb6b7b36..4cb4d711d 100644 --- a/crates/libsyntax2/tests/data/lexer/0009_strings.txt +++ b/crates/libsyntax2/tests/data/lexer/0009_strings.txt | |||
@@ -1,4 +1,8 @@ | |||
1 | STRING 7 "\"hello\"" | 1 | STRING 7 "\"hello\"" |
2 | WHITESPACE 1 " " | 2 | WHITESPACE 1 " " |
3 | RAW_STRING 8 "r\"world\"" | 3 | RAW_STRING 8 "r\"world\"" |
4 | WHITESPACE 1 " " | ||
5 | STRING 17 "\"\\n\\\"\\\\no escape\"" | ||
6 | WHITESPACE 1 " " | ||
7 | STRING 12 "\"multi\nline\"" | ||
4 | WHITESPACE 1 "\n" | 8 | WHITESPACE 1 "\n" |
diff --git a/crates/libsyntax2/tests/data/lexer/0014_unclosed_char.rs b/crates/libsyntax2/tests/data/lexer/0014_unclosed_char.rs new file mode 100644 index 000000000..9c0007077 --- /dev/null +++ b/crates/libsyntax2/tests/data/lexer/0014_unclosed_char.rs | |||
@@ -0,0 +1 @@ | |||
'1 \ No newline at end of file | |||
diff --git a/crates/libsyntax2/tests/data/lexer/0014_unclosed_char.txt b/crates/libsyntax2/tests/data/lexer/0014_unclosed_char.txt new file mode 100644 index 000000000..812dfbc18 --- /dev/null +++ b/crates/libsyntax2/tests/data/lexer/0014_unclosed_char.txt | |||
@@ -0,0 +1 @@ | |||
CHAR 2 "\'1" | |||
diff --git a/crates/libsyntax2/tests/data/lexer/0015_unclosed_string.rs b/crates/libsyntax2/tests/data/lexer/0015_unclosed_string.rs new file mode 100644 index 000000000..d771a26d4 --- /dev/null +++ b/crates/libsyntax2/tests/data/lexer/0015_unclosed_string.rs | |||
@@ -0,0 +1 @@ | |||
"hello | |||
diff --git a/crates/libsyntax2/tests/data/lexer/0015_unclosed_string.txt b/crates/libsyntax2/tests/data/lexer/0015_unclosed_string.txt new file mode 100644 index 000000000..728c40b66 --- /dev/null +++ b/crates/libsyntax2/tests/data/lexer/0015_unclosed_string.txt | |||
@@ -0,0 +1 @@ | |||
STRING 7 "\"hello\n" | |||