parent
8bdcade1a0
commit
ca0155a458
2 changed files with 30 additions and 3 deletions
|
|
@ -320,9 +320,13 @@ proc rawGetTok(c: var CfgParser, tok: var Token) =
|
|||
tok.literal = "="
|
||||
of '-':
|
||||
inc(c.bufpos)
|
||||
if c.buf[c.bufpos] == '-': inc(c.bufpos)
|
||||
tok.kind = tkDashDash
|
||||
tok.literal = "--"
|
||||
if c.buf[c.bufpos] == '-':
|
||||
inc(c.bufpos)
|
||||
tok.kind = tkDashDash
|
||||
tok.literal = "--"
|
||||
else:
|
||||
dec(c.bufpos)
|
||||
getSymbol(c, tok)
|
||||
of ':':
|
||||
tok.kind = tkColon
|
||||
inc(c.bufpos)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue