summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-24 12:36:41 +0200
committerAraq <rumpf_a@web.de>2015-04-24 12:36:41 +0200
commit9e4e7ca5356e08ca69cb82fd0c01c19f8f8f5076 (patch)
treebfa924ff55e04b5834ac49d88cdcceaa57dc666d
parentc01d9d081bdb834de2063f7120c24aecfc19ce9d (diff)
downloadNim-9e4e7ca5356e08ca69cb82fd0c01c19f8f8f5076.tar.gz
fixes #2533
-rw-r--r--compiler/parser.nim2
-rw-r--r--doc/grammar.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim
index c745efb9a..0d2ba7cfc 100644
--- a/compiler/parser.nim
+++ b/compiler/parser.nim
@@ -1881,7 +1881,7 @@ proc simpleStmt(p: var TParser): PNode =
 
 proc complexOrSimpleStmt(p: var TParser): PNode =
   #| complexOrSimpleStmt = (ifStmt | whenStmt | whileStmt
-  #|                     | tryStmt | finallyStmt | exceptStmt | forStmt
+  #|                     | tryStmt | forStmt
   #|                     | blockStmt | staticStmt | deferStmt | asmStmt
   #|                     | 'proc' routine
   #|                     | 'method' routine
diff --git a/doc/grammar.txt b/doc/grammar.txt
index b53515495..72dc6c974 100644
--- a/doc/grammar.txt
+++ b/doc/grammar.txt
@@ -179,7 +179,7 @@ simpleStmt = ((returnStmt | raiseStmt | yieldStmt | discardStmt | breakStmt
            | continueStmt | pragmaStmt | importStmt | exportStmt | fromStmt
            | includeStmt | commentStmt) / exprStmt) COMMENT?
 complexOrSimpleStmt = (ifStmt | whenStmt | whileStmt
-                    | tryStmt | finallyStmt | exceptStmt | forStmt
+                    | tryStmt | forStmt
                     | blockStmt | staticStmt | deferStmt | asmStmt
                     | 'proc' routine
                     | 'method' routine