Skip to content

Commit 99c4afd

Browse files
authored
update comments to better describe what's going on (#13348)
1 parent 19c8fe3 commit 99c4afd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/tailwindcss/src/css-parser.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,12 @@ export function parse(input: string) {
305305
parent.nodes.push(node)
306306
}
307307

308-
// Push the current node to the stack and make it the new parent.
308+
// Push the parent node to the stack, so that we can go back once the
309+
// nested nodes are done.
309310
stack.push(parent)
311+
312+
// Make the current node the new parent, so that nested nodes can be
313+
// attached to it.
310314
parent = node
311315

312316
// Reset the state for the next node.

0 commit comments

Comments
 (0)