You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(javascript/typescript): lambda with parens in parameters fails (#2502)
* fix(javascript/typescript): lambda with parens in parameters fails
- Fixes both JavaScript and TypeScript grammars
Fixes samples like:
const bad = ((a, b) => [...a, b]);
sides.every((length,width=(3+2+(4/5))) => length > 0 );
This is done by counting parens in the regex that finds arrows
functions. Currently we can only handle 2 levels of nesting as
shown in the second example above.
* allow much richer highlighting inside params
* improve highlighting inside arguments on typescript
0 commit comments