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