restore --define🔑val in nim.cfg and fix #12367 (#12611)

(cherry picked from commit 5544a13236)
This commit is contained in:
Andy Davidoff
2019-11-06 15:26:03 -05:00
committed by narimiran
parent 0e1dd54fee
commit aaf06dba1b

View File

@@ -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)