diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-08-27 00:30:07 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-10-06 17:45:12 +0200 |
commit | 5463b7a9d42ece31409526ce192d263f7f55e047 (patch) | |
tree | bbdacab4ef724e42a45f3e59c0fa8acdf3ba3b3e /dottydoc/src | |
parent | ea24c55fdc7b3310a7f9911b408647701b5799fa (diff) | |
download | dotty-5463b7a9d42ece31409526ce192d263f7f55e047.tar.gz dotty-5463b7a9d42ece31409526ce192d263f7f55e047.tar.bz2 dotty-5463b7a9d42ece31409526ce192d263f7f55e047.zip |
Fix cooking of docstrings
Diffstat (limited to 'dottydoc/src')
-rw-r--r-- | dottydoc/src/dotty/tools/dottydoc/DottyDoc.scala | 2 | ||||
-rw-r--r-- | dottydoc/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dottydoc/src/dotty/tools/dottydoc/DottyDoc.scala b/dottydoc/src/dotty/tools/dottydoc/DottyDoc.scala index dd0bb0ec4..dc051279a 100644 --- a/dottydoc/src/dotty/tools/dottydoc/DottyDoc.scala +++ b/dottydoc/src/dotty/tools/dottydoc/DottyDoc.scala @@ -54,7 +54,7 @@ abstract class DocDriver extends Driver { val summary = CompilerCommand.distill(args)(ctx) ctx.setSettings(summary.sstate) - ctx.setSetting(ctx.settings.YkeepComments, true) + ctx.setSetting(ctx.settings.Ydocrun, true) val fileNames = CompilerCommand.checkUsage(summary, sourcesRequired)(ctx) (fileNames, ctx) diff --git a/dottydoc/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala b/dottydoc/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala index 7e213c2f3..ece0d1018 100644 --- a/dottydoc/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala +++ b/dottydoc/src/dotty/tools/dottydoc/model/comment/CommentExpander.scala @@ -47,7 +47,7 @@ trait CommentExpander { val defines = sections filter { startsWithTag(raw, _, "@define") } val usecases = sections filter { startsWithTag(raw, _, "@usecase") } - val end = startTag(raw, (defines ::: usecases).sortBy(_._1)) + val end = startTag(raw, (defines /*::: usecases*/).sortBy(_._1)) if (end == raw.length - 2) raw else raw.substring(0, end) + "*/" } |