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