This was reported multiple times in the past, but there is no open bug and the last one was marked as fixed.

If the closing </svg> doesn't span two lines the syntax highlighting is fine. Maybe there is a regular expression used somewhere which doesn't have multi-line option enabled.
