Skip to content

Commit 1de49a6

Browse files
committed
Fix WikiParser
1 parent 6db30eb commit 1de49a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc-tool/src/dotty/tools/dottydoc/model/comment/WikiParser.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private[comment] final class WikiParser(
169169
return ""
170170
}
171171

172-
do {
172+
while {
173173
val str = readUntil { char == safeTagMarker || char == endOfText }
174174
nextChar()
175175

@@ -188,7 +188,8 @@ private[comment] final class WikiParser(
188188
}
189189
case _ => ;
190190
}
191-
} while (stack.length > 0 && char != endOfText)
191+
stack.length > 0 && char != endOfText
192+
} do ()
192193

193194
list mkString ""
194195
}

0 commit comments

Comments
 (0)