Since we're using a third-party plugin for the syntax highlighting, you're probably right that it most probably gets "confused" by the brackets.
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items