diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2018-11-16 04:09:19 -0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-11-16 13:09:19 +0100 |
commit | 4233046e3f62c89495b8e351b328401322296b56 (patch) | |
tree | bc33e53e7d47ce13773a3b6958915184f3bede0b /compiler | |
parent | 4929f74023c55db6a1521b1e0647a99d94596e0e (diff) | |
download | Nim-4233046e3f62c89495b8e351b328401322296b56.tar.gz |
make hex digit error msg more helpful (#9727)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/lexer.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/lexer.nim b/compiler/lexer.nim index 76cb88297..635e6f08d 100644 --- a/compiler/lexer.nim +++ b/compiler/lexer.nim @@ -635,7 +635,8 @@ proc handleHexChar(L: var TLexer, xi: var int) = inc(L.bufpos) else: lexMessage(L, errGenerated, - "expected a hex digit, but found: " & L.buf[L.bufpos]) + "expected a hex digit, but found: " & L.buf[L.bufpos] & + " ; maybe prepend with 0") # Need to progress for `nim check` inc(L.bufpos) |