Skip to content

Commit f028f7e

Browse files
committed
fix, should have caught this immediately
1 parent 3ee0b2f commit f028f7e

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
@@ -1293,8 +1293,8 @@ proc primary(p: var Parser, mode: PrimaryMode): PNode =
12931293
result.add(a)
12941294
getTok(p)
12951295
optInd(p, a)
1296-
const identOrLiteralKinds = tkBuiltInMagics +
1297-
{tkSymbol, tkAccent, tkNil, tkIntLit..tkCustomLit, tkCast, tkOut}
1296+
const identOrLiteralKinds = tkBuiltInMagics + {tkSymbol, tkAccent, tkNil,
1297+
tkIntLit..tkCustomLit, tkCast, tkOut, tkParLe, tkBracketLe, tkCurlyLe}
12981298
if isSigil and p.tok.tokType in identOrLiteralKinds:
12991299
let baseInd = p.lex.currLineIndent
13001300
result.add(identOrLiteral(p, mode))

0 commit comments

Comments
 (0)