latex parser: support for curly brackets in environment names