Liferay.Loader.define("fragment-web$codemirror@5.65.2/mode/dart/dart",["module","exports","require","../../lib/codemirror","../clike/clike"],(function(e,t,n){var i,r=void 0;window;i=function(e){"use strict";var t="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".split(" "),n="try catch finally do else for if switch while".split(" "),i="true false null".split(" "),r="void bool num int double dynamic var String Null Never".split(" ");function set(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function pushInterpolationStack(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function popInterpolationStack(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function tokenString(e,t,n,i){var r=!1;if(t.eat(e)){if(!t.eat(e))return"string";r=!0}function tokenStringHelper(t,n){for(var o=!1;!t.eol();){if(!i&&!o&&"$"==t.peek())return pushInterpolationStack(n),n.tokenize=tokenInterpolation,"string";var a=t.next();if(a==e&&!o&&(!r||t.match(e+e))){n.tokenize=null;break}o=!i&&!o&&"\\"==a}return"string"}return n.tokenize=tokenStringHelper,tokenStringHelper(t,n)}function tokenInterpolation(e,t){return e.eat("$"),e.eat("{")?t.tokenize=null:t.tokenize=tokenInterpolationIdentifier,null}function tokenInterpolationIdentifier(e,t){return e.eatWhile(/[\w_]/),t.tokenize=popInterpolationStack(t),"variable"}function tokenNestedComment(e){return function(t,n){for(var i;i=t.next();){if("*"==i&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=tokenNestedComment(e-1),n.tokenize(t,n)}if("/"==i&&t.eat("*"))return n.tokenize=tokenNestedComment(e+1),n.tokenize(t,n)}return"comment"}}e.defineMIME("application/dart",{name:"clike",keywords:set(t),blockKeywords:set(n),builtin:set(r),atoms:set(i),hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,t){return tokenString("'",e,t,!1)},'"':function(e,t){return tokenString('"',e,t,!1)},r:function(e,t){var n=e.peek();return("'"==n||'"'==n)&&tokenString(e.next(),e,t,!0)},"}":function(e,t){return function sizeInterpolationStack(e){return e.interpolationStack?e.interpolationStack.length:0}(t)>0&&(t.tokenize=popInterpolationStack(t),null)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=tokenNestedComment(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",t.concat(i).concat(r)),e.defineMode("dart",(function(t){return e.getMode(t,"application/dart")}),"clike")},"object"==typeof t&&"object"==typeof e?i(n("../../lib/codemirror"),n("../clike/clike")):"function"==typeof r&&r.amd?r(["../../lib/codemirror","../clike/clike"],i):i(CodeMirror)}));
//# sourceMappingURL=dart.js.map