Skip to content

Commit 27ba2e1

Browse files
committed
Copy changes from internal/syntax to reference/syntax
1 parent 2c459cd commit 27ba2e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/_docs/reference/syntax.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,10 @@ TypeCaseClauses ::= TypeCaseClause { TypeCaseClause }
306306
TypeCaseClause ::= ‘case’ (InfixType | ‘_’) ‘=>’ Type [semi]
307307
308308
Pattern ::= Pattern1 { ‘|’ Pattern1 }
309-
Pattern1 ::= Pattern2 [‘:’ RefinedType]
309+
Pattern1 ::= PatVar ‘:’ RefinedType
310+
| [‘-’] integerLiteral ‘:’ RefinedType
311+
| [‘-’] floatingPointLiteral ‘:’ RefinedType
312+
| Pattern2
310313
Pattern2 ::= [id ‘@’] InfixPattern [‘*’]
311314
InfixPattern ::= SimplePattern { id [nl] SimplePattern }
312315
SimplePattern ::= PatVar

0 commit comments

Comments
 (0)