Fixed various bugs in the context parser

Support multiline annotations