diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-10-16 16:54:52 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-16 16:55:04 +0200 |
commit | f3c0703b7d563a86757fd92d0707be4309787f53 (patch) | |
tree | eb8e7f981b7b810070c8743302e170cf2bf33f5c /compiler/parser.nim | |
parent | ed38079b9ba56ae494995e0eb594b824b45d5ad9 (diff) | |
download | Nim-f3c0703b7d563a86757fd92d0707be4309787f53.tar.gz |
nimpretty: add #!nimpretty on/off directives
Diffstat (limited to 'compiler/parser.nim')
-rw-r--r-- | compiler/parser.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim index cf64ad555..61736c923 100644 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -1037,7 +1037,7 @@ proc parseParamList(p: var TParser, retColon = true): PNode = addSon(result, p.emptyNode) # return type when defined(nimpretty2): inc p.em.doIndentMore - inc p.em.inParamList + inc p.em.keepIndents let hasParLe = p.tok.tokType == tkParLe and p.tok.indent < 0 if hasParLe: getTok(p) @@ -1074,7 +1074,7 @@ proc parseParamList(p: var TParser, retColon = true): PNode = result = p.emptyNode when defined(nimpretty2): dec p.em.doIndentMore - dec p.em.inParamList + dec p.em.keepIndents proc optPragmas(p: var TParser): PNode = if p.tok.tokType == tkCurlyDotLe and (p.tok.indent < 0 or realInd(p)): |