@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,206 @@
|
|
|
1
|
+
var i, p;
|
|
2
|
+
function u() {
|
|
3
|
+
if (p)
|
|
4
|
+
return i;
|
|
5
|
+
p = 1, i = r, r.displayName = "bash", r.aliases = ["shell"];
|
|
6
|
+
function r(l) {
|
|
7
|
+
(function(e) {
|
|
8
|
+
var n = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", s = {
|
|
9
|
+
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
10
|
+
lookbehind: !0,
|
|
11
|
+
alias: "punctuation",
|
|
12
|
+
// this looks reasonably well in all themes
|
|
13
|
+
inside: null
|
|
14
|
+
// see below
|
|
15
|
+
}, t = {
|
|
16
|
+
bash: s,
|
|
17
|
+
environment: {
|
|
18
|
+
pattern: RegExp("\\$" + n),
|
|
19
|
+
alias: "constant"
|
|
20
|
+
},
|
|
21
|
+
variable: [
|
|
22
|
+
// [0]: Arithmetic Environment
|
|
23
|
+
{
|
|
24
|
+
pattern: /\$?\(\([\s\S]+?\)\)/,
|
|
25
|
+
greedy: !0,
|
|
26
|
+
inside: {
|
|
27
|
+
// If there is a $ sign at the beginning highlight $(( and )) as variable
|
|
28
|
+
variable: [{
|
|
29
|
+
pattern: /(^\$\(\([\s\S]+)\)\)/,
|
|
30
|
+
lookbehind: !0
|
|
31
|
+
}, /^\$\(\(/],
|
|
32
|
+
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
|
|
33
|
+
// Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
|
|
34
|
+
operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
|
|
35
|
+
// If there is no $ sign at the beginning highlight (( and )) as punctuation
|
|
36
|
+
punctuation: /\(\(?|\)\)?|,|;/
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
// [1]: Command Substitution
|
|
40
|
+
{
|
|
41
|
+
pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
|
|
42
|
+
greedy: !0,
|
|
43
|
+
inside: {
|
|
44
|
+
variable: /^\$\(|^`|\)$|`$/
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
// [2]: Brace expansion
|
|
48
|
+
{
|
|
49
|
+
pattern: /\$\{[^}]+\}/,
|
|
50
|
+
greedy: !0,
|
|
51
|
+
inside: {
|
|
52
|
+
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
53
|
+
punctuation: /[\[\]]/,
|
|
54
|
+
environment: {
|
|
55
|
+
pattern: RegExp("(\\{)" + n),
|
|
56
|
+
lookbehind: !0,
|
|
57
|
+
alias: "constant"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
/\$(?:\w+|[#?*!@$])/
|
|
62
|
+
],
|
|
63
|
+
// Escape sequences from echo and printf's manuals, and escaped quotes.
|
|
64
|
+
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
65
|
+
};
|
|
66
|
+
e.languages.bash = {
|
|
67
|
+
shebang: {
|
|
68
|
+
pattern: /^#!\s*\/.*/,
|
|
69
|
+
alias: "important"
|
|
70
|
+
},
|
|
71
|
+
comment: {
|
|
72
|
+
pattern: /(^|[^"{\\$])#.*/,
|
|
73
|
+
lookbehind: !0
|
|
74
|
+
},
|
|
75
|
+
"function-name": [
|
|
76
|
+
// a) function foo {
|
|
77
|
+
// b) foo() {
|
|
78
|
+
// c) function foo() {
|
|
79
|
+
// but not “foo {”
|
|
80
|
+
{
|
|
81
|
+
// a) and c)
|
|
82
|
+
pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
|
|
83
|
+
lookbehind: !0,
|
|
84
|
+
alias: "function"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
// b)
|
|
88
|
+
pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
|
|
89
|
+
alias: "function"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
// Highlight variable names as variables in for and select beginnings.
|
|
93
|
+
"for-or-select": {
|
|
94
|
+
pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
|
|
95
|
+
alias: "variable",
|
|
96
|
+
lookbehind: !0
|
|
97
|
+
},
|
|
98
|
+
// Highlight variable names as variables in the left-hand part
|
|
99
|
+
// of assignments (“=” and “+=”).
|
|
100
|
+
"assign-left": {
|
|
101
|
+
pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,
|
|
102
|
+
inside: {
|
|
103
|
+
environment: {
|
|
104
|
+
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + n),
|
|
105
|
+
lookbehind: !0,
|
|
106
|
+
alias: "constant"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
alias: "variable",
|
|
110
|
+
lookbehind: !0
|
|
111
|
+
},
|
|
112
|
+
string: [
|
|
113
|
+
// Support for Here-documents https://en.wikipedia.org/wiki/Here_document
|
|
114
|
+
{
|
|
115
|
+
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
116
|
+
lookbehind: !0,
|
|
117
|
+
greedy: !0,
|
|
118
|
+
inside: t
|
|
119
|
+
},
|
|
120
|
+
// Here-document with quotes around the tag
|
|
121
|
+
// → No expansion (so no “inside”).
|
|
122
|
+
{
|
|
123
|
+
pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
|
|
124
|
+
lookbehind: !0,
|
|
125
|
+
greedy: !0,
|
|
126
|
+
inside: {
|
|
127
|
+
bash: s
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
// “Normal” string
|
|
131
|
+
{
|
|
132
|
+
// https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
|
|
133
|
+
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
134
|
+
lookbehind: !0,
|
|
135
|
+
greedy: !0,
|
|
136
|
+
inside: t
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
140
|
+
pattern: /(^|[^$\\])'[^']*'/,
|
|
141
|
+
lookbehind: !0,
|
|
142
|
+
greedy: !0
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
// https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
|
|
146
|
+
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
147
|
+
greedy: !0,
|
|
148
|
+
inside: {
|
|
149
|
+
entity: t.entity
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
environment: {
|
|
154
|
+
pattern: RegExp("\\$?" + n),
|
|
155
|
+
alias: "constant"
|
|
156
|
+
},
|
|
157
|
+
variable: t.variable,
|
|
158
|
+
function: {
|
|
159
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
160
|
+
lookbehind: !0
|
|
161
|
+
},
|
|
162
|
+
keyword: {
|
|
163
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
|
|
164
|
+
lookbehind: !0
|
|
165
|
+
},
|
|
166
|
+
// https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
|
|
167
|
+
builtin: {
|
|
168
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
|
|
169
|
+
lookbehind: !0,
|
|
170
|
+
// Alias added to make those easier to distinguish from strings.
|
|
171
|
+
alias: "class-name"
|
|
172
|
+
},
|
|
173
|
+
boolean: {
|
|
174
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
|
|
175
|
+
lookbehind: !0
|
|
176
|
+
},
|
|
177
|
+
"file-descriptor": {
|
|
178
|
+
pattern: /\B&\d\b/,
|
|
179
|
+
alias: "important"
|
|
180
|
+
},
|
|
181
|
+
operator: {
|
|
182
|
+
// Lots of redirections here, but not just that.
|
|
183
|
+
pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
|
|
184
|
+
inside: {
|
|
185
|
+
"file-descriptor": {
|
|
186
|
+
pattern: /^\d/,
|
|
187
|
+
alias: "important"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
|
|
192
|
+
number: {
|
|
193
|
+
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
194
|
+
lookbehind: !0
|
|
195
|
+
}
|
|
196
|
+
}, s.inside = e.languages.bash;
|
|
197
|
+
for (var o = ["comment", "function-name", "for-or-select", "assign-left", "string", "environment", "function", "keyword", "builtin", "boolean", "file-descriptor", "operator", "punctuation", "number"], d = t.variable[1].inside, a = 0; a < o.length; a++)
|
|
198
|
+
d[o[a]] = e.languages.bash[o[a]];
|
|
199
|
+
e.languages.shell = e.languages.bash;
|
|
200
|
+
})(l);
|
|
201
|
+
}
|
|
202
|
+
return i;
|
|
203
|
+
}
|
|
204
|
+
export {
|
|
205
|
+
u as __require
|
|
206
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var T, R;
|
|
2
|
+
function N() {
|
|
3
|
+
if (R)
|
|
4
|
+
return T;
|
|
5
|
+
R = 1, T = E, E.displayName = "basic", E.aliases = [];
|
|
6
|
+
function E(I) {
|
|
7
|
+
I.languages.basic = {
|
|
8
|
+
comment: {
|
|
9
|
+
pattern: /(?:!|REM\b).+/i,
|
|
10
|
+
inside: {
|
|
11
|
+
keyword: /^REM/i
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
string: {
|
|
15
|
+
pattern: /"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,
|
|
16
|
+
greedy: !0
|
|
17
|
+
},
|
|
18
|
+
number: /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,
|
|
19
|
+
keyword: /\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,
|
|
20
|
+
function: /\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,
|
|
21
|
+
operator: /<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,
|
|
22
|
+
punctuation: /[,;:()]/
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return T;
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
N as __require
|
|
29
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
var i, o;
|
|
2
|
+
function d() {
|
|
3
|
+
if (o)
|
|
4
|
+
return i;
|
|
5
|
+
o = 1, i = n, n.displayName = "batch", n.aliases = [];
|
|
6
|
+
function n(b) {
|
|
7
|
+
(function(s) {
|
|
8
|
+
var e = /%%?[~:\w]+%?|!\S+!/, r = {
|
|
9
|
+
pattern: /\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,
|
|
10
|
+
alias: "attr-name",
|
|
11
|
+
inside: {
|
|
12
|
+
punctuation: /:/
|
|
13
|
+
}
|
|
14
|
+
}, t = /"(?:[\\"]"|[^"])*"(?!")/, a = /(?:\b|-)\d+\b/;
|
|
15
|
+
s.languages.batch = {
|
|
16
|
+
comment: [/^::.*/m, {
|
|
17
|
+
pattern: /((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,
|
|
18
|
+
lookbehind: !0
|
|
19
|
+
}],
|
|
20
|
+
label: {
|
|
21
|
+
pattern: /^:.*/m,
|
|
22
|
+
alias: "property"
|
|
23
|
+
},
|
|
24
|
+
command: [{
|
|
25
|
+
// FOR command
|
|
26
|
+
pattern: /((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,
|
|
27
|
+
lookbehind: !0,
|
|
28
|
+
inside: {
|
|
29
|
+
keyword: /\b(?:do|in)\b|^for\b/i,
|
|
30
|
+
string: t,
|
|
31
|
+
parameter: r,
|
|
32
|
+
variable: e,
|
|
33
|
+
number: a,
|
|
34
|
+
punctuation: /[()',]/
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
37
|
+
// IF command
|
|
38
|
+
pattern: /((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,
|
|
39
|
+
lookbehind: !0,
|
|
40
|
+
inside: {
|
|
41
|
+
keyword: /\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,
|
|
42
|
+
string: t,
|
|
43
|
+
parameter: r,
|
|
44
|
+
variable: e,
|
|
45
|
+
number: a,
|
|
46
|
+
operator: /\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
// ELSE command
|
|
50
|
+
pattern: /((?:^|[&()])[ \t]*)else\b/im,
|
|
51
|
+
lookbehind: !0,
|
|
52
|
+
inside: {
|
|
53
|
+
keyword: /^else\b/i
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
// SET command
|
|
57
|
+
pattern: /((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,
|
|
58
|
+
lookbehind: !0,
|
|
59
|
+
inside: {
|
|
60
|
+
keyword: /^set\b/i,
|
|
61
|
+
string: t,
|
|
62
|
+
parameter: r,
|
|
63
|
+
variable: [e, /\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],
|
|
64
|
+
number: a,
|
|
65
|
+
operator: /[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,
|
|
66
|
+
punctuation: /[()',]/
|
|
67
|
+
}
|
|
68
|
+
}, {
|
|
69
|
+
// Other commands
|
|
70
|
+
pattern: /((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,
|
|
71
|
+
lookbehind: !0,
|
|
72
|
+
inside: {
|
|
73
|
+
keyword: /^\w+\b/,
|
|
74
|
+
string: t,
|
|
75
|
+
parameter: r,
|
|
76
|
+
label: {
|
|
77
|
+
pattern: /(^\s*):\S+/m,
|
|
78
|
+
lookbehind: !0,
|
|
79
|
+
alias: "property"
|
|
80
|
+
},
|
|
81
|
+
variable: e,
|
|
82
|
+
number: a,
|
|
83
|
+
operator: /\^/
|
|
84
|
+
}
|
|
85
|
+
}],
|
|
86
|
+
operator: /[&@]/,
|
|
87
|
+
punctuation: /[()']/
|
|
88
|
+
};
|
|
89
|
+
})(b);
|
|
90
|
+
}
|
|
91
|
+
return i;
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
d as __require
|
|
95
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var a, s;
|
|
2
|
+
function n() {
|
|
3
|
+
if (s)
|
|
4
|
+
return a;
|
|
5
|
+
s = 1, a = e, e.displayName = "bbcode", e.aliases = ["shortcode"];
|
|
6
|
+
function e(t) {
|
|
7
|
+
t.languages.bbcode = {
|
|
8
|
+
tag: {
|
|
9
|
+
pattern: /\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,
|
|
10
|
+
inside: {
|
|
11
|
+
tag: {
|
|
12
|
+
pattern: /^\[\/?[^\s=\]]+/,
|
|
13
|
+
inside: {
|
|
14
|
+
punctuation: /^\[\/?/
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"attr-value": {
|
|
18
|
+
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,
|
|
19
|
+
inside: {
|
|
20
|
+
punctuation: [/^=/, {
|
|
21
|
+
pattern: /^(\s*)["']|["']$/,
|
|
22
|
+
lookbehind: !0
|
|
23
|
+
}]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
punctuation: /\]/,
|
|
27
|
+
"attr-name": /[^\s=\]]+/
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, t.languages.shortcode = t.languages.bbcode;
|
|
31
|
+
}
|
|
32
|
+
return a;
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
n as __require
|
|
36
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var r, n;
|
|
2
|
+
function i() {
|
|
3
|
+
if (n)
|
|
4
|
+
return r;
|
|
5
|
+
n = 1, r = e, e.displayName = "bicep", e.aliases = [];
|
|
6
|
+
function e(t) {
|
|
7
|
+
t.languages.bicep = {
|
|
8
|
+
comment: [{
|
|
9
|
+
// multiline comments eg /* ASDF */
|
|
10
|
+
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
11
|
+
lookbehind: !0,
|
|
12
|
+
greedy: !0
|
|
13
|
+
}, {
|
|
14
|
+
// singleline comments eg // ASDF
|
|
15
|
+
pattern: /(^|[^\\:])\/\/.*/,
|
|
16
|
+
lookbehind: !0,
|
|
17
|
+
greedy: !0
|
|
18
|
+
}],
|
|
19
|
+
property: [{
|
|
20
|
+
pattern: /([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,
|
|
21
|
+
lookbehind: !0
|
|
22
|
+
}, {
|
|
23
|
+
pattern: /([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,
|
|
24
|
+
lookbehind: !0,
|
|
25
|
+
greedy: !0
|
|
26
|
+
}],
|
|
27
|
+
string: [{
|
|
28
|
+
pattern: /'''[^'][\s\S]*?'''/,
|
|
29
|
+
greedy: !0
|
|
30
|
+
}, {
|
|
31
|
+
pattern: /(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,
|
|
32
|
+
lookbehind: !0,
|
|
33
|
+
greedy: !0
|
|
34
|
+
}],
|
|
35
|
+
"interpolated-string": {
|
|
36
|
+
pattern: /(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,
|
|
37
|
+
lookbehind: !0,
|
|
38
|
+
greedy: !0,
|
|
39
|
+
inside: {
|
|
40
|
+
interpolation: {
|
|
41
|
+
pattern: /\$\{[^{}\r\n]*\}/,
|
|
42
|
+
inside: {
|
|
43
|
+
expression: {
|
|
44
|
+
pattern: /(^\$\{)[\s\S]+(?=\}$)/,
|
|
45
|
+
lookbehind: !0
|
|
46
|
+
},
|
|
47
|
+
punctuation: /^\$\{|\}$/
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
string: /[\s\S]+/
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
datatype: {
|
|
54
|
+
pattern: /(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,
|
|
55
|
+
lookbehind: !0,
|
|
56
|
+
alias: "class-name"
|
|
57
|
+
},
|
|
58
|
+
boolean: /\b(?:false|true)\b/,
|
|
59
|
+
// https://github.com/Azure/bicep/blob/114a3251b4e6e30082a58729f19a8cc4e374ffa6/src/textmate/bicep.tmlanguage#L184
|
|
60
|
+
keyword: /\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,
|
|
61
|
+
decorator: /@\w+\b/,
|
|
62
|
+
function: /\b[a-z_]\w*(?=[ \t]*\()/i,
|
|
63
|
+
number: /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,
|
|
64
|
+
operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,
|
|
65
|
+
punctuation: /[{}[\];(),.:]/
|
|
66
|
+
}, t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside = t.languages.bicep;
|
|
67
|
+
}
|
|
68
|
+
return r;
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
i as __require
|
|
72
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var a, t;
|
|
2
|
+
function i() {
|
|
3
|
+
if (t)
|
|
4
|
+
return a;
|
|
5
|
+
t = 1, a = e, e.displayName = "birb", e.aliases = [];
|
|
6
|
+
function e(r) {
|
|
7
|
+
r.languages.birb = r.languages.extend("clike", {
|
|
8
|
+
string: {
|
|
9
|
+
pattern: /r?("|')(?:\\.|(?!\1)[^\\])*\1/,
|
|
10
|
+
greedy: !0
|
|
11
|
+
},
|
|
12
|
+
"class-name": [
|
|
13
|
+
/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,
|
|
14
|
+
// matches variable and function return types (parameters as well).
|
|
15
|
+
/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/
|
|
16
|
+
],
|
|
17
|
+
keyword: /\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,
|
|
18
|
+
operator: /\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,
|
|
19
|
+
variable: /\b[a-z_]\w*\b/
|
|
20
|
+
}), r.languages.insertBefore("birb", "function", {
|
|
21
|
+
metadata: {
|
|
22
|
+
pattern: /<\w+>/,
|
|
23
|
+
greedy: !0,
|
|
24
|
+
alias: "symbol"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return a;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
i as __require
|
|
32
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __require as t } from "./c.mjs";
|
|
2
|
+
var a, r;
|
|
3
|
+
function o() {
|
|
4
|
+
if (r)
|
|
5
|
+
return a;
|
|
6
|
+
r = 1;
|
|
7
|
+
var i = t();
|
|
8
|
+
a = n, n.displayName = "bison", n.aliases = [];
|
|
9
|
+
function n(e) {
|
|
10
|
+
e.register(i), e.languages.bison = e.languages.extend("c", {}), e.languages.insertBefore("bison", "comment", {
|
|
11
|
+
bison: {
|
|
12
|
+
// This should match all the beginning of the file
|
|
13
|
+
// including the prologue(s), the bison declarations and
|
|
14
|
+
// the grammar rules.
|
|
15
|
+
pattern: /^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,
|
|
16
|
+
inside: {
|
|
17
|
+
c: {
|
|
18
|
+
// Allow for one level of nested braces
|
|
19
|
+
pattern: /%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,
|
|
20
|
+
inside: {
|
|
21
|
+
delimiter: {
|
|
22
|
+
pattern: /^%?\{|%?\}$/,
|
|
23
|
+
alias: "punctuation"
|
|
24
|
+
},
|
|
25
|
+
"bison-variable": {
|
|
26
|
+
pattern: /[$@](?:<[^\s>]+>)?[\w$]+/,
|
|
27
|
+
alias: "variable",
|
|
28
|
+
inside: {
|
|
29
|
+
punctuation: /<|>/
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
rest: e.languages.c
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
comment: e.languages.c.comment,
|
|
36
|
+
string: e.languages.c.string,
|
|
37
|
+
property: /\S+(?=:)/,
|
|
38
|
+
keyword: /%\w+/,
|
|
39
|
+
number: {
|
|
40
|
+
pattern: /(^|[^@])\b(?:0x[\da-f]+|\d+)/i,
|
|
41
|
+
lookbehind: !0
|
|
42
|
+
},
|
|
43
|
+
punctuation: /%[%?]|[|:;\[\]<>]/
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return a;
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
o as __require
|
|
52
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var e, a;
|
|
2
|
+
function t() {
|
|
3
|
+
if (a)
|
|
4
|
+
return e;
|
|
5
|
+
a = 1, e = n, n.displayName = "bnf", n.aliases = ["rbnf"];
|
|
6
|
+
function n(r) {
|
|
7
|
+
r.languages.bnf = {
|
|
8
|
+
string: {
|
|
9
|
+
pattern: /"[^\r\n"]*"|'[^\r\n']*'/
|
|
10
|
+
},
|
|
11
|
+
definition: {
|
|
12
|
+
pattern: /<[^<>\r\n\t]+>(?=\s*::=)/,
|
|
13
|
+
alias: ["rule", "keyword"],
|
|
14
|
+
inside: {
|
|
15
|
+
punctuation: /^<|>$/
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
rule: {
|
|
19
|
+
pattern: /<[^<>\r\n\t]+>/,
|
|
20
|
+
inside: {
|
|
21
|
+
punctuation: /^<|>$/
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
operator: /::=|[|()[\]{}*+?]|\.{3}/
|
|
25
|
+
}, r.languages.rbnf = r.languages.bnf;
|
|
26
|
+
}
|
|
27
|
+
return e;
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
t as __require
|
|
31
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var r, e;
|
|
2
|
+
function i() {
|
|
3
|
+
if (e)
|
|
4
|
+
return r;
|
|
5
|
+
e = 1, r = a, a.displayName = "brainfuck", a.aliases = [];
|
|
6
|
+
function a(n) {
|
|
7
|
+
n.languages.brainfuck = {
|
|
8
|
+
pointer: {
|
|
9
|
+
pattern: /<|>/,
|
|
10
|
+
alias: "keyword"
|
|
11
|
+
},
|
|
12
|
+
increment: {
|
|
13
|
+
pattern: /\+/,
|
|
14
|
+
alias: "inserted"
|
|
15
|
+
},
|
|
16
|
+
decrement: {
|
|
17
|
+
pattern: /-/,
|
|
18
|
+
alias: "deleted"
|
|
19
|
+
},
|
|
20
|
+
branching: {
|
|
21
|
+
pattern: /\[|\]/,
|
|
22
|
+
alias: "important"
|
|
23
|
+
},
|
|
24
|
+
operator: /[.,]/,
|
|
25
|
+
comment: /\S+/
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return r;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
i as __require
|
|
32
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var r, i;
|
|
2
|
+
function n() {
|
|
3
|
+
if (i)
|
|
4
|
+
return r;
|
|
5
|
+
i = 1, r = e, e.displayName = "brightscript", e.aliases = [];
|
|
6
|
+
function e(t) {
|
|
7
|
+
t.languages.brightscript = {
|
|
8
|
+
comment: /(?:\brem|').*/i,
|
|
9
|
+
"directive-statement": {
|
|
10
|
+
pattern: /(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,
|
|
11
|
+
lookbehind: !0,
|
|
12
|
+
alias: "property",
|
|
13
|
+
inside: {
|
|
14
|
+
"error-message": {
|
|
15
|
+
pattern: /(^#error).+/,
|
|
16
|
+
lookbehind: !0
|
|
17
|
+
},
|
|
18
|
+
directive: {
|
|
19
|
+
pattern: /^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,
|
|
20
|
+
alias: "keyword"
|
|
21
|
+
},
|
|
22
|
+
expression: {
|
|
23
|
+
pattern: /[\s\S]+/,
|
|
24
|
+
inside: null
|
|
25
|
+
// see below
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
property: {
|
|
30
|
+
pattern: /([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,
|
|
31
|
+
lookbehind: !0,
|
|
32
|
+
greedy: !0
|
|
33
|
+
},
|
|
34
|
+
string: {
|
|
35
|
+
pattern: /"(?:[^"\r\n]|"")*"(?!")/,
|
|
36
|
+
greedy: !0
|
|
37
|
+
},
|
|
38
|
+
"class-name": {
|
|
39
|
+
pattern: /(\bAs[\t ]+)\w+/i,
|
|
40
|
+
lookbehind: !0
|
|
41
|
+
},
|
|
42
|
+
keyword: /\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,
|
|
43
|
+
boolean: /\b(?:false|true)\b/i,
|
|
44
|
+
function: /\b(?!\d)\w+(?=[\t ]*\()/,
|
|
45
|
+
number: /(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,
|
|
46
|
+
operator: /--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,
|
|
47
|
+
punctuation: /[.,;()[\]{}]/,
|
|
48
|
+
constant: /\b(?:LINE_NUM)\b/i
|
|
49
|
+
}, t.languages.brightscript["directive-statement"].inside.expression.inside = t.languages.brightscript;
|
|
50
|
+
}
|
|
51
|
+
return r;
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
n as __require
|
|
55
|
+
};
|