Update the rule of highlight.