Add tm_parser_scope_separator_printable()
commitbd93be412a5eb286cad978928d01f7e9c26da59e
authorJiří Techet <techet@gmail.com>
Thu, 13 Jan 2022 15:14:12 +0000 (13 16:14 +0100)
committerJiří Techet <techet@gmail.com>
Sun, 23 Jan 2022 16:44:14 +0000 (23 17:44 +0100)
tree9ff84795812c8f9191410746ca9734022b65670d
parent79295ce727e9b7c667b616516655a8c61566e181
Add tm_parser_scope_separator_printable()

The added tm_parser_scope_separator_printable() function is a human
readable representation of scope separator. For most languages, this is
equal to the scope separator but for some (mostly markup languages),
some "strange" scope separators are used like \0x3 or \"\" and we need
something more readable when displayed to users. " > " seems to look
good.

This new function can be used to:
1. Format calltips (though real languages use human-readable scope sep)
2. Symbol tree filter and display.
src/symbols.c
src/tagmanager/tm_parser.c
src/tagmanager/tm_parser.h