diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-07 17:43:10 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-07 17:43:10 +0100 |
commit | d3efedb752bb2198796603d8a479a5e3ee472a97 (patch) | |
tree | ca6a4aee6ad4077a869a932a18c6c8d134406f8c /crates/ra_syntax/tests | |
parent | ef782adc293deb287128f005dbab2038ba3ccdc1 (diff) | |
parent | 313314e14b629ebf50389dbd2d440bda922f6ae7 (diff) |
Merge #1253
1253: Share literal validation logic with compiler r=matklad a=matklad
This is neat: the unescape module is literary what compiler is using right now:
https://github.com/rust-lang/rust/blob/c6ac57564852cb6e2d0db60f7b46d9eb98d4b449/src/libsyntax/parse/unescape.rs
So, yeah, code sharing via copy-paste!
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/tests')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/err/0030_string_suffixes.txt | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/crates/ra_syntax/tests/data/parser/err/0030_string_suffixes.txt b/crates/ra_syntax/tests/data/parser/err/0030_string_suffixes.txt index 61a28134a..e0e38d37d 100644 --- a/crates/ra_syntax/tests/data/parser/err/0030_string_suffixes.txt +++ b/crates/ra_syntax/tests/data/parser/err/0030_string_suffixes.txt | |||
@@ -40,7 +40,6 @@ SOURCE_FILE@[0; 112) | |||
40 | WHITESPACE@[43; 44) " " | 40 | WHITESPACE@[43; 44) " " |
41 | LITERAL@[44; 59) | 41 | LITERAL@[44; 59) |
42 | STRING@[44; 59) "\"string\"invalid" | 42 | STRING@[44; 59) "\"string\"invalid" |
43 | err: `Invalid literal suffix` | ||
44 | SEMI@[59; 60) ";" | 43 | SEMI@[59; 60) ";" |
45 | WHITESPACE@[60; 65) "\n " | 44 | WHITESPACE@[60; 65) "\n " |
46 | LET_STMT@[65; 83) | 45 | LET_STMT@[65; 83) |
@@ -53,7 +52,6 @@ SOURCE_FILE@[0; 112) | |||
53 | WHITESPACE@[72; 73) " " | 52 | WHITESPACE@[72; 73) " " |
54 | LITERAL@[73; 82) | 53 | LITERAL@[73; 82) |
55 | BYTE@[73; 82) "b\'b\'_suff" | 54 | BYTE@[73; 82) "b\'b\'_suff" |
56 | err: `Invalid literal suffix` | ||
57 | SEMI@[82; 83) ";" | 55 | SEMI@[82; 83) ";" |
58 | WHITESPACE@[83; 88) "\n " | 56 | WHITESPACE@[83; 88) "\n " |
59 | LET_STMT@[88; 109) | 57 | LET_STMT@[88; 109) |
@@ -66,7 +64,6 @@ SOURCE_FILE@[0; 112) | |||
66 | WHITESPACE@[95; 96) " " | 64 | WHITESPACE@[95; 96) " " |
67 | LITERAL@[96; 108) | 65 | LITERAL@[96; 108) |
68 | BYTE_STRING@[96; 108) "b\"bs\"invalid" | 66 | BYTE_STRING@[96; 108) "b\"bs\"invalid" |
69 | err: `Invalid literal suffix` | ||
70 | SEMI@[108; 109) ";" | 67 | SEMI@[108; 109) ";" |
71 | WHITESPACE@[109; 110) "\n" | 68 | WHITESPACE@[109; 110) "\n" |
72 | R_CURLY@[110; 111) "}" | 69 | R_CURLY@[110; 111) "}" |