Skip to content

Swift lexer is treating macros as preprocessor comments #2291

Description

@nobbele

Name of the lexer
swift

Code sample

@Test func foo() async throws {
    #expect(1 == 1)
    // this is a comment
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfix-requestA request for a bugfix to be developed.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions