TIL Rust has an ambiguity `if Foo {}` -- is `Foo` a value of type bool, or a struct?
Rust solves this by defining a grammar production 'any expression except struct literals' and using it in this position.
I've released difftastic 0.46! In this release:
* Ada support
* Support for Arduino C++, better TOML handling, and a ton of upstream grammar updates
* Fixed several nasty corner cases with trailing whitespace or binary/UTF-16 confusion
I'm adding Erlang support for difftastic! The basic diffing works, but I'm still tweaking syntax highlighting.
The grammar distinguishes between "strings" and 'atoms', but I'm not sure if I should highlight both the same way.