%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/old/home/stash/atlassian-stash/static/bower/CodeMirror/mode/puppet/
Upload File :
Create Path :
Current File : //data/old/home/stash/atlassian-stash/static/bower/CodeMirror/mode/puppet/puppet-min.js

CodeMirror.defineMode("puppet",function(){var D={};var A=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function E(I,F){var H=F.split(" ");for(var G=0;G<H.length;G++){D[H[G]]=I}}E("keyword","class define site node include import inherits");E("keyword","case if else in and elsif default or");E("atom","false true running present absent file directory undef");E("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");function B(J,H){var I,G,F=false;while(!J.eol()&&(I=J.next())!=H.pending){if(I==="$"&&G!="\\"&&H.pending=='"'){F=true;break}G=I}if(F){J.backUp(1)}if(I==H.pending){H.continueString=false}else{H.continueString=true}return"string"}function C(L,I){var K=L.match(/[\w]+/,false);var G=L.match(/(\s+)?\w+\s+=>.*/,false);var H=L.match(/(\s+)?[\w:_]+(\s+)?{/,false);var J=L.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,false);var F=L.next();if(F==="$"){if(L.match(A)){return I.continueString?"variable-2":"variable"}return"error"}if(I.continueString){L.backUp(1);return B(L,I)}if(I.inDefinition){if(L.match(/(\s+)?[\w:_]+(\s+)?/)){return"def"}L.match(/\s+{/);I.inDefinition=false}if(I.inInclude){L.match(/(\s+)?\S+(\s+)?/);I.inInclude=false;return"def"}if(L.match(/(\s+)?\w+\(/)){L.backUp(1);return"def"}if(G){L.match(/(\s+)?\w+/);return"tag"}if(K&&D.hasOwnProperty(K)){L.backUp(1);L.match(/[\w]+/);if(L.match(/\s+\S+\s+{/,false)){I.inDefinition=true}if(K=="include"){I.inInclude=true}return D[K]}if(/(\s+)?[A-Z]/.test(K)){L.backUp(1);L.match(/(\s+)?[A-Z][\w:_]+/);return"def"}if(H){L.match(/(\s+)?[\w:_]+/);return"def"}if(J){L.match(/(\s+)?[@]{1,2}/);return"special"}if(F=="#"){L.skipToEnd();return"comment"}if(F=="'"||F=='"'){I.pending=F;return B(L,I)}if(F=="{"||F=="}"){return"bracket"}if(F=="/"){L.match(/.*\//);return"variable-3"}if(F.match(/[0-9]/)){L.eatWhile(/[0-9]+/);return"number"}if(F=="="){if(L.peek()==">"){L.next()}return"operator"}L.eatWhile(/[\w-]/);return null}return{startState:function(){var F={};F.inDefinition=false;F.inInclude=false;F.continueString=false;F.pending=false;return F},token:function(G,F){if(G.eatSpace()){return null}return C(G,F)}}});CodeMirror.defineMIME("text/x-puppet","puppet");

Zerion Mini Shell 1.0