mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-22 07:15:22 +00:00
Merge branch 'devel' into new-dependency-tracking
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user