doc2 improvements; small lexer bugfix: backslashes in comments
This commit is contained in:
parent
3738cee76e
commit
3d40842088
14 changed files with 108 additions and 75 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue