Commit 612e6ac
committed
fix: prevent infinite loop when typing out anonymous function
`fn ->)` is a common intermediate state when writing anonymous function
and when the editor closes the bracket, putting the cursor inside. This
was causing an infinite loop, because it did not consume a token. This
is because of special handling of some tokens.
Same happened to :eof.1 parent 4679425 commit 612e6ac
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2180 | 2180 | | |
2181 | 2181 | | |
2182 | 2182 | | |
2183 | | - | |
| 2183 | + | |
2184 | 2184 | | |
2185 | 2185 | | |
2186 | 2186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2348 | 2348 | | |
2349 | 2349 | | |
2350 | 2350 | | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
2351 | 2358 | | |
2352 | 2359 | | |
2353 | 2360 | | |
| |||
0 commit comments