Skip to content

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

@jlmakes

Description

@jlmakes

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.)

Metadata

Metadata

Assignees

Labels

grammarSyntax highlighting grammarjavascriptJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions