updates lexer to remove newlines after braces