Added syntax checking for rules with a separate text.