Syntax highlighter: only highlight captured text of regexp if any.