Skip to content

Commit ae79a8a

Browse files
committed
Clarify regular and soft keywords keywords in syntax.md
1 parent 2e72be4 commit ae79a8a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/docs/internals/syntax.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,23 @@ nl ::= “new line character”
8686
semi ::= ‘;’ | nl {nl}
8787
```
8888

89+
## Keywords
90+
91+
### Regular keywords
92+
93+
```
94+
abstract case catch class def do else enum
95+
erased extends false final finally for if implicit
96+
import lazy match new null object package private
97+
protected override return super sealed then throw trait
98+
true try type val var while with yield
99+
: = <- => <: :> # @
100+
```
101+
102+
### Soft keywords
103+
104+
derives inline opaque
105+
~ * | & + -
89106

90107
## Context-free Syntax
91108

0 commit comments

Comments
 (0)