All good ![Screenshot_2020-11-10_03-55-13](https://user-images.githubusercontent.com/8375315/98644312-0d53a800-230f-11e...)
Indent -module (functions now appear to be outside the module's hierarchy) ![Screenshot_2020-11-10_04-39-41](https://user-images.githubusercontent.com/8375315/98644475-455aeb00-230f-11e...)
Indent function definition (it dissapears from the symbols list) ![Screenshot_2020-11-10_04-40-09](https://user-images.githubusercontent.com/8375315/98644645-8f43d100-230f-11e...)
Indent everything (to the erlang parser this is just the same code) ![Screenshot_2020-11-10_04-40-26](https://user-images.githubusercontent.com/8375315/98644674-9bc82980-230f-11e...)
For everyone who investigates this bug - the erlang ctags parser is very primitive and distinguishes function definitions only based on indentation in code such as: ``` tot_print(ToT) -> tot_print(1, ToT). tot_print(Y, ToT) when Y =< size(ToT) -> tot_print_tuple(element(Y, ToT)), io:fwrite("~n"), tot_print(Y+1, ToT); tot_print(Y, ToT) -> ok. tot_print_tuple(T) -> tot_print_tuple(1, T). tot_print_tuple(X, T) when X =< size(T) -> io:fwrite("~s", [[element(X, T)]]), tot_print_tuple(X+1, T); tot_print_tuple(X, T) -> ok. ``` So for the ctags parser, definitions are those lines without any indentation. I think proper fix would require rewriting the whole parser to something better.
github-comments@lists.geany.org