diff options
author | Araq <rumpf_a@web.de> | 2016-10-31 12:04:52 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-10-31 12:04:52 +0100 |
commit | 5494d78e741037f713df446f9135b976073929c7 (patch) | |
tree | facd5e905c64268622115e9ce1fffb1672ea030d /compiler/lexer.nim | |
parent | 0f3419685fecc554f6ce28dee3e4630480358c3b (diff) | |
parent | 10bd488daafa79f52fec0d5e7ea76ec8d5902465 (diff) | |
download | Nim-5494d78e741037f713df446f9135b976073929c7.tar.gz |
Merge branch 'braces' into refactor-identcache
Diffstat (limited to 'compiler/lexer.nim')
-rw-r--r-- | compiler/lexer.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/lexer.nim b/compiler/lexer.nim index 9c513034b..d0e818d40 100644 --- a/compiler/lexer.nim +++ b/compiler/lexer.nim @@ -127,7 +127,7 @@ type # this is needed because scanning comments # needs so much look-ahead currLineIndent*: int - strongSpaces*: bool + strongSpaces*, allowTabs*: bool errorHandler*: TErrorHandler var gLinesCompiled*: int # all lines that have been compiled @@ -915,7 +915,7 @@ proc skip(L: var TLexer, tok: var TToken) = inc(pos) inc(tok.strongSpaceA) of '\t': - lexMessagePos(L, errTabulatorsAreNotAllowed, pos) + if not L.allowTabs: lexMessagePos(L, errTabulatorsAreNotAllowed, pos) inc(pos) of CR, LF: pos = handleCRLF(L, pos) |