!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("ntriples",function(){var i=0,a=1,o=2,u=3,f=4,l=5,s=6,c=7,p=8,d=9,h=10,v=11,b=12;function x(e,n){var t,r=e.location;t=r==i&&"<"==n?a:r==i&&"_"==n?o:r==u&&"<"==n?f:r==l&&"<"==n?s:r==l&&"_"==n?c:r==l&&'"'==n?p:r==a&&">"==n?u:r==o&&" "==n?u:r==f&&">"==n?l:r==s&&">"==n?v:r==c&&" "==n?v:r==p&&'"'==n?v:r==d&&" "==n?v:r==h&&">"==n?v:r==p&&"@"==n?d:r==p&&"^"==n?h:" "!=n||r!=i&&r!=u&&r!=l&&r!=v?r==v&&"."==n?i:b:r,e.location=t}return{startState:function(){return{location:i,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(e,n){var t=e.next();if("<"==t){x(n,t);var r="";return e.eatWhile(function(e){return"#"!=e&&">"!=e&&(r+=e,!0)}),n.uris.push(r),e.match("#",!1)?"variable":(e.next(),x(n,">"),"variable")}if("#"==t){var i="";return e.eatWhile(function(e){return">"!=e&&" "!=e&&(i+=e,!0)}),n.anchors.push(i),"variable-2"}if(">"==t)return x(n,">"),"variable";if("_"==t){x(n,t);var a="";return e.eatWhile(function(e){return" "!=e&&(a+=e,!0)}),n.bnodes.push(a),e.next(),x(n," "),"builtin"}if('"'==t)return x(n,t),e.eatWhile(function(e){return'"'!=e}),e.next(),"@"!=e.peek()&&"^"!=e.peek()&&x(n,'"'),"string";if("@"==t){x(n,"@");var o="";return e.eatWhile(function(e){return" "!=e&&(o+=e,!0)}),n.langs.push(o),e.next(),x(n," "),"string-2"}if("^"==t){e.next(),x(n,"^");var u="";return e.eatWhile(function(e){return">"!=e&&(u+=e,!0)}),n.types.push(u),e.next(),x(n,">"),"variable"}" "==t&&x(n,t),"."==t&&x(n,t)}}}),e.defineMIME("application/n-triples","ntriples"),e.defineMIME("application/n-quads","ntriples"),e.defineMIME("text/n-triples","ntriples")});