diff options
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/ok')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/ok/0030_string_suffixes.rs | 6 | ||||
-rw-r--r-- | crates/ra_syntax/tests/data/parser/ok/0030_string_suffixes.txt | 63 |
2 files changed, 69 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/ok/0030_string_suffixes.rs b/crates/ra_syntax/tests/data/parser/ok/0030_string_suffixes.rs new file mode 100644 index 000000000..261aad1fb --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/ok/0030_string_suffixes.rs | |||
@@ -0,0 +1,6 @@ | |||
1 | fn main() { | ||
2 | let _ = 'c'u32; | ||
3 | let _ = "string"invalid; | ||
4 | let _ = b'b'_suff; | ||
5 | let _ = b"bs"invalid; | ||
6 | } | ||
diff --git a/crates/ra_syntax/tests/data/parser/ok/0030_string_suffixes.txt b/crates/ra_syntax/tests/data/parser/ok/0030_string_suffixes.txt new file mode 100644 index 000000000..4f7e809c5 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/ok/0030_string_suffixes.txt | |||
@@ -0,0 +1,63 @@ | |||
1 | SOURCE_FILE@[0; 112) | ||
2 | FN_DEF@[0; 111) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 7) | ||
6 | IDENT@[3; 7) "main" | ||
7 | PARAM_LIST@[7; 9) | ||
8 | L_PAREN@[7; 8) "(" | ||
9 | R_PAREN@[8; 9) ")" | ||
10 | WHITESPACE@[9; 10) " " | ||
11 | BLOCK@[10; 111) | ||
12 | L_CURLY@[10; 11) "{" | ||
13 | WHITESPACE@[11; 16) "\n " | ||
14 | LET_STMT@[16; 31) | ||
15 | LET_KW@[16; 19) "let" | ||
16 | WHITESPACE@[19; 20) " " | ||
17 | PLACEHOLDER_PAT@[20; 21) | ||
18 | UNDERSCORE@[20; 21) "_" | ||
19 | WHITESPACE@[21; 22) " " | ||
20 | EQ@[22; 23) "=" | ||
21 | WHITESPACE@[23; 24) " " | ||
22 | LITERAL@[24; 30) | ||
23 | CHAR@[24; 30) "\'c\'u32" | ||
24 | SEMI@[30; 31) ";" | ||
25 | WHITESPACE@[31; 36) "\n " | ||
26 | LET_STMT@[36; 60) | ||
27 | LET_KW@[36; 39) "let" | ||
28 | WHITESPACE@[39; 40) " " | ||
29 | PLACEHOLDER_PAT@[40; 41) | ||
30 | UNDERSCORE@[40; 41) "_" | ||
31 | WHITESPACE@[41; 42) " " | ||
32 | EQ@[42; 43) "=" | ||
33 | WHITESPACE@[43; 44) " " | ||
34 | LITERAL@[44; 59) | ||
35 | STRING@[44; 59) "\"string\"invalid" | ||
36 | SEMI@[59; 60) ";" | ||
37 | WHITESPACE@[60; 65) "\n " | ||
38 | LET_STMT@[65; 83) | ||
39 | LET_KW@[65; 68) "let" | ||
40 | WHITESPACE@[68; 69) " " | ||
41 | PLACEHOLDER_PAT@[69; 70) | ||
42 | UNDERSCORE@[69; 70) "_" | ||
43 | WHITESPACE@[70; 71) " " | ||
44 | EQ@[71; 72) "=" | ||
45 | WHITESPACE@[72; 73) " " | ||
46 | LITERAL@[73; 82) | ||
47 | BYTE@[73; 82) "b\'b\'_suff" | ||
48 | SEMI@[82; 83) ";" | ||
49 | WHITESPACE@[83; 88) "\n " | ||
50 | LET_STMT@[88; 109) | ||
51 | LET_KW@[88; 91) "let" | ||
52 | WHITESPACE@[91; 92) " " | ||
53 | PLACEHOLDER_PAT@[92; 93) | ||
54 | UNDERSCORE@[92; 93) "_" | ||
55 | WHITESPACE@[93; 94) " " | ||
56 | EQ@[94; 95) "=" | ||
57 | WHITESPACE@[95; 96) " " | ||
58 | LITERAL@[96; 108) | ||
59 | BYTE_STRING@[96; 108) "b\"bs\"invalid" | ||
60 | SEMI@[108; 109) ";" | ||
61 | WHITESPACE@[109; 110) "\n" | ||
62 | R_CURLY@[110; 111) "}" | ||
63 | WHITESPACE@[111; 112) "\n" | ||