Assuming you use Vim, there is an extension called matchit.vim
in macros
directory in the Vim folder, or you can download latest version of it at vim.org. You can configure it yourself if it doesn't support your choice of language out-of-the-box.
Link to the plugin: http://www.vim.org/scripts/script.php?script_id=39