Formatting Rules
This section defines all formatting rules for yx format. Rules are categorized by topic as follows:
Basic Rules
- Basic Formatting Rules — Indentation, line width, operators, code blocks
Functions
- Function-related Rules — Function definitions, function calls, lambda expressions
Type System
- Type System Rules — Type annotations, references and borrowing, type conversions
Data Structures
- Data Structure Rules — Literals, lists and dictionaries, match expressions
Control Flow
- Control Flow Rules — if/else if/else, for loops, while loops, loop labels
Special Syntax
- Special Syntax Rules — F-Strings, import statements, error handling, unsafe blocks
