Skip to content

Commit

Permalink
Update grammar.txt with func and as (nim-lang#14147) [backport]
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn authored and EchoPouet committed Jun 13, 2020
1 parent b59ba21 commit 47450ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/grammar.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ colon = ':' COMMENT?
colcom = ':' COMMENT?
operator = OP0 | OP1 | OP2 | OP3 | OP4 | OP5 | OP6 | OP7 | OP8 | OP9
| 'or' | 'xor' | 'and'
| 'is' | 'isnot' | 'in' | 'notin' | 'of'
| 'is' | 'isnot' | 'in' | 'notin' | 'of' | 'as'
| 'div' | 'mod' | 'shl' | 'shr' | 'not' | 'static' | '..'
prefixOperator = operator
optInd = COMMENT? IND?
Expand Down Expand Up @@ -193,6 +193,7 @@ complexOrSimpleStmt = (ifStmt | whenStmt | whileStmt
| tryStmt | forStmt
| blockStmt | staticStmt | deferStmt | asmStmt
| 'proc' routine
| 'func' routine
| 'method' routine
| 'iterator' routine
| 'macro' routine
Expand Down

0 comments on commit 47450ff

Please sign in to comment.