- Code: Select all
Error parsing content for snippet Packages/Javascript/$_get.sublime-snippet: Empty key
Error parsing content for snippet Packages/Javascript/$_getIfModifed.sublime-snippet: Empty key
Here is the code for those snippets
- Code: Select all
<snippet>
<content><![CDATA[\$.get('${1:/test/ajax-test.xml}'${2/(.+)/(?1:, function\(xml\){
:)/}${2:alert( $("title",xml).text() )//optional stuff to do after get}${2/(.+)/(?1:;
}:)/});
$0]]></content>
<tabTrigger>$.get</tabTrigger>
<scope>source.js.jquery</scope>
<description>$.get</description>
</snippet>
- Code: Select all
<snippet>
<content><![CDATA[\$.getIfModified('${1:/test/test.cgi}'${3/(.+)/(?1:, function\(data\){
:)/}${3:alert( $"Data loaded: " + data )//optional stuff to do after get}${3/(.+)/(?1:;
}:)/});
$0]]></content>
<tabTrigger>$.getIfModified</tabTrigger>
<scope>source.js.jquery</scope>
<description>$.getIfModified</description>
</snippet>
I've never made changes to snippet files before, so I'm not exactly sure what is wrong with the syntax. Can anyone tell me what the "key" is that its referring to that is empty or missing?