[FIX] support the two syntaxes for snippets