Differences from Taplo
Taplo is already famous as a TOML Language Server. However, I rewrote a new Language Server for the following purposes.
Magic Trailing Comma
Formatter inspired by Python's Black (Support for magic trailing comma)
This idea is great, it allows the user's code formatting intent to be expressed in code, not in a configuration.
I wanted to bring this idea to TOML.
Support for TOML v1.1.0 (preview)
TOML will allow multi-line inline tables and trailing commas in the future v1.1.0.
This feature makes the magic trailing comma feature more valuable.
To provide that experience, Tombi will support TOML v1.1.0 features ahead of time.
Stable Behavior Formatting
Taplo has a fundamental problem with the lexer.
When formatting an incomplete TOML file, the AST deletes elements.
Tombi does not format invalid syntax.