芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.8/vendor/codemirror/mode/nginx/nginx.min.js
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}((function(e){"use strict";e.defineMode("nginx",(function(e){function _(e){for(var _={},t=e.split(" "),i=0;i
*\/]/.test(p)?o(null,"select-op"):/[;{}:\[\]]/.test(p)?o(null,p):(e.eatWhile(/[\w\\\-]/),o("variable","variable")):o(null,"compare"):void o(null,"compare")}function c(e,_){for(var t,i=!1;null!=(t=e.next());){if(i&&"/"==t){_.tokenize=n;break}i="*"==t}return o("comment","comment")}function l(e,_){for(var t,i=0;null!=(t=e.next());){if(i>=2&&">"==t){_.tokenize=n;break}i="-"==t?i+1:0}return o("comment","comment")}return{startState:function(e){return{tokenize:n,baseIndent:e||0,stack:[]}},token:function(e,_){if(e.eatSpace())return null;t=null;var i=_.tokenize(e,_),r=_.stack[_.stack.length-1];return"hash"==t&&"rule"==r?i="atom":"variable"==i&&("rule"==r?i="number":r&&"@media{"!=r||(i="tag")),"rule"==r&&/^[\{\};]$/.test(t)&&_.stack.pop(),"{"==t?"@media"==r?_.stack[_.stack.length-1]="@media{":_.stack.push("{"):"}"==t?_.stack.pop():"@media"==t?_.stack.push("@media"):"{"==r&&"comment"!=t&&_.stack.push("rule"),i},indent:function(e,_){var t=e.stack.length;return/^\}/.test(_)&&(t-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+t*a},electricChars:"}"}})),e.defineMIME("text/x-nginx-conf","nginx")}));