!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../clike/clike"],e):e(CodeMirror)}(function(e){function t(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function n(e,t,n,r){function o(t,n){for(var o=!1;!t.eol();){if(!r&&!o&&"$"==t.peek()){((o=n).interpolationStack||(o.interpolationStack=[])).push(o.tokenize),n.tokenize=i;break}var l=t.next();if(l==e&&!o&&(!a||t.match(e+e))){n.tokenize=null;break}o=!r&&!o&&"\\"==l}return"string"}var a=!1;if(t.eat(e)){if(!t.eat(e))return"string";a=!0}return n.tokenize=o,o(t,n)}function i(e,t){return e.eat("$"),e.eat("{")?t.tokenize=null:t.tokenize=r,null}function r(e,t){return e.eatWhile(/[\w_]/),t.tokenize=(t.interpolationStack||(t.interpolationStack=[])).pop(),"variable"}var o="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline".split(" "),a=["true","false","null"],l="void bool num int double dynamic var String Null Never".split(" ");e.defineMIME("application/dart",{name:"clike",keywords:t(o),blockKeywords:t("try catch finally do else for if switch while".split(" ")),builtin:t(l),atoms:t(a),hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,t){return n("'",e,t,!1)},'"':function(e,t){return n('"',e,t,!1)},r:function(e,t){var i=e.peek();return("'"==i||'"'==i)&&n(e.next(),e,t,!0)},"}":function(e,t){return 0<(t.interpolationStack?t.interpolationStack.length:0)&&(t.tokenize=(t.interpolationStack||(t.interpolationStack=[])).pop(),null)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=function e(t){return function(n,i){for(var r;r=n.next();){if("*"==r&&n.eat("/")){if(1==t){i.tokenize=null;break}return i.tokenize=e(t-1),i.tokenize(n,i)}if("/"==r&&n.eat("*"))return i.tokenize=e(t+1),i.tokenize(n,i)}return"comment"}}(1),t.tokenize(e,t))},token:function(e,t,n){if("variable"==n&&RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g").test(e.current()))return"variable-2"}}}),e.registerHelper("hintWords","application/dart",o.concat(a).concat(l)),e.defineMode("dart",function(t){return e.getMode(t,"application/dart")},"clike")});