universal-ctags / citre

A superior code reading & auto-completion tool with pluggable backends.
GNU General Public License v3.0
326 stars 26 forks source link

C,enh: consider language: field of tags when sorting labels for goto #116

Closed masatake closed 2 years ago

masatake commented 2 years ago

"label" is a very popular kind name in ctags parsers:

$ ctags --list-kinds-full Ada b label yes no 0 NONE labels Asm l label yes no 0 NONE labels Basic l label yes no 0 NONE labels C L label no no 0 C goto labels C++ L label no no 0 C goto labels CUDA L label no no 0 NONE goto labels DTS l label yes no 0 NONE labels DosBatch l label yes no 0 NONE labels Fortran l label yes no 0 NONE labels OldC L label no no 0 NONE goto label OldC++ L label no no 0 NONE goto label Perl l label yes no 0 NONE labels SQL L label yes no 0 NONE block label Tex l label yes no 0 NONE labels YACC l label yes no 0 NONE labels

When sorting labels for goto, labels of C and C++ should have higher priority.

Signed-off-by: Masatake YAMATO yamato@redhat.com

AmaiKinono commented 2 years ago

Thanks!