?
Path : /home/admin/public_html/old/media/editors/codemirror/mode/dart/ |
Current File : /home/admin/public_html/old/media/editors/codemirror/mode/dart/dart.min.js |
!function(a){"object"==typeof exports&&"object"==typeof module?a(require("../../lib/codemirror"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../clike/clike"],a):a(CodeMirror)}(function(a){"use strict";function b(a){for(var b={},c=0;c<a.length;++c)b[a[c]]=!0;return b}var c="this super static final const abstract class extends external factory implements get native operator set typedef with enum throw rethrow assert break case continue default in return new deferred async await try catch finally do else for if switch while import library export part of show hide is".split(" "),d="try catch finally do else for if switch while".split(" "),e="true false null".split(" "),f="void bool num int double dynamic var String".split(" ");a.defineMIME("application/dart",{name:"clike",keywords:b(c),multiLineStrings:!0,blockKeywords:b(d),builtin:b(f),atoms:b(e),hooks:{"@":function(a){return a.eatWhile(/[\w\$_]/),"meta"}}}),a.registerHelper("hintWords","application/dart",c.concat(e).concat(f)),a.defineMode("dart",function(b){return a.getMode(b,"application/dart")},"clike")});