Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Arrow functions that have one parameter and no parentheses are not recognized as functions #342

Closed
@not-an-aardvark

Description

@not-an-aardvark

When an arrow function has only one parameter, parentheses around that parameter are optional. However, atom does not recognize the function properly if the parentheses are omitted.

Example code:

var multiplyByTwo = (value) => {
  return value * 2;
};

var multiplybyThree = value => {
  return value * 3;
};

Screenshot of that code in atom -- note that the second function is not blue

I'm using Atom 1.6.0 on OSX.

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