Lars K.W. Gohlke: > in my mind every time, the syntax is parsed and the keywords are colored > it > should be possible to put this into a tree - I think.
Scintilla performs lexical analysis to determine styling but does not perform parsing to understand program structure. Thus it has no real knowledge of the relationship between entities, such as which members are in a class or which identifiers are functions. Writing a real parser for a language requires major effort. It may be possible to produce something simple yet useful for some languages like Python (search for "class" and "def", grab the next identifier and create a tree) but for other languages like C/C++ it can be quite difficult. I don't want to disuade anyone from working on this, but SciTE should only include a well designed implmentation that can be adapted to a wide variety of languages. Neil _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
