I do also think that using the parser is the most obvious way to do it.
RegExp is quite errorprone. For instance, I'm prefixing member variables
of classes with _ , they do not show up in the speedbar, but all locals
to method. Probably I should change my naming scheme.
About parser errors : The Speedbar is, as far as I see, not updated
until you save the file the first time and existing files are only
updated when they get opened. So if then the JDE reports parsing errors,
I'd rather like to correct them first. Unknown Symbols should not cause
the parser to boil out, of course, they are assumed to be defined later.
Regards
Marcel