Open Konfekt opened 5 years ago
I think you may want to allow something like export function..
or export default const FOO = function
.
I also wonder whether we only want function definition or any other definition. In particular const will typically not be functions but rather enums or strings.
@ms Thanks! I do not write javascript.
Adapted from https://github.com/romainl/ctags-patterns-for-javascript to Vim's regular expression syntax. Making good use of
\ze
to match labels coming before the syntax markers. This is a follow-up to https://github.com/tpope/vim-apathy/issues/9#issuecomment-473923678