Skip to content

Unclosed multi-line comment not properly handled by StdLexical #399

Closed
@martingd

Description

@martingd

In scala.util.parsing.combinator.lexical.StdLexical handling of unclosed multi-line comments (/* ... */) does not seem to work as expected.

If an unclosed multi-line comment is encountered, instead of returning one ErrorToken(unclosed comment), two ErrorToken(illegal character) tokens are returned (one for / and another for *) and scanning continues.

The issue is described in this comment.
#397 (comment)

@JakobLyngPetersen and I are working on a fix.

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