diff options
-rw-r--r-- | doc/intern.txt | 2 | ||||
-rw-r--r-- | lib/pure/parsexml.nim | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/intern.txt b/doc/intern.txt index 05847169f..d0aaa283a 100644 --- a/doc/intern.txt +++ b/doc/intern.txt @@ -459,7 +459,7 @@ This should produce roughly this code: PEnv = ref object x: int # data - proc anon(y: int, c: PClosure): int = + proc anon(y: int, c: PEnv): int = return y + c.x proc add(x: int): tuple[prc, data] = 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) |