Liferay.Loader.define("journal-web$codemirror@5.65.2/mode/turtle/turtle",["module","exports","require","../../lib/codemirror"],(function(t,e,n){var o,r=void 0;window;o=function(t){"use strict";t.defineMode("turtle",(function(t){var e,n=t.indentUnit;function wordRegexp(t){return new RegExp("^(?:"+t.join("|")+")$","i")}wordRegexp([]);var o=wordRegexp(["@prefix","@base","a"]),r=/[*+\-<>=&|]/;function tokenBase(t,n){var i=t.next();if(e=null,"<"!=i||t.match(/^[\s\u00a0=]/,!1)){if('"'==i||"'"==i)return n.tokenize=function tokenLiteral(t){return function(e,n){for(var o,r=!1;null!=(o=e.next());){if(o==t&&!r){n.tokenize=tokenBase;break}r=!r&&"\\"==o}return"string"}}(i),n.tokenize(t,n);if(/[{}\(\),\.;\[\]]/.test(i))return e=i,null;if("#"==i)return t.skipToEnd(),"comment";if(r.test(i))return t.eatWhile(r),null;if(":"==i)return"operator";if(t.eatWhile(/[_\w\d]/),":"==t.peek())return"variable-3";var c=t.current();return o.test(c)?"meta":i>="A"&&i<="Z"?"comment":"keyword"}return t.match(/^[^\s\u00a0>]*>?/),"atom"}function pushContext(t,e,n){t.context={prev:t.context,indent:t.indent,col:n,type:e}}function popContext(t){t.indent=t.context.indent,t.context=t.context.prev}return{startState:function(){return{tokenize:tokenBase,context:null,indent:0,col:0}},token:function(t,n){if(t.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=t.indentation()),t.eatSpace())return null;var o=n.tokenize(t,n);if("comment"!=o&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==e)pushContext(n,")",t.column());else if("["==e)pushContext(n,"]",t.column());else if("{"==e)pushContext(n,"}",t.column());else if(/[\]\}\)]/.test(e)){for(;n.context&&"pattern"==n.context.type;)popContext(n);n.context&&e==n.context.type&&popContext(n)}else"."==e&&n.context&&"pattern"==n.context.type?popContext(n):/atom|string|variable/.test(o)&&n.context&&(/[\}\]]/.test(n.context.type)?pushContext(n,"pattern",t.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=t.column()));return o},indent:function(t,e){var o=e&&e.charAt(0),r=t.context;if(/[\]\}]/.test(o))for(;r&&"pattern"==r.type;)r=r.prev;var i=r&&o==r.type;return r?"pattern"==r.type?r.col:r.align?r.col+(i?0:1):r.indent+(i?0:n):0},lineComment:"#"}})),t.defineMIME("text/turtle","turtle")},"object"==typeof e&&"object"==typeof t?o(n("../../lib/codemirror")):"function"==typeof r&&r.amd?r(["../../lib/codemirror"],o):o(CodeMirror)}));
//# sourceMappingURL=turtle.js.map