@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,74 @@
|
|
|
1
|
+
var r, t;
|
|
2
|
+
function n() {
|
|
3
|
+
if (t)
|
|
4
|
+
return r;
|
|
5
|
+
t = 1, r = a, a.displayName = "excelFormula", a.aliases = [];
|
|
6
|
+
function a(e) {
|
|
7
|
+
e.languages["excel-formula"] = {
|
|
8
|
+
comment: {
|
|
9
|
+
pattern: /(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,
|
|
10
|
+
lookbehind: !0,
|
|
11
|
+
greedy: !0
|
|
12
|
+
},
|
|
13
|
+
string: {
|
|
14
|
+
pattern: /"(?:[^"]|"")*"(?!")/,
|
|
15
|
+
greedy: !0
|
|
16
|
+
},
|
|
17
|
+
reference: {
|
|
18
|
+
// https://www.ablebits.com/office-addins-blog/2015/12/08/excel-reference-another-sheet-workbook/
|
|
19
|
+
// Sales!B2
|
|
20
|
+
// 'Winter sales'!B2
|
|
21
|
+
// [Sales.xlsx]Jan!B2:B5
|
|
22
|
+
// D:\Reports\[Sales.xlsx]Jan!B2:B5
|
|
23
|
+
// '[Sales.xlsx]Jan sales'!B2:B5
|
|
24
|
+
// 'D:\Reports\[Sales.xlsx]Jan sales'!B2:B5
|
|
25
|
+
pattern: /(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,
|
|
26
|
+
greedy: !0,
|
|
27
|
+
alias: "string",
|
|
28
|
+
inside: {
|
|
29
|
+
operator: /!$/,
|
|
30
|
+
punctuation: /'/,
|
|
31
|
+
sheet: {
|
|
32
|
+
pattern: /[^[\]]+$/,
|
|
33
|
+
alias: "function"
|
|
34
|
+
},
|
|
35
|
+
file: {
|
|
36
|
+
pattern: /\[[^[\]]+\]$/,
|
|
37
|
+
inside: {
|
|
38
|
+
punctuation: /[[\]]/
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
path: /[\s\S]+/
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"function-name": {
|
|
45
|
+
pattern: /\b[A-Z]\w*(?=\()/i,
|
|
46
|
+
alias: "keyword"
|
|
47
|
+
},
|
|
48
|
+
range: {
|
|
49
|
+
pattern: /\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,
|
|
50
|
+
alias: "property",
|
|
51
|
+
inside: {
|
|
52
|
+
operator: /:/,
|
|
53
|
+
cell: /\$?[A-Z]+\$?\d+/i,
|
|
54
|
+
column: /\$?[A-Z]+/i,
|
|
55
|
+
row: /\$?\d+/
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
cell: {
|
|
59
|
+
// Excel is case insensitive, so the string "foo1" could be either a variable or a cell.
|
|
60
|
+
// To combat this, we match cells case insensitive, if the contain at least one "$", and case sensitive otherwise.
|
|
61
|
+
pattern: /\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,
|
|
62
|
+
alias: "property"
|
|
63
|
+
},
|
|
64
|
+
number: /(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,
|
|
65
|
+
boolean: /\b(?:FALSE|TRUE)\b/i,
|
|
66
|
+
operator: /[-+*/^%=&,]|<[=>]?|>=?/,
|
|
67
|
+
punctuation: /[[\]();{}|]/
|
|
68
|
+
}, e.languages.xlsx = e.languages.xls = e.languages["excel-formula"];
|
|
69
|
+
}
|
|
70
|
+
return r;
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
n as __require
|
|
74
|
+
};
|
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
var n, l;
|
|
2
|
+
function m() {
|
|
3
|
+
if (l)
|
|
4
|
+
return n;
|
|
5
|
+
l = 1, n = r, r.displayName = "factor", r.aliases = [];
|
|
6
|
+
function r(u) {
|
|
7
|
+
(function(p) {
|
|
8
|
+
var i = {
|
|
9
|
+
function: /\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/
|
|
10
|
+
}, t = {
|
|
11
|
+
number: /\\[^\s']|%\w/
|
|
12
|
+
}, s = {
|
|
13
|
+
comment: [
|
|
14
|
+
{
|
|
15
|
+
// ! single-line exclamation point comments with whitespace after/around the !
|
|
16
|
+
pattern: /(^|\s)(?:! .*|!$)/,
|
|
17
|
+
lookbehind: !0,
|
|
18
|
+
inside: i
|
|
19
|
+
},
|
|
20
|
+
/* from basis/multiline: */
|
|
21
|
+
{
|
|
22
|
+
// /* comment */, /* comment*/
|
|
23
|
+
pattern: /(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,
|
|
24
|
+
lookbehind: !0,
|
|
25
|
+
greedy: !0,
|
|
26
|
+
inside: i
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
// ![[ comment ]] , ![===[ comment]===]
|
|
30
|
+
pattern: /(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,
|
|
31
|
+
lookbehind: !0,
|
|
32
|
+
greedy: !0,
|
|
33
|
+
inside: i
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
number: [{
|
|
37
|
+
// basic base 10 integers 9, -9
|
|
38
|
+
pattern: /(^|\s)[+-]?\d+(?=\s|$)/,
|
|
39
|
+
lookbehind: !0
|
|
40
|
+
}, {
|
|
41
|
+
// base prefix integers 0b010 0o70 0xad 0d10 0XAD -0xa9
|
|
42
|
+
pattern: /(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,
|
|
43
|
+
lookbehind: !0
|
|
44
|
+
}, {
|
|
45
|
+
// fractional ratios 1/5 -1/5 and the literal float approximations 1/5. -1/5.
|
|
46
|
+
pattern: /(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,
|
|
47
|
+
lookbehind: !0
|
|
48
|
+
}, {
|
|
49
|
+
// positive mixed numbers 23+1/5 +23+1/5
|
|
50
|
+
pattern: /(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,
|
|
51
|
+
lookbehind: !0
|
|
52
|
+
}, {
|
|
53
|
+
// negative mixed numbers -23-1/5
|
|
54
|
+
pattern: /(^|\s)-\d+-\d+\/\d+(?=\s|$)/,
|
|
55
|
+
lookbehind: !0
|
|
56
|
+
}, {
|
|
57
|
+
// basic decimal floats -0.01 0. .0 .1 -.1 -1. -12.13 +12.13
|
|
58
|
+
// and scientific notation with base 10 exponents 3e4 3e-4 .3e-4
|
|
59
|
+
pattern: /(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,
|
|
60
|
+
lookbehind: !0
|
|
61
|
+
}, {
|
|
62
|
+
// NAN literal syntax NAN: 80000deadbeef, NAN: a
|
|
63
|
+
pattern: /(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,
|
|
64
|
+
lookbehind: !0
|
|
65
|
+
}, {
|
|
66
|
+
/*
|
|
67
|
+
base prefix floats 0x1.0p3 (8.0) 0b1.010p2 (5.0) 0x1.p1 0b1.11111111p11111...
|
|
68
|
+
"The normalized hex form ±0x1.MMMMMMMMMMMMM[pP]±EEEE allows any floating-point number to be specified precisely.
|
|
69
|
+
The values of MMMMMMMMMMMMM and EEEE map directly to the mantissa and exponent fields of the binary IEEE 754 representation."
|
|
70
|
+
<https://docs.factorcode.org/content/article-syntax-floats.html>
|
|
71
|
+
*/
|
|
72
|
+
pattern: /(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,
|
|
73
|
+
lookbehind: !0
|
|
74
|
+
}],
|
|
75
|
+
// R/ regexp?\/\\/
|
|
76
|
+
regexp: {
|
|
77
|
+
pattern: /(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,
|
|
78
|
+
lookbehind: !0,
|
|
79
|
+
alias: "number",
|
|
80
|
+
inside: {
|
|
81
|
+
variable: /\\\S/,
|
|
82
|
+
keyword: /[+?*\[\]^$(){}.|]/,
|
|
83
|
+
operator: {
|
|
84
|
+
pattern: /(\/)[idmsr]+(?:-[idmsr]+)?/,
|
|
85
|
+
lookbehind: !0
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
boolean: {
|
|
90
|
+
pattern: /(^|\s)[tf](?=\s|$)/,
|
|
91
|
+
lookbehind: !0
|
|
92
|
+
},
|
|
93
|
+
// SBUF" asd", URL" ://...", P" /etc/"
|
|
94
|
+
"custom-string": {
|
|
95
|
+
pattern: /(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,
|
|
96
|
+
lookbehind: !0,
|
|
97
|
+
greedy: !0,
|
|
98
|
+
alias: "string",
|
|
99
|
+
inside: {
|
|
100
|
+
number: /\\\S|%\w|\//
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"multiline-string": [{
|
|
104
|
+
// STRING: name \n content \n ; -> CONSTANT: name "content" (symbol)
|
|
105
|
+
pattern: /(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,
|
|
106
|
+
lookbehind: !0,
|
|
107
|
+
greedy: !0,
|
|
108
|
+
alias: "string",
|
|
109
|
+
inside: {
|
|
110
|
+
number: t.number,
|
|
111
|
+
// trailing semicolon on its own line
|
|
112
|
+
"semicolon-or-setlocal": {
|
|
113
|
+
pattern: /([\r\n][ \t]*);(?=\s|$)/,
|
|
114
|
+
lookbehind: !0,
|
|
115
|
+
alias: "function"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}, {
|
|
119
|
+
// HEREDOC: marker \n content \n marker ; -> "content" (immediate)
|
|
120
|
+
pattern: /(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,
|
|
121
|
+
lookbehind: !0,
|
|
122
|
+
greedy: !0,
|
|
123
|
+
alias: "string",
|
|
124
|
+
inside: t
|
|
125
|
+
}, {
|
|
126
|
+
// [[ string ]], [==[ string]==]
|
|
127
|
+
pattern: /(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,
|
|
128
|
+
lookbehind: !0,
|
|
129
|
+
greedy: !0,
|
|
130
|
+
alias: "string",
|
|
131
|
+
inside: t
|
|
132
|
+
}],
|
|
133
|
+
"special-using": {
|
|
134
|
+
pattern: /(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,
|
|
135
|
+
lookbehind: !0,
|
|
136
|
+
alias: "function",
|
|
137
|
+
inside: {
|
|
138
|
+
// this is essentially a regex for vocab names, which i don't want to specify
|
|
139
|
+
// but the USING: gets picked up as a vocab name
|
|
140
|
+
string: {
|
|
141
|
+
pattern: /(\s)[^:\s]+/,
|
|
142
|
+
lookbehind: !0
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
/* this description of stack effect literal syntax is not complete and not as specific as theoretically possible
|
|
147
|
+
trying to do better is more work and regex-computation-time than it's worth though.
|
|
148
|
+
- we'd like to have the "delimiter" parts of the stack effect [ (, --, and ) ] be a different (less-important or comment-like) colour to the stack effect contents
|
|
149
|
+
- we'd like if nested stack effects were treated as such rather than just appearing flat (with `inside`)
|
|
150
|
+
- we'd like if the following variable name conventions were recognised specifically:
|
|
151
|
+
special row variables = ..a b..
|
|
152
|
+
type and stack effect annotations end with a colon = ( quot: ( a: ( -- ) -- b ) -- x ), ( x: number -- )
|
|
153
|
+
word throws unconditional error = *
|
|
154
|
+
any other word-like variable name = a ? q' etc
|
|
155
|
+
https://docs.factorcode.org/content/article-effects.html
|
|
156
|
+
these are pretty complicated to highlight properly without a real parser, and therefore out of scope
|
|
157
|
+
the old pattern, which may be later useful, was: (^|\s)(?:call|execute|eval)?\((?:\s+[^"\r\n\t ]\S*)*?\s+--(?:\s+[^"\n\t ]\S*)*?\s+\)(?=\s|$)
|
|
158
|
+
*/
|
|
159
|
+
// current solution is not great
|
|
160
|
+
"stack-effect-delimiter": [{
|
|
161
|
+
// opening parenthesis
|
|
162
|
+
pattern: /(^|\s)(?:call|eval|execute)?\((?=\s)/,
|
|
163
|
+
lookbehind: !0,
|
|
164
|
+
alias: "operator"
|
|
165
|
+
}, {
|
|
166
|
+
// middle --
|
|
167
|
+
pattern: /(\s)--(?=\s)/,
|
|
168
|
+
lookbehind: !0,
|
|
169
|
+
alias: "operator"
|
|
170
|
+
}, {
|
|
171
|
+
// closing parenthesis
|
|
172
|
+
pattern: /(\s)\)(?=\s|$)/,
|
|
173
|
+
lookbehind: !0,
|
|
174
|
+
alias: "operator"
|
|
175
|
+
}],
|
|
176
|
+
combinators: {
|
|
177
|
+
pattern: null,
|
|
178
|
+
lookbehind: !0,
|
|
179
|
+
alias: "keyword"
|
|
180
|
+
},
|
|
181
|
+
"kernel-builtin": {
|
|
182
|
+
pattern: null,
|
|
183
|
+
lookbehind: !0,
|
|
184
|
+
alias: "variable"
|
|
185
|
+
},
|
|
186
|
+
"sequences-builtin": {
|
|
187
|
+
pattern: null,
|
|
188
|
+
lookbehind: !0,
|
|
189
|
+
alias: "variable"
|
|
190
|
+
},
|
|
191
|
+
"math-builtin": {
|
|
192
|
+
pattern: null,
|
|
193
|
+
lookbehind: !0,
|
|
194
|
+
alias: "variable"
|
|
195
|
+
},
|
|
196
|
+
"constructor-word": {
|
|
197
|
+
// <array> but not <=>
|
|
198
|
+
pattern: /(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,
|
|
199
|
+
lookbehind: !0,
|
|
200
|
+
alias: "keyword"
|
|
201
|
+
},
|
|
202
|
+
"other-builtin-syntax": {
|
|
203
|
+
pattern: null,
|
|
204
|
+
lookbehind: !0,
|
|
205
|
+
alias: "operator"
|
|
206
|
+
},
|
|
207
|
+
/*
|
|
208
|
+
full list of supported word naming conventions: (the convention appears outside of the [brackets])
|
|
209
|
+
set-[x]
|
|
210
|
+
change-[x]
|
|
211
|
+
with-[x]
|
|
212
|
+
new-[x]
|
|
213
|
+
>[string]
|
|
214
|
+
[base]>
|
|
215
|
+
[string]>[number]
|
|
216
|
+
+[symbol]+
|
|
217
|
+
[boolean-word]?
|
|
218
|
+
?[of]
|
|
219
|
+
[slot-reader]>>
|
|
220
|
+
>>[slot-setter]
|
|
221
|
+
[slot-writer]<<
|
|
222
|
+
([implementation-detail])
|
|
223
|
+
[mutater]!
|
|
224
|
+
[variant]*
|
|
225
|
+
[prettyprint].
|
|
226
|
+
$[help-markup]
|
|
227
|
+
<constructors>, SYNTAX:, etc are supported by their own patterns.
|
|
228
|
+
`with` and `new` from `kernel` are their own builtins.
|
|
229
|
+
see <https://docs.factorcode.org/content/article-conventions.html>
|
|
230
|
+
*/
|
|
231
|
+
"conventionally-named-word": {
|
|
232
|
+
pattern: /(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,
|
|
233
|
+
lookbehind: !0,
|
|
234
|
+
alias: "keyword"
|
|
235
|
+
},
|
|
236
|
+
"colon-syntax": {
|
|
237
|
+
pattern: /(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,
|
|
238
|
+
lookbehind: !0,
|
|
239
|
+
greedy: !0,
|
|
240
|
+
alias: "function"
|
|
241
|
+
},
|
|
242
|
+
"semicolon-or-setlocal": {
|
|
243
|
+
pattern: /(\s)(?:;|:>)(?=\s|$)/,
|
|
244
|
+
lookbehind: !0,
|
|
245
|
+
alias: "function"
|
|
246
|
+
},
|
|
247
|
+
// do not highlight leading } or trailing X{ at the begin/end of the file as it's invalid syntax
|
|
248
|
+
"curly-brace-literal-delimiter": [{
|
|
249
|
+
// opening
|
|
250
|
+
pattern: /(^|\s)[a-z]*\{(?=\s)/i,
|
|
251
|
+
lookbehind: !0,
|
|
252
|
+
alias: "operator"
|
|
253
|
+
}, {
|
|
254
|
+
// closing
|
|
255
|
+
pattern: /(\s)\}(?=\s|$)/,
|
|
256
|
+
lookbehind: !0,
|
|
257
|
+
alias: "operator"
|
|
258
|
+
}],
|
|
259
|
+
// do not highlight leading ] or trailing [ at the begin/end of the file as it's invalid syntax
|
|
260
|
+
"quotation-delimiter": [{
|
|
261
|
+
// opening
|
|
262
|
+
pattern: /(^|\s)\[(?=\s)/,
|
|
263
|
+
lookbehind: !0,
|
|
264
|
+
alias: "operator"
|
|
265
|
+
}, {
|
|
266
|
+
// closing
|
|
267
|
+
pattern: /(\s)\](?=\s|$)/,
|
|
268
|
+
lookbehind: !0,
|
|
269
|
+
alias: "operator"
|
|
270
|
+
}],
|
|
271
|
+
"normal-word": {
|
|
272
|
+
pattern: /(^|\s)[^"\s]\S*(?=\s|$)/,
|
|
273
|
+
lookbehind: !0
|
|
274
|
+
},
|
|
275
|
+
/*
|
|
276
|
+
basic first-class string "a"
|
|
277
|
+
with escaped double-quote "a\""
|
|
278
|
+
escaped backslash "\\"
|
|
279
|
+
and general escapes since Factor has so many "\N"
|
|
280
|
+
syntax that works in the reference implementation that isn't fully
|
|
281
|
+
supported because it's an implementation detail:
|
|
282
|
+
"string 1""string 2" -> 2 strings (works anyway)
|
|
283
|
+
"string"5 -> string, 5
|
|
284
|
+
"string"[ ] -> string, quotation
|
|
285
|
+
{ "a"} -> array<string>
|
|
286
|
+
the rest of those examples all properly recognise the string, but not
|
|
287
|
+
the other object (number, quotation, etc)
|
|
288
|
+
this is fine for a regex-only implementation.
|
|
289
|
+
*/
|
|
290
|
+
string: {
|
|
291
|
+
pattern: /"(?:\\\S|[^"\\])*"/,
|
|
292
|
+
greedy: !0,
|
|
293
|
+
inside: t
|
|
294
|
+
}
|
|
295
|
+
}, d = function(e) {
|
|
296
|
+
return (e + "").replace(/([.?*+\^$\[\]\\(){}|\-])/g, "\\$1");
|
|
297
|
+
}, a = function(e) {
|
|
298
|
+
return new RegExp("(^|\\s)(?:" + e.map(d).join("|") + ")(?=\\s|$)");
|
|
299
|
+
}, o = {
|
|
300
|
+
"kernel-builtin": ["or", "2nipd", "4drop", "tuck", "wrapper", "nip", "wrapper?", "callstack>array", "die", "dupd", "callstack", "callstack?", "3dup", "hashcode", "pick", "4nip", "build", ">boolean", "nipd", "clone", "5nip", "eq?", "?", "=", "swapd", "2over", "clear", "2dup", "get-retainstack", "not", "tuple?", "dup", "3nipd", "call", "-rotd", "object", "drop", "assert=", "assert?", "-rot", "execute", "boa", "get-callstack", "curried?", "3drop", "pickd", "overd", "over", "roll", "3nip", "swap", "and", "2nip", "rotd", "throw", "(clone)", "hashcode*", "spin", "reach", "4dup", "equal?", "get-datastack", "assert", "2drop", "<wrapper>", "boolean?", "identity-hashcode", "identity-tuple?", "null", "composed?", "new", "5drop", "rot", "-roll", "xor", "identity-tuple", "boolean"],
|
|
301
|
+
"other-builtin-syntax": [
|
|
302
|
+
// syntax
|
|
303
|
+
"=======",
|
|
304
|
+
"recursive",
|
|
305
|
+
"flushable",
|
|
306
|
+
">>",
|
|
307
|
+
"<<<<<<",
|
|
308
|
+
"M\\",
|
|
309
|
+
"B",
|
|
310
|
+
"PRIVATE>",
|
|
311
|
+
"\\",
|
|
312
|
+
"======",
|
|
313
|
+
"final",
|
|
314
|
+
"inline",
|
|
315
|
+
"delimiter",
|
|
316
|
+
"deprecated",
|
|
317
|
+
"<PRIVATE",
|
|
318
|
+
">>>>>>",
|
|
319
|
+
"<<<<<<<",
|
|
320
|
+
"parse-complex",
|
|
321
|
+
"malformed-complex",
|
|
322
|
+
"read-only",
|
|
323
|
+
">>>>>>>",
|
|
324
|
+
"call-next-method",
|
|
325
|
+
"<<",
|
|
326
|
+
"foldable",
|
|
327
|
+
// literals
|
|
328
|
+
"$",
|
|
329
|
+
"$[",
|
|
330
|
+
"${"
|
|
331
|
+
],
|
|
332
|
+
"sequences-builtin": ["member-eq?", "mismatch", "append", "assert-sequence=", "longer", "repetition", "clone-like", "3sequence", "assert-sequence?", "last-index-from", "reversed", "index-from", "cut*", "pad-tail", "join-as", "remove-eq!", "concat-as", "but-last", "snip", "nths", "nth", "sequence", "longest", "slice?", "<slice>", "remove-nth", "tail-slice", "empty?", "tail*", "member?", "virtual-sequence?", "set-length", "drop-prefix", "iota", "unclip", "bounds-error?", "unclip-last-slice", "non-negative-integer-expected", "non-negative-integer-expected?", "midpoint@", "longer?", "?set-nth", "?first", "rest-slice", "prepend-as", "prepend", "fourth", "sift", "subseq-start", "new-sequence", "?last", "like", "first4", "1sequence", "reverse", "slice", "virtual@", "repetition?", "set-last", "index", "4sequence", "max-length", "set-second", "immutable-sequence", "first2", "first3", "supremum", "unclip-slice", "suffix!", "insert-nth", "tail", "3append", "short", "suffix", "concat", "flip", "immutable?", "reverse!", "2sequence", "sum", "delete-all", "indices", "snip-slice", "<iota>", "check-slice", "sequence?", "head", "append-as", "halves", "sequence=", "collapse-slice", "?second", "slice-error?", "product", "bounds-check?", "bounds-check", "immutable", "virtual-exemplar", "harvest", "remove", "pad-head", "last", "set-fourth", "cartesian-product", "remove-eq", "shorten", "shorter", "reversed?", "shorter?", "shortest", "head-slice", "pop*", "tail-slice*", "but-last-slice", "iota?", "append!", "cut-slice", "new-resizable", "head-slice*", "sequence-hashcode", "pop", "set-nth", "?nth", "second", "join", "immutable-sequence?", "<reversed>", "3append-as", "virtual-sequence", "subseq?", "remove-nth!", "length", "last-index", "lengthen", "assert-sequence", "copy", "move", "third", "first", "tail?", "set-first", "prefix", "bounds-error", "<repetition>", "exchange", "surround", "cut", "min-length", "set-third", "push-all", "head?", "subseq-start-from", "delete-slice", "rest", "sum-lengths", "head*", "infimum", "remove!", "glue", "slice-error", "subseq", "push", "replace-slice", "subseq-as", "unclip-last"],
|
|
333
|
+
"math-builtin": ["number=", "next-power-of-2", "?1+", "fp-special?", "imaginary-part", "float>bits", "number?", "fp-infinity?", "bignum?", "fp-snan?", "denominator", "gcd", "*", "+", "fp-bitwise=", "-", "u>=", "/", ">=", "bitand", "power-of-2?", "log2-expects-positive", "neg?", "<", "log2", ">", "integer?", "number", "bits>double", "2/", "zero?", "bits>float", "float?", "shift", "ratio?", "rect>", "even?", "ratio", "fp-sign", "bitnot", ">fixnum", "complex?", "/i", "integer>fixnum", "/f", "sgn", ">bignum", "next-float", "u<", "u>", "mod", "recip", "rational", ">float", "2^", "integer", "fixnum?", "neg", "fixnum", "sq", "bignum", ">rect", "bit?", "fp-qnan?", "simple-gcd", "complex", "<fp-nan>", "real", ">fraction", "double>bits", "bitor", "rem", "fp-nan-payload", "real-part", "log2-expects-positive?", "prev-float", "align", "unordered?", "float", "fp-nan?", "abs", "bitxor", "integer>fixnum-strict", "u<=", "odd?", "<=", "/mod", ">integer", "real?", "rational?", "numerator"]
|
|
334
|
+
// that's all for now
|
|
335
|
+
};
|
|
336
|
+
Object.keys(o).forEach(function(e) {
|
|
337
|
+
s[e].pattern = a(o[e]);
|
|
338
|
+
});
|
|
339
|
+
var c = [
|
|
340
|
+
// kernel
|
|
341
|
+
"2bi",
|
|
342
|
+
"while",
|
|
343
|
+
"2tri",
|
|
344
|
+
"bi*",
|
|
345
|
+
"4dip",
|
|
346
|
+
"both?",
|
|
347
|
+
"same?",
|
|
348
|
+
"tri@",
|
|
349
|
+
"curry",
|
|
350
|
+
"prepose",
|
|
351
|
+
"3bi",
|
|
352
|
+
"?if",
|
|
353
|
+
"tri*",
|
|
354
|
+
"2keep",
|
|
355
|
+
"3keep",
|
|
356
|
+
"curried",
|
|
357
|
+
"2keepd",
|
|
358
|
+
"when",
|
|
359
|
+
"2bi*",
|
|
360
|
+
"2tri*",
|
|
361
|
+
"4keep",
|
|
362
|
+
"bi@",
|
|
363
|
+
"keepdd",
|
|
364
|
+
"do",
|
|
365
|
+
"unless*",
|
|
366
|
+
"tri-curry",
|
|
367
|
+
"if*",
|
|
368
|
+
"loop",
|
|
369
|
+
"bi-curry*",
|
|
370
|
+
"when*",
|
|
371
|
+
"2bi@",
|
|
372
|
+
"2tri@",
|
|
373
|
+
"with",
|
|
374
|
+
"2with",
|
|
375
|
+
"either?",
|
|
376
|
+
"bi",
|
|
377
|
+
"until",
|
|
378
|
+
"3dip",
|
|
379
|
+
"3curry",
|
|
380
|
+
"tri-curry*",
|
|
381
|
+
"tri-curry@",
|
|
382
|
+
"bi-curry",
|
|
383
|
+
"keepd",
|
|
384
|
+
"compose",
|
|
385
|
+
"2dip",
|
|
386
|
+
"if",
|
|
387
|
+
"3tri",
|
|
388
|
+
"unless",
|
|
389
|
+
"tuple",
|
|
390
|
+
"keep",
|
|
391
|
+
"2curry",
|
|
392
|
+
"tri",
|
|
393
|
+
"most",
|
|
394
|
+
"while*",
|
|
395
|
+
"dip",
|
|
396
|
+
"composed",
|
|
397
|
+
"bi-curry@",
|
|
398
|
+
// sequences
|
|
399
|
+
"find-last-from",
|
|
400
|
+
"trim-head-slice",
|
|
401
|
+
"map-as",
|
|
402
|
+
"each-from",
|
|
403
|
+
"none?",
|
|
404
|
+
"trim-tail",
|
|
405
|
+
"partition",
|
|
406
|
+
"if-empty",
|
|
407
|
+
"accumulate*",
|
|
408
|
+
"reject!",
|
|
409
|
+
"find-from",
|
|
410
|
+
"accumulate-as",
|
|
411
|
+
"collector-for-as",
|
|
412
|
+
"reject",
|
|
413
|
+
"map",
|
|
414
|
+
"map-sum",
|
|
415
|
+
"accumulate!",
|
|
416
|
+
"2each-from",
|
|
417
|
+
"follow",
|
|
418
|
+
"supremum-by",
|
|
419
|
+
"map!",
|
|
420
|
+
"unless-empty",
|
|
421
|
+
"collector",
|
|
422
|
+
"padding",
|
|
423
|
+
"reduce-index",
|
|
424
|
+
"replicate-as",
|
|
425
|
+
"infimum-by",
|
|
426
|
+
"trim-tail-slice",
|
|
427
|
+
"count",
|
|
428
|
+
"find-index",
|
|
429
|
+
"filter",
|
|
430
|
+
"accumulate*!",
|
|
431
|
+
"reject-as",
|
|
432
|
+
"map-integers",
|
|
433
|
+
"map-find",
|
|
434
|
+
"reduce",
|
|
435
|
+
"selector",
|
|
436
|
+
"interleave",
|
|
437
|
+
"2map",
|
|
438
|
+
"filter-as",
|
|
439
|
+
"binary-reduce",
|
|
440
|
+
"map-index-as",
|
|
441
|
+
"find",
|
|
442
|
+
"produce",
|
|
443
|
+
"filter!",
|
|
444
|
+
"replicate",
|
|
445
|
+
"cartesian-map",
|
|
446
|
+
"cartesian-each",
|
|
447
|
+
"find-index-from",
|
|
448
|
+
"map-find-last",
|
|
449
|
+
"3map-as",
|
|
450
|
+
"3map",
|
|
451
|
+
"find-last",
|
|
452
|
+
"selector-as",
|
|
453
|
+
"2map-as",
|
|
454
|
+
"2map-reduce",
|
|
455
|
+
"accumulate",
|
|
456
|
+
"each",
|
|
457
|
+
"each-index",
|
|
458
|
+
"accumulate*-as",
|
|
459
|
+
"when-empty",
|
|
460
|
+
"all?",
|
|
461
|
+
"collector-as",
|
|
462
|
+
"push-either",
|
|
463
|
+
"new-like",
|
|
464
|
+
"collector-for",
|
|
465
|
+
"2selector",
|
|
466
|
+
"push-if",
|
|
467
|
+
"2all?",
|
|
468
|
+
"map-reduce",
|
|
469
|
+
"3each",
|
|
470
|
+
"any?",
|
|
471
|
+
"trim-slice",
|
|
472
|
+
"2reduce",
|
|
473
|
+
"change-nth",
|
|
474
|
+
"produce-as",
|
|
475
|
+
"2each",
|
|
476
|
+
"trim",
|
|
477
|
+
"trim-head",
|
|
478
|
+
"cartesian-find",
|
|
479
|
+
"map-index",
|
|
480
|
+
// math
|
|
481
|
+
"if-zero",
|
|
482
|
+
"each-integer",
|
|
483
|
+
"unless-zero",
|
|
484
|
+
"(find-integer)",
|
|
485
|
+
"when-zero",
|
|
486
|
+
"find-last-integer",
|
|
487
|
+
"(all-integers?)",
|
|
488
|
+
"times",
|
|
489
|
+
"(each-integer)",
|
|
490
|
+
"find-integer",
|
|
491
|
+
"all-integers?",
|
|
492
|
+
// math.combinators
|
|
493
|
+
"unless-negative",
|
|
494
|
+
"if-positive",
|
|
495
|
+
"when-positive",
|
|
496
|
+
"when-negative",
|
|
497
|
+
"unless-positive",
|
|
498
|
+
"if-negative",
|
|
499
|
+
// combinators
|
|
500
|
+
"case",
|
|
501
|
+
"2cleave",
|
|
502
|
+
"cond>quot",
|
|
503
|
+
"case>quot",
|
|
504
|
+
"3cleave",
|
|
505
|
+
"wrong-values",
|
|
506
|
+
"to-fixed-point",
|
|
507
|
+
"alist>quot",
|
|
508
|
+
"cond",
|
|
509
|
+
"cleave",
|
|
510
|
+
"call-effect",
|
|
511
|
+
"recursive-hashcode",
|
|
512
|
+
"spread",
|
|
513
|
+
"deep-spread>quot",
|
|
514
|
+
// combinators.short-circuit
|
|
515
|
+
"2||",
|
|
516
|
+
"0||",
|
|
517
|
+
"n||",
|
|
518
|
+
"0&&",
|
|
519
|
+
"2&&",
|
|
520
|
+
"3||",
|
|
521
|
+
"1||",
|
|
522
|
+
"1&&",
|
|
523
|
+
"n&&",
|
|
524
|
+
"3&&",
|
|
525
|
+
// combinators.smart
|
|
526
|
+
"smart-unless*",
|
|
527
|
+
"keep-inputs",
|
|
528
|
+
"reduce-outputs",
|
|
529
|
+
"smart-when*",
|
|
530
|
+
"cleave>array",
|
|
531
|
+
"smart-with",
|
|
532
|
+
"smart-apply",
|
|
533
|
+
"smart-if",
|
|
534
|
+
"inputs/outputs",
|
|
535
|
+
"output>sequence-n",
|
|
536
|
+
"map-outputs",
|
|
537
|
+
"map-reduce-outputs",
|
|
538
|
+
"dropping",
|
|
539
|
+
"output>array",
|
|
540
|
+
"smart-map-reduce",
|
|
541
|
+
"smart-2map-reduce",
|
|
542
|
+
"output>array-n",
|
|
543
|
+
"nullary",
|
|
544
|
+
"input<sequence",
|
|
545
|
+
"append-outputs",
|
|
546
|
+
"drop-inputs",
|
|
547
|
+
"inputs",
|
|
548
|
+
"smart-2reduce",
|
|
549
|
+
"drop-outputs",
|
|
550
|
+
"smart-reduce",
|
|
551
|
+
"preserving",
|
|
552
|
+
"smart-when",
|
|
553
|
+
"outputs",
|
|
554
|
+
"append-outputs-as",
|
|
555
|
+
"smart-unless",
|
|
556
|
+
"smart-if*",
|
|
557
|
+
"sum-outputs",
|
|
558
|
+
"input<sequence-unsafe",
|
|
559
|
+
"output>sequence"
|
|
560
|
+
// tafn
|
|
561
|
+
];
|
|
562
|
+
s.combinators.pattern = a(c), p.languages.factor = s;
|
|
563
|
+
})(u);
|
|
564
|
+
}
|
|
565
|
+
return n;
|
|
566
|
+
}
|
|
567
|
+
export {
|
|
568
|
+
m as __require
|
|
569
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var e, r;
|
|
2
|
+
function s() {
|
|
3
|
+
if (r)
|
|
4
|
+
return e;
|
|
5
|
+
r = 1, e = a, a.displayName = "$false", a.aliases = [];
|
|
6
|
+
function a(t) {
|
|
7
|
+
(function(n) {
|
|
8
|
+
n.languages.false = {
|
|
9
|
+
comment: {
|
|
10
|
+
pattern: /\{[^}]*\}/
|
|
11
|
+
},
|
|
12
|
+
string: {
|
|
13
|
+
pattern: /"[^"]*"/,
|
|
14
|
+
greedy: !0
|
|
15
|
+
},
|
|
16
|
+
"character-code": {
|
|
17
|
+
pattern: /'(?:[^\r]|\r\n?)/,
|
|
18
|
+
alias: "number"
|
|
19
|
+
},
|
|
20
|
+
"assembler-code": {
|
|
21
|
+
pattern: /\d+`/,
|
|
22
|
+
alias: "important"
|
|
23
|
+
},
|
|
24
|
+
number: /\d+/,
|
|
25
|
+
operator: /[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,
|
|
26
|
+
punctuation: /\[|\]/,
|
|
27
|
+
variable: /[a-z]/,
|
|
28
|
+
"non-standard": {
|
|
29
|
+
pattern: /[()<BDO®]/,
|
|
30
|
+
alias: "bold"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
})(t);
|
|
34
|
+
}
|
|
35
|
+
return e;
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
s as __require
|
|
39
|
+
};
|