summary refs log tree commit diff stats
path: root/compiler/lexer.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-11-20 17:46:11 +0100
committerAraq <rumpf_a@web.de>2012-11-20 17:46:11 +0100
commit3d408420889097a87919fc2f8e9e5de837a35506 (patch)
treee8378cd5dd5b405c5e2663a52f49e271577146c8 /compiler/lexer.nim
parent3738cee76edf1abdcab0b2b90066a8725fe63368 (diff)
downloadNim-3d408420889097a87919fc2f8e9e5de837a35506.tar.gz
doc2 improvements; small lexer bugfix: backslashes in comments
Diffstat (limited to 'compiler/lexer.nim')
-rwxr-xr-xcompiler/lexer.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/lexer.nim b/compiler/lexer.nim
index faa9fc672..59e367962 100755
--- a/compiler/lexer.nim
+++ b/compiler/lexer.nim
@@ -679,6 +679,7 @@ proc scanComment(L: var TLexer, tok: var TToken) =
       inc(indent)
     if buf[pos] == '#' and (col == indent or lastBackslash > 0):
       tok.literal.add "\n"
+      col = indent
     else:
       if buf[pos] > ' ': 
         L.indentAhead = indent