snippets
4 years ago
ace.js
4 years ago
ext-beautify.js
4 years ago
ext-code_lens.js
4 years ago
ext-elastic_tabstops_lite.js
4 years ago
ext-emmet.js
4 years ago
ext-error_marker.js
4 years ago
ext-hardwrap.js
4 years ago
ext-keybinding_menu.js
4 years ago
ext-language_tools.js
4 years ago
ext-linking.js
4 years ago
ext-modelist.js
4 years ago
ext-options.js
4 years ago
ext-prompt.js
4 years ago
ext-rtl.js
4 years ago
ext-searchbox.js
4 years ago
ext-settings_menu.js
4 years ago
ext-spellcheck.js
4 years ago
ext-split.js
4 years ago
ext-static_highlight.js
4 years ago
ext-statusbar.js
4 years ago
ext-textarea.js
4 years ago
ext-themelist.js
4 years ago
ext-whitespace.js
4 years ago
keybinding-emacs.js
4 years ago
keybinding-sublime.js
4 years ago
keybinding-vim.js
4 years ago
keybinding-vscode.js
4 years ago
mode-abap.js
4 years ago
mode-abc.js
4 years ago
mode-actionscript.js
4 years ago
mode-ada.js
4 years ago
mode-alda.js
4 years ago
mode-apache_conf.js
4 years ago
mode-apex.js
4 years ago
mode-applescript.js
4 years ago
mode-aql.js
4 years ago
mode-asciidoc.js
4 years ago
mode-asl.js
4 years ago
mode-assembly_x86.js
4 years ago
mode-autohotkey.js
4 years ago
mode-batchfile.js
4 years ago
mode-c9search.js
4 years ago
mode-c_cpp.js
4 years ago
mode-cirru.js
4 years ago
mode-clojure.js
4 years ago
mode-cobol.js
4 years ago
mode-coffee.js
4 years ago
mode-coldfusion.js
4 years ago
mode-crystal.js
4 years ago
mode-csharp.js
4 years ago
mode-csound_document.js
4 years ago
mode-csound_orchestra.js
4 years ago
mode-csound_score.js
4 years ago
mode-csp.js
4 years ago
mode-css.js
4 years ago
mode-curly.js
4 years ago
mode-d.js
4 years ago
mode-dart.js
4 years ago
mode-diff.js
4 years ago
mode-django.js
4 years ago
mode-dockerfile.js
4 years ago
mode-dot.js
4 years ago
mode-drools.js
4 years ago
mode-edifact.js
4 years ago
mode-eiffel.js
4 years ago
mode-ejs.js
4 years ago
mode-elixir.js
4 years ago
mode-elm.js
4 years ago
mode-erlang.js
4 years ago
mode-forth.js
4 years ago
mode-fortran.js
4 years ago
mode-fsharp.js
4 years ago
mode-fsl.js
4 years ago
mode-ftl.js
4 years ago
mode-gcode.js
4 years ago
mode-gherkin.js
4 years ago
mode-gitignore.js
4 years ago
mode-glsl.js
4 years ago
mode-gobstones.js
4 years ago
mode-golang.js
4 years ago
mode-graphqlschema.js
4 years ago
mode-groovy.js
4 years ago
mode-haml.js
4 years ago
mode-handlebars.js
4 years ago
mode-haskell.js
4 years ago
mode-haskell_cabal.js
4 years ago
mode-haxe.js
4 years ago
mode-hjson.js
4 years ago
mode-html.js
4 years ago
mode-html_elixir.js
4 years ago
mode-html_ruby.js
4 years ago
mode-ini.js
4 years ago
mode-io.js
4 years ago
mode-ion.js
4 years ago
mode-jack.js
4 years ago
mode-jade.js
4 years ago
mode-java.js
4 years ago
mode-javascript.js
4 years ago
mode-json.js
4 years ago
mode-json5.js
4 years ago
mode-jsoniq.js
4 years ago
mode-jsp.js
4 years ago
mode-jssm.js
4 years ago
mode-jsx.js
4 years ago
mode-julia.js
4 years ago
mode-kotlin.js
4 years ago
mode-latex.js
4 years ago
mode-latte.js
4 years ago
mode-less.js
4 years ago
mode-liquid.js
4 years ago
mode-lisp.js
4 years ago
mode-livescript.js
4 years ago
mode-logiql.js
4 years ago
mode-logtalk.js
4 years ago
mode-lsl.js
4 years ago
mode-lua.js
4 years ago
mode-luapage.js
4 years ago
mode-lucene.js
4 years ago
mode-makefile.js
4 years ago
mode-markdown.js
4 years ago
mode-mask.js
4 years ago
mode-matlab.js
4 years ago
mode-maze.js
4 years ago
mode-mediawiki.js
4 years ago
mode-mel.js
4 years ago
mode-mips.js
4 years ago
mode-mixal.js
4 years ago
mode-mushcode.js
4 years ago
mode-mysql.js
4 years ago
mode-nginx.js
4 years ago
mode-nim.js
4 years ago
mode-nix.js
4 years ago
mode-nsis.js
4 years ago
mode-nunjucks.js
4 years ago
mode-objectivec.js
4 years ago
mode-ocaml.js
4 years ago
mode-partiql.js
4 years ago
mode-pascal.js
4 years ago
mode-perl.js
4 years ago
mode-pgsql.js
4 years ago
mode-php.js
4 years ago
mode-php_laravel_blade.js
4 years ago
mode-pig.js
4 years ago
mode-plain_text.js
4 years ago
mode-powershell.js
4 years ago
mode-praat.js
4 years ago
mode-prisma.js
4 years ago
mode-prolog.js
4 years ago
mode-properties.js
4 years ago
mode-protobuf.js
4 years ago
mode-puppet.js
4 years ago
mode-python.js
4 years ago
mode-qml.js
4 years ago
mode-r.js
4 years ago
mode-raku.js
4 years ago
mode-razor.js
4 years ago
mode-rdoc.js
4 years ago
mode-red.js
4 years ago
mode-redshift.js
4 years ago
mode-rhtml.js
4 years ago
mode-robot.js
4 years ago
mode-rst.js
4 years ago
mode-ruby.js
4 years ago
mode-rust.js
4 years ago
mode-sac.js
4 years ago
mode-sass.js
4 years ago
mode-scad.js
4 years ago
mode-scala.js
4 years ago
mode-scheme.js
4 years ago
mode-scrypt.js
4 years ago
mode-scss.js
4 years ago
mode-sh.js
4 years ago
mode-sjs.js
4 years ago
mode-slim.js
4 years ago
mode-smarty.js
4 years ago
mode-smithy.js
4 years ago
mode-snippets.js
4 years ago
mode-soy_template.js
4 years ago
mode-space.js
4 years ago
mode-sparql.js
4 years ago
mode-sql.js
4 years ago
mode-sqlserver.js
4 years ago
mode-stylus.js
4 years ago
mode-svg.js
4 years ago
mode-swift.js
4 years ago
mode-tcl.js
4 years ago
mode-terraform.js
4 years ago
mode-tex.js
4 years ago
mode-text.js
4 years ago
mode-textile.js
4 years ago
mode-toml.js
4 years ago
mode-tsx.js
4 years ago
mode-turtle.js
4 years ago
mode-twig.js
4 years ago
mode-typescript.js
4 years ago
mode-vala.js
4 years ago
mode-vbscript.js
4 years ago
mode-velocity.js
4 years ago
mode-verilog.js
4 years ago
mode-vhdl.js
4 years ago
mode-visualforce.js
4 years ago
mode-wollok.js
4 years ago
mode-xml.js
4 years ago
mode-xquery.js
4 years ago
mode-yaml.js
4 years ago
mode-zeek.js
4 years ago
theme-ambiance.js
4 years ago
theme-chaos.js
4 years ago
theme-chrome.js
4 years ago
theme-cloud9_day.js
4 years ago
theme-cloud9_night.js
4 years ago
theme-cloud9_night_low_color.js
4 years ago
theme-clouds.js
4 years ago
theme-clouds_midnight.js
4 years ago
theme-cobalt.js
4 years ago
theme-crimson_editor.js
4 years ago
theme-dawn.js
4 years ago
theme-dracula.js
4 years ago
theme-dreamweaver.js
4 years ago
theme-eclipse.js
4 years ago
theme-github.js
4 years ago
theme-gob.js
4 years ago
theme-gruvbox.js
4 years ago
theme-gruvbox_dark_hard.js
4 years ago
theme-gruvbox_light_hard.js
4 years ago
theme-idle_fingers.js
4 years ago
theme-iplastic.js
4 years ago
theme-katzenmilch.js
4 years ago
theme-kr_theme.js
4 years ago
theme-kuroir.js
4 years ago
theme-merbivore.js
4 years ago
theme-merbivore_soft.js
4 years ago
theme-mono_industrial.js
4 years ago
theme-monokai.js
4 years ago
theme-nord_dark.js
4 years ago
theme-one_dark.js
4 years ago
theme-pastel_on_dark.js
4 years ago
theme-solarized_dark.js
4 years ago
theme-solarized_light.js
4 years ago
theme-sqlserver.js
4 years ago
theme-terminal.js
4 years ago
theme-textmate.js
4 years ago
theme-tomorrow.js
4 years ago
theme-tomorrow_night.js
4 years ago
theme-tomorrow_night_blue.js
4 years ago
theme-tomorrow_night_bright.js
4 years ago
theme-tomorrow_night_eighties.js
4 years ago
theme-twilight.js
4 years ago
theme-vibrant_ink.js
4 years ago
theme-xcode.js
4 years ago
worker-base.js
4 years ago
worker-coffee.js
4 years ago
worker-css.js
4 years ago
worker-html.js
4 years ago
worker-javascript.js
4 years ago
worker-json.js
4 years ago
worker-lua.js
4 years ago
worker-php.js
4 years ago
worker-xml.js
4 years ago
worker-xquery.js
4 years ago
worker-yaml.js
4 years ago
mode-drools.js
8 lines
| 1 | ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},s.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(s,i),s.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},s.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},s.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=s}),ace.define("ace/mode/java_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./doc_comment_highlight_rules").DocCommentHighlightRules,s=e("./text_highlight_rules").TextHighlightRules,o=function(){var e="abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while|var",t="null|Infinity|NaN|undefined",n="AbstractMethodError|AssertionError|ClassCircularityError|ClassFormatError|Deprecated|EnumConstantNotPresentException|ExceptionInInitializerError|IllegalAccessError|IllegalThreadStateException|InstantiationError|InternalError|NegativeArraySizeException|NoSuchFieldError|Override|Process|ProcessBuilder|SecurityManager|StringIndexOutOfBoundsException|SuppressWarnings|TypeNotPresentException|UnknownError|UnsatisfiedLinkError|UnsupportedClassVersionError|VerifyError|InstantiationException|IndexOutOfBoundsException|ArrayIndexOutOfBoundsException|CloneNotSupportedException|NoSuchFieldException|IllegalArgumentException|NumberFormatException|SecurityException|Void|InheritableThreadLocal|IllegalStateException|InterruptedException|NoSuchMethodException|IllegalAccessException|UnsupportedOperationException|Enum|StrictMath|Package|Compiler|Readable|Runtime|StringBuilder|Math|IncompatibleClassChangeError|NoSuchMethodError|ThreadLocal|RuntimePermission|ArithmeticException|NullPointerException|Long|Integer|Short|Byte|Double|Number|Float|Character|Boolean|StackTraceElement|Appendable|StringBuffer|Iterable|ThreadGroup|Runnable|Thread|IllegalMonitorStateException|StackOverflowError|OutOfMemoryError|VirtualMachineError|ArrayStoreException|ClassCastException|LinkageError|NoClassDefFoundError|ClassNotFoundException|RuntimeException|Exception|ThreadDeath|Error|Throwable|System|ClassLoader|Cloneable|Class|CharSequence|Comparable|String|Object",r=this.createKeywordMapper({"variable.language":"this",keyword:e,"constant.language":t,"support.function":n},"identifier");this.$rules={start:[{token:"comment",regex:"\\/\\/.*$"},i.getStartRule("doc-start"),{token:"comment",regex:"\\/\\*",next:"comment"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F][0-9a-fA-F_]*|[bB][01][01_]*)[LlSsDdFfYy]?\b/},{token:"constant.numeric",regex:/[+-]?\d[\d_]*(?:(?:\.[\d_]*)?(?:[eE][+-]?[\d_]+)?)?[LlSsDdFfYy]?\b/},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{regex:"(open(?:\\s+))?module(?=\\s*\\w)",token:"keyword",next:[{regex:"{",token:"paren.lparen",next:[{regex:"}",token:"paren.rparen",next:"start"},{regex:"\\b(requires|transitive|exports|opens|to|uses|provides|with)\\b",token:"keyword"}]},{token:"text",regex:"\\s+"},{token:"identifier",regex:"\\w+"},{token:"punctuation.operator",regex:"."},{token:"text",regex:"\\s+"},{regex:"",next:"start"}]},{token:r,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"!|\\$|%|&|\\||\\^|\\*|\\/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?|\\:|\\*=|\\/=|%=|\\+=|\\-=|&=|\\|=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],comment:[{token:"comment",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]},this.embedRules(i,"doc-",[i.getEndRule("start")]),this.normalizeRules()};r.inherits(o,s),t.JavaHighlightRules=o}),ace.define("ace/mode/drools_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/java_highlight_rules","ace/mode/doc_comment_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=e("./java_highlight_rules").JavaHighlightRules,o=e("./doc_comment_highlight_rules").DocCommentHighlightRules,u="[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*",a="[a-zA-Z\\$_\u00a1-\uffff][\\.a-zA-Z\\d\\$_\u00a1-\uffff]*",f=function(){var e="date|effective|expires|lock|on|active|no|loop|auto|focus|activation|group|agenda|ruleflow|duration|timer|calendars|refract|direct|dialect|salience|enabled|attributes|extends|template|function|contains|matches|eval|excludes|soundslike|memberof|not|in|or|and|exists|forall|over|from|entry|point|accumulate|acc|collect|action|reverse|result|end|init|instanceof|extends|super|boolean|char|byte|short|int|long|float|double|this|void|class|new|case|final|if|else|for|while|do|default|try|catch|finally|switch|synchronized|return|throw|break|continue|assert|modify|static|public|protected|private|abstract|native|transient|volatile|strictfp|throws|interface|enum|implements|type|window|trait|no-loop|str",t="AbstractMethodError|AssertionError|ClassCircularityError|ClassFormatError|Deprecated|EnumConstantNotPresentException|ExceptionInInitializerError|IllegalAccessError|IllegalThreadStateException|InstantiationError|InternalError|NegativeArraySizeException|NoSuchFieldError|Override|Process|ProcessBuilder|SecurityManager|StringIndexOutOfBoundsException|SuppressWarnings|TypeNotPresentException|UnknownError|UnsatisfiedLinkError|UnsupportedClassVersionError|VerifyError|InstantiationException|IndexOutOfBoundsException|ArrayIndexOutOfBoundsException|CloneNotSupportedException|NoSuchFieldException|IllegalArgumentException|NumberFormatException|SecurityException|Void|InheritableThreadLocal|IllegalStateException|InterruptedException|NoSuchMethodException|IllegalAccessException|UnsupportedOperationException|Enum|StrictMath|Package|Compiler|Readable|Runtime|StringBuilder|Math|IncompatibleClassChangeError|NoSuchMethodError|ThreadLocal|RuntimePermission|ArithmeticException|NullPointerException|Long|Integer|Short|Byte|Double|Number|Float|Character|Boolean|StackTraceElement|Appendable|StringBuffer|Iterable|ThreadGroup|Runnable|Thread|IllegalMonitorStateException|StackOverflowError|OutOfMemoryError|VirtualMachineError|ArrayStoreException|ClassCastException|LinkageError|NoClassDefFoundError|ClassNotFoundException|RuntimeException|Exception|ThreadDeath|Error|Throwable|System|ClassLoader|Cloneable|Class|CharSequence|Comparable|String|Object",n=this.createKeywordMapper({"variable.language":"this",keyword:e,"constant.language":"null","support.class":t,"support.function":"retract|update|modify|insert"},"identifier"),r=function(){return[{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"}]},i=function(e){return[{token:"comment",regex:"\\/\\/.*$"},o.getStartRule("doc-start"),{token:"comment",regex:"\\/\\*",next:e},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"}]},f=function(e){return[{token:"comment.block",regex:"\\*\\/",next:e},{defaultToken:"comment.block"}]},l=function(){return[{token:n,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}]};this.$rules={start:[].concat(i("block.comment"),[{token:"entity.name.type",regex:"@[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:["keyword","text","entity.name.type"],regex:"(package)(\\s+)("+a+")"},{token:["keyword","text","keyword","text","entity.name.type"],regex:"(import)(\\s+)(function)(\\s+)("+a+")"},{token:["keyword","text","entity.name.type"],regex:"(import)(\\s+)("+a+")"},{token:["keyword","text","entity.name.type","text","variable"],regex:"(global)(\\s+)("+a+")(\\s+)("+u+")"},{token:["keyword","text","keyword","text","entity.name.type"],regex:"(declare)(\\s+)(trait)(\\s+)("+u+")"},{token:["keyword","text","entity.name.type"],regex:"(declare)(\\s+)("+u+")"},{token:["keyword","text","entity.name.type"],regex:"(extends)(\\s+)("+a+")"},{token:["keyword","text"],regex:"(rule)(\\s+)",next:"asset.name"}],r(),[{token:["variable.other","text","text"],regex:"("+u+")(\\s*)(:)"},{token:["keyword","text"],regex:"(query)(\\s+)",next:"asset.name"},{token:["keyword","text"],regex:"(when)(\\s*)"},{token:["keyword","text"],regex:"(then)(\\s*)",next:"java-start"},{token:"paren.lparen",regex:/[\[({]/},{token:"paren.rparen",regex:/[\])}]/}],l()),"block.comment":f("start"),"asset.name":[{token:"entity.name",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"entity.name",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"entity.name",regex:u},{regex:"",token:"empty",next:"start"}]},this.embedRules(o,"doc-",[o.getEndRule("start")]),this.embedRules(s,"java-",[{token:"support.function",regex:"\\b(insert|modify|retract|update)\\b"},{token:"keyword",regex:"\\bend\\b",next:"start"}])};r.inherits(f,i),t.DroolsHighlightRules=f}),ace.define("ace/mode/folding/drools",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,s=e("./fold_mode").FoldMode,o=e("../../token_iterator").TokenIterator,u=t.FoldMode=function(){};r.inherits(u,s),function(){this.foldingStartMarker=/\b(rule|declare|query|when|then)\b/,this.foldingStopMarker=/\bend\b/,this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),s=r.match(this.foldingStartMarker);if(s){var u=s.index;if(s[1]){var a={row:n,column:r.length},f=new o(e,a.row,a.column),l="end",c=f.getCurrentToken();c.value=="when"&&(l="then");while(c){if(c.value==l)return i.fromPoints(a,{row:f.getCurrentTokenRow(),column:f.getCurrentTokenColumn()});c=f.stepForward()}}}}}.call(u.prototype)}),ace.define("ace/mode/drools",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/drools_highlight_rules","ace/mode/folding/drools"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./drools_highlight_rules").DroolsHighlightRules,o=e("./folding/drools").FoldMode,u=function(){this.HighlightRules=s,this.foldingRules=new o,this.$behaviour=this.$defaultBehaviour};r.inherits(u,i),function(){this.lineCommentStart="//",this.$id="ace/mode/drools",this.snippetFileId="ace/snippets/drools"}.call(u.prototype),t.Mode=u}); (function() { |
| 2 | ace.require(["ace/mode/drools"], function(m) { |
| 3 | if (typeof module == "object" && typeof exports == "object" && module) { |
| 4 | module.exports = m; |
| 5 | } |
| 6 | }); |
| 7 | })(); |
| 8 |