Skip to content

TM scope error with IIFE using JavaScript ES6 arrow function #536

@mjbvz

Description

@mjbvz

From @jlmakes on October 28, 2017 20:24

Regular IIFE (Correct):

screen shot 2017-10-28 at 10 07 44 pm

ES6 Arrow IIFE (Incorrect):

screen shot 2017-10-28 at 10 06 38 pm

Above on line 1, the fragment = (() =>, the inner ( is missing the punctuation.definition.parameters.begin.js scope.

Subsequently, on line 3 the ending )() is missing meta.brace.round.js


  • VSCode v1.17.2
  • OSX v10.11.6

Steps to Reproduce:

  1. Create any immediately invoked function expression, using an ES6 arrow function.
  2. Use a theme that colors punctuation scopes differently (such as Duotone)

Reproduces without extensions? Yes

(However, no built-in themes visually show the problem, you must use the scope inspector.)

Copied from original issue: microsoft/vscode#37086

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