News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Pseudo semantic highlighting

Started by Alpha, January 16, 2013, 03:25:21 AM

Previous topic - Next topic

Alpha

Quote from: Alpha on January 17, 2013, 02:43:55 AM

  • List functions in the current file

    • Collect the classes they are from
  • List the classes in the current file
  • Iterate through the member variables of both lists of classes
  • Put this list of variables in Scintilla's (previously unused by Code::Blocks) keyword set for "Global classes and typedefs"
Basically, only type tkVariable is added.  These are filtered, so that the highlighted tokens are member variables that are relevant (classes that are declared/implemented, their ancestors) to the current editor (and global variables in *.c).

Each stopwatch collects (essentially) the same information, however they represent 4 slightly different algorithms for doing it (I was attempting to see if I could squeeze a little extra speed out of it).  In my testing, though, each algorithm has nearly the same performance.

I have a cleaned up version that I plan to add to the queue soon (if no further modifications are warranted).

(Apologies; I have been busy, and rather inactive here recently.)