There is various language-specific code related to tag manager which is scattered across Geany codebase. First, it makes such code hard to maintain, second, it makes it hard to discover for people adding support for a new parser to Geany. This code includes:

  1. Formatting of functions for calltips and popups for sidebar (also for variables). This is language-specific where e.g. function return type can be in front of function for C but behind function for go.
  2. Displaying of calltips for object constructors based on certain method name (init() arguments after typing MyClass( for Python) - there were actually two different implementations of this feature, one for Python, one for D.
  3. Code detecting whether scope autocompletion should be triggered - the characters triggering it are specific to used languages.

Since tm_parser.c already contains language-specific mappings from parsers, it seems to be a good home for this kind of code.

The only remaining language-specific tag manager related code is the mappings of tags to the symbol tree in symbols.c which I'd like to move to tm_parser.c once the various parser pull requests are merged (not to introduce merge conflicts).


You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/3060

Commit Summary

File Changes

(9 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/pull/3060@github.com>