Skip to content

Commit

Permalink
Fix typo for literal [ (#13243)
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
euantorano authored and cooldome committed Jan 24, 2020
1 parent 4656580 commit ccb728a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/parsecfg.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ccb728a

Please sign in to comment.