diff options
author | flaviut <tamasflaviu@gmail.com> | 2014-06-08 15:46:19 -0400 |
---|---|---|
committer | flaviut <tamasflaviu@gmail.com> | 2014-06-08 15:46:19 -0400 |
commit | 145cb3ae8ccf58495a3e38f6646041661de2affb (patch) | |
tree | 7ff06be915d9141647bb13cfc799c915268ffeca | |
parent | 6b9359d90161887b2dc4fa12d9861883d22530f6 (diff) | |
download | Nim-145cb3ae8ccf58495a3e38f6646041661de2affb.tar.gz |
fix overlooked grammer comment
-rw-r--r-- | compiler/parser.nim | 1 | ||||
-rw-r--r-- | doc/grammar.txt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim index 7b6ef8ee5..0f52750c9 100644 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -981,6 +981,7 @@ proc parseSymbolList(p: var TParser, result: PNode, allowNil = false) = proc parseTypeDescKAux(p: var TParser, kind: TNodeKind, mode: TPrimaryMode): PNode = + #| distinct = 'distinct' optInd typeDesc result = newNodeP(kind, p) getTok(p) optInd(p, result) diff --git a/doc/grammar.txt b/doc/grammar.txt index 61557b68c..fe5341840 100644 --- a/doc/grammar.txt +++ b/doc/grammar.txt @@ -82,6 +82,7 @@ paramListColon = paramList? (':' optInd typeDesc)? doBlock = 'do' paramListArrow pragmas? colcom stmt doBlocks = doBlock ^* IND{=} procExpr = 'proc' paramListColon pragmas? ('=' COMMENT? stmt)? +distinct = 'distinct' optInd typeDesc expr = (ifExpr | whenExpr | caseExpr |