Make end_func the only func ending block

This commit is contained in:
Stone_Red
2026-08-07 01:03:00 +02:00
parent 6bc5d01a2e
commit a5f9c5a178
6 changed files with 93 additions and 12 deletions
+2 -1
View File
@@ -47,6 +47,7 @@ If you pass a file path, it is loaded on startup.
## Formatter behavior (quick summary)
- Indents `func`, `if`, `else`, and `while` blocks.
- Dedents on `return`, `end_func`, `end_if`, and `end_while`.
- Dedents on `end_func`, `end_if`, and `end_while`.
- `return` / `return <value>` are regular body statements and stay indented with the block they are in.
- `exit` / `throw` / `error` close active non-function blocks for following lines.
- Comment lines (`# ...`) are kept unindented.