beebd365e9d52fb45e4e2e0e8f3f25f3.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ace.define("ace/snippets/xquery.snippets",["require","exports","module"], function(require, exports, module) {module.exports = 'snippet for\n\
  2. for \$\${1:item} in \${2:expr}\n\
  3. snippet return\n\
  4. return \${1:expr}\n\
  5. snippet import\n\
  6. import module namespace \${1:ns} = "\${2:http://www.example.com/}";\n\
  7. snippet some\n\
  8. some \$\${1:varname} in \${2:expr} satisfies \${3:expr}\n\
  9. snippet every\n\
  10. every \$\${1:varname} in \${2:expr} satisfies \${3:expr}\n\
  11. snippet if\n\
  12. if(\${1:true}) then \${2:expr} else \${3:true}\n\
  13. snippet switch\n\
  14. switch(\${1:"foo"})\n\
  15. case \${2:"foo"}\n\
  16. return \${3:true}\n\
  17. default return \${4:false}\n\
  18. snippet try\n\
  19. try { \${1:expr} } catch \${2:*} { \${3:expr} }\n\
  20. snippet tumbling\n\
  21. for tumbling window \$\${1:varname} in \${2:expr}\n\
  22. start at \$\${3:start} when \${4:expr}\n\
  23. end at \$\${5:end} when \${6:expr}\n\
  24. return \${7:expr}\n\
  25. snippet sliding\n\
  26. for sliding window \$\${1:varname} in \${2:expr}\n\
  27. start at \$\${3:start} when \${4:expr}\n\
  28. end at \$\${5:end} when \${6:expr}\n\
  29. return \${7:expr}\n\
  30. snippet let\n\
  31. let \$\${1:varname} := \${2:expr}\n\
  32. snippet group\n\
  33. group by \$\${1:varname} := \${2:expr}\n\
  34. snippet order\n\
  35. order by \${1:expr} \${2:descending}\n\
  36. snippet stable\n\
  37. stable order by \${1:expr}\n\
  38. snippet count\n\
  39. count \$\${1:varname}\n\
  40. snippet ordered\n\
  41. ordered { \${1:expr} }\n\
  42. snippet unordered\n\
  43. unordered { \${1:expr} }\n\
  44. snippet treat \n\
  45. treat as \${1:expr}\n\
  46. snippet castable\n\
  47. castable as \${1:atomicType}\n\
  48. snippet cast\n\
  49. cast as \${1:atomicType}\n\
  50. snippet typeswitch\n\
  51. typeswitch(\${1:expr})\n\
  52. case \${2:type} return \${3:expr}\n\
  53. default return \${4:expr}\n\
  54. snippet var\n\
  55. declare variable \$\${1:varname} := \${2:expr};\n\
  56. snippet fn\n\
  57. declare function \${1:ns}:\${2:name}(){\n\
  58. \${3:expr}\n\
  59. };\n\
  60. snippet module\n\
  61. module namespace \${1:ns} = "\${2:http://www.example.com}";\n\
  62. ';
  63. });
  64. ace.define("ace/snippets/xquery",["require","exports","module","ace/snippets/xquery.snippets"], function(require, exports, module) {"use strict";
  65. exports.snippetText = require("./xquery.snippets");
  66. exports.scope = "xquery";
  67. }); (function() {
  68. ace.require(["ace/snippets/xquery"], function(m) {
  69. if (typeof module == "object" && typeof exports == "object" && module) {
  70. module.exports = m;
  71. }
  72. });
  73. })();