Merge branch 'devel' into new-dependency-tracking

This commit is contained in:
Araq 2016-11-06 17:35:16 +01:00
commit d6601b729f
2 changed files with 5 additions and 1 deletions

View file

@ -459,7 +459,7 @@ This should produce roughly this code:
PEnv = ref object PEnv = ref object
x: int # data x: int # data
proc anon(y: int, c: PClosure): int = proc anon(y: int, c: PEnv): int =
return y + c.x return y + c.x
proc add(x: int): tuple[prc, data] = proc add(x: int): tuple[prc, data] =

View file

@ -572,6 +572,10 @@ proc parseAttribute(my: var XmlParser) =
inc(pos) inc(pos)
else: else:
markError(my, errQuoteExpected) 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 my.bufpos = pos
parseWhitespace(my, skip=true) parseWhitespace(my, skip=true)