Skip to content

Commit

Permalink
restore --define:key:val in nim.cfg and fix nim-lang#12367 (nim-lang#…
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek authored and Araq committed Nov 6, 2019
1 parent 738c957 commit 5544a13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/nimconf.nim
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ proc parseAssignment(L: var TLexer, tok: var TToken;
checkSymbol(L, tok)
add(val, $tok)
confTok(L, tok, config, condStack) # skip symbol
if tok.tokType in {tkColon, tkEquals}:
add(val, $tok) # add the :
confTok(L, tok, config, condStack) # skip symbol
checkSymbol(L, tok)
add(val, $tok) # add the token after it
confTok(L, tok, config, condStack) # skip symbol
while tok.ident != nil and tok.ident.s == "&":
confTok(L, tok, config, condStack)
checkSymbol(L, tok)
Expand Down

0 comments on commit 5544a13

Please sign in to comment.