and the keyboard is resting on the if statement, mew picks up the ( ) as the matching pair, instead of the endif.
The temporary solution that I employed was to temporarily move the if to a separate line, find the match, and then restore.
Could matching first check the existing word under the cursor?
A brief look into the matching code, I need to know what language the file is, as apparently there are different matching codes for different languages, so the filename extension of the current file is used to determine the language. So give an example filename.