File manager - Edit - /home/opticamezl/www/newok/sass.tar
Back
sass.min.js 0000644 00000011151 15174745315 0006650 0 ustar 00 (function(t){typeof exports=="object"&&typeof module=="object"?t(require("../../lib/codemirror"),require("../css/css")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../css/css"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("sass",function(y){var k=t.mimeModes["text/css"],v=k.propertyKeywords||{},a=k.colorKeywords||{},E=k.valueKeywords||{},T=k.fontProperties||{};function s(n){return new RegExp("^"+n.join("|"))}var K=["true","false","null","auto"],g=new RegExp("^"+K.join("|")),L=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],z=s(L),O=/^::?[a-zA-Z_][\w\-]*/,f;function o(n){return!n.peek()||n.match(/\s+$/,!1)}function b(n,r){var e=n.peek();return e===")"?(n.next(),r.tokenizer=c,"operator"):e==="("?(n.next(),n.eatSpace(),"operator"):e==="'"||e==='"'?(r.tokenizer=x(n.next()),"string"):(r.tokenizer=x(")",!1),"string")}function H(n,r){return function(e,i){return e.sol()&&e.indentation()<=n?(i.tokenizer=c,c(e,i)):(r&&e.skipTo("*/")?(e.next(),e.next(),i.tokenizer=c):e.skipToEnd(),"comment")}}function x(n,r){r==null&&(r=!0);function e(i,p){var l=i.next(),h=i.peek(),d=i.string.charAt(i.pos-2),w=l!=="\\"&&h===n||l===n&&d!=="\\";return w?(l!==n&&r&&i.next(),o(i)&&(p.cursorHalf=0),p.tokenizer=c,"string"):l==="#"&&h==="{"?(p.tokenizer=C(e),i.next(),"operator"):"string"}return e}function C(n){return function(r,e){return r.peek()==="}"?(r.next(),e.tokenizer=n,"operator"):c(r,e)}}function u(n){if(n.indentCount==0){n.indentCount++;var r=n.scopes[0].offset,e=r+y.indentUnit;n.scopes.unshift({offset:e})}}function P(n){n.scopes.length!=1&&n.scopes.shift()}function c(n,r){var e=n.peek();if(n.match("/*"))return r.tokenizer=H(n.indentation(),!0),r.tokenizer(n,r);if(n.match("//"))return r.tokenizer=H(n.indentation(),!1),r.tokenizer(n,r);if(n.match("#{"))return r.tokenizer=C(c),"operator";if(e==='"'||e==="'")return n.next(),r.tokenizer=x(e),"string";if(r.cursorHalf){if(e==="#"&&(n.next(),n.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||n.match(/^-?[0-9\.]+/))return o(n)&&(r.cursorHalf=0),"number";if(n.match(/^(px|em|in)\b/))return o(n)&&(r.cursorHalf=0),"unit";if(n.match(g))return o(n)&&(r.cursorHalf=0),"keyword";if(n.match(/^url/)&&n.peek()==="(")return r.tokenizer=b,o(n)&&(r.cursorHalf=0),"atom";if(e==="$")return n.next(),n.eatWhile(/[\w-]/),o(n)&&(r.cursorHalf=0),"variable-2";if(e==="!")return n.next(),r.cursorHalf=0,n.match(/^[\w]+/)?"keyword":"operator";if(n.match(z))return o(n)&&(r.cursorHalf=0),"operator";if(n.eatWhile(/[\w-]/))return o(n)&&(r.cursorHalf=0),f=n.current().toLowerCase(),E.hasOwnProperty(f)?"atom":a.hasOwnProperty(f)?"keyword":v.hasOwnProperty(f)?(r.prevProp=n.current().toLowerCase(),"property"):"tag";if(o(n))return r.cursorHalf=0,null}else{if(e==="-"&&n.match(/^-\w+-/))return"meta";if(e==="."){if(n.next(),n.match(/^[\w-]+/))return u(r),"qualifier";if(n.peek()==="#")return u(r),"tag"}if(e==="#"){if(n.next(),n.match(/^[\w-]+/))return u(r),"builtin";if(n.peek()==="#")return u(r),"tag"}if(e==="$")return n.next(),n.eatWhile(/[\w-]/),"variable-2";if(n.match(/^-?[0-9\.]+/))return"number";if(n.match(/^(px|em|in)\b/))return"unit";if(n.match(g))return"keyword";if(n.match(/^url/)&&n.peek()==="(")return r.tokenizer=b,"atom";if(e==="="&&n.match(/^=[\w-]+/))return u(r),"meta";if(e==="+"&&n.match(/^\+[\w-]+/))return"variable-3";if(e==="@"&&n.match("@extend")&&(n.match(/\s*[\w]/)||P(r)),n.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return u(r),"def";if(e==="@")return n.next(),n.eatWhile(/[\w-]/),"def";if(n.eatWhile(/[\w-]/))if(n.match(/ *: *[\w-\+\$#!\("']/,!1)){f=n.current().toLowerCase();var i=r.prevProp+"-"+f;return v.hasOwnProperty(i)?"property":v.hasOwnProperty(f)?(r.prevProp=f,"property"):T.hasOwnProperty(f)?"property":"tag"}else return n.match(/ *:/,!1)?(u(r),r.cursorHalf=1,r.prevProp=n.current().toLowerCase(),"property"):(n.match(/ *,/,!1)||u(r),"tag");if(e===":")return n.match(O)?"variable-3":(n.next(),r.cursorHalf=1,"operator")}return n.match(z)?"operator":(n.next(),null)}function R(n,r){n.sol()&&(r.indentCount=0);var e=r.tokenizer(n,r),i=n.current();if((i==="@return"||i==="}")&&P(r),e!==null){for(var p=n.pos-i.length,l=p+y.indentUnit*r.indentCount,h=[],d=0;d<r.scopes.length;d++){var w=r.scopes[d];w.offset<=l&&h.push(w)}r.scopes=h}return e}return{startState:function(){return{tokenizer:c,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(n,r){var e=R(n,r);return r.lastToken={style:e,content:n.current()},e},indent:function(n){return n.scopes[0].offset},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}},"css"),t.defineMIME("text/x-sass","sass")}); sass.js 0000644 00000026543 15174745315 0006101 0 ustar 00 // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/5/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../css/css")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../css/css"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("sass", function(config) { var cssMode = CodeMirror.mimeModes["text/css"]; var propertyKeywords = cssMode.propertyKeywords || {}, colorKeywords = cssMode.colorKeywords || {}, valueKeywords = cssMode.valueKeywords || {}, fontProperties = cssMode.fontProperties || {}; function tokenRegexp(words) { return new RegExp("^" + words.join("|")); } var keywords = ["true", "false", "null", "auto"]; var keywordsRegexp = new RegExp("^" + keywords.join("|")); var operators = ["\\(", "\\)", "=", ">", "<", "==", ">=", "<=", "\\+", "-", "\\!=", "/", "\\*", "%", "and", "or", "not", ";","\\{","\\}",":"]; var opRegexp = tokenRegexp(operators); var pseudoElementsRegexp = /^::?[a-zA-Z_][\w\-]*/; var word; function isEndLine(stream) { return !stream.peek() || stream.match(/\s+$/, false); } function urlTokens(stream, state) { var ch = stream.peek(); if (ch === ")") { stream.next(); state.tokenizer = tokenBase; return "operator"; } else if (ch === "(") { stream.next(); stream.eatSpace(); return "operator"; } else if (ch === "'" || ch === '"') { state.tokenizer = buildStringTokenizer(stream.next()); return "string"; } else { state.tokenizer = buildStringTokenizer(")", false); return "string"; } } function comment(indentation, multiLine) { return function(stream, state) { if (stream.sol() && stream.indentation() <= indentation) { state.tokenizer = tokenBase; return tokenBase(stream, state); } if (multiLine && stream.skipTo("*/")) { stream.next(); stream.next(); state.tokenizer = tokenBase; } else { stream.skipToEnd(); } return "comment"; }; } function buildStringTokenizer(quote, greedy) { if (greedy == null) { greedy = true; } function stringTokenizer(stream, state) { var nextChar = stream.next(); var peekChar = stream.peek(); var previousChar = stream.string.charAt(stream.pos-2); var endingString = ((nextChar !== "\\" && peekChar === quote) || (nextChar === quote && previousChar !== "\\")); if (endingString) { if (nextChar !== quote && greedy) { stream.next(); } if (isEndLine(stream)) { state.cursorHalf = 0; } state.tokenizer = tokenBase; return "string"; } else if (nextChar === "#" && peekChar === "{") { state.tokenizer = buildInterpolationTokenizer(stringTokenizer); stream.next(); return "operator"; } else { return "string"; } } return stringTokenizer; } function buildInterpolationTokenizer(currentTokenizer) { return function(stream, state) { if (stream.peek() === "}") { stream.next(); state.tokenizer = currentTokenizer; return "operator"; } else { return tokenBase(stream, state); } }; } function indent(state) { if (state.indentCount == 0) { state.indentCount++; var lastScopeOffset = state.scopes[0].offset; var currentOffset = lastScopeOffset + config.indentUnit; state.scopes.unshift({ offset:currentOffset }); } } function dedent(state) { if (state.scopes.length == 1) return; state.scopes.shift(); } function tokenBase(stream, state) { var ch = stream.peek(); // Comment if (stream.match("/*")) { state.tokenizer = comment(stream.indentation(), true); return state.tokenizer(stream, state); } if (stream.match("//")) { state.tokenizer = comment(stream.indentation(), false); return state.tokenizer(stream, state); } // Interpolation if (stream.match("#{")) { state.tokenizer = buildInterpolationTokenizer(tokenBase); return "operator"; } // Strings if (ch === '"' || ch === "'") { stream.next(); state.tokenizer = buildStringTokenizer(ch); return "string"; } if(!state.cursorHalf){// state.cursorHalf === 0 // first half i.e. before : for key-value pairs // including selectors if (ch === "-") { if (stream.match(/^-\w+-/)) { return "meta"; } } if (ch === ".") { stream.next(); if (stream.match(/^[\w-]+/)) { indent(state); return "qualifier"; } else if (stream.peek() === "#") { indent(state); return "tag"; } } if (ch === "#") { stream.next(); // ID selectors if (stream.match(/^[\w-]+/)) { indent(state); return "builtin"; } if (stream.peek() === "#") { indent(state); return "tag"; } } // Variables if (ch === "$") { stream.next(); stream.eatWhile(/[\w-]/); return "variable-2"; } // Numbers if (stream.match(/^-?[0-9\.]+/)) return "number"; // Units if (stream.match(/^(px|em|in)\b/)) return "unit"; if (stream.match(keywordsRegexp)) return "keyword"; if (stream.match(/^url/) && stream.peek() === "(") { state.tokenizer = urlTokens; return "atom"; } if (ch === "=") { // Match shortcut mixin definition if (stream.match(/^=[\w-]+/)) { indent(state); return "meta"; } } if (ch === "+") { // Match shortcut mixin definition if (stream.match(/^\+[\w-]+/)){ return "variable-3"; } } if(ch === "@"){ if(stream.match('@extend')){ if(!stream.match(/\s*[\w]/)) dedent(state); } } // Indent Directives if (stream.match(/^@(else if|if|media|else|for|each|while|mixin|function)/)) { indent(state); return "def"; } // Other Directives if (ch === "@") { stream.next(); stream.eatWhile(/[\w-]/); return "def"; } if (stream.eatWhile(/[\w-]/)){ if(stream.match(/ *: *[\w-\+\$#!\("']/,false)){ word = stream.current().toLowerCase(); var prop = state.prevProp + "-" + word; if (propertyKeywords.hasOwnProperty(prop)) { return "property"; } else if (propertyKeywords.hasOwnProperty(word)) { state.prevProp = word; return "property"; } else if (fontProperties.hasOwnProperty(word)) { return "property"; } return "tag"; } else if(stream.match(/ *:/,false)){ indent(state); state.cursorHalf = 1; state.prevProp = stream.current().toLowerCase(); return "property"; } else if(stream.match(/ *,/,false)){ return "tag"; } else{ indent(state); return "tag"; } } if(ch === ":"){ if (stream.match(pseudoElementsRegexp)){ // could be a pseudo-element return "variable-3"; } stream.next(); state.cursorHalf=1; return "operator"; } } // cursorHalf===0 ends here else{ if (ch === "#") { stream.next(); // Hex numbers if (stream.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)){ if (isEndLine(stream)) { state.cursorHalf = 0; } return "number"; } } // Numbers if (stream.match(/^-?[0-9\.]+/)){ if (isEndLine(stream)) { state.cursorHalf = 0; } return "number"; } // Units if (stream.match(/^(px|em|in)\b/)){ if (isEndLine(stream)) { state.cursorHalf = 0; } return "unit"; } if (stream.match(keywordsRegexp)){ if (isEndLine(stream)) { state.cursorHalf = 0; } return "keyword"; } if (stream.match(/^url/) && stream.peek() === "(") { state.tokenizer = urlTokens; if (isEndLine(stream)) { state.cursorHalf = 0; } return "atom"; } // Variables if (ch === "$") { stream.next(); stream.eatWhile(/[\w-]/); if (isEndLine(stream)) { state.cursorHalf = 0; } return "variable-2"; } // bang character for !important, !default, etc. if (ch === "!") { stream.next(); state.cursorHalf = 0; return stream.match(/^[\w]+/) ? "keyword": "operator"; } if (stream.match(opRegexp)){ if (isEndLine(stream)) { state.cursorHalf = 0; } return "operator"; } // attributes if (stream.eatWhile(/[\w-]/)) { if (isEndLine(stream)) { state.cursorHalf = 0; } word = stream.current().toLowerCase(); if (valueKeywords.hasOwnProperty(word)) { return "atom"; } else if (colorKeywords.hasOwnProperty(word)) { return "keyword"; } else if (propertyKeywords.hasOwnProperty(word)) { state.prevProp = stream.current().toLowerCase(); return "property"; } else { return "tag"; } } //stream.eatSpace(); if (isEndLine(stream)) { state.cursorHalf = 0; return null; } } // else ends here if (stream.match(opRegexp)) return "operator"; // If we haven't returned by now, we move 1 character // and return an error stream.next(); return null; } function tokenLexer(stream, state) { if (stream.sol()) state.indentCount = 0; var style = state.tokenizer(stream, state); var current = stream.current(); if (current === "@return" || current === "}"){ dedent(state); } if (style !== null) { var startOfToken = stream.pos - current.length; var withCurrentIndent = startOfToken + (config.indentUnit * state.indentCount); var newScopes = []; for (var i = 0; i < state.scopes.length; i++) { var scope = state.scopes[i]; if (scope.offset <= withCurrentIndent) newScopes.push(scope); } state.scopes = newScopes; } return style; } return { startState: function() { return { tokenizer: tokenBase, scopes: [{offset: 0, type: "sass"}], indentCount: 0, cursorHalf: 0, // cursor half tells us if cursor lies after (1) // or before (0) colon (well... more or less) definedVars: [], definedMixins: [] }; }, token: function(stream, state) { var style = tokenLexer(stream, state); state.lastToken = { style: style, content: stream.current() }; return style; }, indent: function(state) { return state.scopes[0].offset; }, blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//", fold: "indent" }; }, "css"); CodeMirror.defineMIME("text/x-sass", "sass"); }); sass.min.js.gz 0000644 00000003307 15174745315 0007273 0 ustar 00 � �Xmo�8�~��2�%g8����"ȡ��h���g9Y�b�eRKQ�K�}A���6-�C��y�3��hLe"�\ ��Q?&LF#vH��)� �@�e�;;f1�6)�{�C`ێm;1_;�َ+%`�����n ���,�Z��]����<8�c��ƮF72d�m\`�w���R�x�a�� ����OS ��#>>�j�����])�.A���-=Э�(�0�߳ǽTa��ǂ�tk2�j�zK���gl���n�H ���\�7��H�b:Sb$�~���=$�`"��$r��0G}O��Uƀ@�ǩ�/�8~�%��==�x߃ �<��@�� �k�\~1״� �i�46N�x �j̉�������>��paE�h�>`�:w��X�ӧ���o���tu鐨��0v���<���9^:y��.Z�5DU2ڨ��82J)`X av�ek�e�?1E� _��uKYԗ6����E/ ���\,P��"`&�=`�D0?:�Σw�G�m�2��Ef�2Fز��EȄ�K|M��A�h��t˓���x�X�i�0��n�p+B�@�vLh�Ew�C}ZJMZRt<��q�T�Ĕ7v6��T��r� �l|�V#n'2���ɞ�cJ��6�R��gYa���_ #*,KYVkE"�-%v��T�w~�&�0Z�6��m��/y���O �O��h��s�+�IEX���0��Dj)�L�����Q�#<B�N�� M�+��ܰ����@&,]�V����i¨�<�¿ �獌��t�#����ˊ����t+3q�7czeY�Z��K��l��ǯ��K���O�w��u���lP�%��n���^�Cݠ��F�nU�h��v��ɫ&����k�+k�ߚꎸ�M��O�����+�ן����ta�={5qZOL�5E{R" �ݚU�t (9�l�s������z p��ʶza���T�`�R]� 8GŚ���宥^?g����!g��+�)������r|��^G���� ���0}ɧ�u��̅�#*̊bB#lk�A�S7~�i/�q�ExQ���m��<��E�N{0K�0 ͌ez���j0G�F4���)k�d &M�|���i�1�w��P��ӊ�+c�+�)L�̏y�ۚ�r�%�ɋ�l��:���nj|g>�&�7;�t�oT��_�'�K��A2=�x��.*?w:oz:�4!���襩c�g�p��7�$�G9������<�*g~����|�\��{�:����c�Q:���.ݑ9�ԛx�_�=�r���o4�r~�+� La5Cس��x���!4���LV@�60�o�+Tr�4��w�~�H ��] �"�GQ�� /����tW�`<�E��C0��7T�R U��]��`�U�1z:�ޏ���2����s^M�زL�6�}|��B������HL��,y98��劄t6��pp���I5�i��W�}=�^�ز6v����E#B7��]=S�+�E�������6n@*w�L�3b.*�ꆠX����Hsg��P���5U_?��6EAJC�zcoEmx���F�S�3��@ ̈́v{����z�ݥ���� �Xۛ�g��L׃�[�� ��`��kg�8t�2EA���!�]ʿ>ޢ��0��T������3�i
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings