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
Description
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
Labels
No labels