"use strict";(self.webpackChunksc_note_comment=self.webpackChunksc_note_comment||[]).push([[1416],{1416(g,s,f){f.d(s,{puppet:()=>d});var a={},l=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function t(e,n){for(var i=n.split(" "),r=0;r<i.length;r++)a[i[r]]=e}function u(e,n){for(var i,r,c=!1;!e.eol()&&(i=e.next())!=n.pending;){if("$"===i&&"\\"!=r&&'"'==n.pending){c=!0;break}r=i}return c&&e.backUp(1),n.continueString=i!=n.pending,"string"}t("keyword","class define site node include import inherits"),t("keyword","case if else in and elsif default or"),t("atom","false true running present absent file directory undef"),t("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");const d={name:"puppet",startState:function(){return{inDefinition:!1,inInclude:!1,continueString:!1,pending:!1}},token:function(e,n){return e.eatSpace()?null:function p(e,n){var i=e.match(/[\w]+/,!1),r=e.match(/(\s+)?\w+\s+=>.*/,!1),c=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),_=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),o=e.next();if("$"===o)return e.match(l)?n.continueString?"variableName.special":"variable":"error";if(n.continueString)return e.backUp(1),u(e,n);if(n.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),n.inDefinition=!1}return n.inInclude?(e.match(/(\s+)?\S+(\s+)?/),n.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):r?(e.match(/(\s+)?\w+/),"tag"):i&&a.hasOwnProperty(i)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(n.inDefinition=!0),"include"==i&&(n.inInclude=!0),a[i]):/(^|\s+)[A-Z][\w:_]+/.test(i)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):c?(e.match(/(\s+)?[\w:_]+/),"def"):_?(e.match(/(\s+)?[@]{1,2}/),"atom"):"#"==o?(e.skipToEnd(),"comment"):"'"==o||'"'==o?(n.pending=o,u(e,n)):"{"==o||"}"==o?"bracket":"/"==o?(e.match(/^[^\/]*\//),"string.special"):o.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):"="==o?(">"==e.peek()&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}(e,n)}}}}]);