From 0d135bd0c521e67acc8ee5335e3f7df436540ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Zyba=C5=82a?= Date: Wed, 27 Apr 2022 11:07:51 +0200 Subject: [PATCH] Use markdown syntax in tasty-core documentation --- project/Build.scala | 3 +++ tasty/src/dotty/tools/tasty/TastyFormat.scala | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/project/Build.scala b/project/Build.scala index e925b8c84324..04edf8426453 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -1846,6 +1846,8 @@ object ScaladocConfigs { val dottyManagesSources = (`stdlib-bootstrapped`/Compile/sourceManaged).value / "dotty-library-src" + val tastyCoreSources = projectRoot.relativize((`tasty-core-bootstrapped`/Compile/scalaSource).value.toPath().normalize()) + val dottyLibRoot = projectRoot.relativize(dottyManagesSources.toPath.normalize()) DefaultGenerationConfig.value .add(ProjectName("Scala 3")) @@ -1856,6 +1858,7 @@ object ScaladocConfigs { .add(CommentSyntax(List( s"${dottyLibRoot}=markdown", s"${stdLibRoot}=wiki", + s"${tastyCoreSources}=markdown", "wiki" ))) .add(VersionsDictionaryUrl("https://scala-lang.org/api/versions.json")) diff --git a/tasty/src/dotty/tools/tasty/TastyFormat.scala b/tasty/src/dotty/tools/tasty/TastyFormat.scala index f4f72a6e7e19..2e98a1881ebc 100644 --- a/tasty/src/dotty/tools/tasty/TastyFormat.scala +++ b/tasty/src/dotty/tools/tasty/TastyFormat.scala @@ -263,8 +263,6 @@ Standard Section: "Comments" Comment* ```none Comment = Length Bytes LongInt // Raw comment's bytes encoded as UTF-8, followed by the comment's coordinates. ``` - -* @syntax markdown **************************************************************************************/ object TastyFormat {