diff options
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/lexer/0005_symbols.txt | 2 | ||||
-rw-r--r-- | tests/data/parser/ok/0006_inner_attributes.rs | 10 | ||||
-rw-r--r-- | tests/data/parser/ok/0006_inner_attributes.txt | 135 |
3 files changed, 146 insertions, 1 deletions
diff --git a/tests/data/lexer/0005_symbols.txt b/tests/data/lexer/0005_symbols.txt index ebb41accd..0f99c24cd 100644 --- a/tests/data/lexer/0005_symbols.txt +++ b/tests/data/lexer/0005_symbols.txt | |||
@@ -58,7 +58,7 @@ EQ 1 "=" | |||
58 | WHITESPACE 1 " " | 58 | WHITESPACE 1 " " |
59 | FAT_ARROW 2 "=>" | 59 | FAT_ARROW 2 "=>" |
60 | WHITESPACE 1 "\n" | 60 | WHITESPACE 1 "\n" |
61 | NOT 1 "!" | 61 | EXCL 1 "!" |
62 | WHITESPACE 1 " " | 62 | WHITESPACE 1 " " |
63 | NEQ 2 "!=" | 63 | NEQ 2 "!=" |
64 | WHITESPACE 1 "\n" | 64 | WHITESPACE 1 "\n" |
diff --git a/tests/data/parser/ok/0006_inner_attributes.rs b/tests/data/parser/ok/0006_inner_attributes.rs new file mode 100644 index 000000000..e81f8b1e8 --- /dev/null +++ b/tests/data/parser/ok/0006_inner_attributes.rs | |||
@@ -0,0 +1,10 @@ | |||
1 | #![attr] | ||
2 | #![attr(true)] | ||
3 | #![attr(ident)] | ||
4 | #![attr(ident, 100, true, "true", ident = 100, ident = "hello", ident(100))] | ||
5 | #![attr(100)] | ||
6 | #![attr(enabled = true)] | ||
7 | #![enabled(true)] | ||
8 | #![attr("hello")] | ||
9 | #![repr(C, align = 4)] | ||
10 | #![repr(C, align(4))] \ No newline at end of file | ||
diff --git a/tests/data/parser/ok/0006_inner_attributes.txt b/tests/data/parser/ok/0006_inner_attributes.txt new file mode 100644 index 000000000..c837979d1 --- /dev/null +++ b/tests/data/parser/ok/0006_inner_attributes.txt | |||
@@ -0,0 +1,135 @@ | |||
1 | FILE@[0; 236) | ||
2 | ERROR@[0; 236) | ||
3 | err: `expected item` | ||
4 | POUND@[0; 1) | ||
5 | EXCL@[1; 2) | ||
6 | L_BRACK@[2; 3) | ||
7 | IDENT@[3; 7) | ||
8 | R_BRACK@[7; 8) | ||
9 | WHITESPACE@[8; 9) | ||
10 | POUND@[9; 10) | ||
11 | EXCL@[10; 11) | ||
12 | L_BRACK@[11; 12) | ||
13 | IDENT@[12; 16) | ||
14 | L_PAREN@[16; 17) | ||
15 | IDENT@[17; 21) | ||
16 | R_PAREN@[21; 22) | ||
17 | R_BRACK@[22; 23) | ||
18 | WHITESPACE@[23; 24) | ||
19 | POUND@[24; 25) | ||
20 | EXCL@[25; 26) | ||
21 | L_BRACK@[26; 27) | ||
22 | IDENT@[27; 31) | ||
23 | L_PAREN@[31; 32) | ||
24 | IDENT@[32; 37) | ||
25 | R_PAREN@[37; 38) | ||
26 | R_BRACK@[38; 39) | ||
27 | WHITESPACE@[39; 40) | ||
28 | POUND@[40; 41) | ||
29 | EXCL@[41; 42) | ||
30 | L_BRACK@[42; 43) | ||
31 | IDENT@[43; 47) | ||
32 | L_PAREN@[47; 48) | ||
33 | IDENT@[48; 53) | ||
34 | COMMA@[53; 54) | ||
35 | WHITESPACE@[54; 55) | ||
36 | INT_NUMBER@[55; 58) | ||
37 | COMMA@[58; 59) | ||
38 | WHITESPACE@[59; 60) | ||
39 | IDENT@[60; 64) | ||
40 | COMMA@[64; 65) | ||
41 | WHITESPACE@[65; 66) | ||
42 | STRING@[66; 72) | ||
43 | COMMA@[72; 73) | ||
44 | WHITESPACE@[73; 74) | ||
45 | IDENT@[74; 79) | ||
46 | WHITESPACE@[79; 80) | ||
47 | EQ@[80; 81) | ||
48 | WHITESPACE@[81; 82) | ||
49 | INT_NUMBER@[82; 85) | ||
50 | COMMA@[85; 86) | ||
51 | WHITESPACE@[86; 87) | ||
52 | IDENT@[87; 92) | ||
53 | WHITESPACE@[92; 93) | ||
54 | EQ@[93; 94) | ||
55 | WHITESPACE@[94; 95) | ||
56 | STRING@[95; 102) | ||
57 | COMMA@[102; 103) | ||
58 | WHITESPACE@[103; 104) | ||
59 | IDENT@[104; 109) | ||
60 | L_PAREN@[109; 110) | ||
61 | INT_NUMBER@[110; 113) | ||
62 | R_PAREN@[113; 114) | ||
63 | R_PAREN@[114; 115) | ||
64 | R_BRACK@[115; 116) | ||
65 | WHITESPACE@[116; 117) | ||
66 | POUND@[117; 118) | ||
67 | EXCL@[118; 119) | ||
68 | L_BRACK@[119; 120) | ||
69 | IDENT@[120; 124) | ||
70 | L_PAREN@[124; 125) | ||
71 | INT_NUMBER@[125; 128) | ||
72 | R_PAREN@[128; 129) | ||
73 | R_BRACK@[129; 130) | ||
74 | WHITESPACE@[130; 131) | ||
75 | POUND@[131; 132) | ||
76 | EXCL@[132; 133) | ||
77 | L_BRACK@[133; 134) | ||
78 | IDENT@[134; 138) | ||
79 | L_PAREN@[138; 139) | ||
80 | IDENT@[139; 146) | ||
81 | WHITESPACE@[146; 147) | ||
82 | EQ@[147; 148) | ||
83 | WHITESPACE@[148; 149) | ||
84 | IDENT@[149; 153) | ||
85 | R_PAREN@[153; 154) | ||
86 | R_BRACK@[154; 155) | ||
87 | WHITESPACE@[155; 156) | ||
88 | POUND@[156; 157) | ||
89 | EXCL@[157; 158) | ||
90 | L_BRACK@[158; 159) | ||
91 | IDENT@[159; 166) | ||
92 | L_PAREN@[166; 167) | ||
93 | IDENT@[167; 171) | ||
94 | R_PAREN@[171; 172) | ||
95 | R_BRACK@[172; 173) | ||
96 | WHITESPACE@[173; 174) | ||
97 | POUND@[174; 175) | ||
98 | EXCL@[175; 176) | ||
99 | L_BRACK@[176; 177) | ||
100 | IDENT@[177; 181) | ||
101 | L_PAREN@[181; 182) | ||
102 | STRING@[182; 189) | ||
103 | R_PAREN@[189; 190) | ||
104 | R_BRACK@[190; 191) | ||
105 | WHITESPACE@[191; 192) | ||
106 | POUND@[192; 193) | ||
107 | EXCL@[193; 194) | ||
108 | L_BRACK@[194; 195) | ||
109 | IDENT@[195; 199) | ||
110 | L_PAREN@[199; 200) | ||
111 | IDENT@[200; 201) | ||
112 | COMMA@[201; 202) | ||
113 | WHITESPACE@[202; 203) | ||
114 | IDENT@[203; 208) | ||
115 | WHITESPACE@[208; 209) | ||
116 | EQ@[209; 210) | ||
117 | WHITESPACE@[210; 211) | ||
118 | INT_NUMBER@[211; 212) | ||
119 | R_PAREN@[212; 213) | ||
120 | R_BRACK@[213; 214) | ||
121 | WHITESPACE@[214; 215) | ||
122 | POUND@[215; 216) | ||
123 | EXCL@[216; 217) | ||
124 | L_BRACK@[217; 218) | ||
125 | IDENT@[218; 222) | ||
126 | L_PAREN@[222; 223) | ||
127 | IDENT@[223; 224) | ||
128 | COMMA@[224; 225) | ||
129 | WHITESPACE@[225; 226) | ||
130 | IDENT@[226; 231) | ||
131 | L_PAREN@[231; 232) | ||
132 | INT_NUMBER@[232; 233) | ||
133 | R_PAREN@[233; 234) | ||
134 | R_PAREN@[234; 235) | ||
135 | R_BRACK@[235; 236) | ||