@glodon-aiot/react-components 3.3.0-beta.14 → 3.3.0-beta.17
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.mjs +8 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/lib.mjs +4 -0
- package/dist/es/_virtual/prism-core.mjs +4 -0
- package/dist/es/_virtual/types.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +44 -0
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/Markdown/ATag/index.mjs +47 -0
- package/dist/es/components/Markdown/Code/index.mjs +69 -0
- package/dist/es/components/Markdown/Image/index.mjs +60 -0
- package/dist/es/components/Markdown/Video/index.mjs +22 -0
- package/dist/es/components/Markdown/index.mjs +75 -0
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/index.mjs +30 -25
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +908 -0
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +242 -0
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +78 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +178 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +83 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/dev-log.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
- package/dist/es/node_modules/antd-mobile/es/utils/is-dev.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +47 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
- package/dist/es/node_modules/character-reference-invalid/index.json.mjs +33 -0
- package/dist/es/node_modules/classnames/index.mjs +42 -0
- package/dist/es/node_modules/hast-util-parse-selector/index.mjs +14 -0
- package/dist/es/node_modules/is-alphabetical/index.mjs +8 -0
- package/dist/es/node_modules/is-alphanumerical/index.mjs +9 -0
- package/dist/es/node_modules/is-decimal/index.mjs +8 -0
- package/dist/es/node_modules/is-hexadecimal/index.mjs +8 -0
- package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +8 -0
- package/dist/es/node_modules/parse-entities/index.mjs +83 -0
- package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +217 -0
- package/dist/es/node_modules/property-information/find.mjs +25 -0
- package/dist/es/node_modules/property-information/html.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/aria.mjs +63 -0
- package/dist/es/node_modules/property-information/lib/html.mjs +354 -0
- package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +8 -0
- package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +7 -0
- package/dist/es/node_modules/property-information/lib/util/create.mjs +13 -0
- package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +18 -0
- package/dist/es/node_modules/property-information/lib/util/info.mjs +19 -0
- package/dist/es/node_modules/property-information/lib/util/merge.mjs +11 -0
- package/dist/es/node_modules/property-information/lib/util/schema.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/property-information/lib/xlink.mjs +20 -0
- package/dist/es/node_modules/property-information/lib/xml.mjs +16 -0
- package/dist/es/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/property-information/normalize.mjs +7 -0
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +7 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +101 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +283 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +4 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +195 -0
- package/dist/es/node_modules/refractor/core.mjs +111 -0
- package/dist/es/node_modules/refractor/index.mjs +553 -0
- package/dist/es/node_modules/refractor/lang/abap.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/abnf.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/actionscript.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/ada.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/agda.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/al.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/antlr4.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/apacheconf.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/apex.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/apl.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/applescript.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/aql.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/arduino.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/arff.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/asciidoc.mjs +208 -0
- package/dist/es/node_modules/refractor/lang/asm6502.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/asmatmel.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/aspnet.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/autohotkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/autoit.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/avisynth.mjs +167 -0
- package/dist/es/node_modules/refractor/lang/avro-idl.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/bash.mjs +206 -0
- package/dist/es/node_modules/refractor/lang/basic.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/batch.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/bbcode.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/bicep.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/birb.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/bison.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/bnf.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/brainfuck.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/brightscript.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/bro.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/bsl.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/c.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/cfscript.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/chaiscript.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/cil.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/clike.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/clojure.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/cmake.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/cobol.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/coffeescript.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/concurnas.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/coq.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/cpp.mjs +98 -0
- package/dist/es/node_modules/refractor/lang/crystal.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csharp.mjs +277 -0
- package/dist/es/node_modules/refractor/lang/cshtml.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/csp.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/css-extras.mjs +109 -0
- package/dist/es/node_modules/refractor/lang/css.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csv.mjs +16 -0
- package/dist/es/node_modules/refractor/lang/cypher.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/d.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/dart.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/dataweave.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/dax.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/dhall.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/diff.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/django.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/docker.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/dot.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/ebnf.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/editorconfig.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/eiffel.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/ejs.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/elixir.mjs +100 -0
- package/dist/es/node_modules/refractor/lang/elm.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/erb.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/erlang.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/etlua.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/excel-formula.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/factor.mjs +569 -0
- package/dist/es/node_modules/refractor/lang/false.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/flow.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/fortran.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/fsharp.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/ftl.mjs +102 -0
- package/dist/es/node_modules/refractor/lang/gap.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/gcode.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/gdscript.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/gedcom.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/gherkin.mjs +94 -0
- package/dist/es/node_modules/refractor/lang/git.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/glsl.mjs +18 -0
- package/dist/es/node_modules/refractor/lang/gml.mjs +19 -0
- package/dist/es/node_modules/refractor/lang/gn.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/go-module.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/go.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/graphql.mjs +133 -0
- package/dist/es/node_modules/refractor/lang/groovy.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/haml.mjs +132 -0
- package/dist/es/node_modules/refractor/lang/handlebars.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/haskell.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/haxe.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/hcl.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/hlsl.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/hoon.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/hpkp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/hsts.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/http.mjs +126 -0
- package/dist/es/node_modules/refractor/lang/ichigojam.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/icon.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +136 -0
- package/dist/es/node_modules/refractor/lang/idris.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/iecst.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/ignore.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/inform7.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/ini.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/io.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/j.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/java.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/javadoc.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/javadoclike.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/javascript.mjs +114 -0
- package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +146 -0
- package/dist/es/node_modules/refractor/lang/jexl.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/jolie.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/jq.mjs +71 -0
- package/dist/es/node_modules/refractor/lang/js-extras.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/js-templates.mjs +153 -0
- package/dist/es/node_modules/refractor/lang/jsdoc.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/json.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/json5.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/jsonp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/jsx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/julia.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/keepalived.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/keyman.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/kotlin.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/kumir.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/kusto.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/latex.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/latte.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/less.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/lilypond.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/liquid.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/lisp.mjs +158 -0
- package/dist/es/node_modules/refractor/lang/livescript.mjs +119 -0
- package/dist/es/node_modules/refractor/lang/llvm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/log.mjs +103 -0
- package/dist/es/node_modules/refractor/lang/lolcode.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/lua.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/magma.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/makefile.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/markdown.mjs +306 -0
- package/dist/es/node_modules/refractor/lang/markup-templating.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/markup.mjs +154 -0
- package/dist/es/node_modules/refractor/lang/matlab.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/maxscript.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/mel.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/mermaid.mjs +116 -0
- package/dist/es/node_modules/refractor/lang/mizar.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/mongodb.mjs +287 -0
- package/dist/es/node_modules/refractor/lang/monkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/moonscript.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/n1ql.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/n4js.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/naniscript.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/nasm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/neon.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/nevod.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/nginx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/nim.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/nix.mjs +45 -0
- package/dist/es/node_modules/refractor/lang/nsis.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/objectivec.mjs +23 -0
- package/dist/es/node_modules/refractor/lang/ocaml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/opencl.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/openqasm.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/oz.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/parigp.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/parser.mjs +80 -0
- package/dist/es/node_modules/refractor/lang/pascal.mjs +66 -0
- package/dist/es/node_modules/refractor/lang/pascaligo.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/pcaxis.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/peoplecode.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/perl.mjs +134 -0
- package/dist/es/node_modules/refractor/lang/php-extras.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/php.mjs +301 -0
- package/dist/es/node_modules/refractor/lang/phpdoc.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/plsql.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/powerquery.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/powershell.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/processing.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/prolog.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/promql.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/properties.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/protobuf.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/psl.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/pug.mjs +173 -0
- package/dist/es/node_modules/refractor/lang/puppet.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/pure.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/purebasic.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/purescript.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/python.mjs +73 -0
- package/dist/es/node_modules/refractor/lang/q.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/qml.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/qore.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/qsharp.mjs +93 -0
- package/dist/es/node_modules/refractor/lang/r.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/racket.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/reason.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/regex.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/rego.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/renpy.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/rest.mjs +199 -0
- package/dist/es/node_modules/refractor/lang/rip.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/roboconf.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/robotframework.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/ruby.mjs +159 -0
- package/dist/es/node_modules/refractor/lang/rust.mjs +122 -0
- package/dist/es/node_modules/refractor/lang/sas.mjs +305 -0
- package/dist/es/node_modules/refractor/lang/sass.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/scala.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/scheme.mjs +120 -0
- package/dist/es/node_modules/refractor/lang/scss.mjs +82 -0
- package/dist/es/node_modules/refractor/lang/shell-session.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/smali.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/smalltalk.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/smarty.mjs +106 -0
- package/dist/es/node_modules/refractor/lang/sml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/solidity.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/solution-file.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/soy.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/sparql.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/sqf.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/sql.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/squirrel.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/stan.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/stylus.mjs +141 -0
- package/dist/es/node_modules/refractor/lang/swift.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/systemd.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/t4-cs.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/t4-templating.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/t4-vb.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/tap.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/tcl.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/textile.mjs +248 -0
- package/dist/es/node_modules/refractor/lang/toml.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/tremor.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/tsx.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/tt2.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/turtle.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/twig.mjs +48 -0
- package/dist/es/node_modules/refractor/lang/typescript.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/typoscript.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/unrealscript.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/uorazor.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/uri.mjs +92 -0
- package/dist/es/node_modules/refractor/lang/v.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/vala.mjs +87 -0
- package/dist/es/node_modules/refractor/lang/vbnet.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/velocity.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/verilog.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/vhdl.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/vim.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/visual-basic.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/warpscript.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/wasm.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/web-idl.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/wiki.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/wolfram.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/wren.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/xeora.mjs +121 -0
- package/dist/es/node_modules/refractor/lang/xml-doc.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/xojo.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/xquery.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/yaml.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/yang.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/zig.mjs +80 -0
- package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +16 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +77 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +8 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +5 -0
- package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +720 -0
- package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +14 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +30 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +123 -0
- package/dist/es/node_modules/xtend/immutable.mjs +12 -0
- package/dist/es/utils/clipboard.mjs +38 -0
- package/dist/es/utils/markdown/index.mjs +29 -0
- package/dist/lib/index.js +25 -1
- package/dist/src/components/Copy/index.d.ts +5 -0
- package/dist/src/components/Markdown/ATag/index.d.ts +2 -0
- package/dist/src/components/Markdown/Code/index.d.ts +2 -0
- package/dist/src/components/Markdown/Image/index.d.ts +2 -0
- package/dist/src/components/Markdown/Video/index.d.ts +2 -0
- package/dist/src/components/Markdown/index.d.ts +9 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/utils/clipboard.d.ts +11 -0
- package/dist/src/utils/markdown/index.d.ts +10 -0
- package/package.json +18 -2
- package/dist/es/style.css +0 -1
- package/dist/lib/style.css +0 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var a, t;
|
|
2
|
+
function r() {
|
|
3
|
+
if (t)
|
|
4
|
+
return a;
|
|
5
|
+
t = 1, a = n, n.displayName = "concurnas", n.aliases = ["conc"];
|
|
6
|
+
function n(e) {
|
|
7
|
+
e.languages.concurnas = {
|
|
8
|
+
comment: {
|
|
9
|
+
pattern: /(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,
|
|
10
|
+
lookbehind: !0,
|
|
11
|
+
greedy: !0
|
|
12
|
+
},
|
|
13
|
+
langext: {
|
|
14
|
+
pattern: /\b\w+\s*\|\|[\s\S]+?\|\|/,
|
|
15
|
+
greedy: !0,
|
|
16
|
+
inside: {
|
|
17
|
+
"class-name": /^\w+/,
|
|
18
|
+
string: {
|
|
19
|
+
pattern: /(^\s*\|\|)[\s\S]+(?=\|\|$)/,
|
|
20
|
+
lookbehind: !0
|
|
21
|
+
},
|
|
22
|
+
punctuation: /\|\|/
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
function: {
|
|
26
|
+
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,
|
|
27
|
+
lookbehind: !0
|
|
28
|
+
},
|
|
29
|
+
keyword: /\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,
|
|
30
|
+
boolean: /\b(?:false|true)\b/,
|
|
31
|
+
number: /\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,
|
|
32
|
+
punctuation: /[{}[\];(),.:]/,
|
|
33
|
+
operator: /<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,
|
|
34
|
+
annotation: {
|
|
35
|
+
pattern: /@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,
|
|
36
|
+
alias: "builtin"
|
|
37
|
+
}
|
|
38
|
+
}, e.languages.insertBefore("concurnas", "langext", {
|
|
39
|
+
"regex-literal": {
|
|
40
|
+
pattern: /\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
|
41
|
+
greedy: !0,
|
|
42
|
+
inside: {
|
|
43
|
+
interpolation: {
|
|
44
|
+
pattern: /((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
|
|
45
|
+
lookbehind: !0,
|
|
46
|
+
inside: e.languages.concurnas
|
|
47
|
+
},
|
|
48
|
+
regex: /[\s\S]+/
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"string-literal": {
|
|
52
|
+
pattern: /(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
|
53
|
+
greedy: !0,
|
|
54
|
+
inside: {
|
|
55
|
+
interpolation: {
|
|
56
|
+
pattern: /((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
|
|
57
|
+
lookbehind: !0,
|
|
58
|
+
inside: e.languages.concurnas
|
|
59
|
+
},
|
|
60
|
+
string: /[\s\S]+/
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}), e.languages.conc = e.languages.concurnas;
|
|
64
|
+
}
|
|
65
|
+
return a;
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
r as __require
|
|
69
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var i, n;
|
|
2
|
+
function s() {
|
|
3
|
+
if (n)
|
|
4
|
+
return i;
|
|
5
|
+
n = 1, i = t, t.displayName = "coq", t.aliases = [];
|
|
6
|
+
function t(a) {
|
|
7
|
+
(function(o) {
|
|
8
|
+
for (var e = /\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source, r = 0; r < 2; r++)
|
|
9
|
+
e = e.replace(/<self>/g, function() {
|
|
10
|
+
return e;
|
|
11
|
+
});
|
|
12
|
+
e = e.replace(/<self>/g, "[]"), o.languages.coq = {
|
|
13
|
+
comment: RegExp(e),
|
|
14
|
+
string: {
|
|
15
|
+
pattern: /"(?:[^"]|"")*"(?!")/,
|
|
16
|
+
greedy: !0
|
|
17
|
+
},
|
|
18
|
+
attribute: [{
|
|
19
|
+
pattern: RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g, function() {
|
|
20
|
+
return e;
|
|
21
|
+
})),
|
|
22
|
+
greedy: !0,
|
|
23
|
+
alias: "attr-name",
|
|
24
|
+
inside: {
|
|
25
|
+
comment: RegExp(e),
|
|
26
|
+
string: {
|
|
27
|
+
pattern: /"(?:[^"]|"")*"(?!")/,
|
|
28
|
+
greedy: !0
|
|
29
|
+
},
|
|
30
|
+
operator: /=/,
|
|
31
|
+
punctuation: /^#\[|\]$|[,()]/
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
pattern: /\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,
|
|
35
|
+
alias: "attr-name"
|
|
36
|
+
}],
|
|
37
|
+
keyword: /\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,
|
|
38
|
+
number: /\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,
|
|
39
|
+
punct: {
|
|
40
|
+
pattern: /@\{|\{\||\[=|:>/,
|
|
41
|
+
alias: "punctuation"
|
|
42
|
+
},
|
|
43
|
+
operator: /\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,
|
|
44
|
+
punctuation: /\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/
|
|
45
|
+
};
|
|
46
|
+
})(a);
|
|
47
|
+
}
|
|
48
|
+
return i;
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
s as __require
|
|
52
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { __require as c } from "./c.mjs";
|
|
2
|
+
var n, s;
|
|
3
|
+
function p() {
|
|
4
|
+
if (s)
|
|
5
|
+
return n;
|
|
6
|
+
s = 1;
|
|
7
|
+
var o = c();
|
|
8
|
+
n = t, t.displayName = "cpp", t.aliases = [];
|
|
9
|
+
function t(a) {
|
|
10
|
+
a.register(o), function(e) {
|
|
11
|
+
var r = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, i = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, function() {
|
|
12
|
+
return r.source;
|
|
13
|
+
});
|
|
14
|
+
e.languages.cpp = e.languages.extend("c", {
|
|
15
|
+
"class-name": [
|
|
16
|
+
{
|
|
17
|
+
pattern: RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g, function() {
|
|
18
|
+
return r.source;
|
|
19
|
+
})),
|
|
20
|
+
lookbehind: !0
|
|
21
|
+
},
|
|
22
|
+
// This is intended to capture the class name of method implementations like:
|
|
23
|
+
// void foo::bar() const {}
|
|
24
|
+
// However! The `foo` in the above example could also be a namespace, so we only capture the class name if
|
|
25
|
+
// it starts with an uppercase letter. This approximation should give decent results.
|
|
26
|
+
/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,
|
|
27
|
+
// This will capture the class name before destructors like:
|
|
28
|
+
// Foo::~Foo() {}
|
|
29
|
+
/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,
|
|
30
|
+
// This also intends to capture the class name of method implementations but here the class has template
|
|
31
|
+
// parameters, so it can't be a namespace (until C++ adds generic namespaces).
|
|
32
|
+
/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/
|
|
33
|
+
],
|
|
34
|
+
keyword: r,
|
|
35
|
+
number: {
|
|
36
|
+
pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,
|
|
37
|
+
greedy: !0
|
|
38
|
+
},
|
|
39
|
+
operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,
|
|
40
|
+
boolean: /\b(?:false|true)\b/
|
|
41
|
+
}), e.languages.insertBefore("cpp", "string", {
|
|
42
|
+
module: {
|
|
43
|
+
// https://en.cppreference.com/w/cpp/language/modules
|
|
44
|
+
pattern: RegExp(/(\b(?:import|module)\s+)/.source + "(?:" + // header-name
|
|
45
|
+
/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + "|" + // module name or partition or both
|
|
46
|
+
/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g, function() {
|
|
47
|
+
return i;
|
|
48
|
+
}) + ")"),
|
|
49
|
+
lookbehind: !0,
|
|
50
|
+
greedy: !0,
|
|
51
|
+
inside: {
|
|
52
|
+
string: /^[<"][\s\S]+/,
|
|
53
|
+
operator: /:/,
|
|
54
|
+
punctuation: /\./
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"raw-string": {
|
|
58
|
+
pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,
|
|
59
|
+
alias: "string",
|
|
60
|
+
greedy: !0
|
|
61
|
+
}
|
|
62
|
+
}), e.languages.insertBefore("cpp", "keyword", {
|
|
63
|
+
"generic-function": {
|
|
64
|
+
pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,
|
|
65
|
+
inside: {
|
|
66
|
+
function: /^\w+/,
|
|
67
|
+
generic: {
|
|
68
|
+
pattern: /<[\s\S]+/,
|
|
69
|
+
alias: "class-name",
|
|
70
|
+
inside: e.languages.cpp
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}), e.languages.insertBefore("cpp", "operator", {
|
|
75
|
+
"double-colon": {
|
|
76
|
+
pattern: /::/,
|
|
77
|
+
alias: "punctuation"
|
|
78
|
+
}
|
|
79
|
+
}), e.languages.insertBefore("cpp", "class-name", {
|
|
80
|
+
// the base clause is an optional list of parent classes
|
|
81
|
+
// https://en.cppreference.com/w/cpp/language/class
|
|
82
|
+
"base-clause": {
|
|
83
|
+
pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,
|
|
84
|
+
lookbehind: !0,
|
|
85
|
+
greedy: !0,
|
|
86
|
+
inside: e.languages.extend("cpp", {})
|
|
87
|
+
}
|
|
88
|
+
}), e.languages.insertBefore("inside", "double-colon", {
|
|
89
|
+
// All untokenized words that are not namespaces should be class names
|
|
90
|
+
"class-name": /\b[a-z_]\w*\b(?!\s*::)/i
|
|
91
|
+
}, e.languages.cpp["base-clause"]);
|
|
92
|
+
}(a);
|
|
93
|
+
}
|
|
94
|
+
return n;
|
|
95
|
+
}
|
|
96
|
+
export {
|
|
97
|
+
p as __require
|
|
98
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { __require as s } from "./ruby.mjs";
|
|
2
|
+
var a, n;
|
|
3
|
+
function o() {
|
|
4
|
+
if (n)
|
|
5
|
+
return a;
|
|
6
|
+
n = 1;
|
|
7
|
+
var i = s();
|
|
8
|
+
a = t, t.displayName = "crystal", t.aliases = [];
|
|
9
|
+
function t(r) {
|
|
10
|
+
r.register(i), function(e) {
|
|
11
|
+
e.languages.crystal = e.languages.extend("ruby", {
|
|
12
|
+
keyword: [/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/, {
|
|
13
|
+
pattern: /(\.\s*)(?:is_a|responds_to)\?/,
|
|
14
|
+
lookbehind: !0
|
|
15
|
+
}],
|
|
16
|
+
number: /\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,
|
|
17
|
+
operator: [/->/, e.languages.ruby.operator],
|
|
18
|
+
punctuation: /[(){}[\].,;\\]/
|
|
19
|
+
}), e.languages.insertBefore("crystal", "string-literal", {
|
|
20
|
+
attribute: {
|
|
21
|
+
pattern: /@\[.*?\]/,
|
|
22
|
+
inside: {
|
|
23
|
+
delimiter: {
|
|
24
|
+
pattern: /^@\[|\]$/,
|
|
25
|
+
alias: "punctuation"
|
|
26
|
+
},
|
|
27
|
+
attribute: {
|
|
28
|
+
pattern: /^(\s*)\w+/,
|
|
29
|
+
lookbehind: !0,
|
|
30
|
+
alias: "class-name"
|
|
31
|
+
},
|
|
32
|
+
args: {
|
|
33
|
+
pattern: /\S(?:[\s\S]*\S)?/,
|
|
34
|
+
inside: e.languages.crystal
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
expansion: {
|
|
39
|
+
pattern: /\{(?:\{.*?\}|%.*?%)\}/,
|
|
40
|
+
inside: {
|
|
41
|
+
content: {
|
|
42
|
+
pattern: /^(\{.)[\s\S]+(?=.\}$)/,
|
|
43
|
+
lookbehind: !0,
|
|
44
|
+
inside: e.languages.crystal
|
|
45
|
+
},
|
|
46
|
+
delimiter: {
|
|
47
|
+
pattern: /^\{[\{%]|[\}%]\}$/,
|
|
48
|
+
alias: "operator"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
char: {
|
|
53
|
+
pattern: /'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,
|
|
54
|
+
greedy: !0
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}(r);
|
|
58
|
+
}
|
|
59
|
+
return a;
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
o as __require
|
|
63
|
+
};
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
var m, T;
|
|
2
|
+
function Z() {
|
|
3
|
+
if (T)
|
|
4
|
+
return m;
|
|
5
|
+
T = 1, m = y, y.displayName = "csharp", y.aliases = ["dotnet", "cs"];
|
|
6
|
+
function y(q) {
|
|
7
|
+
(function(t) {
|
|
8
|
+
function r(n, u) {
|
|
9
|
+
return n.replace(/<<(\d+)>>/g, function(d, W) {
|
|
10
|
+
return "(?:" + u[+W] + ")";
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function e(n, u, d) {
|
|
14
|
+
return RegExp(r(n, u), d || "");
|
|
15
|
+
}
|
|
16
|
+
function l(n, u) {
|
|
17
|
+
for (var d = 0; d < u; d++)
|
|
18
|
+
n = n.replace(/<<self>>/g, function() {
|
|
19
|
+
return "(?:" + n + ")";
|
|
20
|
+
});
|
|
21
|
+
return n.replace(/<<self>>/g, "[^\\s\\S]");
|
|
22
|
+
}
|
|
23
|
+
var s = {
|
|
24
|
+
// keywords which represent a return or variable type
|
|
25
|
+
type: "bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",
|
|
26
|
+
// keywords which are used to declare a type
|
|
27
|
+
typeDeclaration: "class enum interface record struct",
|
|
28
|
+
// contextual keywords
|
|
29
|
+
// ("var" and "dynamic" are missing because they are used like types)
|
|
30
|
+
contextual: "add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",
|
|
31
|
+
// all other keywords
|
|
32
|
+
other: "abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"
|
|
33
|
+
};
|
|
34
|
+
function p(n) {
|
|
35
|
+
return "\\b(?:" + n.trim().replace(/ /g, "|") + ")\\b";
|
|
36
|
+
}
|
|
37
|
+
var w = p(s.typeDeclaration), g = RegExp(p(s.type + " " + s.typeDeclaration + " " + s.contextual + " " + s.other)), z = p(s.typeDeclaration + " " + s.contextual + " " + s.other), j = p(s.type + " " + s.typeDeclaration + " " + s.other), h = l(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2), b = l(/\((?:[^()]|<<self>>)*\)/.source, 2), o = /@?\b[A-Za-z_]\w*\b/.source, f = r(/<<0>>(?:\s*<<1>>)?/.source, [o, h]), i = r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [z, f]), v = /\[\s*(?:,\s*)*\]/.source, A = r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source, [i, v]), N = r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source, [h, b, v]), O = r(/\(<<0>>+(?:,<<0>>+)+\)/.source, [N]), c = r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source, [O, i, v]), a = {
|
|
38
|
+
keyword: g,
|
|
39
|
+
punctuation: /[<>()?,.:[\]]/
|
|
40
|
+
}, x = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, E = /"(?:\\.|[^\\"\r\n])*"/.source, F = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
|
|
41
|
+
t.languages.csharp = t.languages.extend("clike", {
|
|
42
|
+
string: [{
|
|
43
|
+
pattern: e(/(^|[^$\\])<<0>>/.source, [F]),
|
|
44
|
+
lookbehind: !0,
|
|
45
|
+
greedy: !0
|
|
46
|
+
}, {
|
|
47
|
+
pattern: e(/(^|[^@$\\])<<0>>/.source, [E]),
|
|
48
|
+
lookbehind: !0,
|
|
49
|
+
greedy: !0
|
|
50
|
+
}],
|
|
51
|
+
"class-name": [{
|
|
52
|
+
// Using static
|
|
53
|
+
// using static System.Math;
|
|
54
|
+
pattern: e(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source, [i]),
|
|
55
|
+
lookbehind: !0,
|
|
56
|
+
inside: a
|
|
57
|
+
}, {
|
|
58
|
+
// Using alias (type)
|
|
59
|
+
// using Project = PC.MyCompany.Project;
|
|
60
|
+
pattern: e(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source, [o, c]),
|
|
61
|
+
lookbehind: !0,
|
|
62
|
+
inside: a
|
|
63
|
+
}, {
|
|
64
|
+
// Using alias (alias)
|
|
65
|
+
// using Project = PC.MyCompany.Project;
|
|
66
|
+
pattern: e(/(\busing\s+)<<0>>(?=\s*=)/.source, [o]),
|
|
67
|
+
lookbehind: !0
|
|
68
|
+
}, {
|
|
69
|
+
// Type declarations
|
|
70
|
+
// class Foo<A, B>
|
|
71
|
+
// interface Foo<out A, B>
|
|
72
|
+
pattern: e(/(\b<<0>>\s+)<<1>>/.source, [w, f]),
|
|
73
|
+
lookbehind: !0,
|
|
74
|
+
inside: a
|
|
75
|
+
}, {
|
|
76
|
+
// Single catch exception declaration
|
|
77
|
+
// catch(Foo)
|
|
78
|
+
// (things like catch(Foo e) is covered by variable declaration)
|
|
79
|
+
pattern: e(/(\bcatch\s*\(\s*)<<0>>/.source, [i]),
|
|
80
|
+
lookbehind: !0,
|
|
81
|
+
inside: a
|
|
82
|
+
}, {
|
|
83
|
+
// Name of the type parameter of generic constraints
|
|
84
|
+
// where Foo : class
|
|
85
|
+
pattern: e(/(\bwhere\s+)<<0>>/.source, [o]),
|
|
86
|
+
lookbehind: !0
|
|
87
|
+
}, {
|
|
88
|
+
// Casts and checks via as and is.
|
|
89
|
+
// as Foo<A>, is Bar<B>
|
|
90
|
+
// (things like if(a is Foo b) is covered by variable declaration)
|
|
91
|
+
pattern: e(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [A]),
|
|
92
|
+
lookbehind: !0,
|
|
93
|
+
inside: a
|
|
94
|
+
}, {
|
|
95
|
+
// Variable, field and parameter declaration
|
|
96
|
+
// (Foo bar, Bar baz, Foo[,,] bay, Foo<Bar, FooBar<Bar>> bax)
|
|
97
|
+
pattern: e(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source, [c, j, o]),
|
|
98
|
+
inside: a
|
|
99
|
+
}],
|
|
100
|
+
keyword: g,
|
|
101
|
+
// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#literals
|
|
102
|
+
number: /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,
|
|
103
|
+
operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,
|
|
104
|
+
punctuation: /\?\.?|::|[{}[\];(),.:]/
|
|
105
|
+
}), t.languages.insertBefore("csharp", "number", {
|
|
106
|
+
range: {
|
|
107
|
+
pattern: /\.\./,
|
|
108
|
+
alias: "operator"
|
|
109
|
+
}
|
|
110
|
+
}), t.languages.insertBefore("csharp", "punctuation", {
|
|
111
|
+
"named-parameter": {
|
|
112
|
+
pattern: e(/([(,]\s*)<<0>>(?=\s*:)/.source, [o]),
|
|
113
|
+
lookbehind: !0,
|
|
114
|
+
alias: "punctuation"
|
|
115
|
+
}
|
|
116
|
+
}), t.languages.insertBefore("csharp", "class-name", {
|
|
117
|
+
namespace: {
|
|
118
|
+
// namespace Foo.Bar {}
|
|
119
|
+
// using Foo.Bar;
|
|
120
|
+
pattern: e(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source, [o]),
|
|
121
|
+
lookbehind: !0,
|
|
122
|
+
inside: {
|
|
123
|
+
punctuation: /\./
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"type-expression": {
|
|
127
|
+
// default(Foo), typeof(Foo<Bar>), sizeof(int)
|
|
128
|
+
pattern: e(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source, [b]),
|
|
129
|
+
lookbehind: !0,
|
|
130
|
+
alias: "class-name",
|
|
131
|
+
inside: a
|
|
132
|
+
},
|
|
133
|
+
"return-type": {
|
|
134
|
+
// Foo<Bar> ForBar(); Foo IFoo.Bar() => 0
|
|
135
|
+
// int this[int index] => 0; T IReadOnlyList<T>.this[int index] => this[index];
|
|
136
|
+
// int Foo => 0; int Foo { get; set } = 0;
|
|
137
|
+
pattern: e(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source, [c, i]),
|
|
138
|
+
inside: a,
|
|
139
|
+
alias: "class-name"
|
|
140
|
+
},
|
|
141
|
+
"constructor-invocation": {
|
|
142
|
+
// new List<Foo<Bar[]>> { }
|
|
143
|
+
pattern: e(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [c]),
|
|
144
|
+
lookbehind: !0,
|
|
145
|
+
inside: a,
|
|
146
|
+
alias: "class-name"
|
|
147
|
+
},
|
|
148
|
+
/*'explicit-implementation': {
|
|
149
|
+
// int IFoo<Foo>.Bar => 0; void IFoo<Foo<Foo>>.Foo<T>();
|
|
150
|
+
pattern: replace(/\b<<0>>(?=\.<<1>>)/, className, methodOrPropertyDeclaration),
|
|
151
|
+
inside: classNameInside,
|
|
152
|
+
alias: 'class-name'
|
|
153
|
+
},*/
|
|
154
|
+
"generic-method": {
|
|
155
|
+
// foo<Bar>()
|
|
156
|
+
pattern: e(/<<0>>\s*<<1>>(?=\s*\()/.source, [o, h]),
|
|
157
|
+
inside: {
|
|
158
|
+
function: e(/^<<0>>/.source, [o]),
|
|
159
|
+
generic: {
|
|
160
|
+
pattern: RegExp(h),
|
|
161
|
+
alias: "class-name",
|
|
162
|
+
inside: a
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"type-list": {
|
|
167
|
+
// The list of types inherited or of generic constraints
|
|
168
|
+
// class Foo<F> : Bar, IList<FooBar>
|
|
169
|
+
// where F : Bar, IList<int>
|
|
170
|
+
pattern: e(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source, [w, f, o, c, g.source, b, /\bnew\s*\(\s*\)/.source]),
|
|
171
|
+
lookbehind: !0,
|
|
172
|
+
inside: {
|
|
173
|
+
"record-arguments": {
|
|
174
|
+
pattern: e(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source, [f, b]),
|
|
175
|
+
lookbehind: !0,
|
|
176
|
+
greedy: !0,
|
|
177
|
+
inside: t.languages.csharp
|
|
178
|
+
},
|
|
179
|
+
keyword: g,
|
|
180
|
+
"class-name": {
|
|
181
|
+
pattern: RegExp(c),
|
|
182
|
+
greedy: !0,
|
|
183
|
+
inside: a
|
|
184
|
+
},
|
|
185
|
+
punctuation: /[,()]/
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
preprocessor: {
|
|
189
|
+
pattern: /(^[\t ]*)#.*/m,
|
|
190
|
+
lookbehind: !0,
|
|
191
|
+
alias: "property",
|
|
192
|
+
inside: {
|
|
193
|
+
// highlight preprocessor directives as keywords
|
|
194
|
+
directive: {
|
|
195
|
+
pattern: /(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,
|
|
196
|
+
lookbehind: !0,
|
|
197
|
+
alias: "keyword"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
var R = E + "|" + x, S = r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source, [R]), _ = l(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [S]), 2), $ = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source, U = r(/<<0>>(?:\s*\(<<1>>*\))?/.source, [i, _]);
|
|
203
|
+
t.languages.insertBefore("csharp", "class-name", {
|
|
204
|
+
attribute: {
|
|
205
|
+
// Attributes
|
|
206
|
+
// [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
|
|
207
|
+
pattern: e(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source, [$, U]),
|
|
208
|
+
lookbehind: !0,
|
|
209
|
+
greedy: !0,
|
|
210
|
+
inside: {
|
|
211
|
+
target: {
|
|
212
|
+
pattern: e(/^<<0>>(?=\s*:)/.source, [$]),
|
|
213
|
+
alias: "keyword"
|
|
214
|
+
},
|
|
215
|
+
"attribute-arguments": {
|
|
216
|
+
pattern: e(/\(<<0>>*\)/.source, [_]),
|
|
217
|
+
inside: t.languages.csharp
|
|
218
|
+
},
|
|
219
|
+
"class-name": {
|
|
220
|
+
pattern: RegExp(i),
|
|
221
|
+
inside: {
|
|
222
|
+
punctuation: /\./
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
punctuation: /[:,]/
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
var k = /:[^}\r\n]+/.source, I = l(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [S]), 2), B = r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [I, k]), C = l(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source, [R]), 2), D = r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [C, k]);
|
|
230
|
+
function K(n, u) {
|
|
231
|
+
return {
|
|
232
|
+
interpolation: {
|
|
233
|
+
pattern: e(/((?:^|[^{])(?:\{\{)*)<<0>>/.source, [n]),
|
|
234
|
+
lookbehind: !0,
|
|
235
|
+
inside: {
|
|
236
|
+
"format-string": {
|
|
237
|
+
pattern: e(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [u, k]),
|
|
238
|
+
lookbehind: !0,
|
|
239
|
+
inside: {
|
|
240
|
+
punctuation: /^:/
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
punctuation: /^\{|\}$/,
|
|
244
|
+
expression: {
|
|
245
|
+
pattern: /[\s\S]+/,
|
|
246
|
+
alias: "language-csharp",
|
|
247
|
+
inside: t.languages.csharp
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
string: /[\s\S]+/
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
t.languages.insertBefore("csharp", "string", {
|
|
255
|
+
"interpolation-string": [{
|
|
256
|
+
pattern: e(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source, [B]),
|
|
257
|
+
lookbehind: !0,
|
|
258
|
+
greedy: !0,
|
|
259
|
+
inside: K(B, I)
|
|
260
|
+
}, {
|
|
261
|
+
pattern: e(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [D]),
|
|
262
|
+
lookbehind: !0,
|
|
263
|
+
greedy: !0,
|
|
264
|
+
inside: K(D, C)
|
|
265
|
+
}],
|
|
266
|
+
char: {
|
|
267
|
+
pattern: RegExp(x),
|
|
268
|
+
greedy: !0
|
|
269
|
+
}
|
|
270
|
+
}), t.languages.dotnet = t.languages.cs = t.languages.csharp;
|
|
271
|
+
})(q);
|
|
272
|
+
}
|
|
273
|
+
return m;
|
|
274
|
+
}
|
|
275
|
+
export {
|
|
276
|
+
Z as __require
|
|
277
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { __require as k } from "./csharp.mjs";
|
|
2
|
+
var l, p;
|
|
3
|
+
function q() {
|
|
4
|
+
if (p)
|
|
5
|
+
return l;
|
|
6
|
+
p = 1;
|
|
7
|
+
var h = k();
|
|
8
|
+
l = c, c.displayName = "cshtml", c.aliases = ["razor"];
|
|
9
|
+
function c(i) {
|
|
10
|
+
i.register(h), function(r) {
|
|
11
|
+
var d = /\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source, m = /@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source + "|" + /'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;
|
|
12
|
+
function a(o, b) {
|
|
13
|
+
for (var g = 0; g < b; g++)
|
|
14
|
+
o = o.replace(/<self>/g, function() {
|
|
15
|
+
return "(?:" + o + ")";
|
|
16
|
+
});
|
|
17
|
+
return o.replace(/<self>/g, "[^\\s\\S]").replace(/<str>/g, "(?:" + m + ")").replace(/<comment>/g, "(?:" + d + ")");
|
|
18
|
+
}
|
|
19
|
+
var s = a(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source, 2), f = a(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source, 2), e = a(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source, 2), v = a(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source, 2), t = /(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source, u = /(?!\d)[^\s>\/=$<%]+/.source + t + /\s*\/?>/.source, w = /\B@?/.source + "(?:" + /<([a-zA-Z][\w:]*)/.source + t + /\s*>/.source + "(?:" + (/[^<]/.source + "|" + // all tags that are not the start tag
|
|
20
|
+
// eslint-disable-next-line regexp/strict
|
|
21
|
+
/<\/?(?!\1\b)/.source + u + "|" + // nested start tag
|
|
22
|
+
a(
|
|
23
|
+
// eslint-disable-next-line regexp/strict
|
|
24
|
+
/<\1/.source + t + /\s*>/.source + "(?:" + (/[^<]/.source + "|" + // all tags that are not the start tag
|
|
25
|
+
// eslint-disable-next-line regexp/strict
|
|
26
|
+
/<\/?(?!\1\b)/.source + u + "|<self>") + ")*" + // eslint-disable-next-line regexp/strict
|
|
27
|
+
/<\/\1\s*>/.source,
|
|
28
|
+
2
|
|
29
|
+
)) + ")*" + // eslint-disable-next-line regexp/strict
|
|
30
|
+
/<\/\1\s*>/.source + "|" + /</.source + u + ")";
|
|
31
|
+
r.languages.cshtml = r.languages.extend("markup", {});
|
|
32
|
+
var y = r.languages.insertBefore("csharp", "string", {
|
|
33
|
+
html: {
|
|
34
|
+
pattern: RegExp(w),
|
|
35
|
+
greedy: !0,
|
|
36
|
+
inside: r.languages.cshtml
|
|
37
|
+
}
|
|
38
|
+
}, {
|
|
39
|
+
csharp: r.languages.extend("csharp", {})
|
|
40
|
+
}), n = {
|
|
41
|
+
pattern: /\S[\s\S]*/,
|
|
42
|
+
alias: "language-csharp",
|
|
43
|
+
inside: y
|
|
44
|
+
};
|
|
45
|
+
r.languages.insertBefore("cshtml", "prolog", {
|
|
46
|
+
"razor-comment": {
|
|
47
|
+
pattern: /@\*[\s\S]*?\*@/,
|
|
48
|
+
greedy: !0,
|
|
49
|
+
alias: "comment"
|
|
50
|
+
},
|
|
51
|
+
block: {
|
|
52
|
+
pattern: RegExp(/(^|[^@])@/.source + "(?:" + [
|
|
53
|
+
// @{ ... }
|
|
54
|
+
e,
|
|
55
|
+
// @code{ ... }
|
|
56
|
+
/(?:code|functions)\s*/.source + e,
|
|
57
|
+
// @for (...) { ... }
|
|
58
|
+
/(?:for|foreach|lock|switch|using|while)\s*/.source + s + /\s*/.source + e,
|
|
59
|
+
// @do { ... } while (...);
|
|
60
|
+
/do\s*/.source + e + /\s*while\s*/.source + s + /(?:\s*;)?/.source,
|
|
61
|
+
// @try { ... } catch (...) { ... } finally { ... }
|
|
62
|
+
/try\s*/.source + e + /\s*catch\s*/.source + s + /\s*/.source + e + /\s*finally\s*/.source + e,
|
|
63
|
+
// @if (...) {...} else if (...) {...} else {...}
|
|
64
|
+
/if\s*/.source + s + /\s*/.source + e + "(?:" + /\s*else/.source + "(?:" + /\s+if\s*/.source + s + ")?" + /\s*/.source + e + ")*"
|
|
65
|
+
].join("|") + ")"),
|
|
66
|
+
lookbehind: !0,
|
|
67
|
+
greedy: !0,
|
|
68
|
+
inside: {
|
|
69
|
+
keyword: /^@\w*/,
|
|
70
|
+
csharp: n
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
directive: {
|
|
74
|
+
pattern: /^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,
|
|
75
|
+
lookbehind: !0,
|
|
76
|
+
greedy: !0,
|
|
77
|
+
inside: {
|
|
78
|
+
keyword: /^@\w+/,
|
|
79
|
+
csharp: n
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
value: {
|
|
83
|
+
pattern: RegExp(/(^|[^@])@/.source + /(?:await\b\s*)?/.source + "(?:" + /\w+\b/.source + "|" + s + ")(?:" + /[?!]?\.\w+\b/.source + "|" + s + "|" + f + "|" + v + s + ")*"),
|
|
84
|
+
lookbehind: !0,
|
|
85
|
+
greedy: !0,
|
|
86
|
+
alias: "variable",
|
|
87
|
+
inside: {
|
|
88
|
+
keyword: /^@/,
|
|
89
|
+
csharp: n
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"delegate-operator": {
|
|
93
|
+
pattern: /(^|[^@])@(?=<)/,
|
|
94
|
+
lookbehind: !0,
|
|
95
|
+
alias: "operator"
|
|
96
|
+
}
|
|
97
|
+
}), r.languages.razor = r.languages.cshtml;
|
|
98
|
+
}(i);
|
|
99
|
+
}
|
|
100
|
+
return l;
|
|
101
|
+
}
|
|
102
|
+
export {
|
|
103
|
+
q as __require
|
|
104
|
+
};
|