Skip to content

Commit 45a91c6

Browse files
committed
fix, should have caught this immediately
1 parent 4e352bc commit 45a91c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/parser.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,8 +1288,8 @@ proc primary(p: var Parser, mode: PrimaryMode): PNode =
12881288
result.add(a)
12891289
getTok(p)
12901290
optInd(p, a)
1291-
const identOrLiteralKinds = tkBuiltInMagics +
1292-
{tkSymbol, tkAccent, tkNil, tkIntLit..tkCustomLit, tkCast, tkOut}
1291+
const identOrLiteralKinds = tkBuiltInMagics + {tkSymbol, tkAccent, tkNil,
1292+
tkIntLit..tkCustomLit, tkCast, tkOut, tkParLe, tkBracketLe, tkCurlyLe}
12931293
if isSigil and p.tok.tokType in identOrLiteralKinds:
12941294
let baseInd = p.lex.currLineIndent
12951295
result.add(identOrLiteral(p, mode))

0 commit comments

Comments
 (0)