If the ending curly brace or parenthesis is the last character in the file it will not highlight it. The beginning curly brace or parenthesis is highlighted. This only occurs when it is the last character in the file. If you have a space, newline, etc. after it, the highlighting will work.
void f() {
} <-- If this curly brace is the last character in the file this will not be highlighted