Description
I was the primary developer of this file when I was on the Swift project, and there are some nice bits in there that might benefit your mode. In particular, the -skip-
functions approximately parse swift pretty reliably and efficiently (I see you have your own code for that and I haven't tried to compare it, but the hangs with which-function
mode make me suspect you might want to try a different approach), and there are useful functions for folding away the details of files when you want to easily understand an API.
I sucked those into my personal configuration so I could still use that functionality with your mode.
If there's any interest, I'm happy to help. OTOH, if you've already evaluated what's in there and decided none of it is useful, then, sorry for the noise!