|
2 jaren geleden | |
---|---|---|
.. | ||
src | 2 jaren geleden | |
tests | 2 jaren geleden | |
Cargo.toml | 3 jaren geleden | |
README.md | 2 jaren geleden |
This crate formats rsx! by parsing call bodies and pretty-printing them back out.
Sorted roughly in order of what's possible
div {
div {}
div {}
}
div
possible line break div div
string of possible items within a nesting div {
attr_pair
expr
text
comment
} a nesting is either a component or an element
idea: collect all items into a queue q
section {
div {
h1 { p { "asdasd" } }
h1 { p { "asdasd" } }
}
}
section {}
// space // space // space
3 - section 3 - section div 3 - section div h1 3 - section div h1 p 3 - section div h1 p text 3 - section 3 - section div 3 - section div h1 3 - section div h1 p 3 - section div h1 p text
block
Terms