Skip to content

Lambda function with line break before parentheses produces wrong syntax highlight on the parameters #1053

Open

Description

@Quicksilver0218

JavaScript and TypeScript Nightly version: 5.9.20250330

Code

const clearSet =
(
  set: Set<string>
) => {}

Result

Image

It is normal without the line break.

Image

Activity

  1. changed the title [-]Lambda function assignment with line break after equal sign produces wrong syntax highlight on the parameters[/-] [+]Lambda function with line break before parentheses produces wrong syntax highlight on the parameters[/+] on Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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