Skip to content

Commit

Permalink
fix, should have caught this immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Jul 10, 2022
1 parent c333781 commit 0394399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1291,8 +1291,8 @@ proc primary(p: var Parser, mode: PrimaryMode): PNode =
result.add(a)
getTok(p)
optInd(p, a)
const identOrLiteralKinds = tkBuiltInMagics +
{tkSymbol, tkAccent, tkNil, tkIntLit..tkCustomLit, tkCast, tkOut}
const identOrLiteralKinds = tkBuiltInMagics + {tkSymbol, tkAccent, tkNil,
tkIntLit..tkCustomLit, tkCast, tkOut, tkParLe, tkBracketLe, tkCurlyLe}
if isSigil and p.tok.tokType in identOrLiteralKinds:
let baseInd = p.lex.currLineIndent
result.add(identOrLiteral(p, mode))
Expand Down

0 comments on commit 0394399

Please sign in to comment.