summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEuan <euantorano@users.noreply.github.com>2020-01-24 08:42:03 +0000
committercooldome <cdome@bk.ru>2020-01-24 08:42:03 +0000
commitccb728a7b048a7c2b4e9f800411623e6c64e66f0 (patch)
treef0d454603f27c21756fe16a3fadd199550e1f566
parent4656580b54dd6e7cc063003d65841d9f3d9a009e (diff)
downloadNim-ccb728a7b048a7c2b4e9f800411623e6c64e66f0.tar.gz
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...
-rw-r--r--lib/pure/parsecfg.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/parsecfg.nim b/lib/pure/parsecfg.nim
index 00cadf8be..c8e936ef1 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)