You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
4.0 KiB
1 line
4.0 KiB
"use strict";(self.webpackChunkjupyter_web=self.webpackChunkjupyter_web||[]).push([[5576],{25576:(z,b,p)=>{function h(e,i){for(var n=0;n<e.length;n++)i(e[n],n)}function v(e,i){for(var n=0;n<e.length;n++)if(i(e[n],n))return!0;return!1}p.r(b),p.d(b,{dylan:()=>C});var t={unnamedDefinition:["interface"],namedDefinition:["module","library","macro","C-struct","C-union","C-function","C-callable-wrapper"],typeParameterizedDefinition:["class","C-subtype","C-mapped-subtype"],otherParameterizedDefinition:["method","function","C-variable","C-address"],constantSimpleDefinition:["constant"],variableSimpleDefinition:["variable"],otherSimpleDefinition:["generic","domain","C-pointer-type","table"],statement:["if","block","begin","method","case","for","select","when","unless","until","while","iterate","profiling","dynamic-bind"],separator:["finally","exception","cleanup","else","elseif","afterwards"],other:["above","below","by","from","handler","in","instance","let","local","otherwise","slot","subclass","then","to","keyed-by","virtual"],signalingCalls:["signal","error","cerror","break","check-type","abort"]};t.otherDefinition=t.unnamedDefinition.concat(t.namedDefinition).concat(t.otherParameterizedDefinition),t.definition=t.typeParameterizedDefinition.concat(t.otherDefinition),t.parameterizedDefinition=t.typeParameterizedDefinition.concat(t.otherParameterizedDefinition),t.simpleDefinition=t.constantSimpleDefinition.concat(t.variableSimpleDefinition).concat(t.otherSimpleDefinition),t.keyword=t.statement.concat(t.separator).concat(t.other);var f="[-_a-zA-Z?!*@<>$%]+",D=new RegExp("^"+f),l={symbolKeyword:f+":",symbolClass:"<"+f+">",symbolGlobal:"\\*"+f+"\\*",symbolConstant:"\\$"+f},g={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variableName.standard",symbolConstant:"variableName.constant"};for(var c in l)l.hasOwnProperty(c)&&(l[c]=new RegExp("^"+l[c]));l.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var u={keyword:"keyword",definition:"def",simpleDefinition:"def",signalingCalls:"builtin"},y={},k={};function s(e,i,n){return i.tokenize=n,n(e,i)}function d(e,i){var n=e.peek();if("'"==n||'"'==n)return e.next(),s(e,i,x(n,"string"));if("/"==n){if(e.next(),e.eat("*"))return s(e,i,m);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(n)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if("#"==n)return e.next(),'"'==(n=e.peek())?(e.next(),s(e,i,x('"',"string"))):"b"==n?(e.next(),e.eatWhile(/[01]/),"number"):"x"==n?(e.next(),e.eatWhile(/[\da-f]/i),"number"):"o"==n?(e.next(),e.eatWhile(/[0-7]/),"number"):"#"==n?(e.next(),"punctuation"):"["==n||"("==n?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if("~"==n)return e.next(),"="==(n=e.peek())?(e.next(),"="==(n=e.peek())&&e.next(),"operator"):"operator";if(":"==n){if(e.next(),"="==(n=e.peek()))return e.next(),"operator";if(":"==n)return e.next(),"punctuation"}else{if(-1!="[](){}".indexOf(n))return e.next(),"bracket";if(-1!=".,".indexOf(n))return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var a in l)if(l.hasOwnProperty(a)){var r=l[a];if(r instanceof Array&&v(r,function(o){return e.match(o)})||e.match(r))return g[a]}return/[+\-*\/^=<>&|]/.test(n)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),y.hasOwnProperty(e.current())?k[e.current()]:e.current().match(D)?"variable":(e.next(),"variableName.standard"))}function m(e,i){for(var o,n=!1,a=!1,r=0;o=e.next();){if("/"==o&&n){if(!(r>0)){i.tokenize=d;break}r--}else"*"==o&&a&&r++;n="*"==o,a="/"==o}return"comment"}function x(e,i){return function(n,a){for(var o,r=!1,w=!1;null!=(o=n.next());){if(o==e&&!r){w=!0;break}r=!r&&"\\"==o}return(w||!r)&&(a.tokenize=d),i}}h(["keyword","definition","simpleDefinition","signalingCalls"],function(e){h(t[e],function(i){y[i]=e,k[i]=u[e]})});const C={name:"dylan",startState:function(){return{tokenize:d,currentIndent:0}},token:function(e,i){return e.eatSpace()?null:i.tokenize(e,i)},languageData:{commentTokens:{block:{open:"/*",close:"*/"}}}}}}]); |