doc2 improvements; small lexer bugfix: backslashes in comments

This commit is contained in:
Araq 2012-11-20 17:46:11 +01:00
commit 3d40842088
14 changed files with 108 additions and 75 deletions

View file

@ -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