Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/yaml-frontmatter.tar
Назад
yaml-frontmatter.min.js 0000604 00000001713 15245632632 0011177 0 ustar 00 !(function(a){"object"==typeof exports&&"object"==typeof module?a(require("../../lib/codemirror"),require("../yaml/yaml")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../yaml/yaml"],a):a(CodeMirror)})((function(a){var b=2;a.defineMode("yaml-frontmatter",(function(c,d){function e(a){return a.state==b?g:f}var f=a.getMode(c,"yaml"),g=a.getMode(c,d&&d.base||"gfm");return{startState:function(){return{state:0,inner:a.startState(f)}},copyState:function(b){return{state:b.state,inner:a.copyState(e(b),b.inner)}},token:function(c,d){if(0==d.state)return c.match("---",!1)?(d.state=1,f.token(c,d.inner)):(d.state=b,d.inner=a.startState(g),g.token(c,d.inner));if(1==d.state){var e=c.sol()&&c.match(/(---|\.\.\.)/,!1),h=f.token(c,d.inner);return e&&(d.state=b,d.inner=a.startState(g)),h}return g.token(c,d.inner)},innerMode:function(a){return{mode:e(a),state:a.inner}},blankLine:function(a){var b=e(a);if(b.blankLine)return b.blankLine(a.inner)}}}))})); yaml-frontmatter.js 0000604 00000004376 15245632632 0010425 0 ustar 00 // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/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 curMode(state) { return state.state == BODY ? innerMode : yamlMode } return { startState: function () { return { state: START, inner: CodeMirror.startState(yamlMode) } }, copyState: function (state) { return { state: state.state, inner: CodeMirror.copyState(curMode(state), state.inner) } }, token: function (stream, state) { if (state.state == START) { if (stream.match('---', false)) { state.state = FRONTMATTER return yamlMode.token(stream, state.inner) } else { state.state = BODY state.inner = CodeMirror.startState(innerMode) return innerMode.token(stream, state.inner) } } else if (state.state == FRONTMATTER) { var end = stream.sol() && stream.match(/(---|\.\.\.)/, false) var style = yamlMode.token(stream, state.inner) if (end) { state.state = BODY state.inner = CodeMirror.startState(innerMode) } return style } else { return innerMode.token(stream, state.inner) } }, innerMode: function (state) { return {mode: curMode(state), state: state.inner} }, blankLine: function (state) { var mode = curMode(state) if (mode.blankLine) return mode.blankLine(state.inner) } } }) });
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка