Liferay.Loader.define("liferay!template-web$codemirror@5.65.2/mode/puppet/puppet",["module","exports","require","../../lib/codemirror"],(function(e,n,i){var t,o=void 0;window;t=function(e){"use strict";e.defineMode("puppet",(function(){var e={},n=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function define(n,i){for(var t=i.split(" "),o=0;o<t.length;o++)e[t[o]]=n}function tokenString(e,n){for(var i,t,o=!1;!e.eol()&&(i=e.next())!=n.pending;){if("$"===i&&"\\"!=t&&'"'==n.pending){o=!0;break}t=i}return o&&e.backUp(1),i==n.pending?n.continueString=!1:n.continueString=!0,"string"}return define("keyword","class define site node include import inherits"),define("keyword","case if else in and elsif default or"),define("atom","false true running present absent file directory undef"),define("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool"),{startState:function(){var e={inDefinition:!1,inInclude:!1,continueString:!1,pending:!1};return e},token:function(i,t){return i.eatSpace()?null:function tokenize(i,t){var o=i.match(/[\w]+/,!1),r=i.match(/(\s+)?\w+\s+=>.*/,!1),a=i.match(/(\s+)?[\w:_]+(\s+)?{/,!1),s=i.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),c=i.next();if("$"===c)return i.match(n)?t.continueString?"variable-2":"variable":"error";if(t.continueString)return i.backUp(1),tokenString(i,t);if(t.inDefinition){if(i.match(/(\s+)?[\w:_]+(\s+)?/))return"def";i.match(/\s+{/),t.inDefinition=!1}return t.inInclude?(i.match(/(\s+)?\S+(\s+)?/),t.inInclude=!1,"def"):i.match(/(\s+)?\w+\(/)?(i.backUp(1),"def"):r?(i.match(/(\s+)?\w+/),"tag"):o&&e.hasOwnProperty(o)?(i.backUp(1),i.match(/[\w]+/),i.match(/\s+\S+\s+{/,!1)&&(t.inDefinition=!0),"include"==o&&(t.inInclude=!0),e[o]):/(^|\s+)[A-Z][\w:_]+/.test(o)?(i.backUp(1),i.match(/(^|\s+)[A-Z][\w:_]+/),"def"):a?(i.match(/(\s+)?[\w:_]+/),"def"):s?(i.match(/(\s+)?[@]{1,2}/),"special"):"#"==c?(i.skipToEnd(),"comment"):"'"==c||'"'==c?(t.pending=c,tokenString(i,t)):"{"==c||"}"==c?"bracket":"/"==c?(i.match(/^[^\/]*\//),"variable-3"):c.match(/[0-9]/)?(i.eatWhile(/[0-9]+/),"number"):"="==c?(">"==i.peek()&&i.next(),"operator"):(i.eatWhile(/[\w-]/),null)}(i,t)}}})),e.defineMIME("text/x-puppet","puppet")},"object"==typeof n&&"object"==typeof e?t(i("../../lib/codemirror")):"function"==typeof o&&o.amd?o(["../../lib/codemirror"],t):t(CodeMirror)}));
//# sourceMappingURL=puppet.js.map