Skip to content

Parser should emit a single diagnostic if both open and close quote are missing from string literal #1691

Closed
@ahoppen

Description

@ahoppen

Issue Kind

Bad Diagnostic Produced

Source Code

@_expose(Cxx, baz) func foo() {}

Description

From https://github.com/apple/swift-syntax/pull/1688/files#r1201105564

In the above example the parser produces two diagnostics: One for the missing opening " before baz and one for the missing closing " after baz. It should emit a single diagnostic instead that offers to add both.

Metadata

Metadata

Assignees

Labels

SwiftParserBugs in the (new) Parser written in SwiftbugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions