drools.js 758 B

12345678910111213141516171819202122232425262728293031323334
  1. ace.define("ace/snippets/drools",[], function(require, exports, module) {
  2. "use strict";
  3. exports.snippetText = "\n\
  4. snippet rule\n\
  5. rule \"${1?:rule_name}\"\n\
  6. when\n\
  7. ${2:// when...} \n\
  8. then\n\
  9. ${3:// then...}\n\
  10. end\n\
  11. \n\
  12. snippet query\n\
  13. query ${1?:query_name}\n\
  14. ${2:// find} \n\
  15. end\n\
  16. \n\
  17. snippet declare\n\
  18. declare ${1?:type_name}\n\
  19. ${2:// attributes} \n\
  20. end\n\
  21. \n\
  22. ";
  23. exports.scope = "drools";
  24. });
  25. (function() {
  26. ace.require(["ace/snippets/drools"], function(m) {
  27. if (typeof module == "object" && typeof exports == "object" && module) {
  28. module.exports = m;
  29. }
  30. });
  31. })();