mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-17 08:34:20 +00:00
Fix infinite loop with nim check (#9448)
This commit is contained in:
committed by
Andreas Rumpf
parent
b613092de8
commit
16c3d4332f
@@ -636,6 +636,8 @@ proc handleHexChar(L: var TLexer, xi: var int) =
|
||||
else:
|
||||
lexMessage(L, errGenerated,
|
||||
"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) =
|
||||
while L.buf[L.bufpos] in {'0'..'9'}:
|
||||
|
||||
Reference in New Issue
Block a user