Obviously I did overthink it :)
Thanks to both of you, a very usefull fix, as far as I'm concerned !
Shigio YAMAGUCHI <mailto:[email protected]>
19 novembre 2014 10:29
I have committed it.
Thnak you.
Shigio
--
Shigio YAMAGUCHI <[email protected] <mailto:[email protected]>>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
Jason Hood <mailto:[email protected]>
19 novembre 2014 09:29
Here it is.
Shigio YAMAGUCHI <mailto:[email protected]>
19 novembre 2014 07:02
Thank you.
Is obtaining a completed patch possible?
Shigio
--
Shigio YAMAGUCHI <[email protected] <mailto:[email protected]>>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
Jason Hood <mailto:[email protected]>
19 novembre 2014 01:20
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.
Jason Hood <mailto:[email protected]>
18 novembre 2014 09:39
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.
------------------------------------------------------------------------
_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global