Liferay.Loader.define("liferay!object-web$codemirror@5.65.12/mode/rpm/rpm",["module","exports","require","../../lib/codemirror"],(function(r,e,t){var n,o=void 0;window;n=function(r){"use strict";r.defineMode("rpm-changes",(function(){var r=/^-+$/,e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)  ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,t=/^[\w+.-]+@[\w.-]+/;return{token:function(n){if(n.sol()){if(n.match(r))return"tag";if(n.match(e))return"tag"}return n.match(t)?"string":(n.next(),null)}}})),r.defineMIME("text/x-rpm-changes","rpm-changes"),r.defineMode("rpm-spec",(function(){var r=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,e=/^[a-zA-Z0-9()]+:/,t=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,n=/^%(ifnarch|ifarch|if)/,o=/^%(else|endif)/,i=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(a,c){if("#"==a.peek())return a.skipToEnd(),"comment";if(a.sol()){if(a.match(e))return"header";if(a.match(t))return"atom"}if(a.match(/^\$\w+/))return"def";if(a.match(/^\$\{\w+\}/))return"def";if(a.match(o))return"keyword";if(a.match(n))return c.controlFlow=!0,"keyword";if(c.controlFlow){if(a.match(i))return"operator";if(a.match(/^(\d+)/))return"number";a.eol()&&(c.controlFlow=!1)}if(a.match(r))return a.eol()&&(c.controlFlow=!1),"number";if(a.match(/^%[\w]+/))return a.match("(")&&(c.macroParameters=!0),"keyword";if(c.macroParameters){if(a.match(/^\d+/))return"number";if(a.match(")"))return c.macroParameters=!1,"keyword"}return a.match(/^%\{\??[\w \-\:\!]+\}/)?(a.eol()&&(c.controlFlow=!1),"def"):(a.next(),null)}}})),r.defineMIME("text/x-rpm-spec","rpm-spec")},"object"==typeof e&&"object"==typeof r?n(t("../../lib/codemirror")):"function"==typeof o&&o.amd?o(["../../lib/codemirror"],n):n(CodeMirror)}));
//# sourceMappingURL=rpm.js.map