Fix bug with syntax highlighting of nested generics

Resolves issue #6