From ccb728a7b048a7c2b4e9f800411623e6c64e66f0 Mon Sep 17 00:00:00 2001 From: Euan Date: Fri, 24 Jan 2020 08:42:03 +0000 Subject: [PATCH] Fix typo for literal `[` (#13243) The literal value for the `tkBracketLe` token was incorrectly set to `]` rather than `[`. I've had a quick glance at the code and it doesn't look like this change will affect anything at all, but I haven't tested yet - let's see if the CI explodes... --- lib/pure/parsecfg.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/parsecfg.nim b/lib/pure/parsecfg.nim index 00cadf8befd1..c8e936ef156c 100644 --- a/lib/pure/parsecfg.nim +++ b/lib/pure/parsecfg.nim @@ -354,7 +354,7 @@ proc rawGetTok(c: var CfgParser, tok: var Token) = of '[': tok.kind = tkBracketLe inc(c.bufpos) - tok.literal = "]" + tok.literal = "[" of ']': tok.kind = tkBracketRi inc(c.bufpos)