diff options
author | hlaaftana <10591326+hlaaftana@users.noreply.github.com> | 2020-04-28 11:57:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 10:57:35 +0200 |
commit | 82fc66b607167c167e8616cb76e42c2ee09466ee (patch) | |
tree | 719bc55c7b01351f34ed310a4c0d986de594dea6 | |
parent | e1dab59d469bc74b719cdaf90f89c08268e3d979 (diff) | |
download | Nim-82fc66b607167c167e8616cb76e42c2ee09466ee.tar.gz |
Update grammar.txt with `func` and `as` (#14147) [backport]
-rw-r--r-- | doc/grammar.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt index 725384c3d..06eebbc1b 100644 --- a/doc/grammar.txt +++ b/doc/grammar.txt @@ -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? @@ -193,6 +193,7 @@ complexOrSimpleStmt = (ifStmt | whenStmt | whileStmt | tryStmt | forStmt | blockStmt | staticStmt | deferStmt | asmStmt | 'proc' routine + | 'func' routine | 'method' routine | 'iterator' routine | 'macro' routine |