Make Highlight Matching Words work correctly when the code has folds

The 19f7afe changes made Highlight Matching Words more intelligent. Unfortunately this change didn't take code-folds and annotations into account, resulting in many missed matches. This should now work properly.