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