Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94d842a

Browse files
authored
Update spec/syntax.md
1 parent 3e48fa6 commit 94d842a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/syntax.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ Selector ::= 'match' ( '{' Expression '}' )+
238238

239239
Examples:
240240

241+
```
242+
match {$count :plural}
243+
when 1 [One apple]
244+
when * [{$count} apples]
245+
```
246+
241247
```
242248
let $frac = {$count: number minFractionDigits=2}
243249
match {$frac}

0 commit comments

Comments
 (0)