Skip to content

Commit

Permalink
fixes #19011 [backport:1.6] (#19114)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6ff6176)
  • Loading branch information
Araq authored and narimiran committed Nov 11, 2021
1 parent f85e096 commit 95dce90
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 95dce90

Please sign in to comment.