diff options
Diffstat (limited to 'docs/syntax/index.md')
| -rw-r--r-- | docs/syntax/index.md | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/syntax/index.md b/docs/syntax/index.md index fa47202..fe97143 100644 --- a/docs/syntax/index.md +++ b/docs/syntax/index.md @@ -122,6 +122,8 @@ Type[arg] A list of statements between `{}` separated by `;` or `\n` associated with a conditional +Arguments are specified with a `[]` at the beginning of the `{}` + ## Conditionals #### Loop `@` @@ -129,11 +131,11 @@ A list of statements between `{}` separated by `;` or `\n` associated with a co ```text @ condition { statements } -@ condition { statements }[args] +@ condition {[args] statements } -@ condition { statements }[.name] +@ condition {[.name] statements } -@ condition { statements }[.name; args] +@ condition {[.name; args] statements } ``` #### If `?` @@ -146,7 +148,7 @@ A list of statements between `{}` separated by `;` or `\n` associated with a co { default statements } } -? condition { arg; .... }[arg] +? condition {[arg] arg; .... } ``` #### Match `#` @@ -154,7 +156,7 @@ A list of statements between `{}` separated by `;` or `\n` associated with a co ```text # match { target { statements } - target { statements }[args] + target {[args] statements } { default statements } } ``` @@ -162,5 +164,5 @@ A list of statements between `{}` separated by `;` or `\n` associated with a co #### Mutation `^` ```test -^ mutation { statements }[args] +^ mutation {[args] statements } ``` |
