"use strict";(self.webpackChunksc_markdown=self.webpackChunksc_markdown||[]).push([[3208],{3208(w,d,k){var r;function u(e){return new RegExp("^(?:"+e.join("|")+")$","i")}k.d(d,{turtle:()=>h}),u([]);var a=u(["@prefix","@base","a"]),f=/[*+\-<>=&|]/;function p(e,n){var t=e.next();if(r=null,"<"==t&&!e.match(/^[\s\u00a0=]/,!1))return e.match(/^[^\s\u00a0>]*>?/),"atom";if('"'==t||"'"==t)return n.tokenize=function v(e){return function(n,t){for(var o,i=!1;null!=(o=n.next());){if(o==e&&!i){t.tokenize=p;break}i=!i&&"\\"==o}return"string"}}(t),n.tokenize(e,n);if(/[{}\(\),\.;\[\]]/.test(t))return r=t,null;if("#"==t)return e.skipToEnd(),"comment";if(f.test(t))return e.eatWhile(f),null;if(":"==t)return"operator";if(e.eatWhile(/[_\w\d]/),":"==e.peek())return"variableName.special";var i=e.current();return a.test(i)?"meta":t>="A"&&t<="Z"?"comment":"keyword"}function l(e,n,t){e.context={prev:e.context,indent:e.indent,col:t,type:n}}function c(e){e.indent=e.context.indent,e.context=e.context.prev}const h={name:"turtle",startState:function(){return{tokenize:p,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var t=n.tokenize(e,n);if("comment"!=t&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==r)l(n,")",e.column());else if("["==r)l(n,"]",e.column());else if("{"==r)l(n,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;n.context&&"pattern"==n.context.type;)c(n);n.context&&r==n.context.type&&c(n)}else"."==r&&n.context&&"pattern"==n.context.type?c(n):/atom|string|variable/.test(t)&&n.context&&(/[\}\]]/.test(n.context.type)?l(n,"pattern",e.column()):"pattern"==n.context.type&&!n.context.align&&(n.context.align=!0,n.context.col=e.column()));return t},indent:function(e,n,t){var i=n&&n.charAt(0),o=e.context;if(/[\]\}]/.test(i))for(;o&&"pattern"==o.type;)o=o.prev;var x=o&&i==o.type;return o?"pattern"==o.type?o.col:o.align?o.col+(x?0:1):o.indent+(x?0:t.unit):0},languageData:{commentTokens:{line:"#"}}}}}]);