File manager - Edit - /home/opticamezl/www/newok/yaml-frontmatter.tar
Back
yaml-frontmatter.min.js 0000644 00000002121 15174562571 0011202 0 ustar 00 (function(t){typeof exports=="object"&&typeof module=="object"?t(require("../../lib/codemirror"),require("../yaml/yaml")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../yaml/yaml"],t):t(CodeMirror)})(function(t){var u=0,o=1,m=2;t.defineMode("yaml-frontmatter",function(y,c){var l=t.getMode(y,"yaml"),a=t.getMode(y,c&&c.base||"gfm");function f(e){return e.state==o?{mode:l,state:e.yaml}:{mode:a,state:e.inner}}return{startState:function(){return{state:u,yaml:null,inner:t.startState(a)}},copyState:function(e){return{state:e.state,yaml:e.yaml&&t.copyState(l,e.yaml),inner:t.copyState(a,e.inner)}},token:function(e,n){if(n.state==u)return e.match("---",!1)?(n.state=o,n.yaml=t.startState(l),l.token(e,n.yaml)):(n.state=m,a.token(e,n.inner));if(n.state==o){var r=e.sol()&&e.match(/(---|\.\.\.)/,!1),i=l.token(e,n.yaml);return r&&(n.state=m,n.yaml=null),i}else return a.token(e,n.inner)},innerMode:f,indent:function(e,n,r){var i=f(e);return i.mode.indent?i.mode.indent(i.state,n,r):t.Pass},blankLine:function(e){var n=f(e);if(n.mode.blankLine)return n.mode.blankLine(n.state)}}})}); yaml-frontmatter.min.js.gz 0000644 00000000775 15174562571 0011636 0 ustar 00 � m����0��}��dK����ʡT�Ƕ����N�P5"~���VHf��y;���w��H�3�v��>P��_X+�9�f�xK��=���I��ro�i_�;�L�6ѝ�^L�jF6����V9&u��'��<�S ���'���T �����a7���t��d�?�9K�� �Q��00X����*�/H��,�]�.�Z�t��+{i;&g�rc@�ۡ�I*�c��,L� e��*G�5�a�1�Ǟt��Sj����, �*7X��"y�q-b�ڟ/|��F3,�+ ���[�Q�v��4��S3��6���Ѵ�-��:�NS����,�ǵȃ�����XVN�D�nD��:Лl�#��>�7(���\��a�˲�~���d�z��0;E��:[M`"�ws�[C1�/ݢ��tt7,٤Q�-�L�D���7�꒴"�E�}����q�+O`���\&�Z�,�1��U�E�w� ˉ#�Q yaml-frontmatter.js 0000644 00000004715 15174562571 0010433 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("../yaml/yaml")) else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../yaml/yaml"], mod) else // Plain browser env mod(CodeMirror) })(function (CodeMirror) { var START = 0, FRONTMATTER = 1, BODY = 2 // a mixed mode for Markdown text with an optional YAML front matter CodeMirror.defineMode("yaml-frontmatter", function (config, parserConfig) { var yamlMode = CodeMirror.getMode(config, "yaml") var innerMode = CodeMirror.getMode(config, parserConfig && parserConfig.base || "gfm") function localMode(state) { return state.state == FRONTMATTER ? {mode: yamlMode, state: state.yaml} : {mode: innerMode, state: state.inner} } return { startState: function () { return { state: START, yaml: null, inner: CodeMirror.startState(innerMode) } }, copyState: function (state) { return { state: state.state, yaml: state.yaml && CodeMirror.copyState(yamlMode, state.yaml), inner: CodeMirror.copyState(innerMode, state.inner) } }, token: function (stream, state) { if (state.state == START) { if (stream.match('---', false)) { state.state = FRONTMATTER state.yaml = CodeMirror.startState(yamlMode) return yamlMode.token(stream, state.yaml) } else { state.state = BODY return innerMode.token(stream, state.inner) } } else if (state.state == FRONTMATTER) { var end = stream.sol() && stream.match(/(---|\.\.\.)/, false) var style = yamlMode.token(stream, state.yaml) if (end) { state.state = BODY state.yaml = null } return style } else { return innerMode.token(stream, state.inner) } }, innerMode: localMode, indent: function(state, a, b) { var m = localMode(state) return m.mode.indent ? m.mode.indent(m.state, a, b) : CodeMirror.Pass }, blankLine: function (state) { var m = localMode(state) if (m.mode.blankLine) return m.mode.blankLine(m.state) } } }) });
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings