Use the correct color for structures and delegates/functions.
Added smarter coloring for template names.