diff options
author | Oscar NihlgÄrd <oscarnihlgard@gmail.com> | 2018-10-22 17:24:14 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-22 17:24:14 +0200 |
commit | 16c3d4332fac56b275ca3c66dcf12573738bdc91 (patch) | |
tree | 23d35bc97dab2e6a65f0d344c5274a4c99b764ab /compiler | |
parent | b613092de8b4b4625c8a2e8b29d64c5a8e49287e (diff) | |
download | Nim-16c3d4332fac56b275ca3c66dcf12573738bdc91.tar.gz |
Fix infinite loop with `nim check` (#9448)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/lexer.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/lexer.nim b/compiler/lexer.nim index f1b51af32..8762bac49 100644 --- a/compiler/lexer.nim +++ b/compiler/lexer.nim @@ -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'}: |