ace.define("ace/mode/sql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/sql_highlight_rules","ace/range"],(function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("../tokenizer").Tokenizer,a=e("./sql_highlight_rules").SqlHighlightRules,l=e("../range").Range,s=function(){this.$tokenizer=new i((new a).getRules())};r.inherits(s,o),function(){this.toggleCommentLines=function(e,t,n,r){for(var o=!0,i=/^(\s*)--/,a=n;a<=r;a++)if(!i.test(t.getLine(a))){o=!1;break}if(o){var s=new l(0,0,0,0);for(a=n;a<=r;a++){var g=t.getLine(a).match(i);s.start.row=a,s.end.row=a,s.end.column=g[0].length,t.replace(s,g[1])}}else t.indentRows(n,r,"--")}}.call(s.prototype),t.Mode=s})),ace.define("ace/mode/sql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){var e=this.createKeywordMapper({"support.function":"count|min|max|avg|sum|rank|now|coalesce",keyword:"select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|when|else|end|type|left|right|join|on|outer|desc|asc","constant.language":"true|false|null"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]}};r.inherits(i,o),t.SqlHighlightRules=i}));
