[other] Improve the "tabs are not allowed" error message (#11554)

(cherry picked from commit a4c613c110)
This commit is contained in:
Kaushal Modi
2019-06-20 16:16:06 -04:00
committed by narimiran
parent 10407fefec
commit 810166ca95

View File

@@ -1119,7 +1119,7 @@ proc skip(L: var TLexer, tok: var TToken) =
inc(pos)
inc(tok.strongSpaceA)
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)
of CR, LF:
tokenEndPrevious(tok, pos)