Commit 325c048
Chris Carpita
fix GH-272: Highlight arrow funcs without parenthesized params
Arrow expressions with "naked" single parameters are currently not being
recognized as such, due to the mis-labeling of the expression as assignment.
```js
// The part: `x =` looks like assignment to syntax rules:
let myFunc = x => 3;
```
This change introduces a negative lookahead for the `>` character in
the assignment matcher.1 parent 2f5a9ef commit 325c048
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
0 commit comments