add threshold attribute to WHILE tag

This commit is contained in:
2026-08-19 14:12:26 +02:00
parent 15422cca1f
commit 300864a15e
7 changed files with 61 additions and 25 deletions
+22 -21
View File
@@ -16,7 +16,7 @@ Syntax highlighting and language support for **EFTL (ElixForms Template Language
- `[EFTL]...[/EFTL]` - Main EFTL block
- `[VAR name="..." type="..."]...[/VAR]` - Variable declarations
- `[IF]...[/IF]` - Conditionals
- `[WHILE]...[/WHILE]` - Loops
- `[WHILE threshold="..."]...[/WHILE]` - Loops with an optional string threshold
### Expressions
@@ -40,7 +40,7 @@ Syntax highlighting and language support for **EFTL (ElixForms Template Language
### Control Structures
- `[IF]`, `[CONDITION]`, `[THEN]`, `[ELSE]`, `[ELSE IF]`
- `[WHILE]`, `[DO]`
- `[WHILE]`, `[WHILE threshold="..."]`, `[DO]`
### Comments
@@ -105,25 +105,26 @@ If you want to debug the extension or the language server:
## Snippets
| Prefix | Description |
| ----------- | ---------------------- |
| `eftl` | EFTL block with header |
| `var` | Variable declaration |
| `vartag` | Variable from TAG |
| `varschema` | Variable from SCHEMAID |
| `if` | IF statement |
| `ifelse` | IF-ELSE statement |
| `while` | WHILE loop |
| `split` | Split function |
| `trim` | Trim function |
| `valueof` | VALUE_OF function |
| `sizeof` | SIZE_OF function |
| `contains` | CONTAINS function |
| `formatnum` | Format number |
| `tag` | GETVALUEBYTAG tag |
| `schema` | SCHEMAID tag |
| `out` | Output expression |
| `comment` | Comment block |
| Prefix | Description |
| ---------------- | ------------------------- |
| `eftl` | EFTL block with header |
| `var` | Variable declaration |
| `vartag` | Variable from TAG |
| `varschema` | Variable from SCHEMAID |
| `if` | IF statement |
| `ifelse` | IF-ELSE statement |
| `while` | WHILE loop |
| `whilethreshold` | WHILE loop with threshold |
| `split` | Split function |
| `trim` | Trim function |
| `valueof` | VALUE_OF function |
| `sizeof` | SIZE_OF function |
| `contains` | CONTAINS function |
| `formatnum` | Format number |
| `tag` | GETVALUEBYTAG tag |
| `schema` | SCHEMAID tag |
| `out` | Output expression |
| `comment` | Comment block |
## Example