Skip to content

Total breakdown of syntax highlighting with ES6 factory functions #510

@mjbvz

Description

@mjbvz

From @David-Else on September 1, 2017 9:47

  • VSCode Version: 1.15.1
  • OS Version: Fedora 26

Steps to Reproduce:

  1. copy the code pasted below into vscode with Javascript as the language
  2. observe the syntax highlighting fail

Please see the attached screen dump
broken

Reproduces without extensions: Yes

    // Factory functions

    const createZombie = ({
        status = 1,
        width = 10,
        height = 10,
        xPosition,
        yPosition,
        color = "green"
    }) => ({
        status,
        width,
        height,
        xPosition,
        yPosition,
        color
    });

    const createHero = ({
        status = 1,
        width = 25,
        height = 50,
        xPosition,
        yPosition,
        color = "red"
    }) => ({
        status,
        width,
        height,
        xPosition,
        yPosition,
        color
    });

Copied from original issue: microsoft/vscode#33664

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