mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 06:43:52 +00:00
(cherry picked from commit 6ff61766da)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user