Fix a complex recursive pattern matching issue in TableGen.

- Greater-Than and Less-Than chars inside code fragments could erroneously be parsed as part of a Template.
- This patch makes it not possible to highlight templates within code fragments.