Hello,
I proposed a patch for scintilla, to make it more g-ir-scanner-friendly. If you want to chime in, or if this patch conflicts with Geany in a way that I'm not aware of, please join the fun.
https://groups.google.com/d/msg/scintilla-interest/Z7lk3SkBkxs/nHIHPGYCgbkJ
Best regards