Fix infinite loop with nim check (#9448)
This commit is contained in:
parent
b613092de8
commit
16c3d4332f
1 changed files with 2 additions and 0 deletions
|
|
@ -636,6 +636,8 @@ proc handleHexChar(L: var TLexer, xi: var int) =
|
||||||
else:
|
else:
|
||||||
lexMessage(L, errGenerated,
|
lexMessage(L, errGenerated,
|
||||||
"expected a hex digit, but found: " & L.buf[L.bufpos])
|
"expected a hex digit, but found: " & L.buf[L.bufpos])
|
||||||
|
# Need to progress for `nim check`
|
||||||
|
inc(L.bufpos)
|
||||||
|
|
||||||
proc handleDecChars(L: var TLexer, xi: var int) =
|
proc handleDecChars(L: var TLexer, xi: var int) =
|
||||||
while L.buf[L.bufpos] in {'0'..'9'}:
|
while L.buf[L.bufpos] in {'0'..'9'}:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue