diff --git a/effekt/shared/src/main/scala/effekt/Lexer.scala b/effekt/shared/src/main/scala/effekt/Lexer.scala index c6f37733c..6d6a1307e 100644 --- a/effekt/shared/src/main/scala/effekt/Lexer.scala +++ b/effekt/shared/src/main/scala/effekt/Lexer.scala @@ -509,13 +509,14 @@ class Lexer(source: Source) { case _ => consume() } } - // exclude // - val comment = slice(start + 2, current) if comment.startsWith("/") then - val doc_comment = slice(start + 1, current) + // exclude /// + val doc_comment = slice(start + 3, current) TokenKind.DocComment(doc_comment) else + // exclude // + val comment = slice(start + 2, current) TokenKind.Comment(comment) }