@fangzhongya/vue-archive 0.0.2-7 → 0.0.2
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/es/_virtual/_commonjsHelpers.js +28 -26
- package/dist/es/_virtual/_plugin-vue_export-helper.js +7 -6
- package/dist/es/_virtual/emphasis.js +2 -2
- package/dist/es/_virtual/entities.js +7 -6
- package/dist/es/_virtual/html_re.js +2 -2
- package/dist/es/_virtual/index.js +7 -6
- package/dist/es/_virtual/index2.js +2 -2
- package/dist/es/_virtual/index3.js +2 -2
- package/dist/es/_virtual/index4.js +2 -2
- package/dist/es/_virtual/parser-html.js +7 -6
- package/dist/es/_virtual/parser-typescript.js +7 -6
- package/dist/es/_virtual/punycode.es6.js +4 -4
- package/dist/es/_virtual/standalone.js +7 -6
- package/dist/es/_virtual/strikethrough.js +2 -2
- package/dist/es/_virtual/utils.js +2 -2
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +3 -3
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +3 -3
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +16 -8
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +18 -12
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +40 -27
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +9 -6
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +8 -5
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +14 -11
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +12 -7
- package/dist/es/node_modules/.pnpm/@highlightjs_vue-plugin@2.1.0_jsvakxz56e7tk77soxhxnrhzhm/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +24 -24
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/index.js +6 -6
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/block-parser.js +21 -12
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/index.js +33 -29
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/source-parser.js +38 -17
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/spec-parser.js +11 -9
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/description.js +28 -17
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/name.js +69 -38
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/tag.js +19 -10
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/type.js +51 -26
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/primitives.js +8 -5
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/transforms/align.js +12 -1
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/transforms/crlf.js +12 -1
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/transforms/indent.js +12 -1
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/util.js +20 -20
- package/dist/es/node_modules/.pnpm/entities@3.0.1/node_modules/entities/lib/maps/entities.json.js +6373 -4251
- package/dist/es/node_modules/.pnpm/es-module-lexer@1.1.1/node_modules/es-module-lexer/dist/lexer.js +38 -40
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/es/common.js +3 -3
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/es/core.js +3 -3
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/common.js +79 -79
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/core.js +1157 -648
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/bash.js +75 -57
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/c.js +157 -137
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/cpp.js +118 -93
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/csharp.js +112 -92
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/css.js +92 -77
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/diff.js +13 -11
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/go.js +98 -92
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/graphql.js +20 -17
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/ini.js +51 -39
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/java.js +132 -114
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/javascript.js +237 -192
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/json.js +26 -21
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/kotlin.js +98 -82
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/less.js +161 -134
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/lua.js +34 -29
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/makefile.js +33 -26
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/markdown.js +95 -77
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/objectivec.js +188 -179
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/perl.js +78 -61
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/php-template.js +17 -15
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/php.js +157 -121
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/plaintext.js +11 -9
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/python-repl.js +10 -8
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/python.js +191 -172
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/r.js +39 -33
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/ruby.js +159 -131
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/rust.js +45 -37
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/scss.js +94 -79
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/shell.js +10 -8
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/sql.js +78 -49
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/swift.js +292 -219
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/typescript.js +284 -223
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/vbnet.js +51 -37
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/wasm.js +49 -39
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/xml.js +55 -45
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/yaml.js +66 -46
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/styles/stackoverflow-light.css.js +2 -2
- package/dist/es/node_modules/.pnpm/linkify-it@4.0.1/node_modules/linkify-it/index.js +304 -138
- package/dist/es/node_modules/.pnpm/linkify-it@4.0.1/node_modules/linkify-it/lib/re.js +49 -16
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/index.js +8 -8
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/entities.js +5 -5
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/html_blocks.js +2 -2
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/html_re.js +18 -5
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/utils.js +153 -77
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/index.js +8 -8
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/parse_link_destination.js +61 -26
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/parse_link_label.js +27 -13
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/parse_link_title.js +37 -14
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/index.js +156 -83
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/parser_block.js +69 -42
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/parser_core.js +32 -28
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/parser_inline.js +96 -66
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/presets/commonmark.js +7 -7
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/presets/default.js +7 -7
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/presets/zero.js +7 -7
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/renderer.js +132 -64
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/ruler.js +122 -74
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/blockquote.js +147 -27
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/code.js +18 -12
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/fence.js +63 -11
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/heading.js +40 -9
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/hr.js +32 -11
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/html_block.js +56 -26
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/lheading.js +53 -18
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/list.js +196 -53
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/paragraph.js +32 -12
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/reference.js +142 -44
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/state_block.js +150 -60
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/table.js +174 -44
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/block.js +12 -4
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/inline.js +9 -5
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/linkify.js +90 -20
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/normalize.js +8 -5
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/replacements.js +53 -17
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/smartquotes.js +143 -50
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/state_core.js +11 -7
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/text_join.js +26 -10
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/autolink.js +57 -10
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/backticks.js +42 -16
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +59 -16
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/emphasis.js +64 -24
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/entity.js +45 -13
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/escape.js +51 -16
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/fragments_join.js +21 -6
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/html_inline.js +37 -13
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/image.js +107 -32
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/link.js +100 -26
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/linkify.js +44 -4
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/newline.js +32 -19
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/state_inline.js +91 -23
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/strikethrough.js +79 -25
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/text.js +18 -9
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/token.js +52 -21
- package/dist/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.js +74 -32
- package/dist/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.js +54 -29
- package/dist/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.js +16 -4
- package/dist/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.js +10 -10
- package/dist/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.js +158 -60
- package/dist/es/node_modules/.pnpm/prettier@2.8.4/node_modules/prettier/parser-html.js +2375 -2274
- package/dist/es/node_modules/.pnpm/prettier@2.8.4/node_modules/prettier/parser-typescript.js +23493 -23223
- package/dist/es/node_modules/.pnpm/prettier@2.8.4/node_modules/prettier/standalone.js +8281 -8174
- package/dist/es/node_modules/.pnpm/punycode@2.3.0/node_modules/punycode/punycode.es6.js +208 -107
- package/dist/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.js +9 -4
- package/dist/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.js +9 -4
- package/dist/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.js +2 -2
- package/dist/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.js +9 -4
- package/dist/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.js +18 -10
- package/dist/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.js +9 -4
- package/dist/es/packages/components/aside/index.vue.js +109 -75
- package/dist/es/packages/components/aside/index.vue2.js +2 -2
- package/dist/es/packages/components/boxurl/index.vue.js +55 -31
- package/dist/es/packages/components/boxurl/index.vue2.js +2 -2
- package/dist/es/packages/components/choice/choice.vue.js +43 -33
- package/dist/es/packages/components/choice/choice.vue2.js +2 -2
- package/dist/es/packages/components/choice/index.vue.js +69 -45
- package/dist/es/packages/components/choice/index.vue2.js +2 -2
- package/dist/es/packages/components/code/highlight.vue.js +11 -11
- package/dist/es/packages/components/code/highlight.vue2.js +4 -4
- package/dist/es/packages/components/code/index.vue.js +91 -70
- package/dist/es/packages/components/code/index.vue2.js +2 -2
- package/dist/es/packages/components/compo/ftable.vue.js +46 -30
- package/dist/es/packages/components/compo/ftable.vue2.js +2 -2
- package/dist/es/packages/components/compo/index.js +207 -135
- package/dist/es/packages/components/compo/index.vue.js +151 -119
- package/dist/es/packages/components/compo/index.vue2.js +2 -2
- package/dist/es/packages/components/compo/info.vue.js +43 -30
- package/dist/es/packages/components/compo/info.vue2.js +2 -2
- package/dist/es/packages/components/compo/top.js +114 -84
- package/dist/es/packages/components/header/index.vue.js +7 -7
- package/dist/es/packages/components/main/index.vue.js +59 -43
- package/dist/es/packages/components/main/index.vue2.js +2 -2
- package/dist/es/packages/components/md/index.vue.js +53 -42
- package/dist/es/packages/components/md/index.vue2.js +2 -2
- package/dist/es/packages/components/test/index.js +99 -70
- package/dist/es/packages/components/test/index.vue.js +91 -68
- package/dist/es/packages/components/test/index.vue2.js +2 -2
- package/dist/es/packages/components/test/top.js +128 -98
- package/dist/es/packages/components/use/index.js +109 -82
- package/dist/es/packages/components/use/retrie/any/index.vue.js +82 -61
- package/dist/es/packages/components/use/retrie/any/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/array/index.vue.js +54 -37
- package/dist/es/packages/components/use/retrie/array/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/boolean/index.vue.js +61 -40
- package/dist/es/packages/components/use/retrie/boolean/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/choice/index.vue.js +154 -92
- package/dist/es/packages/components/use/retrie/choice/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/choice/index.vue3.js +2 -2
- package/dist/es/packages/components/use/retrie/expose/index.vue.js +65 -44
- package/dist/es/packages/components/use/retrie/expose/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/form/index.vue.js +104 -93
- package/dist/es/packages/components/use/retrie/form/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/function/index.vue.js +60 -45
- package/dist/es/packages/components/use/retrie/function/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/index.vue.js +56 -43
- package/dist/es/packages/components/use/retrie/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/number/index.vue.js +41 -30
- package/dist/es/packages/components/use/retrie/number/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/object/index.vue.js +54 -37
- package/dist/es/packages/components/use/retrie/object/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/other/index.vue.js +54 -35
- package/dist/es/packages/components/use/retrie/other/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/select/index.vue.js +112 -75
- package/dist/es/packages/components/use/retrie/select/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/select/index.vue3.js +2 -2
- package/dist/es/packages/components/use/retrie/slot/index.vue.js +41 -30
- package/dist/es/packages/components/use/retrie/slot/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/string/index.vue.js +36 -24
- package/dist/es/packages/components/use/retrie/string/index.vue2.js +2 -2
- package/dist/es/packages/components/use/set-code.vue.js +148 -100
- package/dist/es/packages/components/use/set-code.vue2.js +2 -2
- package/dist/es/packages/components/use/set-emit.vue.js +46 -32
- package/dist/es/packages/components/use/set-emit.vue2.js +2 -2
- package/dist/es/packages/components/use/set-expose.vue.js +37 -28
- package/dist/es/packages/components/use/set-expose.vue2.js +2 -2
- package/dist/es/packages/components/use/set-props.vue.js +104 -64
- package/dist/es/packages/components/use/set-props.vue2.js +2 -2
- package/dist/es/packages/components/use/set-slot.vue.js +39 -31
- package/dist/es/packages/components/use/set-slot.vue2.js +2 -2
- package/dist/es/packages/components/use/util.js +156 -74
- package/dist/es/packages/config.d.ts +3 -3
- package/dist/es/packages/config.js +8 -8
- package/dist/es/packages/index/index.vue.js +10 -9
- package/dist/es/packages/index/index.vue2.js +2 -2
- package/dist/es/packages/index.js +9 -9
- package/dist/es/packages/page/compon/index.vue.js +2 -2
- package/dist/es/packages/page/compon/index.vue2.js +19 -16
- package/dist/es/packages/page/develop/index.vue.js +2 -2
- package/dist/es/packages/page/develop/index.vue2.js +19 -16
- package/dist/es/packages/page/index/index.vue.js +2 -2
- package/dist/es/packages/page/index/index.vue2.js +50 -36
- package/dist/es/packages/page/single/index.vue.js +2 -2
- package/dist/es/packages/page/single/index.vue2.js +75 -57
- package/dist/es/packages/page/tests/index.vue.js +2 -2
- package/dist/es/packages/page/tests/index.vue2.js +74 -46
- package/dist/es/packages/router/index.js +99 -62
- package/dist/es/packages/utils/common.js +138 -80
- package/dist/es/packages/utils/glob.js +480 -306
- package/dist/es/packages/utils/index.js +14 -13
- package/dist/es/packages/utils/props.js +171 -66
- package/dist/es/packages/utils/storage.js +27 -19
- package/dist/es/style.css +367 -2
- package/dist/lib/_virtual/_commonjsHelpers.js +38 -1
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -1
- package/dist/lib/_virtual/emphasis.js +4 -1
- package/dist/lib/_virtual/entities.js +12 -1
- package/dist/lib/_virtual/html_re.js +4 -1
- package/dist/lib/_virtual/index.js +12 -1
- package/dist/lib/_virtual/index2.js +4 -1
- package/dist/lib/_virtual/index3.js +4 -1
- package/dist/lib/_virtual/index4.js +4 -1
- package/dist/lib/_virtual/parser-html.js +12 -1
- package/dist/lib/_virtual/parser-typescript.js +12 -1
- package/dist/lib/_virtual/punycode.es6.js +5 -1
- package/dist/lib/_virtual/standalone.js +12 -1
- package/dist/lib/_virtual/strikethrough.js +4 -1
- package/dist/lib/_virtual/utils.js +4 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +6 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +6 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +20 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +23 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +44 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +12 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +11 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +21 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +16 -1
- package/dist/lib/node_modules/.pnpm/@highlightjs_vue-plugin@2.1.0_jsvakxz56e7tk77soxhxnrhzhm/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +34 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/index.js +15 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/block-parser.js +25 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/index.js +41 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/source-parser.js +44 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/spec-parser.js +15 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/description.js +35 -2
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/name.js +83 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/tag.js +22 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/type.js +60 -2
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/primitives.js +9 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/transforms/align.js +14 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/transforms/crlf.js +13 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/transforms/indent.js +13 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/util.js +28 -1
- package/dist/lib/node_modules/.pnpm/entities@3.0.1/node_modules/entities/lib/maps/entities.json.js +6376 -2
- package/dist/lib/node_modules/.pnpm/es-module-lexer@1.1.1/node_modules/es-module-lexer/dist/lexer.js +50 -3
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/es/common.js +5 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/es/core.js +5 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/common.js +80 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/core.js +1573 -2
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/bash.js +381 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/c.js +289 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/cpp.js +544 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/csharp.js +398 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/css.js +741 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/diff.js +63 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/go.js +144 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/graphql.js +80 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/ini.js +126 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/java.js +263 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/javascript.js +691 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/json.js +49 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/kotlin.js +265 -2
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/less.js +822 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/lua.js +70 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/makefile.js +77 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/markdown.js +236 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/objectivec.js +253 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/perl.js +461 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/php-template.js +56 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/php.js +586 -2
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/plaintext.js +22 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/python-repl.js +35 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/python.js +423 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/r.js +220 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/ruby.js +423 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/rust.js +305 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/scss.js +726 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/shell.js +34 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/sql.js +648 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/swift.js +785 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/typescript.js +779 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/vbnet.js +143 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/wasm.js +131 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/xml.js +236 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/yaml.js +194 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/styles/stackoverflow-light.css.js +3 -1
- package/dist/lib/node_modules/.pnpm/linkify-it@4.0.1/node_modules/linkify-it/index.js +354 -1
- package/dist/lib/node_modules/.pnpm/linkify-it@4.0.1/node_modules/linkify-it/lib/re.js +54 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/index.js +9 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/entities.js +6 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/html_blocks.js +66 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/html_re.js +19 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/utils.js +226 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/index.js +9 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/parse_link_destination.js +78 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/parse_link_label.js +32 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/parse_link_title.js +45 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/index.js +181 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/parser_block.js +79 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/parser_core.js +38 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/parser_inline.js +112 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/presets/commonmark.js +77 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/presets/default.js +39 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/presets/zero.js +58 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/renderer.js +150 -13
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/ruler.js +143 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/blockquote.js +160 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/code.js +26 -2
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/fence.js +67 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/heading.js +43 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/hr.js +36 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/html_block.js +62 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/lheading.js +59 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/list.js +220 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/paragraph.js +36 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/reference.js +152 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/state_block.js +167 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/table.js +184 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/block.js +14 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/inline.js +11 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/linkify.js +100 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/normalize.js +10 -2
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/replacements.js +62 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/smartquotes.js +157 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/state_core.js +13 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/text_join.js +29 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/autolink.js +61 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/backticks.js +45 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +65 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/emphasis.js +82 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/entity.js +49 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/escape.js +56 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/fragments_join.js +23 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/html_inline.js +43 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/image.js +112 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/link.js +105 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/linkify.js +46 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/newline.js +35 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/state_inline.js +98 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/strikethrough.js +88 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/text.js +46 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/token.js +61 -1
- package/dist/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.js +84 -1
- package/dist/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.js +64 -1
- package/dist/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.js +18 -1
- package/dist/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.js +11 -1
- package/dist/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.js +171 -2
- package/dist/lib/node_modules/.pnpm/prettier@2.8.4/node_modules/prettier/parser-html.js +3149 -20
- package/dist/lib/node_modules/.pnpm/prettier@2.8.4/node_modules/prettier/parser-typescript.js +33275 -78
- package/dist/lib/node_modules/.pnpm/prettier@2.8.4/node_modules/prettier/standalone.js +11383 -88
- package/dist/lib/node_modules/.pnpm/punycode@2.3.0/node_modules/punycode/punycode.es6.js +240 -1
- package/dist/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.js +12 -1
- package/dist/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.js +12 -1
- package/dist/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.js +3 -1
- package/dist/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.js +12 -1
- package/dist/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.js +21 -1
- package/dist/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.js +12 -1
- package/dist/lib/packages/components/aside/index.vue.js +133 -1
- package/dist/lib/packages/components/aside/index.vue2.js +3 -1
- package/dist/lib/packages/components/boxurl/index.vue.js +78 -1
- package/dist/lib/packages/components/boxurl/index.vue2.js +3 -1
- package/dist/lib/packages/components/choice/choice.vue.js +58 -1
- package/dist/lib/packages/components/choice/choice.vue2.js +3 -1
- package/dist/lib/packages/components/choice/index.vue.js +99 -1
- package/dist/lib/packages/components/choice/index.vue2.js +3 -1
- package/dist/lib/packages/components/code/highlight.vue.js +15 -1
- package/dist/lib/packages/components/code/highlight.vue2.js +17 -1
- package/dist/lib/packages/components/code/index.vue.js +131 -1
- package/dist/lib/packages/components/code/index.vue2.js +3 -1
- package/dist/lib/packages/components/compo/ftable.vue.js +77 -1
- package/dist/lib/packages/components/compo/ftable.vue2.js +3 -1
- package/dist/lib/packages/components/compo/index.js +290 -1
- package/dist/lib/packages/components/compo/index.vue.js +226 -1
- package/dist/lib/packages/components/compo/index.vue2.js +3 -1
- package/dist/lib/packages/components/compo/info.vue.js +56 -1
- package/dist/lib/packages/components/compo/info.vue2.js +3 -1
- package/dist/lib/packages/components/compo/top.js +151 -1
- package/dist/lib/packages/components/header/index.vue.js +9 -1
- package/dist/lib/packages/components/main/index.vue.js +71 -1
- package/dist/lib/packages/components/main/index.vue2.js +3 -1
- package/dist/lib/packages/components/md/index.vue.js +70 -1
- package/dist/lib/packages/components/md/index.vue2.js +3 -1
- package/dist/lib/packages/components/test/index.js +129 -1
- package/dist/lib/packages/components/test/index.vue.js +108 -1
- package/dist/lib/packages/components/test/index.vue2.js +3 -1
- package/dist/lib/packages/components/test/top.js +187 -1
- package/dist/lib/packages/components/use/index.js +202 -1
- package/dist/lib/packages/components/use/retrie/any/index.vue.js +153 -1
- package/dist/lib/packages/components/use/retrie/any/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/array/index.vue.js +79 -5
- package/dist/lib/packages/components/use/retrie/array/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/boolean/index.vue.js +90 -1
- package/dist/lib/packages/components/use/retrie/boolean/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/choice/index.vue.js +207 -3
- package/dist/lib/packages/components/use/retrie/choice/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/choice/index.vue3.js +4 -1
- package/dist/lib/packages/components/use/retrie/expose/index.vue.js +89 -1
- package/dist/lib/packages/components/use/retrie/expose/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/form/index.vue.js +159 -1
- package/dist/lib/packages/components/use/retrie/form/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/function/index.vue.js +94 -3
- package/dist/lib/packages/components/use/retrie/function/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/index.vue.js +112 -1
- package/dist/lib/packages/components/use/retrie/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/number/index.vue.js +58 -1
- package/dist/lib/packages/components/use/retrie/number/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/object/index.vue.js +79 -5
- package/dist/lib/packages/components/use/retrie/object/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/other/index.vue.js +93 -3
- package/dist/lib/packages/components/use/retrie/other/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/select/index.vue.js +160 -1
- package/dist/lib/packages/components/use/retrie/select/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/select/index.vue3.js +4 -1
- package/dist/lib/packages/components/use/retrie/slot/index.vue.js +57 -1
- package/dist/lib/packages/components/use/retrie/slot/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/string/index.vue.js +62 -1
- package/dist/lib/packages/components/use/retrie/string/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/set-code.vue.js +182 -12
- package/dist/lib/packages/components/use/set-code.vue2.js +3 -1
- package/dist/lib/packages/components/use/set-emit.vue.js +63 -1
- package/dist/lib/packages/components/use/set-emit.vue2.js +3 -1
- package/dist/lib/packages/components/use/set-expose.vue.js +52 -1
- package/dist/lib/packages/components/use/set-expose.vue2.js +3 -1
- package/dist/lib/packages/components/use/set-props.vue.js +131 -1
- package/dist/lib/packages/components/use/set-props.vue2.js +3 -1
- package/dist/lib/packages/components/use/set-slot.vue.js +52 -1
- package/dist/lib/packages/components/use/set-slot.vue2.js +3 -1
- package/dist/lib/packages/components/use/util.js +181 -4
- package/dist/lib/packages/config.d.ts +3 -3
- package/dist/lib/packages/config.js +14 -1
- package/dist/lib/packages/index/index.vue.js +14 -1
- package/dist/lib/packages/index/index.vue2.js +3 -1
- package/dist/lib/packages/index.js +14 -1
- package/dist/lib/packages/page/compon/index.vue.js +3 -1
- package/dist/lib/packages/page/compon/index.vue2.js +23 -1
- package/dist/lib/packages/page/develop/index.vue.js +3 -1
- package/dist/lib/packages/page/develop/index.vue2.js +23 -1
- package/dist/lib/packages/page/index/index.vue.js +3 -1
- package/dist/lib/packages/page/index/index.vue2.js +62 -1
- package/dist/lib/packages/page/single/index.vue.js +3 -1
- package/dist/lib/packages/page/single/index.vue2.js +86 -1
- package/dist/lib/packages/page/tests/index.vue.js +3 -1
- package/dist/lib/packages/page/tests/index.vue2.js +94 -1
- package/dist/lib/packages/router/index.js +173 -1
- package/dist/lib/packages/utils/common.js +166 -1
- package/dist/lib/packages/utils/glob.js +561 -2
- package/dist/lib/packages/utils/index.js +19 -1
- package/dist/lib/packages/utils/props.js +197 -1
- package/dist/lib/packages/utils/storage.js +42 -1
- package/package.json +9 -10
|
@@ -1,40 +1,57 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
var swift_1;
|
|
2
|
+
var hasRequiredSwift;
|
|
3
|
+
function requireSwift() {
|
|
4
|
+
if (hasRequiredSwift)
|
|
5
|
+
return swift_1;
|
|
6
|
+
hasRequiredSwift = 1;
|
|
7
|
+
function source(re) {
|
|
8
|
+
if (!re)
|
|
9
|
+
return null;
|
|
10
|
+
if (typeof re === "string")
|
|
11
|
+
return re;
|
|
12
|
+
return re.source;
|
|
8
13
|
}
|
|
9
|
-
function
|
|
10
|
-
return
|
|
14
|
+
function lookahead(re) {
|
|
15
|
+
return concat("(?=", re, ")");
|
|
11
16
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
17
|
+
function concat(...args) {
|
|
18
|
+
const joined = args.map((x) => source(x)).join("");
|
|
19
|
+
return joined;
|
|
14
20
|
}
|
|
15
|
-
function
|
|
16
|
-
const
|
|
17
|
-
|
|
21
|
+
function stripOptionsFromArgs(args) {
|
|
22
|
+
const opts = args[args.length - 1];
|
|
23
|
+
if (typeof opts === "object" && opts.constructor === Object) {
|
|
24
|
+
args.splice(args.length - 1, 1);
|
|
25
|
+
return opts;
|
|
26
|
+
} else {
|
|
27
|
+
return {};
|
|
28
|
+
}
|
|
18
29
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
30
|
+
function either(...args) {
|
|
31
|
+
const opts = stripOptionsFromArgs(args);
|
|
32
|
+
const joined = "(" + (opts.capture ? "" : "?:") + args.map((x) => source(x)).join("|") + ")";
|
|
33
|
+
return joined;
|
|
21
34
|
}
|
|
22
|
-
const
|
|
35
|
+
const keywordWrapper = (keyword) => concat(
|
|
23
36
|
/\b/,
|
|
24
|
-
|
|
25
|
-
/\w$/.test(
|
|
26
|
-
)
|
|
37
|
+
keyword,
|
|
38
|
+
/\w$/.test(keyword) ? /\b/ : /\B/
|
|
39
|
+
);
|
|
40
|
+
const dotKeywords = [
|
|
27
41
|
"Protocol",
|
|
28
42
|
// contextual
|
|
29
43
|
"Type"
|
|
30
44
|
// contextual
|
|
31
|
-
].map(
|
|
45
|
+
].map(keywordWrapper);
|
|
46
|
+
const optionalDotKeywords = [
|
|
32
47
|
"init",
|
|
33
48
|
"self"
|
|
34
|
-
].map(
|
|
49
|
+
].map(keywordWrapper);
|
|
50
|
+
const keywordTypes = [
|
|
35
51
|
"Any",
|
|
36
52
|
"Self"
|
|
37
|
-
]
|
|
53
|
+
];
|
|
54
|
+
const keywords = [
|
|
38
55
|
// strings below will be fed into the regular `keywords` engine while regex
|
|
39
56
|
// will result in additional modes being created to scan for those keywords to
|
|
40
57
|
// avoid conflicts with other rules
|
|
@@ -159,11 +176,13 @@ function ye() {
|
|
|
159
176
|
"while",
|
|
160
177
|
"willSet"
|
|
161
178
|
// contextual
|
|
162
|
-
]
|
|
179
|
+
];
|
|
180
|
+
const literals = [
|
|
163
181
|
"false",
|
|
164
182
|
"nil",
|
|
165
183
|
"true"
|
|
166
|
-
]
|
|
184
|
+
];
|
|
185
|
+
const precedencegroupKeywords = [
|
|
167
186
|
"assignment",
|
|
168
187
|
"associativity",
|
|
169
188
|
"higherThan",
|
|
@@ -171,7 +190,8 @@ function ye() {
|
|
|
171
190
|
"lowerThan",
|
|
172
191
|
"none",
|
|
173
192
|
"right"
|
|
174
|
-
]
|
|
193
|
+
];
|
|
194
|
+
const numberSignKeywords = [
|
|
175
195
|
"#colorLiteral",
|
|
176
196
|
"#column",
|
|
177
197
|
"#dsohandle",
|
|
@@ -192,7 +212,8 @@ function ye() {
|
|
|
192
212
|
"#sourceLocation",
|
|
193
213
|
"#warn_unqualified_access",
|
|
194
214
|
"#warning"
|
|
195
|
-
]
|
|
215
|
+
];
|
|
216
|
+
const builtIns = [
|
|
196
217
|
"abs",
|
|
197
218
|
"all",
|
|
198
219
|
"any",
|
|
@@ -227,7 +248,8 @@ function ye() {
|
|
|
227
248
|
"withVaList",
|
|
228
249
|
"withoutActuallyEscaping",
|
|
229
250
|
"zip"
|
|
230
|
-
]
|
|
251
|
+
];
|
|
252
|
+
const operatorHead = either(
|
|
231
253
|
/[/=\-+!*%<>&|^~?]/,
|
|
232
254
|
/[\u00A1-\u00A7]/,
|
|
233
255
|
/[\u00A9\u00AB]/,
|
|
@@ -246,8 +268,9 @@ function ye() {
|
|
|
246
268
|
/[\u3001-\u3003]/,
|
|
247
269
|
/[\u3008-\u3020]/,
|
|
248
270
|
/[\u3030]/
|
|
249
|
-
)
|
|
250
|
-
|
|
271
|
+
);
|
|
272
|
+
const operatorCharacter = either(
|
|
273
|
+
operatorHead,
|
|
251
274
|
/[\u0300-\u036F]/,
|
|
252
275
|
/[\u1DC0-\u1DFF]/,
|
|
253
276
|
/[\u20D0-\u20FF]/,
|
|
@@ -255,7 +278,9 @@ function ye() {
|
|
|
255
278
|
/[\uFE20-\uFE2F]/
|
|
256
279
|
// TODO: The following characters are also allowed, but the regex isn't supported yet.
|
|
257
280
|
// /[\u{E0100}-\u{E01EF}]/u
|
|
258
|
-
)
|
|
281
|
+
);
|
|
282
|
+
const operator = concat(operatorHead, operatorCharacter, "*");
|
|
283
|
+
const identifierHead = either(
|
|
259
284
|
/[a-zA-Z_]/,
|
|
260
285
|
/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,
|
|
261
286
|
/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,
|
|
@@ -273,13 +298,17 @@ function ye() {
|
|
|
273
298
|
// /[\u{50000}-\u{5FFFD}\u{60000-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}]/u,
|
|
274
299
|
// /[\u{90000}-\u{9FFFD}\u{A0000-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}]/u,
|
|
275
300
|
// /[\u{D0000}-\u{DFFFD}\u{E0000-\u{EFFFD}]/u
|
|
276
|
-
)
|
|
277
|
-
|
|
301
|
+
);
|
|
302
|
+
const identifierCharacter = either(
|
|
303
|
+
identifierHead,
|
|
278
304
|
/\d/,
|
|
279
305
|
/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/
|
|
280
|
-
)
|
|
306
|
+
);
|
|
307
|
+
const identifier = concat(identifierHead, identifierCharacter, "*");
|
|
308
|
+
const typeIdentifier = concat(/[A-Z]/, identifierCharacter, "*");
|
|
309
|
+
const keywordAttributes = [
|
|
281
310
|
"autoclosure",
|
|
282
|
-
|
|
311
|
+
concat(/convention\(/, either("swift", "block", "c"), /\)/),
|
|
283
312
|
"discardableResult",
|
|
284
313
|
"dynamicCallable",
|
|
285
314
|
"dynamicMemberLookup",
|
|
@@ -297,7 +326,7 @@ function ye() {
|
|
|
297
326
|
"NSApplicationMain",
|
|
298
327
|
"NSCopying",
|
|
299
328
|
"NSManaged",
|
|
300
|
-
|
|
329
|
+
concat(/objc\(/, identifier, /\)/),
|
|
301
330
|
"objc",
|
|
302
331
|
"objcMembers",
|
|
303
332
|
"propertyWrapper",
|
|
@@ -307,7 +336,8 @@ function ye() {
|
|
|
307
336
|
"UIApplicationMain",
|
|
308
337
|
"unknown",
|
|
309
338
|
"usableFromInline"
|
|
310
|
-
]
|
|
339
|
+
];
|
|
340
|
+
const availabilityKeywords = [
|
|
311
341
|
"iOS",
|
|
312
342
|
"iOSApplicationExtension",
|
|
313
343
|
"macOS",
|
|
@@ -320,176 +350,209 @@ function ye() {
|
|
|
320
350
|
"tvOSApplicationExtension",
|
|
321
351
|
"swift"
|
|
322
352
|
];
|
|
323
|
-
function
|
|
324
|
-
const
|
|
353
|
+
function swift(hljs) {
|
|
354
|
+
const WHITESPACE = {
|
|
325
355
|
match: /\s+/,
|
|
326
356
|
relevance: 0
|
|
327
|
-
}
|
|
357
|
+
};
|
|
358
|
+
const BLOCK_COMMENT = hljs.COMMENT(
|
|
328
359
|
"/\\*",
|
|
329
360
|
"\\*/",
|
|
330
361
|
{ contains: ["self"] }
|
|
331
|
-
)
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
362
|
+
);
|
|
363
|
+
const COMMENTS = [
|
|
364
|
+
hljs.C_LINE_COMMENT_MODE,
|
|
365
|
+
BLOCK_COMMENT
|
|
366
|
+
];
|
|
367
|
+
const DOT_KEYWORD = {
|
|
335
368
|
match: [
|
|
336
369
|
/\./,
|
|
337
|
-
|
|
370
|
+
either(...dotKeywords, ...optionalDotKeywords)
|
|
338
371
|
],
|
|
339
372
|
className: { 2: "keyword" }
|
|
340
|
-
}
|
|
373
|
+
};
|
|
374
|
+
const KEYWORD_GUARD = {
|
|
341
375
|
// Consume .keyword to prevent highlighting properties and methods as keywords.
|
|
342
|
-
match:
|
|
376
|
+
match: concat(/\./, either(...keywords)),
|
|
343
377
|
relevance: 0
|
|
344
|
-
}
|
|
378
|
+
};
|
|
379
|
+
const PLAIN_KEYWORDS = keywords.filter((kw) => typeof kw === "string").concat(["_|0"]);
|
|
380
|
+
const REGEX_KEYWORDS = keywords.filter((kw) => typeof kw !== "string").concat(keywordTypes).map(keywordWrapper);
|
|
381
|
+
const KEYWORD = { variants: [
|
|
345
382
|
{
|
|
346
383
|
className: "keyword",
|
|
347
|
-
match:
|
|
384
|
+
match: either(...REGEX_KEYWORDS, ...optionalDotKeywords)
|
|
348
385
|
}
|
|
349
|
-
] }
|
|
350
|
-
|
|
386
|
+
] };
|
|
387
|
+
const KEYWORDS = {
|
|
388
|
+
$pattern: either(
|
|
351
389
|
/\b\w+/,
|
|
352
390
|
// regular keywords
|
|
353
391
|
/#\w+/
|
|
354
392
|
// number keywords
|
|
355
393
|
),
|
|
356
|
-
keyword:
|
|
357
|
-
literal:
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
394
|
+
keyword: PLAIN_KEYWORDS.concat(numberSignKeywords),
|
|
395
|
+
literal: literals
|
|
396
|
+
};
|
|
397
|
+
const KEYWORD_MODES = [
|
|
398
|
+
DOT_KEYWORD,
|
|
399
|
+
KEYWORD_GUARD,
|
|
400
|
+
KEYWORD
|
|
401
|
+
];
|
|
402
|
+
const BUILT_IN_GUARD = {
|
|
363
403
|
// Consume .built_in to prevent highlighting properties and methods.
|
|
364
|
-
match:
|
|
404
|
+
match: concat(/\./, either(...builtIns)),
|
|
365
405
|
relevance: 0
|
|
366
|
-
}
|
|
406
|
+
};
|
|
407
|
+
const BUILT_IN = {
|
|
367
408
|
className: "built_in",
|
|
368
|
-
match:
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
409
|
+
match: concat(/\b/, either(...builtIns), /(?=\()/)
|
|
410
|
+
};
|
|
411
|
+
const BUILT_INS = [
|
|
412
|
+
BUILT_IN_GUARD,
|
|
413
|
+
BUILT_IN
|
|
414
|
+
];
|
|
415
|
+
const OPERATOR_GUARD = {
|
|
373
416
|
// Prevent -> from being highlighting as an operator.
|
|
374
417
|
match: /->/,
|
|
375
418
|
relevance: 0
|
|
376
|
-
}
|
|
419
|
+
};
|
|
420
|
+
const OPERATOR = {
|
|
377
421
|
className: "operator",
|
|
378
422
|
relevance: 0,
|
|
379
423
|
variants: [
|
|
380
|
-
{ match:
|
|
424
|
+
{ match: operator },
|
|
381
425
|
{
|
|
382
426
|
// dot-operator: only operators that start with a dot are allowed to use dots as
|
|
383
427
|
// characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more
|
|
384
428
|
// characters that may also include dots.
|
|
385
|
-
match: `\\.(\\.|${
|
|
429
|
+
match: `\\.(\\.|${operatorCharacter})+`
|
|
386
430
|
}
|
|
387
431
|
]
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
432
|
+
};
|
|
433
|
+
const OPERATORS = [
|
|
434
|
+
OPERATOR_GUARD,
|
|
435
|
+
OPERATOR
|
|
436
|
+
];
|
|
437
|
+
const decimalDigits = "([0-9]_*)+";
|
|
438
|
+
const hexDigits = "([0-9a-fA-F]_*)+";
|
|
439
|
+
const NUMBER = {
|
|
392
440
|
className: "number",
|
|
393
441
|
relevance: 0,
|
|
394
442
|
variants: [
|
|
395
443
|
// decimal floating-point-literal (subsumes decimal-literal)
|
|
396
|
-
{ match: `\\b(${
|
|
444
|
+
{ match: `\\b(${decimalDigits})(\\.(${decimalDigits}))?([eE][+-]?(${decimalDigits}))?\\b` },
|
|
397
445
|
// hexadecimal floating-point-literal (subsumes hexadecimal-literal)
|
|
398
|
-
{ match: `\\b0x(${
|
|
446
|
+
{ match: `\\b0x(${hexDigits})(\\.(${hexDigits}))?([pP][+-]?(${decimalDigits}))?\\b` },
|
|
399
447
|
// octal-literal
|
|
400
448
|
{ match: /\b0o([0-7]_*)+\b/ },
|
|
401
449
|
// binary-literal
|
|
402
450
|
{ match: /\b0b([01]_*)+\b/ }
|
|
403
451
|
]
|
|
404
|
-
}
|
|
452
|
+
};
|
|
453
|
+
const ESCAPED_CHARACTER = (rawDelimiter = "") => ({
|
|
405
454
|
className: "subst",
|
|
406
455
|
variants: [
|
|
407
|
-
{ match:
|
|
408
|
-
{ match:
|
|
456
|
+
{ match: concat(/\\/, rawDelimiter, /[0\\tnr"']/) },
|
|
457
|
+
{ match: concat(/\\/, rawDelimiter, /u\{[0-9a-fA-F]{1,8}\}/) }
|
|
409
458
|
]
|
|
410
|
-
})
|
|
459
|
+
});
|
|
460
|
+
const ESCAPED_NEWLINE = (rawDelimiter = "") => ({
|
|
411
461
|
className: "subst",
|
|
412
|
-
match:
|
|
413
|
-
})
|
|
462
|
+
match: concat(/\\/, rawDelimiter, /[\t ]*(?:[\r\n]|\r\n)/)
|
|
463
|
+
});
|
|
464
|
+
const INTERPOLATION = (rawDelimiter = "") => ({
|
|
414
465
|
className: "subst",
|
|
415
466
|
label: "interpol",
|
|
416
|
-
begin:
|
|
467
|
+
begin: concat(/\\/, rawDelimiter, /\(/),
|
|
417
468
|
end: /\)/
|
|
418
|
-
})
|
|
419
|
-
|
|
420
|
-
|
|
469
|
+
});
|
|
470
|
+
const MULTILINE_STRING = (rawDelimiter = "") => ({
|
|
471
|
+
begin: concat(rawDelimiter, /"""/),
|
|
472
|
+
end: concat(/"""/, rawDelimiter),
|
|
421
473
|
contains: [
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
474
|
+
ESCAPED_CHARACTER(rawDelimiter),
|
|
475
|
+
ESCAPED_NEWLINE(rawDelimiter),
|
|
476
|
+
INTERPOLATION(rawDelimiter)
|
|
425
477
|
]
|
|
426
|
-
})
|
|
427
|
-
|
|
428
|
-
|
|
478
|
+
});
|
|
479
|
+
const SINGLE_LINE_STRING = (rawDelimiter = "") => ({
|
|
480
|
+
begin: concat(rawDelimiter, /"/),
|
|
481
|
+
end: concat(/"/, rawDelimiter),
|
|
429
482
|
contains: [
|
|
430
|
-
|
|
431
|
-
|
|
483
|
+
ESCAPED_CHARACTER(rawDelimiter),
|
|
484
|
+
INTERPOLATION(rawDelimiter)
|
|
432
485
|
]
|
|
433
|
-
})
|
|
486
|
+
});
|
|
487
|
+
const STRING = {
|
|
434
488
|
className: "string",
|
|
435
489
|
variants: [
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
490
|
+
MULTILINE_STRING(),
|
|
491
|
+
MULTILINE_STRING("#"),
|
|
492
|
+
MULTILINE_STRING("##"),
|
|
493
|
+
MULTILINE_STRING("###"),
|
|
494
|
+
SINGLE_LINE_STRING(),
|
|
495
|
+
SINGLE_LINE_STRING("#"),
|
|
496
|
+
SINGLE_LINE_STRING("##"),
|
|
497
|
+
SINGLE_LINE_STRING("###")
|
|
444
498
|
]
|
|
445
|
-
}
|
|
499
|
+
};
|
|
500
|
+
const QUOTED_IDENTIFIER = { match: concat(/`/, identifier, /`/) };
|
|
501
|
+
const IMPLICIT_PARAMETER = {
|
|
446
502
|
className: "variable",
|
|
447
503
|
match: /\$\d+/
|
|
448
|
-
}
|
|
504
|
+
};
|
|
505
|
+
const PROPERTY_WRAPPER_PROJECTION = {
|
|
449
506
|
className: "variable",
|
|
450
|
-
match: `\\$${
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
507
|
+
match: `\\$${identifierCharacter}+`
|
|
508
|
+
};
|
|
509
|
+
const IDENTIFIERS = [
|
|
510
|
+
QUOTED_IDENTIFIER,
|
|
511
|
+
IMPLICIT_PARAMETER,
|
|
512
|
+
PROPERTY_WRAPPER_PROJECTION
|
|
513
|
+
];
|
|
514
|
+
const AVAILABLE_ATTRIBUTE = {
|
|
456
515
|
match: /(@|#(un)?)available/,
|
|
457
516
|
className: "keyword",
|
|
458
517
|
starts: { contains: [
|
|
459
518
|
{
|
|
460
519
|
begin: /\(/,
|
|
461
520
|
end: /\)/,
|
|
462
|
-
keywords:
|
|
521
|
+
keywords: availabilityKeywords,
|
|
463
522
|
contains: [
|
|
464
|
-
...
|
|
465
|
-
|
|
466
|
-
|
|
523
|
+
...OPERATORS,
|
|
524
|
+
NUMBER,
|
|
525
|
+
STRING
|
|
467
526
|
]
|
|
468
527
|
}
|
|
469
528
|
] }
|
|
470
|
-
}
|
|
529
|
+
};
|
|
530
|
+
const KEYWORD_ATTRIBUTE = {
|
|
471
531
|
className: "keyword",
|
|
472
|
-
match:
|
|
473
|
-
}
|
|
532
|
+
match: concat(/@/, either(...keywordAttributes))
|
|
533
|
+
};
|
|
534
|
+
const USER_DEFINED_ATTRIBUTE = {
|
|
474
535
|
className: "meta",
|
|
475
|
-
match:
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
536
|
+
match: concat(/@/, identifier)
|
|
537
|
+
};
|
|
538
|
+
const ATTRIBUTES = [
|
|
539
|
+
AVAILABLE_ATTRIBUTE,
|
|
540
|
+
KEYWORD_ATTRIBUTE,
|
|
541
|
+
USER_DEFINED_ATTRIBUTE
|
|
542
|
+
];
|
|
543
|
+
const TYPE = {
|
|
544
|
+
match: lookahead(/\b[A-Z]/),
|
|
482
545
|
relevance: 0,
|
|
483
546
|
contains: [
|
|
484
547
|
{
|
|
485
548
|
// Common Apple frameworks, for relevance boost
|
|
486
549
|
className: "type",
|
|
487
|
-
match:
|
|
550
|
+
match: concat(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, identifierCharacter, "+")
|
|
488
551
|
},
|
|
489
552
|
{
|
|
490
553
|
// Type identifier
|
|
491
554
|
className: "type",
|
|
492
|
-
match:
|
|
555
|
+
match: typeIdentifier,
|
|
493
556
|
relevance: 0
|
|
494
557
|
},
|
|
495
558
|
{
|
|
@@ -504,56 +567,60 @@ function ye() {
|
|
|
504
567
|
},
|
|
505
568
|
{
|
|
506
569
|
// Protocol composition
|
|
507
|
-
match:
|
|
570
|
+
match: concat(/\s+&\s+/, lookahead(typeIdentifier)),
|
|
508
571
|
relevance: 0
|
|
509
572
|
}
|
|
510
573
|
]
|
|
511
|
-
}
|
|
574
|
+
};
|
|
575
|
+
const GENERIC_ARGUMENTS = {
|
|
512
576
|
begin: /</,
|
|
513
577
|
end: />/,
|
|
514
|
-
keywords:
|
|
578
|
+
keywords: KEYWORDS,
|
|
515
579
|
contains: [
|
|
516
|
-
...
|
|
517
|
-
...
|
|
518
|
-
...
|
|
519
|
-
|
|
520
|
-
|
|
580
|
+
...COMMENTS,
|
|
581
|
+
...KEYWORD_MODES,
|
|
582
|
+
...ATTRIBUTES,
|
|
583
|
+
OPERATOR_GUARD,
|
|
584
|
+
TYPE
|
|
521
585
|
]
|
|
522
586
|
};
|
|
523
|
-
|
|
524
|
-
const
|
|
525
|
-
match:
|
|
587
|
+
TYPE.contains.push(GENERIC_ARGUMENTS);
|
|
588
|
+
const TUPLE_ELEMENT_NAME = {
|
|
589
|
+
match: concat(identifier, /\s*:/),
|
|
526
590
|
keywords: "_|0",
|
|
527
591
|
relevance: 0
|
|
528
|
-
}
|
|
592
|
+
};
|
|
593
|
+
const TUPLE = {
|
|
529
594
|
begin: /\(/,
|
|
530
595
|
end: /\)/,
|
|
531
596
|
relevance: 0,
|
|
532
|
-
keywords:
|
|
597
|
+
keywords: KEYWORDS,
|
|
533
598
|
contains: [
|
|
534
599
|
"self",
|
|
535
|
-
|
|
536
|
-
...
|
|
537
|
-
...
|
|
538
|
-
...
|
|
539
|
-
...
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
...
|
|
543
|
-
...
|
|
544
|
-
|
|
600
|
+
TUPLE_ELEMENT_NAME,
|
|
601
|
+
...COMMENTS,
|
|
602
|
+
...KEYWORD_MODES,
|
|
603
|
+
...BUILT_INS,
|
|
604
|
+
...OPERATORS,
|
|
605
|
+
NUMBER,
|
|
606
|
+
STRING,
|
|
607
|
+
...IDENTIFIERS,
|
|
608
|
+
...ATTRIBUTES,
|
|
609
|
+
TYPE
|
|
545
610
|
]
|
|
546
|
-
}
|
|
611
|
+
};
|
|
612
|
+
const GENERIC_PARAMETERS = {
|
|
547
613
|
begin: /</,
|
|
548
614
|
end: />/,
|
|
549
615
|
contains: [
|
|
550
|
-
...
|
|
551
|
-
|
|
616
|
+
...COMMENTS,
|
|
617
|
+
TYPE
|
|
552
618
|
]
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
619
|
+
};
|
|
620
|
+
const FUNCTION_PARAMETER_NAME = {
|
|
621
|
+
begin: either(
|
|
622
|
+
lookahead(concat(identifier, /\s*:/)),
|
|
623
|
+
lookahead(concat(identifier, /\s+/, identifier, /\s*:/))
|
|
557
624
|
),
|
|
558
625
|
end: /:/,
|
|
559
626
|
relevance: 0,
|
|
@@ -564,149 +631,155 @@ function ye() {
|
|
|
564
631
|
},
|
|
565
632
|
{
|
|
566
633
|
className: "params",
|
|
567
|
-
match:
|
|
634
|
+
match: identifier
|
|
568
635
|
}
|
|
569
636
|
]
|
|
570
|
-
}
|
|
637
|
+
};
|
|
638
|
+
const FUNCTION_PARAMETERS = {
|
|
571
639
|
begin: /\(/,
|
|
572
640
|
end: /\)/,
|
|
573
|
-
keywords:
|
|
641
|
+
keywords: KEYWORDS,
|
|
574
642
|
contains: [
|
|
575
|
-
|
|
576
|
-
...
|
|
577
|
-
...
|
|
578
|
-
...
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
...
|
|
582
|
-
|
|
583
|
-
|
|
643
|
+
FUNCTION_PARAMETER_NAME,
|
|
644
|
+
...COMMENTS,
|
|
645
|
+
...KEYWORD_MODES,
|
|
646
|
+
...OPERATORS,
|
|
647
|
+
NUMBER,
|
|
648
|
+
STRING,
|
|
649
|
+
...ATTRIBUTES,
|
|
650
|
+
TYPE,
|
|
651
|
+
TUPLE
|
|
584
652
|
],
|
|
585
|
-
endsParent:
|
|
653
|
+
endsParent: true,
|
|
586
654
|
illegal: /["']/
|
|
587
|
-
}
|
|
655
|
+
};
|
|
656
|
+
const FUNCTION = {
|
|
588
657
|
match: [
|
|
589
658
|
/func/,
|
|
590
659
|
/\s+/,
|
|
591
|
-
|
|
660
|
+
either(QUOTED_IDENTIFIER.match, identifier, operator)
|
|
592
661
|
],
|
|
593
662
|
className: {
|
|
594
663
|
1: "keyword",
|
|
595
664
|
3: "title.function"
|
|
596
665
|
},
|
|
597
666
|
contains: [
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
667
|
+
GENERIC_PARAMETERS,
|
|
668
|
+
FUNCTION_PARAMETERS,
|
|
669
|
+
WHITESPACE
|
|
601
670
|
],
|
|
602
671
|
illegal: [
|
|
603
672
|
/\[/,
|
|
604
673
|
/%/
|
|
605
674
|
]
|
|
606
|
-
}
|
|
675
|
+
};
|
|
676
|
+
const INIT_SUBSCRIPT = {
|
|
607
677
|
match: [
|
|
608
678
|
/\b(?:subscript|init[?!]?)/,
|
|
609
679
|
/\s*(?=[<(])/
|
|
610
680
|
],
|
|
611
681
|
className: { 1: "keyword" },
|
|
612
682
|
contains: [
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
683
|
+
GENERIC_PARAMETERS,
|
|
684
|
+
FUNCTION_PARAMETERS,
|
|
685
|
+
WHITESPACE
|
|
616
686
|
],
|
|
617
687
|
illegal: /\[|%/
|
|
618
|
-
}
|
|
688
|
+
};
|
|
689
|
+
const OPERATOR_DECLARATION = {
|
|
619
690
|
match: [
|
|
620
691
|
/operator/,
|
|
621
692
|
/\s+/,
|
|
622
|
-
|
|
693
|
+
operator
|
|
623
694
|
],
|
|
624
695
|
className: {
|
|
625
696
|
1: "keyword",
|
|
626
697
|
3: "title"
|
|
627
698
|
}
|
|
628
|
-
}
|
|
699
|
+
};
|
|
700
|
+
const PRECEDENCEGROUP = {
|
|
629
701
|
begin: [
|
|
630
702
|
/precedencegroup/,
|
|
631
703
|
/\s+/,
|
|
632
|
-
|
|
704
|
+
typeIdentifier
|
|
633
705
|
],
|
|
634
706
|
className: {
|
|
635
707
|
1: "keyword",
|
|
636
708
|
3: "title"
|
|
637
709
|
},
|
|
638
|
-
contains: [
|
|
710
|
+
contains: [TYPE],
|
|
639
711
|
keywords: [
|
|
640
|
-
...
|
|
641
|
-
...
|
|
712
|
+
...precedencegroupKeywords,
|
|
713
|
+
...literals
|
|
642
714
|
],
|
|
643
715
|
end: /}/
|
|
644
716
|
};
|
|
645
|
-
for (const
|
|
646
|
-
const
|
|
647
|
-
|
|
648
|
-
const
|
|
649
|
-
...
|
|
650
|
-
...
|
|
651
|
-
...
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
...
|
|
717
|
+
for (const variant of STRING.variants) {
|
|
718
|
+
const interpolation = variant.contains.find((mode) => mode.label === "interpol");
|
|
719
|
+
interpolation.keywords = KEYWORDS;
|
|
720
|
+
const submodes = [
|
|
721
|
+
...KEYWORD_MODES,
|
|
722
|
+
...BUILT_INS,
|
|
723
|
+
...OPERATORS,
|
|
724
|
+
NUMBER,
|
|
725
|
+
STRING,
|
|
726
|
+
...IDENTIFIERS
|
|
655
727
|
];
|
|
656
|
-
|
|
657
|
-
...
|
|
728
|
+
interpolation.contains = [
|
|
729
|
+
...submodes,
|
|
658
730
|
{
|
|
659
731
|
begin: /\(/,
|
|
660
732
|
end: /\)/,
|
|
661
733
|
contains: [
|
|
662
734
|
"self",
|
|
663
|
-
...
|
|
735
|
+
...submodes
|
|
664
736
|
]
|
|
665
737
|
}
|
|
666
738
|
];
|
|
667
739
|
}
|
|
668
740
|
return {
|
|
669
741
|
name: "Swift",
|
|
670
|
-
keywords:
|
|
742
|
+
keywords: KEYWORDS,
|
|
671
743
|
contains: [
|
|
672
|
-
...
|
|
673
|
-
|
|
674
|
-
|
|
744
|
+
...COMMENTS,
|
|
745
|
+
FUNCTION,
|
|
746
|
+
INIT_SUBSCRIPT,
|
|
675
747
|
{
|
|
676
748
|
beginKeywords: "struct protocol class extension enum actor",
|
|
677
749
|
end: "\\{",
|
|
678
|
-
excludeEnd:
|
|
679
|
-
keywords:
|
|
750
|
+
excludeEnd: true,
|
|
751
|
+
keywords: KEYWORDS,
|
|
680
752
|
contains: [
|
|
681
|
-
|
|
753
|
+
hljs.inherit(hljs.TITLE_MODE, {
|
|
682
754
|
className: "title.class",
|
|
683
755
|
begin: /[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/
|
|
684
756
|
}),
|
|
685
|
-
...
|
|
757
|
+
...KEYWORD_MODES
|
|
686
758
|
]
|
|
687
759
|
},
|
|
688
|
-
|
|
689
|
-
|
|
760
|
+
OPERATOR_DECLARATION,
|
|
761
|
+
PRECEDENCEGROUP,
|
|
690
762
|
{
|
|
691
763
|
beginKeywords: "import",
|
|
692
764
|
end: /$/,
|
|
693
|
-
contains: [...
|
|
765
|
+
contains: [...COMMENTS],
|
|
694
766
|
relevance: 0
|
|
695
767
|
},
|
|
696
|
-
...
|
|
697
|
-
...
|
|
698
|
-
...
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
...
|
|
702
|
-
...
|
|
703
|
-
|
|
704
|
-
|
|
768
|
+
...KEYWORD_MODES,
|
|
769
|
+
...BUILT_INS,
|
|
770
|
+
...OPERATORS,
|
|
771
|
+
NUMBER,
|
|
772
|
+
STRING,
|
|
773
|
+
...IDENTIFIERS,
|
|
774
|
+
...ATTRIBUTES,
|
|
775
|
+
TYPE,
|
|
776
|
+
TUPLE
|
|
705
777
|
]
|
|
706
778
|
};
|
|
707
779
|
}
|
|
708
|
-
|
|
780
|
+
swift_1 = swift;
|
|
781
|
+
return swift_1;
|
|
709
782
|
}
|
|
710
783
|
export {
|
|
711
|
-
|
|
784
|
+
requireSwift as __require
|
|
712
785
|
};
|