diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2022-10-06 22:36:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 16:36:32 +0200 |
commit | e323b91a32ecff1473d9330605d85ad5f3684e99 (patch) | |
tree | c76ca63d3ce7590a4a95445abf33b82961c506ac /doc | |
parent | 114acff98d64781b1fdfe951c6f543e2fec60000 (diff) | |
download | Nim-e323b91a32ecff1473d9330605d85ad5f3684e99.tar.gz |
correct grammar (ref #20199) and add check for grammar.txt (#20494)
* correct grammar; ref #20199 * add check for keeping grammar.txt up-to-date * add nimTestGrammar
Diffstat (limited to 'doc')
-rw-r--r-- | doc/grammar.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt index 29a4300b6..63ce4503c 100644 --- a/doc/grammar.txt +++ b/doc/grammar.txt @@ -175,8 +175,7 @@ objectDecl = 'object' ('of' typeDesc)? COMMENT? objectPart conceptParam = ('var' | 'out')? symbol conceptDecl = 'concept' conceptParam ^* ',' (pragma)? ('of' typeDesc ^* ',')? &IND{>} stmt -typeDef = identWithPragmaDot genericParamList? '=' optInd typeDefAux - indAndComment? / identVisDot genericParamList? pragma '=' optInd typeDefAux +typeDef = identVisDot genericParamList? pragma '=' optInd typeDefAux indAndComment? varTuple = '(' optInd identWithPragma ^+ comma optPar ')' '=' optInd expr colonBody = colcom stmt postExprBlocks? |