diff options
author | Araq <rumpf_a@web.de> | 2020-06-19 10:50:39 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2020-06-19 10:50:39 +0200 |
commit | 45bc6954c510fa9ca742cb333ce88d9625ad1e29 (patch) | |
tree | 4a7753fa5be07e5236f89b56d90f472cb58879f5 /compiler | |
parent | 522bc8dda1f36ffe5f14eb6b1bfdba215b45b139 (diff) | |
download | Nim-45bc6954c510fa9ca742cb333ce88d9625ad1e29.tar.gz |
improve the parser's error message
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/parser.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim index 8f7eb1226..868054f36 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: |