Skip to content

MultilineCommentLocator returns invalid PhraseLocation when end delimiter precedes start #75

@polarian

Description

@polarian

Description

MultilineCommentLocator.locate() returns PhraseLocation with start > end when end delimiter (*/) appears before start delimiter (/*).

Reproduction

val result = MultilineCommentLocator.locate("*/path/*")

Expected

Return empty set when no valid comment exists.

Actual

Returns PhraseLocation with reversed range (start > end).


I will submit a PR to fix this issue.

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