advanced comment parsing