Thank you.
Is
obtaining a completed patch possible?
Shigio
After sending
this to Julien (forgetting to CC bug-global) I realised that it should
always push back the last token, so I edited that and sent it to
bug-global, but with the original patch instead. Sheesh. So, remove
the else and outdent pushbacktoken and you should be good to go.
I think you and
Shigio are both overthinking it, as it seems ctags & pygments
simply take the identifier before the brace, so that's what I've done,
too (as well as doing it for struct).
C:\test>cat test.cpp
class
EXTERNAL1 EXTERNAL2 Class {};
struct EXTERNAL1 EXTERNAL2 Struct
{};
C:\test>gtags % the current version %
C:\test>global
-x .*
EXTERNAL1 1 test.cpp class EXTERNAL1
EXTERNAL2 Class {};
C:\test>gtags % the patched version %
C:\test>global
-x .*
Class 1 test.cpp class EXTERNAL1
EXTERNAL2 Class {};
Struct 2 test.cpp struct
EXTERNAL1 EXTERNAL2 Struct {};
Testing has been *really* minimal
(just the above :) ), so I hope it doesn't break anything else.