fixes #8739; allow --hint:foo:on --warning:bar:off (#8757)

This commit is contained in:
Timothee Cour 2018-08-24 22:55:05 -07:00 • committed by Andreas Rumpf
commit 56de4c81b2
3 changed files with 19 additions and 10 deletions

View file

@ -175,9 +175,9 @@ proc parseAssignment(L: var TLexer, tok: var TToken;
confTok(L, tok, config, condStack)
if tok.tokType == tkBracketLe:
# BUGFIX: val, not s!
# BUGFIX: do not copy '['!
confTok(L, tok, config, condStack)
checkSymbol(L, tok)
add(val, '[')
add(val, tokToStr(tok))
confTok(L, tok, config, condStack)
if tok.tokType == tkBracketRi: confTok(L, tok, config, condStack)