From 45bc6954c510fa9ca742cb333ce88d9625ad1e29 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 19 Jun 2020 10:50:39 +0200 Subject: [PATCH] improve the parser's error message --- compiler/parser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/parser.nim b/compiler/parser.nim index 8f7eb12268..868054f364 100644 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -2285,7 +2285,7 @@ proc parseStmt(p: var TParser): PNode = case p.tok.tokType of tkIf, tkWhile, tkCase, tkTry, tkFor, tkBlock, tkAsm, tkProc, tkFunc, tkIterator, tkMacro, tkType, tkConst, tkWhen, tkVar: - parMessage(p, "complex statement requires indentation") + parMessage(p, "nestable statement requires indentation") result = p.emptyNode else: if p.inSemiStmtList > 0: