vim-textobj-function-javascript
vim-textobj-function-javascript copied to clipboard
Support for TypeScript would be awesome
I think it wouldn't be too hard, but my Vimscript skills aren't quite there. It looks like you would just need another version of the find rage function, that would handle parameter typings, then it should work just fine.
Thanks!
I think I did it!
\v(<async>\s+)?(<function>|(\((\k|:\s\k|,|\s)*\)|\k+|\(.*\):\s\k+)\s*\=\>\s*)
Is the updated regex to handle typescript annotations.
#10