From 5282385e798f80e0b1299a5f0d68011bd6c26828 Mon Sep 17 00:00:00 2001 From: Lazar Bulovan Date: Fri, 20 Feb 2026 23:53:55 +0100 Subject: [PATCH] docs: update collapse patterns documentation in AGENTS.md --- AGENTS.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 94cd132..b184e27 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -215,9 +215,15 @@ local options = { 3. Now toggle/expand works correctly ### Default Collapse Patterns -- `^%s*{%s*EXTERNAL` - Variable attributes: `{EXTERNALACCESSIBLE := 'false'; ...}` -- `^%s*{ S7_` - Block attributes: `{ S7_Optimized_Access := 'TRUE' }` -- `^%s*{%s*%w+%s*:=` - Generic attributes with assignments +The `:SCLCollapseAllAttrBlocks` command uses case-insensitive patterns: +- `EXTERNAL` - Variable attributes: `{EXTERNALACCESSIBLE := 'false'; EXTERNALVISIBLE := 'false'}` +- `S7_` - Block attributes: `{S7_Optimized_Access := 'TRUE'}` +- `NonRetain` - NonRetain attribute: `{NonRetain}` +- `Retain` - Retain attribute: `{Retain}` +- `%w+ :=` - Generic attributes with assignments: `{key := 'value'}` +- `%w+` - Single word attributes: `{SomeAttribute}` + +Works in `.scl`, `.udt`, and `.db` files. ### Per-Variable Collapse Rules Control collapsing per variable using rules (evaluated before global patterns):