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
|
tok.tokType = tkCharLit
|
||||||
of '0'..'9':
|
of '0'..'9':
|
||||||
getNumber(L, tok)
|
getNumber(L, tok)
|
||||||
|
let c = L.buf[L.bufpos]
|
||||||
|
if c in SymChars+{'_'}:
|
||||||
|
lexMessage(L, errInvalidToken, c & " (\\" & $(ord(c)) & ')')
|
||||||
else:
|
else:
|
||||||
if c in OpChars:
|
if c in OpChars:
|
||||||
getOperator(L, tok)
|
getOperator(L, tok)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue