Skip to content

Statements that are separated by a newline inside a block comment are not accepted #1626

@ahoppen

Description

@ahoppen

Issue Kind

Parse of Valid Source Failed

Source Code

let a = 2/*
*/let b = 3

Description

The source code should parse fine but it doesn’t because the newline inside the block comment is trailing trivia to 2 and thus not considered to determine whether the second let is on a new line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SwiftParserBugs in the (new) Parser written in SwiftbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions