lukeed/tidyPublic

feat: add TOML formatter

Ports taplo 0.14.0: its lexer, its parser, which builds the same
tree as rowan, and its formatter. The lexer follows logos 0.12,
quirks included: when it backtracks out of a date, a time or an
exponent, the token is an INTEGER. It matches logos on 10M random
texts, and taplo on 22,158 of 22,167 runs over local repos; the
rest is a file with a byte order mark, which taplo rejects.
LELuke Edwards authored
0d87517Patch
Parent214c742
13 files changed+5504-1
StackedSplit
Cargo.toml+1 โˆ’1
crates/tidy/src/lib.rs+1 โˆ’0
crates/tidy/src/syntax.rs+8 โˆ’0
crates/tidy/src/toml/format.rs+615 โˆ’0
crates/tidy/src/toml/lexer.rs+479 โˆ’0
crates/tidy/src/toml/mod.rs+178 โˆ’0
crates/tidy/src/toml/parse.rs+596 โˆ’0
crates/tidy/src/toml/tree.rs+100 โˆ’0
crates/tidy/tests/toml.json+2522 โˆ’0
crates/tidy/tests/toml.rs+101 โˆ’0
tests/oracle/toml/Cargo.lock+577 โˆ’0
tests/oracle/toml/Cargo.toml+11 โˆ’0
tests/oracle/toml/src/main.rs+315 โˆ’0