Block-aware formatting
Formatting follows Nginx statement boundaries. A directive ending in a semicolon remains a statement, while an opening brace starts a nested context and its matching closing brace returns to the parent indentation. The tool also sorts directives. Review the resulting order whenever a block contains repeated directives or sequence-sensitive rules, especially around access and rewrite logic.