AdamNiederer / ng2-mode

Angular Support for Emacs
GNU General Public License v3.0
73 stars 11 forks source link

Lambda type in Lambda argument causes infinite loop #27

Open codeismoe opened 2 years ago

codeismoe commented 2 years ago

Code such as:

(f: (s) => boolean) => f

will cause ng2-mode's ng2-ts--highlight-lambda-args-fn to enter an infinite loop.

Initially I think this is due to ng2-ts--inside-lambda-args-p finding the first => and not the lambda's own =>

I am working on a patch and will post an update with it as soon as I can.