Liferay.Loader.define("fragment-web$codemirror@5.65.2/mode/webidl/webidl",["module","exports","require","../../lib/codemirror"],(function(e,r,t){var n,a=void 0;window;n=function(e){"use strict";function wordRegexp(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var r=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],t=wordRegexp(r),n=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],a=wordRegexp(n),i=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],o=wordRegexp(i),c=["true","false","Infinity","NaN","null"],l=wordRegexp(c);e.registerHelper("hintWords","webidl",r.concat(n).concat(i).concat(c));var m=wordRegexp(["callback","dictionary","enum","interface"]),d=wordRegexp(["typedef"]),f=/^[:<=>?]/,u=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,s=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,b=/^_?[A-Za-z][0-9A-Z_a-z-]*/,p=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,y=/^"[^"]*"/,g=/^\/\*.*?\*\//,h=/^\/\*.*/,w=/^.*?\*\//;e.defineMode("webidl",(function(){return{startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,r){var n=function readToken(e,r){if(e.eatSpace())return null;if(r.inComment)return e.match(w)?(r.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(g))return"comment";if(e.match(h))return r.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(u)||e.match(s)))return"number";if(e.match(y))return"string";if(r.startDef&&e.match(b))return"def";if(r.endDef&&e.match(p))return r.endDef=!1,"def";if(e.match(o))return"keyword";if(e.match(a)){var n=r.lastToken,i=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return":"===n||"implements"===n||"implements"===i||"="===i?"builtin":"variable-3"}return e.match(t)?"builtin":e.match(l)?"atom":e.match(b)?"variable":e.match(f)?"operator":(e.next(),null)}(e,r);if(n){var i=e.current();r.lastToken=i,"keyword"===n?(r.startDef=m.test(i),r.endDef=r.endDef||d.test(i)):r.startDef=!1}return n}}})),e.defineMIME("text/x-webidl","webidl")},"object"==typeof r&&"object"==typeof e?n(t("../../lib/codemirror")):"function"==typeof a&&a.amd?a(["../../lib/codemirror"],n):n(CodeMirror)}));
//# sourceMappingURL=webidl.js.map