scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Concrete Scala CLI directive in ScalaDoc or block comment yields error

Open izzyreal opened this issue 2 years ago • 0 comments

Version(s) Scala CLI version: 1.0.4 Scala version (default): 3.3.0

Describe the bug Concrete Scala CLI directives in ScalaDoc or block comment yields Unrecognized directive error. There is no issue with line comments.

To Reproduce Put the below in a file:

// line comment '//> using ...'
/* block comment '//> using ...' */
/** ScalaDoc '//> using ...' */

Then run scala-cli against it, and we get:

[error] Unrecognized directive: ...' with values: */, */
[error] /* block comment '//> using ...' */
[error]                                  ^^
[error] ./Foo.sc:3:30
[error] Unrecognized directive: ...' with values: */, */
[error] /** ScalaDoc '//> using ...' */
[error]                              ^^

Expected behaviour No errors.

izzyreal avatar Sep 07 '23 10:09 izzyreal