[other] Improve the "tabs are not allowed" error message (#11554)
This commit is contained in:
parent
23e95dc629
commit
a4c613c110
1 changed files with 1 additions and 1 deletions
|
|
@ -1119,7 +1119,7 @@ proc skip(L: var TLexer, tok: var TToken) =
|
||||||
inc(pos)
|
inc(pos)
|
||||||
inc(tok.strongSpaceA)
|
inc(tok.strongSpaceA)
|
||||||
of '\t':
|
of '\t':
|
||||||
if not L.allowTabs: lexMessagePos(L, errGenerated, pos, "tabulators are not allowed")
|
if not L.allowTabs: lexMessagePos(L, errGenerated, pos, "tabs are not allowed, use spaces instead")
|
||||||
inc(pos)
|
inc(pos)
|
||||||
of CR, LF:
|
of CR, LF:
|
||||||
tokenEndPrevious(tok, pos)
|
tokenEndPrevious(tok, pos)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue