Compile subpatterns in (beginC|endC|c)aptures syntax segments.

This prepares us for being able to apply these patterns
when syntax highlighting.
Apply patterns when highlighting captures if present.