Fix for SF bug #1067402: Error in syntax highlighting with sub-pattern.