name: bsl-format description: Format or reformat 1C:Enterprise BSL (.bsl) code to match my style. Use when asked to format BSL files or snippets in this repo, or to normalize indentation/spacing/keyword casing for BSL.
BSL Format
Overview
Apply the project BSL style to files or snippets while preserving behavior and content.
Workflow
- Identify the target style for the file.
- Default to the project style in
references/style.md.
- Default to the project style in
- Apply formatting rules: indentation, spacing, keyword casing, semicolons, wrapping, and blank lines.
- Preserve semantics: do not change strings, query text, comments, or logic; only adjust formatting/casing.
- Re-scan for consistency (tabs, parentheses spacing, keyword casing) and fix any drift.
Reference
Read references/style.md before formatting to ensure the rules match this repository.