It works for PHP but not Perl or Shell scripts (from my testing). I guess probably file a feature request[1] with the Scintilla project and it will trickle into Geany when Scintilla's lexers have this feature.

[1] https://sourceforge.net/tracker/?group_id=2439&atid=352439