src/pyams_skin/resources/js/ext/ace/mode-logiql.min.js
changeset 557 bca7a7e058a3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_skin/resources/js/ext/ace/mode-logiql.min.js	Thu Feb 13 11:43:31 2020 +0100
@@ -0,0 +1,1 @@
+ace.define("ace/mode/logiql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var o=e("../lib/oop"),r=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"comment.block",regex:"/\\*",push:[{token:"comment.block",regex:"\\*/",next:"pop"},{defaultToken:"comment.block"}]},{token:"comment.single",regex:"//.*"},{token:"constant.numeric",regex:"\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?[fd]?"},{token:"string",regex:'"',push:[{token:"string",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"constant.language",regex:"\\b(true|false)\\b"},{token:"entity.name.type.logicblox",regex:"`[a-zA-Z_:]+(\\d|\\a)*\\b"},{token:"keyword.start",regex:"->",comment:"Constraint"},{token:"keyword.start",regex:"--\x3e",comment:"Level 1 Constraint"},{token:"keyword.start",regex:"<-",comment:"Rule"},{token:"keyword.start",regex:"<--",comment:"Level 1 Rule"},{token:"keyword.end",regex:"\\.",comment:"Terminator"},{token:"keyword.other",regex:"!",comment:"Negation"},{token:"keyword.other",regex:",",comment:"Conjunction"},{token:"keyword.other",regex:";",comment:"Disjunction"},{token:"keyword.operator",regex:"<=|>=|!=|<|>",comment:"Equality"},{token:"keyword.other",regex:"@",comment:"Equality"},{token:"keyword.operator",regex:"\\+|-|\\*|/",comment:"Arithmetic operations"},{token:"keyword",regex:"::",comment:"Colon colon"},{token:"support.function",regex:"\\b(agg\\s*<<)",push:[{include:"$self"},{token:"support.function",regex:">>",next:"pop"}]},{token:"storage.modifier",regex:"\\b(lang:[\\w:]*)"},{token:["storage.type","text"],regex:"(export|sealed|clauses|block|alias|alias_all)(\\s*\\()(?=`)"},{token:"entity.name",regex:"[a-zA-Z_][a-zA-Z_0-9:]*(@prev|@init|@final)?(?=(\\(|\\[))"},{token:"variable.parameter",regex:"([a-zA-Z][a-zA-Z_0-9]*|_)\\s*(?=(,|\\.|<-|->|\\)|\\]|=))"}]},this.normalizeRules()};o.inherits(i,r),t.LogiQLHighlightRules=i}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){"use strict";var o=e("../../lib/oop"),r=e("./fold_mode").FoldMode,h=e("../../range").Range,i=t.FoldMode=function(){};o.inherits(i,r),function(){this.getFoldWidgetRange=function(e,t,n){var o=this.indentationBlock(e,n);if(o)return o;var r=/\S/,i=e.getLine(n),a=i.search(r);if(-1!=a&&"#"==i[a]){for(var s=i.length,c=e.getLength(),g=n,l=n;++n<c;){var u=(i=e.getLine(n)).search(r);if(-1!=u){if("#"!=i[u])break;l=n}}if(g<l){var d=e.getLine(l).length;return new h(g,s,l,d)}}},this.getFoldWidget=function(e,t,n){var o=e.getLine(n),r=o.search(/\S/),i=e.getLine(n+1),a=e.getLine(n-1),s=a.search(/\S/),c=i.search(/\S/);if(-1==r)return e.foldWidgets[n-1]=-1!=s&&s<c?"start":"","";if(-1==s){if(r==c&&"#"==o[r]&&"#"==i[r])return e.foldWidgets[n-1]="",e.foldWidgets[n+1]="","start"}else if(s==r&&"#"==o[r]&&"#"==a[r]&&-1==e.getLine(n-2).search(/\S/))return e.foldWidgets[n-1]="start",e.foldWidgets[n+1]="";return e.foldWidgets[n-1]=-1!=s&&s<r?"start":"",r<c?"start":""}}.call(i.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";var a=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var o=n[1].length,r=e.findMatchingBracket({row:t,column:o});if(!r||r.row==t)return 0;var i=this.$getIndent(e.getLine(r.row));e.replace(new a(t,0,t,o-1),i)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/logiql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/logiql_highlight_rules","ace/mode/folding/coffee","ace/token_iterator","ace/range","ace/mode/behaviour/cstyle","ace/mode/matching_brace_outdent"],function(e,t,n){"use strict";var o=e("../lib/oop"),r=e("./text").Mode,i=e("./logiql_highlight_rules").LogiQLHighlightRules,a=e("./folding/coffee").FoldMode,g=e("../token_iterator").TokenIterator,l=e("../range").Range,s=e("./behaviour/cstyle").CstyleBehaviour,c=e("./matching_brace_outdent").MatchingBraceOutdent,u=function(){this.HighlightRules=i,this.foldingRules=new a,this.$outdent=new c,this.$behaviour=new s};o.inherits(u,r),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var o=this.$getIndent(t),r=this.getTokenizer().getLineTokens(t,e),i=r.tokens,a=r.state;if(/comment|string/.test(a))return o;if(i.length&&"comment.single"==i[i.length-1].type)return o;t.match();return/(-->|<--|<-|->|{)\s*$/.test(t)&&(o+=n),o},this.checkOutdent=function(e,t,n){return!!this.$outdent.checkOutdent(t,n)||("\n"===n||"\r\n"===n)&&!!/^\s+/.test(t)},this.autoOutdent=function(e,t,n){if(!this.$outdent.autoOutdent(t,n)){var o=t.getLine(n),r=o.match(/^\s+/),i=o.lastIndexOf(".")+1;if(!r||!n||!i)return 0;t.getLine(n+1);var a=this.getMatching(t,{row:n,column:i});if(!a||a.start.row==n)return 0;i=r[0].length;var s=this.$getIndent(t.getLine(a.start.row));t.replace(new l(n+1,0,n+1,i),s)}},this.getMatching=function(e,t,n){null==t&&(t=e.selection.lead),"object"==typeof t&&(n=t.column,t=t.row);var o,r=e.getTokenAt(t,n),i="keyword.start",a="keyword.end";if(r){if(r.type==i){(s=new g(e,t,n)).step=s.stepForward}else{if(r.type!=a)return;var s;(s=new g(e,t,n)).step=s.stepBackward}for(;(o=s.step())&&o.type!=i&&o.type!=a;);if(o&&o.type!=r.type){var c=s.getCurrentTokenColumn();t=s.getCurrentTokenRow();return new l(t,c,t,c+o.value.length)}}},this.$id="ace/mode/logiql"}.call(u.prototype),t.Mode=u}),ace.require(["ace/mode/logiql"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)});