lampepfl / scala3doc

16 stars 6 forks source link

Scala3doc is skipping backticks literal identifiers #235

Closed Kordyjan closed 3 years ago

Kordyjan commented 3 years ago

See the failing test. For identifiers that cannot be expressed without backticks scala3doc shouldn't skip them as it can lead to ambiguities and straight up incorrect signatures.

Kordyjan commented 3 years ago

I think the simplest solution for that would be to wrap all identifiers that desn't match some regex in backticks during generation of signatures. This regex would probably look something like that: (?:\w+)(?:_[^\[\(\s\w]+)|\w+|[^\[\(\s\w]+.

romanowski commented 3 years ago

Moved to https://github.com/lampepfl/dotty/issues/11108