added code for ebnf mode and zap-up-to-char