Skip to content

Comments within type parameters break highlighting #31

@gpampara

Description

@gpampara

I'm not sure how exactly to fix this, but having an inline block comment that happens to be in a type parameter seems to break the syntax highlighting.

I'm converting some code, whereby I'm removing a type parameter. I've simply commented out the specific type parameter, but the comment is not highlighted correctly.

Normal one line block comments are fine:

def foo(x: Int) = { /* this works */ 5 }

But the following breaks:

def foo[S,/*F[_]:Foldable,*/ A](x: Int) = 5

I've narrowed it down to the [ which changes the pattern, causing the highlight to not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions