ruuda / rcl

A reasonable configuration language
https://rcl-lang.org
Apache License 2.0
197 stars 8 forks source link

Add support for magic trailing comma in the formatter #56

Closed ruuda closed 4 months ago

ruuda commented 4 months ago

Inspired by Black’s magic trailing comma, this is actually very useful for real-world cases. For example, the GitHub Actions example benefits from this.

Adding this forced creating a reusable data structure for lists of things, which also resolves one to-do where the type expression parser would drop comments.