update snippet directive