summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-11-06 17:35:16 +0100
committerAraq <rumpf_a@web.de>2016-11-06 17:35:16 +0100
commitd6601b729f9c5662a607e91f57255078bfc8b333 (patch)
tree82c5d5e372b50d4d2ea24396aee1761f3139d46c /lib
parent21288c220a119a23230107de7d3a377fbd8f6a47 (diff)
parent2f7c2de1c2b921fdc01f120d6d17c192ffdb3dd7 (diff)
downloadNim-d6601b729f9c5662a607e91f57255078bfc8b333.tar.gz
Merge branch 'devel' into new-dependency-tracking
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/parsexml.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pure/parsexml.nim b/lib/pure/parsexml.nim
index aa4a13ecf..978c9c516 100644
--- a/lib/pure/parsexml.nim
+++ b/lib/pure/parsexml.nim
@@ -572,6 +572,10 @@ proc parseAttribute(my: var XmlParser) =
           inc(pos)
   else:
     markError(my, errQuoteExpected)
+    # error corrections: guess what was meant
+    while buf[pos] != '>' and buf[pos] > ' ':
+      add(my.b, buf[pos])
+      inc pos
   my.bufpos = pos
   parseWhitespace(my, skip=true)