Skip to content

Commit

Permalink
fixes nim-lang#19011 [backport:1.6] (nim-lang#19114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored and PMunch committed Mar 28, 2022
1 parent adeda90 commit c337208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1877,7 +1877,7 @@ proc parseEnum(p: var Parser): PNode =

var symPragma = a
var pragma: PNode
if p.tok.tokType == tkCurlyDotLe:
if (p.tok.indent < 0 or p.tok.indent >= p.currInd) and p.tok.tokType == tkCurlyDotLe:
pragma = optPragmas(p)
symPragma = newNodeP(nkPragmaExpr, p)
symPragma.add(a)
Expand Down

0 comments on commit c337208

Please sign in to comment.