Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Merge branch 'prestonmcgowan-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
paxtonhare committed Sep 10, 2014
2 parents 3591fce + e4de8e5 commit 9c0fa2b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dynamic_snippets/function.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"content": "declare function %NS%:${1:name}()\n{\n\t${0:(: code goes here :)}\n};\n",
"content": "declare function %NS%:${1:name}()\n{\n\t${0:(: Tab here to start coding :)}\n};\n",
"trigger": "fun",
"scope": "source.xquery-ml",
"description": "function \u2026"
Expand Down
6 changes: 6 additions & 0 deletions snippets/mapping.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[declare option xdmp:mapping "false";]]></content>
<tabTrigger>mapping</tabTrigger>
<scope>source.xquery-ml</scope>
<description>Set xdmp:mapping to false</description>
</snippet>
15 changes: 15 additions & 0 deletions snippets/module-template.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<snippet>
<content><![CDATA[xquery version "1.0-ml";
module namespace ${1:ns} = "${2:http://namespace-uri}";
declare option xdmp:mapping "false";
${3:(: Tab to me to start your module! :)}
]]></content>
<tabTrigger>module</tabTrigger>
<scope>source.xquery-ml</scope>
<description>Barebones XQuery Module Template</description>
</snippet>


6 changes: 6 additions & 0 deletions snippets/xdmp-log-debug.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[xdmp:log(${0}, "debug")]]></content>
<tabTrigger>debug</tabTrigger>
<scope>source.xquery-ml</scope>
<description>Debug xdmp:log …</description>
</snippet>

0 comments on commit 9c0fa2b

Please sign in to comment.