2023-01-16 22:26:34 +00:00
|
|
|
ace.define("ace/snippets/xquery.snippets",["require","exports","module"], function(require, exports, module) {module.exports = 'snippet for\n\
|
|
|
|
for \$\${1:item} in \${2:expr}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet return\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
return \${1:expr}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet import\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
import module namespace \${1:ns} = "\${2:http://www.example.com/}";\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet some\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
some \$\${1:varname} in \${2:expr} satisfies \${3:expr}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet every\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
every \$\${1:varname} in \${2:expr} satisfies \${3:expr}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet if\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
if(\${1:true}) then \${2:expr} else \${3:true}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet switch\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
switch(\${1:"foo"})\n\
|
|
|
|
case \${2:"foo"}\n\
|
|
|
|
return \${3:true}\n\
|
|
|
|
default return \${4:false}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet try\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
try { \${1:expr} } catch \${2:*} { \${3:expr} }\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet tumbling\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
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}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet sliding\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
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}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet let\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
let \$\${1:varname} := \${2:expr}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet group\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
group by \$\${1:varname} := \${2:expr}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet order\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
order by \${1:expr} \${2:descending}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet stable\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
stable order by \${1:expr}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet count\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
count \$\${1:varname}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet ordered\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
ordered { \${1:expr} }\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet unordered\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
unordered { \${1:expr} }\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet treat \n\
|
2023-01-16 22:26:34 +00:00
|
|
|
treat as \${1:expr}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet castable\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
castable as \${1:atomicType}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet cast\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
cast as \${1:atomicType}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet typeswitch\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
typeswitch(\${1:expr})\n\
|
|
|
|
case \${2:type} return \${3:expr}\n\
|
|
|
|
default return \${4:expr}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet var\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
declare variable \$\${1:varname} := \${2:expr};\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
snippet fn\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
declare function \${1:ns}:\${2:name}(){\n\
|
|
|
|
\${3:expr}\n\
|
2014-04-29 09:03:14 +00:00
|
|
|
};\n\
|
|
|
|
snippet module\n\
|
2023-01-16 22:26:34 +00:00
|
|
|
module namespace \${1:ns} = "\${2:http://www.example.com}";\n\
|
|
|
|
';
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
ace.define("ace/snippets/xquery",["require","exports","module","ace/snippets/xquery.snippets"], function(require, exports, module) {"use strict";
|
|
|
|
|
|
|
|
exports.snippetText = require("./xquery.snippets");
|
2013-12-30 15:00:16 +00:00
|
|
|
exports.scope = "xquery";
|
|
|
|
|
2020-04-14 12:14:48 +00:00
|
|
|
}); (function() {
|
|
|
|
ace.require(["ace/snippets/xquery"], function(m) {
|
|
|
|
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
|
|
module.exports = m;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})();
|
|
|
|
|