Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make IDL commas whitespace and newlines optional
Commas are now treated as whitespace to reduce visual noise in models, reduce diff noise when changes are made to models, and prevent modelers from worrying about tricks like trailing commas. Commas are still allowed because they do make traits and JSON-like node values defined on a single line easier to read; however, they should be omitted everywhere else. The IDL previously required a newline after various statements. This wasn't grammatically necessary, but was done to force good practice in models. However, it added complexity to the grammar and parser. While models should still define all statements on different lines, to simplify parsers and the grammar, a new line after statements is no longer required.
- Loading branch information