芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.6/vendor/codemirror/mode/scheme/scheme.min.js
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}((function(e){"use strict";e.defineMode("scheme",(function(){var e="comment",t="string",n="atom",r="number",i="bracket";function a(e){for(var t={},n=e.split(" "),r=0;r
integer char-alphabetic? char-ci<=? char-ci char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),o=a("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function s(e,t,n){this.indent=e,this.type=t,this.prev=n}function l(e,t,n){e.indentStack=new s(t,n,e.indentStack)}var d=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),u=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),p=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),m=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function f(e){return e.match(d)}function h(e){return e.match(u)}function x(e,t){return!0===t&&e.backUp(1),e.match(m)}function g(e){return e.match(p)}return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(a,s){if(null==s.indentStack&&a.sol()&&(s.indentation=a.indentation()),a.eatSpace())return null;var d=null;switch(s.mode){case"string":for(var u=!1;null!=(p=a.next());){if('"'==p&&!u){s.mode=!1;break}u=!u&&"\\"==p}d=t;break;case"comment":for(var p,m=!1;null!=(p=a.next());){if("#"==p&&m){s.mode=!1;break}m="|"==p}d=e;break;case"s-expr-comment":if(s.mode=!1,"("!=a.peek()&&"["!=a.peek()){a.eatWhile(/[^\s\(\)\[\]]/),d=e;break}s.sExprComment=0;default:var b=a.next();if('"'==b)s.mode="string",d=t;else if("'"==b)"("==a.peek()||"["==a.peek()?("number"!=typeof s.sExprQuote&&(s.sExprQuote=0),d=n):(a.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),d=n);else if("#"==b)if(a.eat("|"))s.mode="comment",d=e;else if(a.eat(/[tf]/i))d=n;else if(a.eat(";"))s.mode="s-expr-comment",d=e;else{var v=null,y=!1,k=!0;a.eat(/[ei]/i)?y=!0:a.backUp(1),a.match(/^#b/i)?v=f:a.match(/^#o/i)?v=h:a.match(/^#x/i)?v=g:a.match(/^#d/i)?v=x:a.match(/^[-+0-9.]/,!1)?(k=!1,v=x):y||a.eat("#"),null!=v&&(k&&!y&&a.match(/^#[ei]/i),v(a)&&(d=r))}else if(/^[-+0-9.]/.test(b)&&x(a,!0))d=r;else if(";"==b)a.skipToEnd(),d=e;else if("("==b||"["==b){for(var w,E="",q=a.column();null!=(w=a.eat(/[^\s\(\[\;\)\]]/));)E+=w;E.length>0&&o.propertyIsEnumerable(E)?l(s,q+2,b):(a.eatSpace(),a.eol()||";"==a.peek()?l(s,q+1,b):l(s,q+a.current().length,b)),a.backUp(a.current().length-1),"number"==typeof s.sExprComment&&s.sExprComment++,"number"==typeof s.sExprQuote&&s.sExprQuote++,d=i}else")"==b||"]"==b?(d=i,null!=s.indentStack&&s.indentStack.type==(")"==b?"(":"[")&&(!function(e){e.indentStack=e.indentStack.prev}(s),"number"==typeof s.sExprComment&&0==--s.sExprComment&&(d=e,s.sExprComment=!1),"number"==typeof s.sExprQuote&&0==--s.sExprQuote&&(d=n,s.sExprQuote=!1))):(a.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),d=c&&c.propertyIsEnumerable(a.current())?"builtin":"variable")}return"number"==typeof s.sExprComment?e:"number"==typeof s.sExprQuote?n:d},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent},closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}})),e.defineMIME("text/x-scheme","scheme")}));