Merge branch 'devel' into new-dependency-tracking
This commit is contained in:
commit
d6601b729f
2 changed files with 5 additions and 1 deletions
|
|
@ -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] =
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue