Commit 5b4571f
committed
Parse arguments for pseudo-class functions
so that the AST doesn't just contain tokens. Previously the arguments
were something like
```
[(ident-token "div"),
(comma-token),
(whitespace-token " "),
(ident-token "span"),
(delim-token "."),
(ident-token "wide"),
(comma-token),
(whitespace-token " "),
(delim-token "."),
(ident-token "hidden")]
```
Now those tokens will be represented in the AST as
```
[(type-selector (wqname (ident-token "div"))),
(compound-selector
(type (type-selector (wqname (ident-token "span"))))
(subclasses
(class-selector (ident-token "wide"))
)
(pseudo-elements)
),
(class-selector (ident-token "hidden"))]
```1 parent c152737 commit 5b4571f
2 files changed
+30
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
| 512 | + | |
| 513 | + | |
513 | 514 | | |
514 | 515 | | |
515 | 516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 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 | + | |
101 | 128 | | |
102 | 129 | | |
103 | 130 | | |
| |||
208 | 235 | | |
209 | 236 | | |
210 | 237 | | |
211 | | - | |
212 | 238 | | |
213 | 239 | | |
214 | 240 | | |
| |||
0 commit comments