Skip to content

Commit

Permalink
Fix infinite loop with nim check (nim-lang#9448)
Browse files Browse the repository at this point in the history
  • Loading branch information
GULPF authored and narimiran committed Oct 31, 2018
1 parent 52df88b commit 3fb65e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/lexer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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'}:
Expand Down

0 comments on commit 3fb65e3

Please sign in to comment.