Fix small issues in docs

This commit is contained in:
Stone_Red
2026-03-05 01:56:28 +01:00
parent 8a15040baa
commit 7bad3dcbc2
3 changed files with 15 additions and 14 deletions
+11 -11
View File
@@ -18,17 +18,17 @@ If you pass a file path, it is loaded on startup.
## Command mode commands ## Command mode commands
| Command | Description | | Command | Description |
| --------------------- | --------------------------------------------------------- | | --------------------- | ------------------------------------------------------------------- |
| `edit` | Switch to edit mode | | `edit` | Switch to edit mode |
| `line <n>` | Jump to line `n` and switch to edit mode | | `line <n>` | Jump to line `n` and switch to edit mode |
| `save [path]` | Save to current path or a new path | | `save [path]` | Save to current path or a new path |
| `load <path>` | Load a file | | `load <path>` | Load a file |
| `new` | Create new file | | `new` | Create new file |
| `format` | Auto-format indentation | | `format` | Auto-format indentation |
| `run [path]` | Run script | | `run [path]` | Save then run script (runs unsaved buffer if no path is set) |
| `debug [path] [step]` | Run in debug mode (`step` enables step-by-step execution) | | `debug [path] [step]` | Save then run in debug mode (`step` enables step-by-step execution) |
| `exit` | Close the editor | | `exit` | Close the editor |
## Edit mode controls ## Edit mode controls
+3 -2
View File
@@ -311,7 +311,7 @@ goto <name>
``` ```
`label` marks a target. `goto` performs an unconditional jump to that label. `label` marks a target. `goto` performs an unconditional jump to that label.
Labels are scoped to the current function; you cannot jump to a label outside the calling function. At the top level, labels are file-scoped — you can jump to any label in the file. Inside a function, labels are restricted to the current function; you cannot jump to a label outside the calling function.
```ynt ```ynt
label loop: label loop:
@@ -618,7 +618,8 @@ to return to the caller instead of terminating that execution flow with `exit`.
sleep <milliseconds> sleep <milliseconds>
``` ```
Pauses execution for the given number of milliseconds. Respects cancellation: if the script is Pauses execution for the given number of milliseconds. The argument must be a whole-number integer.
Respects cancellation: if the script is
stopped (e.g. via `abort_all` from another task), `sleep` returns early. stopped (e.g. via `abort_all` from another task), `sleep` returns early.
```ynt ```ynt
+1 -1
View File
@@ -163,7 +163,7 @@ interpreter.AddStatement(attr, args => Console.WriteLine($"[LOG] {args}"));
| `End` | A space must follow the keyword | | `End` | A space must follow the keyword |
| `StartEnd` | Spaces required on both sides | | `StartEnd` | Spaces required on both sides |
Custom statements run at `Priority.Normal` by default. Lower priority values run first. Custom statements run at `Priority.Normal` by default. Statements with a higher-ranking enum member (`PreProcessing``Highest` → … → `VeryLow`) run first; `VeryLow` runs last.
Use `StatementAttribute.Priority` to control ordering relative to built-in statements. Use `StatementAttribute.Priority` to control ordering relative to built-in statements.
--- ---