syntax highlighting for BNF rules