docs: update collapse patterns documentation in AGENTS.md
This commit is contained in:
@@ -215,9 +215,15 @@ local options = {
|
|||||||
3. Now toggle/expand works correctly
|
3. Now toggle/expand works correctly
|
||||||
|
|
||||||
### Default Collapse Patterns
|
### Default Collapse Patterns
|
||||||
- `^%s*{%s*EXTERNAL` - Variable attributes: `{EXTERNALACCESSIBLE := 'false'; ...}`
|
The `:SCLCollapseAllAttrBlocks` command uses case-insensitive patterns:
|
||||||
- `^%s*{ S7_` - Block attributes: `{ S7_Optimized_Access := 'TRUE' }`
|
- `EXTERNAL` - Variable attributes: `{EXTERNALACCESSIBLE := 'false'; EXTERNALVISIBLE := 'false'}`
|
||||||
- `^%s*{%s*%w+%s*:=` - Generic attributes with assignments
|
- `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
|
### Per-Variable Collapse Rules
|
||||||
Control collapsing per variable using rules (evaluated before global patterns):
|
Control collapsing per variable using rules (evaluated before global patterns):
|
||||||
|
|||||||
Reference in New Issue
Block a user