aboutsummaryrefslogtreecommitdiffstats
path: root/library/ace/snippets/xquery.js
diff options
context:
space:
mode:
authorhubzilla <git@macgirvin.com>2016-06-10 20:03:08 +1000
committerGitHub <noreply@github.com>2016-06-10 20:03:08 +1000
commitbeb55235c68feadabe3b647ebe14ae2cab94a2f8 (patch)
tree8a6d552f8658dd64e361e462b78734138624955b /library/ace/snippets/xquery.js
parentcf415a4312f3a926c3b080fb49042752441f23b4 (diff)
parent7a242f829fac2b434726c2bbdca5dbf658404c76 (diff)
downloadvolse-hubzilla-beb55235c68feadabe3b647ebe14ae2cab94a2f8.tar.gz
volse-hubzilla-beb55235c68feadabe3b647ebe14ae2cab94a2f8.tar.bz2
volse-hubzilla-beb55235c68feadabe3b647ebe14ae2cab94a2f8.zip
Merge pull request #410 from anaqreon/wiki
Wiki module: first iteration
Diffstat (limited to 'library/ace/snippets/xquery.js')
-rw-r--r--library/ace/snippets/xquery.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/ace/snippets/xquery.js b/library/ace/snippets/xquery.js
new file mode 100644
index 000000000..ea0f7edec
--- /dev/null
+++ b/library/ace/snippets/xquery.js
@@ -0,0 +1 @@
+ace.define("ace/snippets/xquery",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='snippet for\n for $${1:item} in ${2:expr}\nsnippet return\n return ${1:expr}\nsnippet import\n import module namespace ${1:ns} = "${2:http://www.example.com/}";\nsnippet some\n some $${1:varname} in ${2:expr} satisfies ${3:expr}\nsnippet every\n every $${1:varname} in ${2:expr} satisfies ${3:expr}\nsnippet if\n if(${1:true}) then ${2:expr} else ${3:true}\nsnippet switch\n switch(${1:"foo"})\n case ${2:"foo"}\n return ${3:true}\n default return ${4:false}\nsnippet try\n try { ${1:expr} } catch ${2:*} { ${3:expr} }\nsnippet tumbling\n for tumbling window $${1:varname} in ${2:expr}\n start at $${3:start} when ${4:expr}\n end at $${5:end} when ${6:expr}\n return ${7:expr}\nsnippet sliding\n for sliding window $${1:varname} in ${2:expr}\n start at $${3:start} when ${4:expr}\n end at $${5:end} when ${6:expr}\n return ${7:expr}\nsnippet let\n let $${1:varname} := ${2:expr}\nsnippet group\n group by $${1:varname} := ${2:expr}\nsnippet order\n order by ${1:expr} ${2:descending}\nsnippet stable\n stable order by ${1:expr}\nsnippet count\n count $${1:varname}\nsnippet ordered\n ordered { ${1:expr} }\nsnippet unordered\n unordered { ${1:expr} }\nsnippet treat \n treat as ${1:expr}\nsnippet castable\n castable as ${1:atomicType}\nsnippet cast\n cast as ${1:atomicType}\nsnippet typeswitch\n typeswitch(${1:expr})\n case ${2:type} return ${3:expr}\n default return ${4:expr}\nsnippet var\n declare variable $${1:varname} := ${2:expr};\nsnippet fn\n declare function ${1:ns}:${2:name}(){\n ${3:expr}\n };\nsnippet module\n module namespace ${1:ns} = "${2:http://www.example.com}";\n',t.scope="xquery"}) \ No newline at end of file