Skip to content

Commit

Permalink
fixes #19011 [backport:1.6]
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Nov 9, 2021
1 parent b7c66ce commit d017a3b
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 d017a3b

Please sign in to comment.