adding support for nesting to the lexer