vim-erlang / vim-erlang-tags

Generate Vim tags for Erlang files
https://vim-erlang.github.io
Other
61 stars 23 forks source link

Macro module shorthands #8

Closed aerosol closed 10 years ago

aerosol commented 10 years ago

So a fellow programmer who happens to be unsatisfied with everything except OCaml, uses the following shorthands:

-define(confuse, some_regular_module_name).

...

?confuse:for_the_sake_of_questionable_readability()

I wonder if we could hack our way around it and make the tags collector outsmart that evil person.

xandkar commented 10 years ago

Would you like a list of things I hate about OCaml? :wink:

hcs42 commented 10 years ago

I wonder if we could hack our way around it and make the tags collector outsmart that evil person.

It could be done of course, although I'm not sure if it is worth the effort and adding the compexity to vim-erlang-tags. The cases that would be more useful to handle (e.g. if the confuse is defined in a hrl or we have a variable instead of ?confuse) are also more difficult and beyond my scope.

Would you like to add this feature and have it merged into the main branch?

hcs42 commented 10 years ago

I'm closing issues at hcs42/vim-erlang-tags. From now on issues shall be written on vim-erlang/vim-erlang-tags. Please reopen the issue there if you still think it is relevant.