fixes #4301
This commit is contained in:
parent
56f99f56ac
commit
84c3830c6b
1 changed files with 3 additions and 0 deletions
|
|
@ -1079,6 +1079,9 @@ proc rawGetTok*(L: var TLexer, tok: var TToken) =
|
|||
tok.tokType = tkCharLit
|
||||
of '0'..'9':
|
||||
getNumber(L, tok)
|
||||
let c = L.buf[L.bufpos]
|
||||
if c in SymChars+{'_'}:
|
||||
lexMessage(L, errInvalidToken, c & " (\\" & $(ord(c)) & ')')
|
||||
else:
|
||||
if c in OpChars:
|
||||
getOperator(L, tok)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue