summary refs log tree commit diff stats
path: root/packages
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-08-23 08:45:40 +0200
committerAraq <rumpf_a@web.de>2012-08-23 08:45:40 +0200
commitbdf3bee05510718581510cb78fa70ca183039d55 (patch)
tree62565e928efae42082004f904c1d4467f51ce013 /packages
parentc4c0c41d616f1859aa588f50a422aed608df6b77 (diff)
downloadNim-bdf3bee05510718581510cb78fa70ca183039d55.tar.gz
implemented backslash for continuation comments
Diffstat (limited to 'packages')
-rwxr-xr-xpackages/docutils/rst.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/docutils/rst.nim b/packages/docutils/rst.nim
index ed8e2b7a9..333ef11d9 100755
--- a/packages/docutils/rst.nim
+++ b/packages/docutils/rst.nim
@@ -648,8 +648,8 @@ proc parseBackslash(p: var TRstParser, father: PRstNode) =
     # XXX: Unicode?
     inc(p.idx)
     if p.tok[p.idx].kind != tkWhite: add(father, newLeaf(p))
-    inc(p.idx)
-  else: 
+    if p.tok[p.idx].kind != tkEof: inc(p.idx)
+  else:
     add(father, newLeaf(p))
     inc(p.idx)