Open gituser768 opened 7 years ago
I've been using bluebird's coroutine and coffeescript's yield in my async code. However, now the regex for building the function index for imenu no longer matches for all my function definitions. To work around this, I have in my emacs init:
coroutine
yield
(setq coffee-lambda-regexp "\\(?:coroutine\\s-*\\)?\\(?:([^)]*)\\)?\\s-*\\(->\\|=>\\)")
of course, this wont work if the project uses co instead of coroutine or some other API which wraps the generators created by coffeescript.
co
Any ideas for a more robust solution?
I've been using bluebird's
coroutine
and coffeescript'syield
in my async code. However, now the regex for building the function index for imenu no longer matches for all my function definitions. To work around this, I have in my emacs init:of course, this wont work if the project uses
co
instead ofcoroutine
or some other API which wraps the generators created by coffeescript.Any ideas for a more robust solution?