Did you try escaping the $
with a \
?
For instance in PHP, the $GLOBALS snippet is:
<snippet>
<content><![CDATA[\$GLOBALS['${1:variable}']${2: = }${3:something}${4:;}$0]]></content>
<tabTrigger>globals</tabTrigger>
<scope>source.php</scope>
<description>$GLOBALS['…']</description>
</snippet>
As you can see in <content>
, $GLOBALS is expressed as \$GLOBALS. This is because $ is a symbol used for fields like ${1:variable}.