IsConstant method for BnfTerms
syntax highlight fix for GrammarP and GrammarC