1(function(a){if(typeof exports=="object"&&typeof module=="object")a(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],a);else a(CodeMirror)})(function(a){"use strict";a.defineMode("rpm-changes",function(){var a=/^-+$/;var b=/^(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} - /;var c=/^[\w+.-]+@[\w.-]+/;return{token:function(d){if(d.sol()){if(d.match(a)){return"tag"}if(d.match(b)){return"tag"}}if(d.match(c)){return"string"}d.next();return null}}});a.defineMIME("text/x-rpm-changes","rpm-changes");a.defineMode("rpm-spec",function(){var a=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/;var b=/^[a-zA-Z0-9()]+:/;var c=/^%(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)/;var d=/^%(ifnarch|ifarch|if)/;var e=/^%(else|endif)/;var f=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:false,macroParameters:false,section:false}},token:function(g,h){var i=g.peek();if(i=="#"){g.skipToEnd();return"comment"}if(g.sol()){if(g.match(b)){return"header"}if(g.match(c)){return"atom"}}if(g.match(/^\$\w+/)){return"def"}if(g.match(/^\$\{\w+\}/)){return"def"}if(g.match(e)){return"keyword"}if(g.match(d)){h.controlFlow=true;return"keyword"}if(h.controlFlow){if(g.match(f)){return"operator"}if(g.match(/^(\d+)/)){return"number"}if(g.eol()){h.controlFlow=false}}if(g.match(a)){if(g.eol()){h.controlFlow=false}return"number"}if(g.match(/^%[\w]+/)){if(g.match(/^\(/)){h.macroParameters=true}return"keyword"}if(h.macroParameters){if(g.match(/^\d+/)){return"number"}if(g.match(/^\)/)){h.macroParameters=false;return"keyword"}}if(g.match(/^%\{\??[\w \-\:\!]+\}/)){if(g.eol()){h.controlFlow=false}return"def"}g.next();return null}}});a.defineMIME("text/x-rpm-spec","rpm-spec")});
2//# sourceMappingURL=rpm.min.js.map