@fangzhongya/vue-archive 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.cjs +1 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/_plugin-vue_export-helper.cjs +1 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/common.cjs +1 -0
- package/dist/_virtual/common.js +7 -0
- package/dist/_virtual/core.cjs +1 -0
- package/dist/_virtual/core.js +7 -0
- package/dist/index.css +1 -2
- package/dist/node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dace39d2ab17d71b087de9a32848566a/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs +1 -0
- package/dist/node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dace39d2ab17d71b087de9a32848566a/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +31 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +5 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +47 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.cjs +3 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1063 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +383 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +283 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +527 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +388 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +929 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +60 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +157 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +76 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +113 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +246 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +664 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +44 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.cjs +2 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +248 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +998 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +65 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +73 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +222 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +243 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +475 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +53 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.cjs +2 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +572 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +19 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +32 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +405 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +213 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +394 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +311 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +914 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +31 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +621 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +805 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +759 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +128 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +120 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +225 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.cjs +1 -0
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +189 -0
- package/dist/packages/components/aside/index.vue.cjs +1 -0
- package/dist/packages/components/aside/index.vue.js +98 -0
- package/dist/packages/components/aside/index.vue2.cjs +1 -0
- package/dist/packages/components/aside/index.vue2.js +4 -0
- package/dist/packages/components/boxurl/index.vue.cjs +1 -0
- package/dist/packages/components/boxurl/index.vue.js +62 -0
- package/dist/packages/components/boxurl/index.vue2.cjs +1 -0
- package/dist/packages/components/boxurl/index.vue2.js +4 -0
- package/dist/packages/components/choice/choice.vue.cjs +1 -0
- package/dist/packages/components/choice/choice.vue.js +46 -0
- package/dist/packages/components/choice/choice.vue2.cjs +1 -0
- package/dist/packages/components/choice/choice.vue2.js +4 -0
- package/dist/packages/components/choice/index.vue.cjs +1 -0
- package/dist/packages/components/choice/index.vue.js +87 -0
- package/dist/packages/components/choice/index.vue2.cjs +1 -0
- package/dist/packages/components/choice/index.vue2.js +4 -0
- package/dist/packages/components/code/highlight.vue.cjs +1 -0
- package/dist/packages/components/code/highlight.vue.js +16 -0
- package/dist/packages/components/code/highlight.vue2.cjs +1 -0
- package/dist/packages/components/code/highlight.vue2.js +20 -0
- package/dist/packages/components/code/index.vue.cjs +1 -0
- package/dist/packages/components/code/index.vue.js +115 -0
- package/dist/packages/components/code/index.vue2.cjs +1 -0
- package/dist/packages/components/code/index.vue2.js +4 -0
- package/dist/packages/components/compo/code.vue.cjs +1 -0
- package/dist/packages/components/compo/code.vue.js +21 -0
- package/dist/packages/components/compo/code.vue3.cjs +1 -0
- package/dist/packages/components/compo/code.vue3.js +5 -0
- package/dist/packages/components/compo/ftable.vue.cjs +1 -0
- package/dist/packages/components/compo/ftable.vue.js +57 -0
- package/dist/packages/components/compo/ftable.vue2.cjs +1 -0
- package/dist/packages/components/compo/ftable.vue2.js +4 -0
- package/dist/packages/components/compo/index.cjs +1 -0
- package/dist/packages/components/compo/index.js +127 -0
- package/dist/packages/components/compo/index.vue.cjs +1 -0
- package/dist/packages/components/compo/index.vue.js +79 -0
- package/dist/packages/components/compo/index.vue2.cjs +1 -0
- package/dist/packages/components/compo/index.vue2.js +4 -0
- package/dist/packages/components/compo/info-top.vue.cjs +1 -0
- package/dist/packages/components/compo/info-top.vue.js +32 -0
- package/dist/packages/components/compo/info-top.vue2.cjs +1 -0
- package/dist/packages/components/compo/info-top.vue2.js +4 -0
- package/dist/packages/components/compo/info.vue.cjs +1 -0
- package/dist/packages/components/compo/info.vue.js +41 -0
- package/dist/packages/components/compo/info.vue2.cjs +1 -0
- package/dist/packages/components/compo/info.vue2.js +4 -0
- package/dist/packages/components/compo/props.vue.cjs +1 -0
- package/dist/packages/components/compo/props.vue.js +87 -0
- package/dist/packages/components/compo/props.vue2.cjs +1 -0
- package/dist/packages/components/compo/props.vue2.js +4 -0
- package/dist/packages/components/compo/top.cjs +1 -0
- package/dist/packages/components/compo/top.js +148 -0
- package/dist/packages/components/header/index.vue.cjs +1 -0
- package/dist/packages/components/header/index.vue.js +10 -0
- package/dist/packages/components/main/index.vue.cjs +1 -0
- package/dist/packages/components/main/index.vue.js +68 -0
- package/dist/packages/components/main/index.vue2.cjs +1 -0
- package/dist/packages/components/main/index.vue2.js +4 -0
- package/dist/packages/components/md/index.vue.cjs +1 -0
- package/dist/packages/components/md/index.vue.js +56 -0
- package/dist/packages/components/md/index.vue2.cjs +1 -0
- package/dist/packages/components/md/index.vue2.js +4 -0
- package/dist/packages/components/test/index.cjs +1 -0
- package/dist/packages/components/test/index.js +105 -0
- package/dist/packages/components/test/index.vue.cjs +1 -0
- package/dist/packages/components/test/index.vue.js +75 -0
- package/dist/packages/components/test/index.vue2.cjs +1 -0
- package/dist/packages/components/test/index.vue2.js +4 -0
- package/dist/packages/components/test/top.cjs +1 -0
- package/dist/packages/components/test/top.js +148 -0
- package/dist/packages/components/use/code.cjs +20 -0
- package/dist/packages/components/use/code.js +212 -0
- package/dist/packages/components/use/code.vue.cjs +1 -0
- package/dist/packages/components/use/code.vue.js +66 -0
- package/dist/packages/components/use/code.vue2.cjs +1 -0
- package/dist/packages/components/use/code.vue2.js +4 -0
- package/dist/packages/components/use/edit.cjs +18 -0
- package/dist/packages/components/use/edit.js +214 -0
- package/dist/packages/components/use/effect.vue.cjs +1 -0
- package/dist/packages/components/use/effect.vue.js +12 -0
- package/dist/packages/components/use/index.cjs +1 -0
- package/dist/packages/components/use/index.js +196 -0
- package/dist/packages/components/use/prettier.cjs +1 -0
- package/dist/packages/components/use/prettier.js +40 -0
- package/dist/packages/components/use/retrie/any/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/any/index.vue.js +115 -0
- package/dist/packages/components/use/retrie/any/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/any/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/array/index.vue.cjs +3 -0
- package/dist/packages/components/use/retrie/array/index.vue.js +55 -0
- package/dist/packages/components/use/retrie/array/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/array/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/boolean/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/boolean/index.vue.js +68 -0
- package/dist/packages/components/use/retrie/boolean/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/boolean/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/choice/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/choice/index.vue.js +142 -0
- package/dist/packages/components/use/retrie/choice/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/choice/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/expose/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/expose/index.vue.js +63 -0
- package/dist/packages/components/use/retrie/expose/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/expose/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/form/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/form/index.vue.js +148 -0
- package/dist/packages/components/use/retrie/form/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/form/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/function/index.vue.cjs +3 -0
- package/dist/packages/components/use/retrie/function/index.vue.js +68 -0
- package/dist/packages/components/use/retrie/function/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/function/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/index.vue.js +103 -0
- package/dist/packages/components/use/retrie/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/input/editor/editor.cjs +1 -0
- package/dist/packages/components/use/retrie/input/editor/editor.js +104 -0
- package/dist/packages/components/use/retrie/input/editor/editor.vue.cjs +5 -0
- package/dist/packages/components/use/retrie/input/editor/editor.vue.js +59 -0
- package/dist/packages/components/use/retrie/input/editor/editor.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/input/editor/editor.vue3.js +5 -0
- package/dist/packages/components/use/retrie/input/editor/getExtraLib.cjs +416 -0
- package/dist/packages/components/use/retrie/input/editor/getExtraLib.js +427 -0
- package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/input/index.vue.js +54 -0
- package/dist/packages/components/use/retrie/input/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/input/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/input/text.vue.cjs +5 -0
- package/dist/packages/components/use/retrie/input/text.vue.js +39 -0
- package/dist/packages/components/use/retrie/input/text.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/input/text.vue3.js +5 -0
- package/dist/packages/components/use/retrie/number/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/number/index.vue.js +50 -0
- package/dist/packages/components/use/retrie/number/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/number/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/object/index.vue.cjs +3 -0
- package/dist/packages/components/use/retrie/object/index.vue.js +55 -0
- package/dist/packages/components/use/retrie/object/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/object/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/other/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/other/index.vue.js +67 -0
- package/dist/packages/components/use/retrie/other/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/other/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/select/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/select/index.vue.js +123 -0
- package/dist/packages/components/use/retrie/select/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/select/index.vue3.js +5 -0
- package/dist/packages/components/use/retrie/slot/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/slot/index.vue.js +43 -0
- package/dist/packages/components/use/retrie/slot/index.vue2.cjs +1 -0
- package/dist/packages/components/use/retrie/slot/index.vue2.js +4 -0
- package/dist/packages/components/use/retrie/string/index.vue.cjs +1 -0
- package/dist/packages/components/use/retrie/string/index.vue.js +53 -0
- package/dist/packages/components/use/retrie/string/index.vue3.cjs +1 -0
- package/dist/packages/components/use/retrie/string/index.vue3.js +5 -0
- package/dist/packages/components/use/set-code.vue.cjs +1 -0
- package/dist/packages/components/use/set-code.vue.js +63 -0
- package/dist/packages/components/use/set-code.vue2.cjs +1 -0
- package/dist/packages/components/use/set-code.vue2.js +4 -0
- package/dist/packages/components/use/set-emit.vue.cjs +1 -0
- package/dist/packages/components/use/set-emit.vue.js +50 -0
- package/dist/packages/components/use/set-emit.vue3.cjs +1 -0
- package/dist/packages/components/use/set-emit.vue3.js +5 -0
- package/dist/packages/components/use/set-expose.vue.cjs +1 -0
- package/dist/packages/components/use/set-expose.vue.js +66 -0
- package/dist/packages/components/use/set-expose.vue3.cjs +1 -0
- package/dist/packages/components/use/set-expose.vue3.js +5 -0
- package/dist/packages/components/use/set-props.vue.cjs +1 -0
- package/dist/packages/components/use/set-props.vue.js +71 -0
- package/dist/packages/components/use/set-props.vue2.cjs +1 -0
- package/dist/packages/components/use/set-props.vue2.js +4 -0
- package/dist/packages/components/use/set-slot.vue.cjs +1 -0
- package/dist/packages/components/use/set-slot.vue.js +45 -0
- package/dist/packages/components/use/set-slot.vue2.cjs +1 -0
- package/dist/packages/components/use/set-slot.vue2.js +4 -0
- package/dist/packages/components/use/util.cjs +3 -0
- package/dist/packages/components/use/util.js +294 -0
- package/dist/packages/config.cjs +1 -0
- package/dist/packages/config.js +14 -0
- package/dist/packages/directives/adjust/index.cjs +1 -0
- package/dist/packages/directives/adjust/index.js +246 -0
- package/dist/packages/index/index.vue.cjs +1 -0
- package/dist/packages/index/index.vue.js +4 -0
- package/dist/packages/index/index.vue2.cjs +1 -0
- package/dist/packages/index/index.vue2.js +14 -0
- package/dist/packages/index.cjs +1 -0
- package/dist/packages/index.d.ts +1 -0
- package/dist/packages/index.js +20 -0
- package/dist/packages/page/compon/index.vue.cjs +1 -0
- package/dist/packages/page/compon/index.vue.js +4 -0
- package/dist/packages/page/compon/index.vue2.cjs +1 -0
- package/dist/packages/page/compon/index.vue2.js +21 -0
- package/dist/packages/page/comprops/index.vue.cjs +1 -0
- package/dist/packages/page/comprops/index.vue.js +4 -0
- package/dist/packages/page/comprops/index.vue2.cjs +1 -0
- package/dist/packages/page/comprops/index.vue2.js +91 -0
- package/dist/packages/page/develop/index.vue.cjs +1 -0
- package/dist/packages/page/develop/index.vue.js +4 -0
- package/dist/packages/page/develop/index.vue2.cjs +1 -0
- package/dist/packages/page/develop/index.vue2.js +26 -0
- package/dist/packages/page/edit/index.vue.cjs +1 -0
- package/dist/packages/page/edit/index.vue.js +4 -0
- package/dist/packages/page/edit/index.vue2.cjs +1 -0
- package/dist/packages/page/edit/index.vue2.js +27 -0
- package/dist/packages/page/index/index.vue.cjs +1 -0
- package/dist/packages/page/index/index.vue.js +4 -0
- package/dist/packages/page/index/index.vue2.cjs +1 -0
- package/dist/packages/page/index/index.vue2.js +61 -0
- package/dist/packages/page/single/index.vue.cjs +1 -0
- package/dist/packages/page/single/index.vue.js +4 -0
- package/dist/packages/page/single/index.vue2.cjs +1 -0
- package/dist/packages/page/single/index.vue2.js +60 -0
- package/dist/packages/page/tests/index.vue.cjs +1 -0
- package/dist/packages/page/tests/index.vue.js +4 -0
- package/dist/packages/page/tests/index.vue2.cjs +1 -0
- package/dist/packages/page/tests/index.vue2.js +67 -0
- package/dist/packages/router/file.cjs +1 -0
- package/dist/packages/router/file.js +44 -0
- package/dist/packages/router/index.cjs +1 -0
- package/dist/packages/router/index.js +122 -0
- package/dist/packages/utils/annotat.cjs +1 -0
- package/dist/packages/utils/annotat.js +322 -0
- package/dist/packages/utils/common.cjs +1 -0
- package/dist/packages/utils/common.js +200 -0
- package/dist/packages/utils/glob.cjs +5 -0
- package/dist/packages/utils/glob.js +502 -0
- package/dist/packages/utils/index.cjs +1 -0
- package/dist/packages/utils/index.js +14 -0
- package/dist/packages/utils/props.cjs +1 -0
- package/dist/packages/utils/props.js +110 -0
- package/dist/packages/utils/storage.cjs +1 -0
- package/dist/packages/utils/storage.js +34 -0
- package/dist/packages/utils/util.cjs +1 -0
- package/dist/packages/utils/util.js +46 -0
- package/package.json +5 -5
- package/dist/config.cjs +0 -1
- package/dist/config.js +0 -11
- package/dist/index/index.cjs +0 -1
- package/dist/index/index.js +0 -5
- package/dist/index/index.vue_vue_type_script_setup_true_lang.cjs +0 -1
- package/dist/index/index.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/index.cjs +0 -1
- package/dist/index.js +0 -15
- package/dist/router/file.cjs +0 -1
- package/dist/router/file.js +0 -32
- package/dist/router/index.cjs +0 -1
- package/dist/router/index.js +0 -45
- package/dist/utils/storage.cjs +0 -1
- package/dist/utils/storage.js +0 -23
|
@@ -0,0 +1,805 @@
|
|
|
1
|
+
var O, X;
|
|
2
|
+
function Se() {
|
|
3
|
+
if (X) return O;
|
|
4
|
+
X = 1;
|
|
5
|
+
function D(t) {
|
|
6
|
+
return t ? typeof t == "string" ? t : t.source : null;
|
|
7
|
+
}
|
|
8
|
+
function E(t) {
|
|
9
|
+
return e("(?=", t, ")");
|
|
10
|
+
}
|
|
11
|
+
function e(...t) {
|
|
12
|
+
return t.map((b) => D(b)).join("");
|
|
13
|
+
}
|
|
14
|
+
function z(t) {
|
|
15
|
+
const o = t[t.length - 1];
|
|
16
|
+
return typeof o == "object" && o.constructor === Object ? (t.splice(t.length - 1, 1), o) : {};
|
|
17
|
+
}
|
|
18
|
+
function s(...t) {
|
|
19
|
+
return "(" + (z(t).capture ? "" : "?:") + t.map((c) => D(c)).join("|") + ")";
|
|
20
|
+
}
|
|
21
|
+
const T = (t) => e(
|
|
22
|
+
/\b/,
|
|
23
|
+
t,
|
|
24
|
+
/\w$/.test(t) ? /\b/ : /\B/
|
|
25
|
+
), H = [
|
|
26
|
+
"Protocol",
|
|
27
|
+
// contextual
|
|
28
|
+
"Type"
|
|
29
|
+
// contextual
|
|
30
|
+
].map(T), v = [
|
|
31
|
+
"init",
|
|
32
|
+
"self"
|
|
33
|
+
].map(T), V = [
|
|
34
|
+
"Any",
|
|
35
|
+
"Self"
|
|
36
|
+
], _ = [
|
|
37
|
+
// strings below will be fed into the regular `keywords` engine while regex
|
|
38
|
+
// will result in additional modes being created to scan for those keywords to
|
|
39
|
+
// avoid conflicts with other rules
|
|
40
|
+
"actor",
|
|
41
|
+
"any",
|
|
42
|
+
// contextual
|
|
43
|
+
"associatedtype",
|
|
44
|
+
"async",
|
|
45
|
+
"await",
|
|
46
|
+
/as\?/,
|
|
47
|
+
// operator
|
|
48
|
+
/as!/,
|
|
49
|
+
// operator
|
|
50
|
+
"as",
|
|
51
|
+
// operator
|
|
52
|
+
"borrowing",
|
|
53
|
+
// contextual
|
|
54
|
+
"break",
|
|
55
|
+
"case",
|
|
56
|
+
"catch",
|
|
57
|
+
"class",
|
|
58
|
+
"consume",
|
|
59
|
+
// contextual
|
|
60
|
+
"consuming",
|
|
61
|
+
// contextual
|
|
62
|
+
"continue",
|
|
63
|
+
"convenience",
|
|
64
|
+
// contextual
|
|
65
|
+
"copy",
|
|
66
|
+
// contextual
|
|
67
|
+
"default",
|
|
68
|
+
"defer",
|
|
69
|
+
"deinit",
|
|
70
|
+
"didSet",
|
|
71
|
+
// contextual
|
|
72
|
+
"distributed",
|
|
73
|
+
"do",
|
|
74
|
+
"dynamic",
|
|
75
|
+
// contextual
|
|
76
|
+
"each",
|
|
77
|
+
"else",
|
|
78
|
+
"enum",
|
|
79
|
+
"extension",
|
|
80
|
+
"fallthrough",
|
|
81
|
+
/fileprivate\(set\)/,
|
|
82
|
+
"fileprivate",
|
|
83
|
+
"final",
|
|
84
|
+
// contextual
|
|
85
|
+
"for",
|
|
86
|
+
"func",
|
|
87
|
+
"get",
|
|
88
|
+
// contextual
|
|
89
|
+
"guard",
|
|
90
|
+
"if",
|
|
91
|
+
"import",
|
|
92
|
+
"indirect",
|
|
93
|
+
// contextual
|
|
94
|
+
"infix",
|
|
95
|
+
// contextual
|
|
96
|
+
/init\?/,
|
|
97
|
+
/init!/,
|
|
98
|
+
"inout",
|
|
99
|
+
/internal\(set\)/,
|
|
100
|
+
"internal",
|
|
101
|
+
"in",
|
|
102
|
+
"is",
|
|
103
|
+
// operator
|
|
104
|
+
"isolated",
|
|
105
|
+
// contextual
|
|
106
|
+
"nonisolated",
|
|
107
|
+
// contextual
|
|
108
|
+
"lazy",
|
|
109
|
+
// contextual
|
|
110
|
+
"let",
|
|
111
|
+
"macro",
|
|
112
|
+
"mutating",
|
|
113
|
+
// contextual
|
|
114
|
+
"nonmutating",
|
|
115
|
+
// contextual
|
|
116
|
+
/open\(set\)/,
|
|
117
|
+
// contextual
|
|
118
|
+
"open",
|
|
119
|
+
// contextual
|
|
120
|
+
"operator",
|
|
121
|
+
"optional",
|
|
122
|
+
// contextual
|
|
123
|
+
"override",
|
|
124
|
+
// contextual
|
|
125
|
+
"package",
|
|
126
|
+
"postfix",
|
|
127
|
+
// contextual
|
|
128
|
+
"precedencegroup",
|
|
129
|
+
"prefix",
|
|
130
|
+
// contextual
|
|
131
|
+
/private\(set\)/,
|
|
132
|
+
"private",
|
|
133
|
+
"protocol",
|
|
134
|
+
/public\(set\)/,
|
|
135
|
+
"public",
|
|
136
|
+
"repeat",
|
|
137
|
+
"required",
|
|
138
|
+
// contextual
|
|
139
|
+
"rethrows",
|
|
140
|
+
"return",
|
|
141
|
+
"set",
|
|
142
|
+
// contextual
|
|
143
|
+
"some",
|
|
144
|
+
// contextual
|
|
145
|
+
"static",
|
|
146
|
+
"struct",
|
|
147
|
+
"subscript",
|
|
148
|
+
"super",
|
|
149
|
+
"switch",
|
|
150
|
+
"throws",
|
|
151
|
+
"throw",
|
|
152
|
+
/try\?/,
|
|
153
|
+
// operator
|
|
154
|
+
/try!/,
|
|
155
|
+
// operator
|
|
156
|
+
"try",
|
|
157
|
+
// operator
|
|
158
|
+
"typealias",
|
|
159
|
+
/unowned\(safe\)/,
|
|
160
|
+
// contextual
|
|
161
|
+
/unowned\(unsafe\)/,
|
|
162
|
+
// contextual
|
|
163
|
+
"unowned",
|
|
164
|
+
// contextual
|
|
165
|
+
"var",
|
|
166
|
+
"weak",
|
|
167
|
+
// contextual
|
|
168
|
+
"where",
|
|
169
|
+
"while",
|
|
170
|
+
"willSet"
|
|
171
|
+
// contextual
|
|
172
|
+
], L = [
|
|
173
|
+
"false",
|
|
174
|
+
"nil",
|
|
175
|
+
"true"
|
|
176
|
+
], Z = [
|
|
177
|
+
"assignment",
|
|
178
|
+
"associativity",
|
|
179
|
+
"higherThan",
|
|
180
|
+
"left",
|
|
181
|
+
"lowerThan",
|
|
182
|
+
"none",
|
|
183
|
+
"right"
|
|
184
|
+
], J = [
|
|
185
|
+
"#colorLiteral",
|
|
186
|
+
"#column",
|
|
187
|
+
"#dsohandle",
|
|
188
|
+
"#else",
|
|
189
|
+
"#elseif",
|
|
190
|
+
"#endif",
|
|
191
|
+
"#error",
|
|
192
|
+
"#file",
|
|
193
|
+
"#fileID",
|
|
194
|
+
"#fileLiteral",
|
|
195
|
+
"#filePath",
|
|
196
|
+
"#function",
|
|
197
|
+
"#if",
|
|
198
|
+
"#imageLiteral",
|
|
199
|
+
"#keyPath",
|
|
200
|
+
"#line",
|
|
201
|
+
"#selector",
|
|
202
|
+
"#sourceLocation",
|
|
203
|
+
"#warning"
|
|
204
|
+
], P = [
|
|
205
|
+
"abs",
|
|
206
|
+
"all",
|
|
207
|
+
"any",
|
|
208
|
+
"assert",
|
|
209
|
+
"assertionFailure",
|
|
210
|
+
"debugPrint",
|
|
211
|
+
"dump",
|
|
212
|
+
"fatalError",
|
|
213
|
+
"getVaList",
|
|
214
|
+
"isKnownUniquelyReferenced",
|
|
215
|
+
"max",
|
|
216
|
+
"min",
|
|
217
|
+
"numericCast",
|
|
218
|
+
"pointwiseMax",
|
|
219
|
+
"pointwiseMin",
|
|
220
|
+
"precondition",
|
|
221
|
+
"preconditionFailure",
|
|
222
|
+
"print",
|
|
223
|
+
"readLine",
|
|
224
|
+
"repeatElement",
|
|
225
|
+
"sequence",
|
|
226
|
+
"stride",
|
|
227
|
+
"swap",
|
|
228
|
+
"swift_unboxFromSwiftValueWithType",
|
|
229
|
+
"transcode",
|
|
230
|
+
"type",
|
|
231
|
+
"unsafeBitCast",
|
|
232
|
+
"unsafeDowncast",
|
|
233
|
+
"withExtendedLifetime",
|
|
234
|
+
"withUnsafeMutablePointer",
|
|
235
|
+
"withUnsafePointer",
|
|
236
|
+
"withVaList",
|
|
237
|
+
"withoutActuallyEscaping",
|
|
238
|
+
"zip"
|
|
239
|
+
], k = s(
|
|
240
|
+
/[/=\-+!*%<>&|^~?]/,
|
|
241
|
+
/[\u00A1-\u00A7]/,
|
|
242
|
+
/[\u00A9\u00AB]/,
|
|
243
|
+
/[\u00AC\u00AE]/,
|
|
244
|
+
/[\u00B0\u00B1]/,
|
|
245
|
+
/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,
|
|
246
|
+
/[\u2016-\u2017]/,
|
|
247
|
+
/[\u2020-\u2027]/,
|
|
248
|
+
/[\u2030-\u203E]/,
|
|
249
|
+
/[\u2041-\u2053]/,
|
|
250
|
+
/[\u2055-\u205E]/,
|
|
251
|
+
/[\u2190-\u23FF]/,
|
|
252
|
+
/[\u2500-\u2775]/,
|
|
253
|
+
/[\u2794-\u2BFF]/,
|
|
254
|
+
/[\u2E00-\u2E7F]/,
|
|
255
|
+
/[\u3001-\u3003]/,
|
|
256
|
+
/[\u3008-\u3020]/,
|
|
257
|
+
/[\u3030]/
|
|
258
|
+
), B = s(
|
|
259
|
+
k,
|
|
260
|
+
/[\u0300-\u036F]/,
|
|
261
|
+
/[\u1DC0-\u1DFF]/,
|
|
262
|
+
/[\u20D0-\u20FF]/,
|
|
263
|
+
/[\uFE00-\uFE0F]/,
|
|
264
|
+
/[\uFE20-\uFE2F]/
|
|
265
|
+
// TODO: The following characters are also allowed, but the regex isn't supported yet.
|
|
266
|
+
// /[\u{E0100}-\u{E01EF}]/u
|
|
267
|
+
), w = e(k, B, "*"), M = s(
|
|
268
|
+
/[a-zA-Z_]/,
|
|
269
|
+
/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
|
|
270
|
+
/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
|
|
271
|
+
/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,
|
|
272
|
+
/[\u1E00-\u1FFF]/,
|
|
273
|
+
/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,
|
|
274
|
+
/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,
|
|
275
|
+
/[\u2C00-\u2DFF\u2E80-\u2FFF]/,
|
|
276
|
+
/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,
|
|
277
|
+
/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,
|
|
278
|
+
/[\uFE47-\uFEFE\uFF00-\uFFFD]/
|
|
279
|
+
// Should be /[\uFE47-\uFFFD]/, but we have to exclude FEFF.
|
|
280
|
+
// The following characters are also allowed, but the regexes aren't supported yet.
|
|
281
|
+
// /[\u{10000}-\u{1FFFD}\u{20000-\u{2FFFD}\u{30000}-\u{3FFFD}\u{40000}-\u{4FFFD}]/u,
|
|
282
|
+
// /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
|
|
283
|
+
// /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
|
|
284
|
+
// /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
|
|
285
|
+
), A = s(
|
|
286
|
+
M,
|
|
287
|
+
/\d/,
|
|
288
|
+
/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
|
|
289
|
+
), a = e(M, A, "*"), F = e(/[A-Z]/, A, "*"), Q = [
|
|
290
|
+
"attached",
|
|
291
|
+
"autoclosure",
|
|
292
|
+
e(/convention\(/, s("swift", "block", "c"), /\)/),
|
|
293
|
+
"discardableResult",
|
|
294
|
+
"dynamicCallable",
|
|
295
|
+
"dynamicMemberLookup",
|
|
296
|
+
"escaping",
|
|
297
|
+
"freestanding",
|
|
298
|
+
"frozen",
|
|
299
|
+
"GKInspectable",
|
|
300
|
+
"IBAction",
|
|
301
|
+
"IBDesignable",
|
|
302
|
+
"IBInspectable",
|
|
303
|
+
"IBOutlet",
|
|
304
|
+
"IBSegueAction",
|
|
305
|
+
"inlinable",
|
|
306
|
+
"main",
|
|
307
|
+
"nonobjc",
|
|
308
|
+
"NSApplicationMain",
|
|
309
|
+
"NSCopying",
|
|
310
|
+
"NSManaged",
|
|
311
|
+
e(/objc\(/, a, /\)/),
|
|
312
|
+
"objc",
|
|
313
|
+
"objcMembers",
|
|
314
|
+
"propertyWrapper",
|
|
315
|
+
"requires_stored_property_inits",
|
|
316
|
+
"resultBuilder",
|
|
317
|
+
"Sendable",
|
|
318
|
+
"testable",
|
|
319
|
+
"UIApplicationMain",
|
|
320
|
+
"unchecked",
|
|
321
|
+
"unknown",
|
|
322
|
+
"usableFromInline",
|
|
323
|
+
"warn_unqualified_access"
|
|
324
|
+
], ee = [
|
|
325
|
+
"iOS",
|
|
326
|
+
"iOSApplicationExtension",
|
|
327
|
+
"macOS",
|
|
328
|
+
"macOSApplicationExtension",
|
|
329
|
+
"macCatalyst",
|
|
330
|
+
"macCatalystApplicationExtension",
|
|
331
|
+
"watchOS",
|
|
332
|
+
"watchOSApplicationExtension",
|
|
333
|
+
"tvOS",
|
|
334
|
+
"tvOSApplicationExtension",
|
|
335
|
+
"swift"
|
|
336
|
+
];
|
|
337
|
+
function ne(t) {
|
|
338
|
+
const o = {
|
|
339
|
+
match: /\s+/,
|
|
340
|
+
relevance: 0
|
|
341
|
+
}, b = t.COMMENT(
|
|
342
|
+
"/\\*",
|
|
343
|
+
"\\*/",
|
|
344
|
+
{ contains: ["self"] }
|
|
345
|
+
), c = [
|
|
346
|
+
t.C_LINE_COMMENT_MODE,
|
|
347
|
+
b
|
|
348
|
+
], te = {
|
|
349
|
+
match: [
|
|
350
|
+
/\./,
|
|
351
|
+
s(...H, ...v)
|
|
352
|
+
],
|
|
353
|
+
className: { 2: "keyword" }
|
|
354
|
+
}, se = {
|
|
355
|
+
// Consume .keyword to prevent highlighting properties and methods as keywords.
|
|
356
|
+
match: e(/\./, s(..._)),
|
|
357
|
+
relevance: 0
|
|
358
|
+
}, ae = _.filter((n) => typeof n == "string").concat(["_|0"]), oe = _.filter((n) => typeof n != "string").concat(V).map(T), ce = { variants: [
|
|
359
|
+
{
|
|
360
|
+
className: "keyword",
|
|
361
|
+
match: s(...oe, ...v)
|
|
362
|
+
}
|
|
363
|
+
] }, i = {
|
|
364
|
+
$pattern: s(
|
|
365
|
+
/\b\w+/,
|
|
366
|
+
// regular keywords
|
|
367
|
+
/#\w+/
|
|
368
|
+
// number keywords
|
|
369
|
+
),
|
|
370
|
+
keyword: ae.concat(J),
|
|
371
|
+
literal: L
|
|
372
|
+
}, r = [
|
|
373
|
+
te,
|
|
374
|
+
se,
|
|
375
|
+
ce
|
|
376
|
+
], ie = {
|
|
377
|
+
// Consume .built_in to prevent highlighting properties and methods.
|
|
378
|
+
match: e(/\./, s(...P)),
|
|
379
|
+
relevance: 0
|
|
380
|
+
}, re = {
|
|
381
|
+
className: "built_in",
|
|
382
|
+
match: e(/\b/, s(...P), /(?=\()/)
|
|
383
|
+
}, I = [
|
|
384
|
+
ie,
|
|
385
|
+
re
|
|
386
|
+
], U = {
|
|
387
|
+
// Prevent -> from being highlighting as an operator.
|
|
388
|
+
match: /->/,
|
|
389
|
+
relevance: 0
|
|
390
|
+
}, ue = {
|
|
391
|
+
className: "operator",
|
|
392
|
+
relevance: 0,
|
|
393
|
+
variants: [
|
|
394
|
+
{ match: w },
|
|
395
|
+
{
|
|
396
|
+
// dot-operator: only operators that start with a dot are allowed to use dots as
|
|
397
|
+
// characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more
|
|
398
|
+
// characters that may also include dots.
|
|
399
|
+
match: `\\.(\\.|${B})+`
|
|
400
|
+
}
|
|
401
|
+
]
|
|
402
|
+
}, d = [
|
|
403
|
+
U,
|
|
404
|
+
ue
|
|
405
|
+
], f = "([0-9]_*)+", K = "([0-9a-fA-F]_*)+", p = {
|
|
406
|
+
className: "number",
|
|
407
|
+
relevance: 0,
|
|
408
|
+
variants: [
|
|
409
|
+
// decimal floating-point-literal (subsumes decimal-literal)
|
|
410
|
+
{ match: `\\b(${f})(\\.(${f}))?([eE][+-]?(${f}))?\\b` },
|
|
411
|
+
// hexadecimal floating-point-literal (subsumes hexadecimal-literal)
|
|
412
|
+
{ match: `\\b0x(${K})(\\.(${K}))?([pP][+-]?(${f}))?\\b` },
|
|
413
|
+
// octal-literal
|
|
414
|
+
{ match: /\b0o([0-7]_*)+\b/ },
|
|
415
|
+
// binary-literal
|
|
416
|
+
{ match: /\b0b([01]_*)+\b/ }
|
|
417
|
+
]
|
|
418
|
+
}, x = (n = "") => ({
|
|
419
|
+
className: "subst",
|
|
420
|
+
variants: [
|
|
421
|
+
{ match: e(/\\/, n, /[0\\tnr"']/) },
|
|
422
|
+
{ match: e(/\\/, n, /u\{[0-9a-fA-F]{1,8}\}/) }
|
|
423
|
+
]
|
|
424
|
+
}), le = (n = "") => ({
|
|
425
|
+
className: "subst",
|
|
426
|
+
match: e(/\\/, n, /[\t ]*(?:[\r\n]|\r\n)/)
|
|
427
|
+
}), G = (n = "") => ({
|
|
428
|
+
className: "subst",
|
|
429
|
+
label: "interpol",
|
|
430
|
+
begin: e(/\\/, n, /\(/),
|
|
431
|
+
end: /\)/
|
|
432
|
+
}), h = (n = "") => ({
|
|
433
|
+
begin: e(n, /"""/),
|
|
434
|
+
end: e(/"""/, n),
|
|
435
|
+
contains: [
|
|
436
|
+
x(n),
|
|
437
|
+
le(n),
|
|
438
|
+
G(n)
|
|
439
|
+
]
|
|
440
|
+
}), N = (n = "") => ({
|
|
441
|
+
begin: e(n, /"/),
|
|
442
|
+
end: e(/"/, n),
|
|
443
|
+
contains: [
|
|
444
|
+
x(n),
|
|
445
|
+
G(n)
|
|
446
|
+
]
|
|
447
|
+
}), l = {
|
|
448
|
+
className: "string",
|
|
449
|
+
variants: [
|
|
450
|
+
h(),
|
|
451
|
+
h("#"),
|
|
452
|
+
h("##"),
|
|
453
|
+
h("###"),
|
|
454
|
+
N(),
|
|
455
|
+
N("#"),
|
|
456
|
+
N("##"),
|
|
457
|
+
N("###")
|
|
458
|
+
]
|
|
459
|
+
}, W = [
|
|
460
|
+
t.BACKSLASH_ESCAPE,
|
|
461
|
+
{
|
|
462
|
+
begin: /\[/,
|
|
463
|
+
end: /\]/,
|
|
464
|
+
relevance: 0,
|
|
465
|
+
contains: [t.BACKSLASH_ESCAPE]
|
|
466
|
+
}
|
|
467
|
+
], Ee = {
|
|
468
|
+
begin: /\/[^\s](?=[^/\n]*\/)/,
|
|
469
|
+
end: /\//,
|
|
470
|
+
contains: W
|
|
471
|
+
}, C = (n) => {
|
|
472
|
+
const R = e(n, /\//), m = e(/\//, n);
|
|
473
|
+
return {
|
|
474
|
+
begin: R,
|
|
475
|
+
end: m,
|
|
476
|
+
contains: [
|
|
477
|
+
...W,
|
|
478
|
+
{
|
|
479
|
+
scope: "comment",
|
|
480
|
+
begin: `#(?!.*${m})`,
|
|
481
|
+
end: /$/
|
|
482
|
+
}
|
|
483
|
+
]
|
|
484
|
+
};
|
|
485
|
+
}, $ = {
|
|
486
|
+
scope: "regexp",
|
|
487
|
+
variants: [
|
|
488
|
+
C("###"),
|
|
489
|
+
C("##"),
|
|
490
|
+
C("#"),
|
|
491
|
+
Ee
|
|
492
|
+
]
|
|
493
|
+
}, Y = { match: e(/`/, a, /`/) }, de = {
|
|
494
|
+
className: "variable",
|
|
495
|
+
match: /\$\d+/
|
|
496
|
+
}, pe = {
|
|
497
|
+
className: "variable",
|
|
498
|
+
match: `\\$${A}+`
|
|
499
|
+
}, S = [
|
|
500
|
+
Y,
|
|
501
|
+
de,
|
|
502
|
+
pe
|
|
503
|
+
], me = {
|
|
504
|
+
match: /(@|#(un)?)available/,
|
|
505
|
+
scope: "keyword",
|
|
506
|
+
starts: { contains: [
|
|
507
|
+
{
|
|
508
|
+
begin: /\(/,
|
|
509
|
+
end: /\)/,
|
|
510
|
+
keywords: ee,
|
|
511
|
+
contains: [
|
|
512
|
+
...d,
|
|
513
|
+
p,
|
|
514
|
+
l
|
|
515
|
+
]
|
|
516
|
+
}
|
|
517
|
+
] }
|
|
518
|
+
}, Ae = {
|
|
519
|
+
scope: "keyword",
|
|
520
|
+
match: e(/@/, s(...Q), E(s(/\(/, /\s+/)))
|
|
521
|
+
}, Fe = {
|
|
522
|
+
scope: "meta",
|
|
523
|
+
match: e(/@/, a)
|
|
524
|
+
}, y = [
|
|
525
|
+
me,
|
|
526
|
+
Ae,
|
|
527
|
+
Fe
|
|
528
|
+
], u = {
|
|
529
|
+
match: E(/\b[A-Z]/),
|
|
530
|
+
relevance: 0,
|
|
531
|
+
contains: [
|
|
532
|
+
{
|
|
533
|
+
// Common Apple frameworks, for relevance boost
|
|
534
|
+
className: "type",
|
|
535
|
+
match: e(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, A, "+")
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
// Type identifier
|
|
539
|
+
className: "type",
|
|
540
|
+
match: F,
|
|
541
|
+
relevance: 0
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
// Optional type
|
|
545
|
+
match: /[?!]+/,
|
|
546
|
+
relevance: 0
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
// Variadic parameter
|
|
550
|
+
match: /\.\.\./,
|
|
551
|
+
relevance: 0
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
// Protocol composition
|
|
555
|
+
match: e(/\s+&\s+/, E(F)),
|
|
556
|
+
relevance: 0
|
|
557
|
+
}
|
|
558
|
+
]
|
|
559
|
+
}, be = {
|
|
560
|
+
begin: /</,
|
|
561
|
+
end: />/,
|
|
562
|
+
keywords: i,
|
|
563
|
+
contains: [
|
|
564
|
+
...c,
|
|
565
|
+
...r,
|
|
566
|
+
...y,
|
|
567
|
+
U,
|
|
568
|
+
u
|
|
569
|
+
]
|
|
570
|
+
};
|
|
571
|
+
u.contains.push(be);
|
|
572
|
+
const fe = {
|
|
573
|
+
match: e(a, /\s*:/),
|
|
574
|
+
keywords: "_|0",
|
|
575
|
+
relevance: 0
|
|
576
|
+
}, j = {
|
|
577
|
+
begin: /\(/,
|
|
578
|
+
end: /\)/,
|
|
579
|
+
relevance: 0,
|
|
580
|
+
keywords: i,
|
|
581
|
+
contains: [
|
|
582
|
+
"self",
|
|
583
|
+
fe,
|
|
584
|
+
...c,
|
|
585
|
+
$,
|
|
586
|
+
...r,
|
|
587
|
+
...I,
|
|
588
|
+
...d,
|
|
589
|
+
p,
|
|
590
|
+
l,
|
|
591
|
+
...S,
|
|
592
|
+
...y,
|
|
593
|
+
u
|
|
594
|
+
]
|
|
595
|
+
}, g = {
|
|
596
|
+
begin: /</,
|
|
597
|
+
end: />/,
|
|
598
|
+
keywords: "repeat each",
|
|
599
|
+
contains: [
|
|
600
|
+
...c,
|
|
601
|
+
u
|
|
602
|
+
]
|
|
603
|
+
}, he = {
|
|
604
|
+
begin: s(
|
|
605
|
+
E(e(a, /\s*:/)),
|
|
606
|
+
E(e(a, /\s+/, a, /\s*:/))
|
|
607
|
+
),
|
|
608
|
+
end: /:/,
|
|
609
|
+
relevance: 0,
|
|
610
|
+
contains: [
|
|
611
|
+
{
|
|
612
|
+
className: "keyword",
|
|
613
|
+
match: /\b_\b/
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
className: "params",
|
|
617
|
+
match: a
|
|
618
|
+
}
|
|
619
|
+
]
|
|
620
|
+
}, q = {
|
|
621
|
+
begin: /\(/,
|
|
622
|
+
end: /\)/,
|
|
623
|
+
keywords: i,
|
|
624
|
+
contains: [
|
|
625
|
+
he,
|
|
626
|
+
...c,
|
|
627
|
+
...r,
|
|
628
|
+
...d,
|
|
629
|
+
p,
|
|
630
|
+
l,
|
|
631
|
+
...y,
|
|
632
|
+
u,
|
|
633
|
+
j
|
|
634
|
+
],
|
|
635
|
+
endsParent: !0,
|
|
636
|
+
illegal: /["']/
|
|
637
|
+
}, Ne = {
|
|
638
|
+
match: [
|
|
639
|
+
/(func|macro)/,
|
|
640
|
+
/\s+/,
|
|
641
|
+
s(Y.match, a, w)
|
|
642
|
+
],
|
|
643
|
+
className: {
|
|
644
|
+
1: "keyword",
|
|
645
|
+
3: "title.function"
|
|
646
|
+
},
|
|
647
|
+
contains: [
|
|
648
|
+
g,
|
|
649
|
+
q,
|
|
650
|
+
o
|
|
651
|
+
],
|
|
652
|
+
illegal: [
|
|
653
|
+
/\[/,
|
|
654
|
+
/%/
|
|
655
|
+
]
|
|
656
|
+
}, ye = {
|
|
657
|
+
match: [
|
|
658
|
+
/\b(?:subscript|init[?!]?)/,
|
|
659
|
+
/\s*(?=[<(])/
|
|
660
|
+
],
|
|
661
|
+
className: { 1: "keyword" },
|
|
662
|
+
contains: [
|
|
663
|
+
g,
|
|
664
|
+
q,
|
|
665
|
+
o
|
|
666
|
+
],
|
|
667
|
+
illegal: /\[|%/
|
|
668
|
+
}, Re = {
|
|
669
|
+
match: [
|
|
670
|
+
/operator/,
|
|
671
|
+
/\s+/,
|
|
672
|
+
w
|
|
673
|
+
],
|
|
674
|
+
className: {
|
|
675
|
+
1: "keyword",
|
|
676
|
+
3: "title"
|
|
677
|
+
}
|
|
678
|
+
}, Te = {
|
|
679
|
+
begin: [
|
|
680
|
+
/precedencegroup/,
|
|
681
|
+
/\s+/,
|
|
682
|
+
F
|
|
683
|
+
],
|
|
684
|
+
className: {
|
|
685
|
+
1: "keyword",
|
|
686
|
+
3: "title"
|
|
687
|
+
},
|
|
688
|
+
contains: [u],
|
|
689
|
+
keywords: [
|
|
690
|
+
...Z,
|
|
691
|
+
...L
|
|
692
|
+
],
|
|
693
|
+
end: /}/
|
|
694
|
+
}, _e = {
|
|
695
|
+
match: [
|
|
696
|
+
/class\b/,
|
|
697
|
+
/\s+/,
|
|
698
|
+
/func\b/,
|
|
699
|
+
/\s+/,
|
|
700
|
+
/\b[A-Za-z_][A-Za-z0-9_]*\b/
|
|
701
|
+
],
|
|
702
|
+
scope: {
|
|
703
|
+
1: "keyword",
|
|
704
|
+
3: "keyword",
|
|
705
|
+
5: "title.function"
|
|
706
|
+
}
|
|
707
|
+
}, we = {
|
|
708
|
+
match: [
|
|
709
|
+
/class\b/,
|
|
710
|
+
/\s+/,
|
|
711
|
+
/var\b/
|
|
712
|
+
],
|
|
713
|
+
scope: {
|
|
714
|
+
1: "keyword",
|
|
715
|
+
3: "keyword"
|
|
716
|
+
}
|
|
717
|
+
}, Ie = {
|
|
718
|
+
begin: [
|
|
719
|
+
/(struct|protocol|class|extension|enum|actor)/,
|
|
720
|
+
/\s+/,
|
|
721
|
+
a,
|
|
722
|
+
/\s*/
|
|
723
|
+
],
|
|
724
|
+
beginScope: {
|
|
725
|
+
1: "keyword",
|
|
726
|
+
3: "title.class"
|
|
727
|
+
},
|
|
728
|
+
keywords: i,
|
|
729
|
+
contains: [
|
|
730
|
+
g,
|
|
731
|
+
...r,
|
|
732
|
+
{
|
|
733
|
+
begin: /:/,
|
|
734
|
+
end: /\{/,
|
|
735
|
+
keywords: i,
|
|
736
|
+
contains: [
|
|
737
|
+
{
|
|
738
|
+
scope: "title.class.inherited",
|
|
739
|
+
match: F
|
|
740
|
+
},
|
|
741
|
+
...r
|
|
742
|
+
],
|
|
743
|
+
relevance: 0
|
|
744
|
+
}
|
|
745
|
+
]
|
|
746
|
+
};
|
|
747
|
+
for (const n of l.variants) {
|
|
748
|
+
const R = n.contains.find((Ce) => Ce.label === "interpol");
|
|
749
|
+
R.keywords = i;
|
|
750
|
+
const m = [
|
|
751
|
+
...r,
|
|
752
|
+
...I,
|
|
753
|
+
...d,
|
|
754
|
+
p,
|
|
755
|
+
l,
|
|
756
|
+
...S
|
|
757
|
+
];
|
|
758
|
+
R.contains = [
|
|
759
|
+
...m,
|
|
760
|
+
{
|
|
761
|
+
begin: /\(/,
|
|
762
|
+
end: /\)/,
|
|
763
|
+
contains: [
|
|
764
|
+
"self",
|
|
765
|
+
...m
|
|
766
|
+
]
|
|
767
|
+
}
|
|
768
|
+
];
|
|
769
|
+
}
|
|
770
|
+
return {
|
|
771
|
+
name: "Swift",
|
|
772
|
+
keywords: i,
|
|
773
|
+
contains: [
|
|
774
|
+
...c,
|
|
775
|
+
Ne,
|
|
776
|
+
ye,
|
|
777
|
+
_e,
|
|
778
|
+
we,
|
|
779
|
+
Ie,
|
|
780
|
+
Re,
|
|
781
|
+
Te,
|
|
782
|
+
{
|
|
783
|
+
beginKeywords: "import",
|
|
784
|
+
end: /$/,
|
|
785
|
+
contains: [...c],
|
|
786
|
+
relevance: 0
|
|
787
|
+
},
|
|
788
|
+
$,
|
|
789
|
+
...r,
|
|
790
|
+
...I,
|
|
791
|
+
...d,
|
|
792
|
+
p,
|
|
793
|
+
l,
|
|
794
|
+
...S,
|
|
795
|
+
...y,
|
|
796
|
+
u,
|
|
797
|
+
j
|
|
798
|
+
]
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
return O = ne, O;
|
|
802
|
+
}
|
|
803
|
+
export {
|
|
804
|
+
Se as __require
|
|
805
|
+
};
|