vim-apathy icon indicating copy to clipboard operation
vim-apathy copied to clipboard

set &define in javascript to look up functions, methods and classes

Open Konfekt opened this issue 6 years ago • 2 comments

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

Konfekt avatar Mar 20 '19 19:03 Konfekt

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 avatar Mar 23 '19 18:03 ms

@ms Thanks! I do not write javascript.

Konfekt avatar Mar 24 '19 11:03 Konfekt