Look at the Walker in quickopenplugin.cpp. Usually it stops walking on contexts of type DUContext::Other, because those are usually compound-statements containg code. You will have to adapt that check so that it doesn't stop walking on language-contexts.