From 212293197fe9e3584f8c36142935ce6d6f5b30c3 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 1 Jul 2014 21:47:53 +0200 Subject: fixes #1161 --- doc/grammar.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/grammar.txt b/doc/grammar.txt index 47ae095f6..a54428678 100644 --- a/doc/grammar.txt +++ b/doc/grammar.txt @@ -86,7 +86,7 @@ distinct = 'distinct' optInd typeDesc expr = (ifExpr | whenExpr | caseExpr - | tryStmt) + | tryExpr) / simpleExpr typeKeyw = 'var' | 'ref' | 'ptr' | 'shared' | 'type' | 'tuple' | 'proc' | 'iterator' | 'distinct' | 'object' | 'enum' @@ -135,6 +135,9 @@ caseStmt = 'case' expr ':'? COMMENT? tryStmt = 'try' colcom stmt &(IND{=}? 'except'|'finally') (IND{=}? 'except' exprList colcom stmt)* (IND{=}? 'finally' colcom stmt)? +tryExpr = 'try' colcom stmt &(optInd 'except'|'finally') + (optInd 'except' exprList colcom stmt)* + (optInd 'finally' colcom stmt)? exceptBlock = 'except' colcom stmt forStmt = 'for' (identWithPragma ^+ comma) 'in' expr colcom stmt blockStmt = 'block' symbol? colcom stmt -- cgit 1.4.1-2-gfad0 ilde.institute>
summary refs log blame commit diff stats
path: root/tests/compiles/tevilcompiles.nim
blob: 0930507d16f1b98fc69f54d31c13bfde30d29b7d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12