bugfixes; field discriminant checks; linearScanEnd, unroll, shallow pragmas

This commit is contained in:
Araq 2011-03-23 01:09:52 +01:00
commit 5b789f2da8
45 changed files with 2342 additions and 243 deletions

View file

@ -432,7 +432,7 @@ proc matchesHyperlink(h: PRstNode, filename: string): bool =
result = matchesHyperlink(h.sons[0], filename)
elif h.kind == rnHyperlink:
var s = addNodes(h.sons[1])
if startsWith(s, filename) and (s[len(filename) + 0] == '#'): result = true
if startsWith(s, filename) and (s[len(filename)] == '#'): result = true
else: result = false
else:
result = false