summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-01-12 01:41:53 +0100
committerAraq <rumpf_a@web.de>2015-01-12 02:00:36 +0100
commitc87f1eb5813cca9ce5c1f251d9b3af3a2d47be71 (patch)
treed96ab56184140f12b2ccf37798febef518df6c0a /doc
parent95fe697afe4761524005477936edf06cfe61dc66 (diff)
downloadNim-c87f1eb5813cca9ce5c1f251d9b3af3a2d47be71.tar.gz
'discard' can be used instead of 'nil' for empty case object branches
Diffstat (limited to 'doc')
-rw-r--r--doc/grammar.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt
index e751c2d8d..2b04e6ca8 100644
--- a/doc/grammar.txt
+++ b/doc/grammar.txt
@@ -167,7 +167,7 @@ objectCase = 'case' identWithPragma ':' typeDesc ':'? COMMENT?
             (IND{>} objectBranches DED
             | IND{=} objectBranches)
 objectPart = IND{>} objectPart^+IND{=} DED
-           / objectWhen / objectCase / 'nil' / declColonEquals
+           / objectWhen / objectCase / 'nil' / 'discard' / declColonEquals
 object = 'object' pragma? ('of' typeDesc)? COMMENT? objectPart
 typeClassParam = ('var')? symbol
 typeClass = typeClassParam ^* ',' (pragma)? ('of' typeDesc ^* ',')?