matcha-components 20.12.0 → 20.15.0
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/assets/open_in_new.png +0 -0
- package/index.ts +1 -0
- package/ng-package.json +7 -0
- package/package.json +6 -19
- package/src/documentation/components/matcha-drawer.mdx +469 -0
- package/src/documentation/foundation/borders/border-radius.mdx +145 -0
- package/src/documentation/foundation/borders/border-size.mdx +111 -0
- package/src/documentation/foundation/borders/border-style.mdx +144 -0
- package/src/documentation/foundation/colors/all-colors.mdx +153 -0
- package/src/documentation/foundation/colors/base/amber.mdx +235 -0
- package/src/documentation/foundation/colors/base/blue.mdx +235 -0
- package/src/documentation/foundation/colors/base/cyan.mdx +235 -0
- package/src/documentation/foundation/colors/base/deep-orange.mdx +235 -0
- package/src/documentation/foundation/colors/base/deep-purple.mdx +235 -0
- package/src/documentation/foundation/colors/base/green.mdx +235 -0
- package/src/documentation/foundation/colors/base/indigo.mdx +235 -0
- package/src/documentation/foundation/colors/base/light-blue.mdx +235 -0
- package/src/documentation/foundation/colors/base/light-green.mdx +235 -0
- package/src/documentation/foundation/colors/base/lime.mdx +235 -0
- package/src/documentation/foundation/colors/base/orange.mdx +235 -0
- package/src/documentation/foundation/colors/base/pink.mdx +235 -0
- package/src/documentation/foundation/colors/base/purple.mdx +235 -0
- package/src/documentation/foundation/colors/base/red.mdx +235 -0
- package/src/documentation/foundation/colors/base/teal.mdx +235 -0
- package/src/documentation/foundation/colors/base/yellow.mdx +235 -0
- package/src/documentation/foundation/colors/surface-colors.mdx +93 -0
- package/src/documentation/foundation/colors/theme/accent.mdx +235 -0
- package/src/documentation/foundation/colors/theme/primary.mdx +235 -0
- package/src/documentation/foundation/colors/theme/warn.mdx +235 -0
- package/src/documentation/foundation/displays/display-block.mdx +134 -0
- package/src/documentation/foundation/displays/display-flex.mdx +134 -0
- package/src/documentation/foundation/displays/display-grid.mdx +134 -0
- package/src/documentation/foundation/displays/display-inline-block.mdx +134 -0
- package/src/documentation/foundation/displays/display-inline-flex.mdx +134 -0
- package/src/documentation/foundation/displays/display-inline.mdx +134 -0
- package/src/documentation/foundation/displays/display-none.mdx +134 -0
- package/src/documentation/foundation/displays/display-table-cell.mdx +134 -0
- package/src/documentation/foundation/displays/display-table-row.mdx +134 -0
- package/src/documentation/foundation/displays/display-table.mdx +134 -0
- package/src/documentation/foundation/flexbox/flexbox.mdx +420 -0
- package/src/documentation/foundation/opacity/opacity.mdx +104 -0
- package/src/documentation/foundation/position/alignment.mdx +148 -0
- package/src/documentation/foundation/sizes/height/heights.mdx +96 -0
- package/src/documentation/foundation/sizes/height/max-heights.mdx +96 -0
- package/src/documentation/foundation/sizes/height/min-heights.mdx +96 -0
- package/src/documentation/foundation/sizes/width/max-width.mdx +95 -0
- package/src/documentation/foundation/sizes/width/min-width.mdx +96 -0
- package/src/documentation/foundation/sizes/width/widths.mdx +96 -0
- package/src/documentation/foundation/spacing/margins.mdx +227 -0
- package/src/documentation/foundation/spacing/paddings.mdx +225 -0
- package/src/documentation/foundation/typography/colors.mdx +26 -0
- package/src/documentation/foundation/typography/font-size.mdx +57 -0
- package/src/documentation/foundation/typography/font-weight.mdx +85 -0
- package/src/documentation/foundation/typography/letter-spacing.mdx +35 -0
- package/src/documentation/foundation/typography/line-clamp.mdx +145 -0
- package/src/documentation/foundation/typography/line-height.mdx +52 -0
- package/src/documentation/foundation/typography/message-box.mdx +43 -0
- package/src/documentation/foundation/typography/paragraph.mdx +165 -0
- package/src/documentation/foundation/typography/text-align.mdx +22 -0
- package/src/documentation/foundation/typography/text-styles.mdx +88 -0
- package/src/documentation/presentation.mdx +591 -0
- package/src/documentation/services/matcha-breakpoint-observer.mdx +310 -0
- package/src/documentation/tokens/animations.mdx +116 -0
- package/src/documentation/tokens/breakpoints.mdx +57 -0
- package/src/documentation/tokens/colors.mdx +1884 -0
- package/src/documentation/tokens/elevations.mdx +50 -0
- package/src/documentation/tokens/sizes.mdx +150 -0
- package/src/lib/matcha-accordion/accordion/accordion.component.html +1 -0
- package/src/lib/matcha-accordion/accordion/accordion.component.scss +0 -0
- package/src/lib/matcha-accordion/accordion/accordion.component.ts +72 -0
- package/src/lib/matcha-accordion/accordion-content/accordion-content.component.html +1 -0
- package/src/lib/matcha-accordion/accordion-content/accordion-content.component.scss +0 -0
- package/src/lib/matcha-accordion/accordion-content/accordion-content.component.ts +11 -0
- package/src/lib/matcha-accordion/accordion-header/accordion-header.component.html +1 -0
- package/src/lib/matcha-accordion/accordion-header/accordion-header.component.scss +0 -0
- package/src/lib/matcha-accordion/accordion-header/accordion-header.component.ts +11 -0
- package/src/lib/matcha-accordion/accordion-item/accordion-item.component.html +13 -0
- package/src/lib/matcha-accordion/accordion-item/accordion-item.component.scss +0 -0
- package/src/lib/matcha-accordion/accordion-item/accordion-item.component.ts +63 -0
- package/src/lib/matcha-accordion/accordion.module.ts +37 -0
- package/src/lib/matcha-accordion/accordion.stories.ts +108 -0
- package/src/lib/matcha-animations/animations.ts +406 -0
- package/src/lib/matcha-autocomplete/README.md +185 -0
- package/src/lib/matcha-autocomplete/matcha-autocomplete.component.html +13 -0
- package/src/lib/matcha-autocomplete/matcha-autocomplete.component.ts +238 -0
- package/src/lib/matcha-autocomplete/matcha-autocomplete.directive.ts +153 -0
- package/src/lib/matcha-autocomplete/matcha-autocomplete.module.ts +30 -0
- package/src/lib/matcha-autocomplete/matcha-autocomplete.stories.ts +172 -0
- package/src/lib/matcha-avatar/avatar/avatar.component.html +29 -0
- package/src/lib/matcha-avatar/avatar/avatar.component.scss +0 -0
- package/src/lib/matcha-avatar/avatar/avatar.component.ts +78 -0
- package/src/lib/matcha-avatar/avatar.module.ts +17 -0
- package/src/lib/matcha-badge/badge.argtypes.ts +77 -0
- package/src/lib/matcha-badge/badge.directive.ts +12 -0
- package/src/lib/matcha-badge/badge.mdx +69 -0
- package/src/lib/matcha-badge/badge.module.ts +9 -0
- package/src/lib/matcha-badge/badge.stories.ts +79 -0
- package/src/lib/matcha-breakpoint-observable/breakpoint-observable.module.ts +23 -0
- package/src/lib/matcha-breakpoint-observable/breakpoint-observer.service.ts +215 -0
- package/src/lib/matcha-breakpoint-observable/index.ts +2 -0
- package/src/lib/matcha-button/button/button.component.html +1 -0
- package/src/lib/matcha-button/button/button.component.scss +0 -0
- package/src/lib/matcha-button/button/button.component.ts +182 -0
- package/src/lib/matcha-button/button.argtypes.ts +105 -0
- package/src/lib/matcha-button/button.module.ts +10 -0
- package/src/lib/matcha-button/button.stories.ts +552 -0
- package/src/lib/matcha-button-toggle/button-toggle/button-toggle.component.html +8 -0
- package/src/lib/matcha-button-toggle/button-toggle/button-toggle.component.scss +0 -0
- package/src/lib/matcha-button-toggle/button-toggle/button-toggle.component.ts +87 -0
- package/src/lib/matcha-button-toggle/button-toggle.module.ts +16 -0
- package/src/lib/matcha-button-toggle/button-toggle.stories.ts +106 -0
- package/src/lib/matcha-card/card/card.component.html +1 -0
- package/src/lib/matcha-card/card/card.component.scss +0 -0
- package/src/lib/matcha-card/card/card.component.ts +86 -0
- package/src/lib/matcha-card/card-argtype.ts +54 -0
- package/src/lib/matcha-card/card.module.ts +22 -0
- package/src/lib/matcha-card/card.stories.ts +339 -0
- package/src/lib/matcha-checkbox/checkbox/checkbox.component.html +19 -0
- package/src/lib/matcha-checkbox/checkbox/checkbox.component.scss +0 -0
- package/src/lib/matcha-checkbox/checkbox/checkbox.component.ts +79 -0
- package/src/lib/matcha-checkbox/checkbox.module.ts +15 -0
- package/src/lib/matcha-checkbox/checkbox.stories.ts +391 -0
- package/src/lib/matcha-components.module.ts +149 -0
- package/src/lib/matcha-date-range/date-range/date-range.component.html +3 -0
- package/src/lib/matcha-date-range/date-range/date-range.component.scss +0 -0
- package/src/lib/matcha-date-range/date-range/date-range.component.ts +100 -0
- package/src/lib/matcha-date-range/date-range.module.ts +14 -0
- package/src/lib/matcha-divider/divider/divider.component.html +1 -0
- package/src/lib/matcha-divider/divider/divider.component.scss +0 -0
- package/src/lib/matcha-divider/divider/divider.component.ts +50 -0
- package/src/lib/matcha-divider/divider.argtypes.ts +57 -0
- package/src/lib/matcha-divider/divider.mdx +107 -0
- package/src/lib/matcha-divider/divider.module.ts +14 -0
- package/src/lib/matcha-divider/divider.stories.ts +44 -0
- package/src/lib/matcha-drawer/drawer/drawer.component.html +43 -0
- package/src/lib/matcha-drawer/drawer/drawer.component.ts +358 -0
- package/src/lib/matcha-drawer/drawer-container/drawer-container.component.html +3 -0
- package/src/lib/matcha-drawer/drawer-container/drawer-container.component.ts +36 -0
- package/src/lib/matcha-drawer/drawer-content/drawer-content.component.html +3 -0
- package/src/lib/matcha-drawer/drawer-content/drawer-content.component.ts +24 -0
- package/src/lib/matcha-drawer/drawer.module.ts +28 -0
- package/src/lib/matcha-drop-list/directives/drag-handle.directive.ts +22 -0
- package/src/lib/matcha-drop-list/directives/drag.directive.ts +369 -0
- package/src/lib/matcha-drop-list/drop-list/drop-list.component.html +27 -0
- package/src/lib/matcha-drop-list/drop-list/drop-list.component.ts +380 -0
- package/src/lib/matcha-drop-list/drop-list-argtype.ts +56 -0
- package/src/lib/matcha-drop-list/drop-list.module.ts +27 -0
- package/src/lib/matcha-drop-list/drop-list.stories.ts +314 -0
- package/src/lib/matcha-drop-list/services/drop-list.service.ts +30 -0
- package/src/lib/matcha-elevation/elevation.argtypes.ts +16 -0
- package/src/lib/matcha-elevation/elevation.directive.ts +30 -0
- package/src/lib/matcha-elevation/elevation.module.ts +10 -0
- package/src/lib/matcha-elevation/elevation.stories.ts +60 -0
- package/src/lib/matcha-form-field/form-field.argtype.ts +21 -0
- package/src/lib/matcha-form-field/form-field.stories.ts +45 -0
- package/src/lib/matcha-form-field/matcha-error/matcha-error.component.html +4 -0
- package/src/lib/matcha-form-field/matcha-error/matcha-error.component.scss +0 -0
- package/src/lib/matcha-form-field/matcha-error/matcha-error.component.ts +9 -0
- package/src/lib/matcha-form-field/matcha-form-field/matcha-form-field.component.html +19 -0
- package/src/lib/matcha-form-field/matcha-form-field/matcha-form-field.component.scss +0 -0
- package/src/lib/matcha-form-field/matcha-form-field/matcha-form-field.component.ts +30 -0
- package/src/lib/matcha-form-field/matcha-form-field.module.ts +13 -0
- package/src/lib/matcha-form-field/matcha-label/matcha-label.component.html +7 -0
- package/src/lib/matcha-form-field/matcha-label/matcha-label.component.scss +0 -0
- package/src/lib/matcha-form-field/matcha-label/matcha-label.component.ts +11 -0
- package/src/lib/matcha-grid/grid-argtype.ts +67 -0
- package/src/lib/matcha-grid/grid.component.html +3 -0
- package/src/lib/matcha-grid/grid.component.scss +0 -0
- package/src/lib/matcha-grid/grid.component.ts +114 -0
- package/src/lib/matcha-grid/grid.mdx +60 -0
- package/src/lib/matcha-grid/grid.module.ts +10 -0
- package/src/lib/matcha-grid/grid.stories.ts +125 -0
- package/src/lib/matcha-highlight/copy-button/copy-button.component.html +12 -0
- package/src/lib/matcha-highlight/copy-button/copy-button.component.scss +28 -0
- package/src/lib/matcha-highlight/copy-button/copy-button.component.ts +127 -0
- package/src/lib/matcha-highlight/highlight.component.ts +237 -0
- package/src/lib/matcha-highlight/highlight.module.ts +24 -0
- package/src/lib/matcha-highlight/prism-init.ts +11 -0
- package/src/lib/matcha-highlight/prism-languages.ts +5 -0
- package/src/lib/matcha-highlight/prismjs/components/index.js +82 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-abap.js +48 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-abap.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-abnf.js +54 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-abnf.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-actionscript.js +17 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-actionscript.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ada.js +19 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ada.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-apacheconf.js +47 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-apacheconf.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-apl.js +32 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-apl.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-applescript.js +20 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-applescript.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-arduino.js +5 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-arduino.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-arff.js +10 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-arff.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-asciidoc.js +234 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-asciidoc.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-asm6502.js +28 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-asm6502.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-aspnet.js +36 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-aspnet.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-autohotkey.js +27 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-autohotkey.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-autoit.js +34 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-autoit.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-basic.js +17 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-basic.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-batch.js +99 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-batch.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-bison.js +39 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-bison.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-bnf.js +21 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-bnf.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-brainfuck.js +20 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-brainfuck.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-bro.js +48 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-bro.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-cil.js +27 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-cil.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-clike.js +30 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-clike.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-clojure.js +13 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-clojure.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-cmake.js +29 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-cmake.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-coffeescript.js +92 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-coffeescript.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-core.js +553 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-core.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-crystal.js +51 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-crystal.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-csp.js +25 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-csp.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-css-extras.js +70 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-css-extras.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-css.js +51 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-css.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-d.js +64 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-d.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-dart.js +24 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-dart.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-django.js +60 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-django.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-docker.js +11 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-docker.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ebnf.js +22 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ebnf.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-eiffel.js +37 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-eiffel.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ejs.js +24 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ejs.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-elixir.js +93 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-elixir.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-elm.js +44 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-elm.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-erb.js +20 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-erb.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-erlang.js +44 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-erlang.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-flow.js +35 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-flow.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-fortran.js +40 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-fortran.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-fsharp.js +67 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-fsharp.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-gcode.js +15 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-gcode.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-gedcom.js +28 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-gedcom.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-gherkin.js +79 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-gherkin.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-git.js +68 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-git.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-glsl.js +16 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-glsl.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-gml.js +7 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-gml.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-go.js +12 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-go.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-graphql.js +31 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-graphql.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-groovy.js +65 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-groovy.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-haml.js +154 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-haml.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-handlebars.js +37 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-handlebars.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-haskell.js +38 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-haskell.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-haxe.js +45 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-haxe.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-hcl.js +65 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-hcl.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-hpkp.js +20 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-hpkp.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-hsts.js +20 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-hsts.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-http.js +79 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-http.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ichigojam.js +15 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ichigojam.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-icon.js +20 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-icon.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-inform7.js +61 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-inform7.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ini.js +11 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ini.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-io.js +31 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-io.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-j.js +25 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-j.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-javadoc.js +54 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-javadoc.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-javadoclike.js +86 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-javadoclike.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-javascript.js +86 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-javascript.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-javastacktrace.js +93 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-javastacktrace.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-jolie.js +55 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-jolie.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-js-extras.js +104 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-js-extras.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-jsdoc.js +73 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-jsdoc.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-json5.js +23 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-json5.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-jsonp.js +7 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-jsonp.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-jsx.js +126 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-jsx.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-julia.js +12 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-julia.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-keyman.js +14 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-keyman.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-kotlin.js +62 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-kotlin.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-latex.js +61 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-latex.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-less.js +54 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-less.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-liquid.js +12 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-liquid.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-lisp.js +197 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-lisp.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-livescript.js +119 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-livescript.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-lolcode.js +55 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-lolcode.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-lua.js +20 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-lua.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-makefile.js +34 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-makefile.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-markdown.js +227 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-markdown.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-markup-templating.js +123 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-markup-templating.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-markup.js +100 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-markup.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-matlab.js +16 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-matlab.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-mel.js +43 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-mel.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-mizar.js +12 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-mizar.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-monkey.js +31 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-monkey.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-n1ql.js +18 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-n1ql.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-n4js.js +14 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-n4js.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-nand2tetris-hdl.js +9 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-nand2tetris-hdl.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-nasm.js +24 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-nasm.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-nginx.js +11 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-nginx.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-nim.js +33 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-nim.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-nix.js +40 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-nix.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-nsis.js +29 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-nsis.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-objectivec.js +7 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-objectivec.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ocaml.js +27 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ocaml.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-opencl.js +49 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-opencl.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-oz.js +25 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-oz.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-parigp.js +30 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-parigp.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-parser.js +73 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-parser.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-pascal.js +55 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-pascal.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-php-extras.js +11 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-php-extras.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-phpdoc.js +27 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-phpdoc.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-plsql.js +26 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-plsql.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-powershell.js +60 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-powershell.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-processing.js +18 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-processing.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-prolog.js +20 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-prolog.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-properties.js +9 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-properties.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-protobuf.js +8 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-protobuf.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-pug.js +193 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-pug.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-puppet.js +136 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-puppet.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-pure.js +79 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-pure.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-q.js +51 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-q.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-qore.js +20 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-qore.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-r.js +22 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-r.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-reason.js +32 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-reason.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-regex.js +97 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-regex.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-renpy.js +29 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-renpy.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-rest.js +205 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-rest.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-rip.js +32 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-rip.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-roboconf.js +27 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-roboconf.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ruby.js +143 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-ruby.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-rust.js +68 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-rust.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-sas.js +34 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-sas.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-scala.js +18 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-scala.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-scheme.js +33 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-scheme.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-smalltalk.js +31 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-smalltalk.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-smarty.js +87 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-smarty.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-soy.js +96 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-soy.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-sql.js +24 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-sql.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-stylus.js +111 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-stylus.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-swift.js +25 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-swift.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-t4-cs.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-t4-cs.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-t4-templating.js +49 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-t4-templating.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-t4-vb.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-t4-vb.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-tap.js +20 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-tap.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-tcl.js +46 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-tcl.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-textile.js +260 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-textile.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-toml.js +43 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-toml.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-tsx.js +2 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-tsx.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-tt2.js +56 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-tt2.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-twig.js +46 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-twig.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-vala.js +74 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-vala.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-vbnet.js +15 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-vbnet.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-velocity.js +72 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-velocity.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-verilog.js +20 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-verilog.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-vhdl.js +23 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-vhdl.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-vim.js +10 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-vim.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-visual-basic.js +34 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-visual-basic.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-wasm.js +31 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-wasm.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-wiki.js +81 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-wiki.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-xeora.js +114 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-xeora.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-xojo.js +20 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-xojo.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-xquery.js +164 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-xquery.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-yaml.js +47 -0
- package/src/lib/matcha-highlight/prismjs/components/prism-yaml.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/components.js +2 -0
- package/src/lib/matcha-highlight/prismjs/components.json +1031 -0
- package/src/lib/matcha-highlight/prismjs/plugins/autolinker/prism-autolinker.css +3 -0
- package/src/lib/matcha-highlight/prismjs/plugins/autolinker/prism-autolinker.js +81 -0
- package/src/lib/matcha-highlight/prismjs/plugins/autolinker/prism-autolinker.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/autoloader/prism-autoloader.js +214 -0
- package/src/lib/matcha-highlight/prismjs/plugins/autoloader/prism-autoloader.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/command-line/prism-command-line.css +33 -0
- package/src/lib/matcha-highlight/prismjs/plugins/command-line/prism-command-line.js +139 -0
- package/src/lib/matcha-highlight/prismjs/plugins/command-line/prism-command-line.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard.js +75 -0
- package/src/lib/matcha-highlight/prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/custom-class/prism-custom-class.js +31 -0
- package/src/lib/matcha-highlight/prismjs/plugins/custom-class/prism-custom-class.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/data-uri-highlight/prism-data-uri-highlight.js +98 -0
- package/src/lib/matcha-highlight/prismjs/plugins/data-uri-highlight/prism-data-uri-highlight.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/file-highlight/prism-file-highlight.js +105 -0
- package/src/lib/matcha-highlight/prismjs/plugins/file-highlight/prism-file-highlight.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/highlight-keywords/prism-highlight-keywords.js +17 -0
- package/src/lib/matcha-highlight/prismjs/plugins/highlight-keywords/prism-highlight-keywords.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/jsonp-highlight/prism-jsonp-highlight.js +206 -0
- package/src/lib/matcha-highlight/prismjs/plugins/jsonp-highlight/prism-jsonp-highlight.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/keep-markup/prism-keep-markup.js +99 -0
- package/src/lib/matcha-highlight/prismjs/plugins/keep-markup/prism-keep-markup.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/line-highlight/prism-line-highlight.css +49 -0
- package/src/lib/matcha-highlight/prismjs/plugins/line-highlight/prism-line-highlight.js +181 -0
- package/src/lib/matcha-highlight/prismjs/plugins/line-highlight/prism-line-highlight.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/line-numbers/prism-line-numbers.css +41 -0
- package/src/lib/matcha-highlight/prismjs/plugins/line-numbers/prism-line-numbers.js +168 -0
- package/src/lib/matcha-highlight/prismjs/plugins/line-numbers/prism-line-numbers.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/normalize-whitespace/prism-normalize-whitespace.js +190 -0
- package/src/lib/matcha-highlight/prismjs/plugins/normalize-whitespace/prism-normalize-whitespace.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/previewers/prism-previewers.css +242 -0
- package/src/lib/matcha-highlight/prismjs/plugins/previewers/prism-previewers.js +708 -0
- package/src/lib/matcha-highlight/prismjs/plugins/previewers/prism-previewers.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/remove-initial-line-feed/prism-remove-initial-line-feed.js +21 -0
- package/src/lib/matcha-highlight/prismjs/plugins/remove-initial-line-feed/prism-remove-initial-line-feed.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/show-invisibles/prism-show-invisibles.css +34 -0
- package/src/lib/matcha-highlight/prismjs/plugins/show-invisibles/prism-show-invisibles.js +84 -0
- package/src/lib/matcha-highlight/prismjs/plugins/show-invisibles/prism-show-invisibles.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/show-language/prism-show-language.js +46 -0
- package/src/lib/matcha-highlight/prismjs/plugins/show-language/prism-show-language.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/toolbar/prism-toolbar.css +58 -0
- package/src/lib/matcha-highlight/prismjs/plugins/toolbar/prism-toolbar.js +149 -0
- package/src/lib/matcha-highlight/prismjs/plugins/toolbar/prism-toolbar.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/unescaped-markup/prism-unescaped-markup.css +10 -0
- package/src/lib/matcha-highlight/prismjs/plugins/unescaped-markup/prism-unescaped-markup.js +44 -0
- package/src/lib/matcha-highlight/prismjs/plugins/unescaped-markup/prism-unescaped-markup.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/plugins/wpd/prism-wpd.css +11 -0
- package/src/lib/matcha-highlight/prismjs/plugins/wpd/prism-wpd.js +169 -0
- package/src/lib/matcha-highlight/prismjs/plugins/wpd/prism-wpd.min.js +1 -0
- package/src/lib/matcha-highlight/prismjs/prism.d.ts +4 -0
- package/src/lib/matcha-highlight/prismjs/prism.js +960 -0
- package/src/lib/matcha-highlight/prismjs/themes/prism-coy.css +226 -0
- package/src/lib/matcha-highlight/prismjs/themes/prism-dark.css +129 -0
- package/src/lib/matcha-highlight/prismjs/themes/prism-funky.css +117 -0
- package/src/lib/matcha-highlight/prismjs/themes/prism-okaidia.css +123 -0
- package/src/lib/matcha-highlight/prismjs/themes/prism-solarizedlight.css +150 -0
- package/src/lib/matcha-highlight/prismjs/themes/prism-tomorrow.css +122 -0
- package/src/lib/matcha-highlight/prismjs/themes/prism-twilight.css +199 -0
- package/src/lib/matcha-highlight/prismjs/themes/prism.css +139 -0
- package/src/lib/matcha-hint-text/hint/hint-text.component.html +4 -0
- package/src/lib/matcha-hint-text/hint/hint-text.component.scss +0 -0
- package/src/lib/matcha-hint-text/hint/hint-text.component.ts +31 -0
- package/src/lib/matcha-hint-text/hint.module.ts +15 -0
- package/src/lib/matcha-hint-text/hint.stories.ts +52 -0
- package/src/lib/matcha-icon/icon-argtype.ts +36 -0
- package/src/lib/matcha-icon/icon.component.html +3 -0
- package/src/lib/matcha-icon/icon.component.scss +0 -0
- package/src/lib/matcha-icon/icon.component.ts +34 -0
- package/src/lib/matcha-icon/icon.mdx +58 -0
- package/src/lib/matcha-icon/icon.module.ts +11 -0
- package/src/lib/matcha-icon/icon.stories.ts +431 -0
- package/src/lib/matcha-infinite-scroll/matcha-infinite-scroll/matcha-infinite-scroll.component.html +0 -0
- package/src/lib/matcha-infinite-scroll/matcha-infinite-scroll/matcha-infinite-scroll.component.scss +0 -0
- package/src/lib/matcha-infinite-scroll/matcha-infinite-scroll/matcha-infinite-scroll.component.ts +49 -0
- package/src/lib/matcha-infinite-scroll/matcha-infinite-scroll-data/matcha-infinite-scroll-data.component.html +0 -0
- package/src/lib/matcha-infinite-scroll/matcha-infinite-scroll-data/matcha-infinite-scroll-data.component.scss +0 -0
- package/src/lib/matcha-infinite-scroll/matcha-infinite-scroll-data/matcha-infinite-scroll-data.component.ts +165 -0
- package/src/lib/matcha-infinite-scroll/matcha-infinite-scroll.module.ts +14 -0
- package/src/lib/matcha-input/input.argtypes.ts +39 -0
- package/src/lib/matcha-input/input.directive.ts +12 -0
- package/src/lib/matcha-input/input.mdx +73 -0
- package/src/lib/matcha-input/input.module.ts +9 -0
- package/src/lib/matcha-input/input.stories.ts +97 -0
- package/src/lib/matcha-input-phone/all-countries.ts +1366 -0
- package/src/lib/matcha-input-phone/input-phone.argtypes.ts +83 -0
- package/src/lib/matcha-input-phone/input-phone.component.html +33 -0
- package/src/lib/matcha-input-phone/input-phone.component.spec.ts +23 -0
- package/src/lib/matcha-input-phone/input-phone.component.ts +267 -0
- package/src/lib/matcha-input-phone/input-phone.module.ts +22 -0
- package/src/lib/matcha-input-phone/input-phone.stories.ts +85 -0
- package/src/lib/matcha-input-phone/lib/custom-keyboard-event.ts +21 -0
- package/src/lib/matcha-input-phone/lib/ngx-mask-applier.service.ts +1073 -0
- package/src/lib/matcha-input-phone/lib/ngx-mask-expression.enum.ts +43 -0
- package/src/lib/matcha-input-phone/lib/ngx-mask.config.ts +132 -0
- package/src/lib/matcha-input-phone/lib/ngx-mask.directive.ts +1187 -0
- package/src/lib/matcha-input-phone/lib/ngx-mask.module.ts +55 -0
- package/src/lib/matcha-input-phone/lib/ngx-mask.pipe.ts +131 -0
- package/src/lib/matcha-input-phone/lib/ngx-mask.providers.ts +42 -0
- package/src/lib/matcha-input-phone/lib/ngx-mask.service.ts +832 -0
- package/src/lib/matcha-lazyload/lazyload/lazyload.component.html +1 -0
- package/src/lib/matcha-lazyload/lazyload/lazyload.component.scss +0 -0
- package/src/lib/matcha-lazyload/lazyload/lazyload.component.ts +48 -0
- package/src/lib/matcha-lazyload/lazyload-data/lazyload-data.component.html +1 -0
- package/src/lib/matcha-lazyload/lazyload-data/lazyload-data.component.scss +0 -0
- package/src/lib/matcha-lazyload/lazyload-data/lazyload-data.component.ts +172 -0
- package/src/lib/matcha-lazyload/lazyload.module.ts +14 -0
- package/src/lib/matcha-masonry/masonry/masonry.component.html +3 -0
- package/src/lib/matcha-masonry/masonry/masonry.component.scss +0 -0
- package/src/lib/matcha-masonry/masonry/masonry.component.ts +45 -0
- package/src/lib/matcha-masonry/masonry.argtype.ts +97 -0
- package/src/lib/matcha-masonry/masonry.mdx +133 -0
- package/src/lib/matcha-masonry/masonry.module.ts +10 -0
- package/src/lib/matcha-masonry/masonry.stories.ts +64 -0
- package/src/lib/matcha-menu/menu.argtypes.ts +111 -0
- package/src/lib/matcha-menu/menu.component.html +3 -0
- package/src/lib/matcha-menu/menu.component.scss +0 -0
- package/src/lib/matcha-menu/menu.component.spec.ts +23 -0
- package/src/lib/matcha-menu/menu.component.ts +48 -0
- package/src/lib/matcha-menu/menu.directive.ts +39 -0
- package/src/lib/matcha-menu/menu.mdx +59 -0
- package/src/lib/matcha-menu/menu.module.ts +19 -0
- package/src/lib/matcha-menu/menu.stories.ts +122 -0
- package/src/lib/matcha-modal/exemplo/exemple-modal-content.component.html +34 -0
- package/src/lib/matcha-modal/exemplo/exemple-modal-content.component.ts +44 -0
- package/src/lib/matcha-modal/exemplo/exemple-modal.component.html +46 -0
- package/src/lib/matcha-modal/exemplo/exemple-modal.component.ts +34 -0
- package/src/lib/matcha-modal/matcha-modal.module.ts +45 -0
- package/src/lib/matcha-modal/modal/modal.component.html +3 -0
- package/src/lib/matcha-modal/modal/modal.component.scss +0 -0
- package/src/lib/matcha-modal/modal/modal.component.ts +67 -0
- package/src/lib/matcha-modal/modal-content/modal-content.component.html +9 -0
- package/src/lib/matcha-modal/modal-content/modal-content.component.scss +0 -0
- package/src/lib/matcha-modal/modal-content/modal-content.component.ts +11 -0
- package/src/lib/matcha-modal/modal-footer/modal-footer.component.html +8 -0
- package/src/lib/matcha-modal/modal-footer/modal-footer.component.scss +0 -0
- package/src/lib/matcha-modal/modal-footer/modal-footer.component.ts +32 -0
- package/src/lib/matcha-modal/modal-header/modal-header.component.html +13 -0
- package/src/lib/matcha-modal/modal-header/modal-header.component.scss +0 -0
- package/src/lib/matcha-modal/modal-header/modal-header.component.ts +11 -0
- package/src/lib/matcha-modal/modal-options/modal-options.component.html +3 -0
- package/src/lib/matcha-modal/modal-options/modal-options.component.scss +0 -0
- package/src/lib/matcha-modal/modal-options/modal-options.component.ts +11 -0
- package/src/lib/matcha-modal/modal.service.ts +47 -0
- package/src/lib/matcha-modal/modal.stories.argtypes.ts +56 -0
- package/src/lib/matcha-modal/modal.stories.ts +333 -0
- package/src/lib/matcha-modal/model/IMatchaModalComponent.ts +1 -0
- package/src/lib/matcha-modal/overlay.service.ts +138 -0
- package/src/lib/matcha-option/README.md +144 -0
- package/src/lib/matcha-option/matcha-option-parent.interface.ts +22 -0
- package/src/lib/matcha-option/matcha-option.component.ts +93 -0
- package/src/lib/matcha-option/matcha-option.module.ts +17 -0
- package/src/lib/matcha-option/matcha-option.stories.ts +127 -0
- package/src/lib/matcha-overflow-draggable/matcha-overflow-draggable.component.html +3 -0
- package/src/lib/matcha-overflow-draggable/matcha-overflow-draggable.component.scss +0 -0
- package/src/lib/matcha-overflow-draggable/matcha-overflow-draggable.component.ts +56 -0
- package/src/lib/matcha-page-layout/page-layout.component.html +18 -0
- package/src/lib/matcha-page-layout/page-layout.component.scss +5 -0
- package/src/lib/matcha-page-layout/page-layout.component.ts +11 -0
- package/src/lib/matcha-page-layout/page-layout.module.ts +19 -0
- package/src/lib/matcha-paginator/paginator/page-event.interface.ts +13 -0
- package/src/lib/matcha-paginator/paginator/paginator.component.html +59 -0
- package/src/lib/matcha-paginator/paginator/paginator.component.scss +0 -0
- package/src/lib/matcha-paginator/paginator/paginator.component.ts +154 -0
- package/src/lib/matcha-paginator/paginator-intl.service.ts +39 -0
- package/src/lib/matcha-paginator/paginator.module.ts +13 -0
- package/src/lib/matcha-panel/matcha-panel.component.ts +223 -0
- package/src/lib/matcha-panel/matcha-panel.module.ts +17 -0
- package/src/lib/matcha-progress-bar/progress-bar.argtype.ts +48 -0
- package/src/lib/matcha-progress-bar/progress-bar.directive.ts +17 -0
- package/src/lib/matcha-progress-bar/progress-bar.mdx +95 -0
- package/src/lib/matcha-progress-bar/progress-bar.module.ts +14 -0
- package/src/lib/matcha-progress-bar/progress-bar.stories.ts +89 -0
- package/src/lib/matcha-radio/radio/radio.component.html +20 -0
- package/src/lib/matcha-radio/radio/radio.component.scss +0 -0
- package/src/lib/matcha-radio/radio/radio.component.ts +84 -0
- package/src/lib/matcha-radio/radio.module.ts +16 -0
- package/src/lib/matcha-radio/radio.stories.ts +175 -0
- package/src/lib/matcha-ripple/ripple.directive.ts +71 -0
- package/src/lib/matcha-ripple/ripple.module.ts +16 -0
- package/src/lib/matcha-select/matcha-select.component.html +30 -0
- package/src/lib/matcha-select/matcha-select.component.scss +3 -0
- package/src/lib/matcha-select/matcha-select.component.ts +467 -0
- package/src/lib/matcha-select/matcha-select.directive.ts +147 -0
- package/src/lib/matcha-select/matcha-select.module.ts +23 -0
- package/src/lib/matcha-sidenav/sidenav.argtypes.ts +60 -0
- package/src/lib/matcha-sidenav/sidenav.directive.ts +12 -0
- package/src/lib/matcha-sidenav/sidenav.mdx +57 -0
- package/src/lib/matcha-sidenav/sidenav.module.ts +10 -0
- package/src/lib/matcha-sidenav/sidenav.stories.ts +79 -0
- package/src/lib/matcha-skeleton/skeleton/skeleton.component.html +70 -0
- package/src/lib/matcha-skeleton/skeleton/skeleton.component.scss +0 -0
- package/src/lib/matcha-skeleton/skeleton/skeleton.component.ts +36 -0
- package/src/lib/matcha-skeleton/skeleton-argtype.ts +67 -0
- package/src/lib/matcha-skeleton/skeleton.module.ts +11 -0
- package/src/lib/matcha-skeleton/skeleton.stories.ts +74 -0
- package/src/lib/matcha-slide-toggle/slide-toggle/slide-toggle.component.html +15 -0
- package/src/lib/matcha-slide-toggle/slide-toggle/slide-toggle.component.scss +0 -0
- package/src/lib/matcha-slide-toggle/slide-toggle/slide-toggle.component.ts +96 -0
- package/src/lib/matcha-slide-toggle/slide-toggle.module.ts +18 -0
- package/src/lib/matcha-slide-toggle/slide-toggle.stories.ts +78 -0
- package/src/lib/matcha-slider/matcha-slider.directive.ts +17 -0
- package/src/lib/matcha-slider/slider.argtypes.ts +76 -0
- package/src/lib/matcha-slider/slider.mdx +45 -0
- package/src/lib/matcha-slider/slider.module.ts +12 -0
- package/src/lib/matcha-slider/slider.stories.ts +149 -0
- package/src/lib/matcha-snackbar/snack-bar-overview-example.component.ts +22 -0
- package/src/lib/matcha-snackbar/snack-bar-overview-example.css +3 -0
- package/src/lib/matcha-snackbar/snack-bar-overview-example.html +11 -0
- package/src/lib/matcha-snackbar/snack-bar.argtypes.ts +11 -0
- package/src/lib/matcha-snackbar/snack-bar.directive.ts +12 -0
- package/src/lib/matcha-snackbar/snack-bar.mdx +53 -0
- package/src/lib/matcha-snackbar/snack-bar.module.ts +10 -0
- package/src/lib/matcha-snackbar/snack-bar.stories.ts +34 -0
- package/src/lib/matcha-sort-header/example/sort-overview-example.component.ts +66 -0
- package/src/lib/matcha-sort-header/example/sort-overview-example.css +3 -0
- package/src/lib/matcha-sort-header/example/sort-overview-example.html +21 -0
- package/src/lib/matcha-sort-header/sort-header.argtypes.ts +11 -0
- package/src/lib/matcha-sort-header/sort-header.directive.ts +17 -0
- package/src/lib/matcha-sort-header/sort-header.mdx +78 -0
- package/src/lib/matcha-sort-header/sort-header.module.ts +10 -0
- package/src/lib/matcha-sort-header/sort-header.stories.ts +34 -0
- package/src/lib/matcha-spin/spin/spin.component.html +27 -0
- package/src/lib/matcha-spin/spin/spin.component.scss +0 -0
- package/src/lib/matcha-spin/spin/spin.component.ts +70 -0
- package/src/lib/matcha-spin/spin.module.ts +16 -0
- package/src/lib/matcha-spin/spin.stories.ts +85 -0
- package/src/lib/matcha-spinner/spinner/spinner.component.html +29 -0
- package/src/lib/matcha-spinner/spinner/spinner.component.scss +1 -0
- package/src/lib/matcha-spinner/spinner/spinner.component.ts +74 -0
- package/src/lib/matcha-spinner/spinner.module.ts +15 -0
- package/src/lib/matcha-spinner/spinner.stories.ts +85 -0
- package/src/lib/matcha-stepper/next-step.diretive.ts +21 -0
- package/src/lib/matcha-stepper/prev-step.diretive.ts +21 -0
- package/src/lib/matcha-stepper/step/step.component.ts +11 -0
- package/src/lib/matcha-stepper/step-content.diretive.ts +9 -0
- package/src/lib/matcha-stepper/stepper/stepper.component.ts +20 -0
- package/src/lib/matcha-stepper/stepper-content/stepper-content.component.ts +38 -0
- package/src/lib/matcha-stepper/stepper-controller/stepper-controller.component.html +8 -0
- package/src/lib/matcha-stepper/stepper-controller/stepper-controller.component.ts +26 -0
- package/src/lib/matcha-stepper/stepper.argtypes.ts +74 -0
- package/src/lib/matcha-stepper/stepper.module.ts +32 -0
- package/src/lib/matcha-stepper/stepper.service.ts +50 -0
- package/src/lib/matcha-stepper/stepper.stories.ts +117 -0
- package/src/lib/matcha-table/example/table-basic-example.component.ts +36 -0
- package/src/lib/matcha-table/example/table-basic-example.css +0 -0
- package/src/lib/matcha-table/example/table-basic-example.html +35 -0
- package/src/lib/matcha-table/table.argtypes.ts +11 -0
- package/src/lib/matcha-table/table.directive.ts +17 -0
- package/src/lib/matcha-table/table.mdx +78 -0
- package/src/lib/matcha-table/table.module.ts +10 -0
- package/src/lib/matcha-table/table.stories.ts +34 -0
- package/src/lib/matcha-tabs/tab-item/tab-item.component.html +1 -0
- package/src/lib/matcha-tabs/tab-item/tab-item.component.scss +0 -0
- package/src/lib/matcha-tabs/tab-item/tab-item.component.ts +19 -0
- package/src/lib/matcha-tabs/tabs/tabs.component.html +22 -0
- package/src/lib/matcha-tabs/tabs/tabs.component.scss +0 -0
- package/src/lib/matcha-tabs/tabs/tabs.component.ts +58 -0
- package/src/lib/matcha-tabs/tabs.module.ts +19 -0
- package/src/lib/matcha-tabs/tabs.stories.ts +98 -0
- package/src/lib/matcha-time/time/time.component.html +3 -0
- package/src/lib/matcha-time/time/time.component.scss +0 -0
- package/src/lib/matcha-time/time/time.component.ts +141 -0
- package/src/lib/matcha-time/time.module.ts +14 -0
- package/src/lib/matcha-time/time.stories.ts +244 -0
- package/src/lib/matcha-title/title/title.component.html +8 -0
- package/src/lib/matcha-title/title/title.component.scss +5 -0
- package/src/lib/matcha-title/title/title.component.ts +73 -0
- package/src/lib/matcha-title/title.argtypes.ts +69 -0
- package/src/lib/matcha-title/title.module.ts +10 -0
- package/src/lib/matcha-title/title.stories.ts +132 -0
- package/src/lib/matcha-toolbar/toolbar/toolbar.component.html +54 -0
- package/src/lib/matcha-toolbar/toolbar/toolbar.component.scss +0 -0
- package/src/lib/matcha-toolbar/toolbar/toolbar.component.ts +43 -0
- package/src/lib/matcha-toolbar/toolbar-button/toolbar-button.component.html +8 -0
- package/src/lib/matcha-toolbar/toolbar-button/toolbar-button.component.scss +0 -0
- package/src/lib/matcha-toolbar/toolbar-button/toolbar-button.component.ts +21 -0
- package/src/lib/matcha-toolbar/toolbar-content/toolbar-content.component.html +8 -0
- package/src/lib/matcha-toolbar/toolbar-content/toolbar-content.component.scss +0 -0
- package/src/lib/matcha-toolbar/toolbar-content/toolbar-content.component.ts +9 -0
- package/src/lib/matcha-toolbar/toolbar-custom-button/toolbar-custom-button.component.html +6 -0
- package/src/lib/matcha-toolbar/toolbar-custom-button/toolbar-custom-button.component.scss +0 -0
- package/src/lib/matcha-toolbar/toolbar-custom-button/toolbar-custom-button.component.ts +10 -0
- package/src/lib/matcha-toolbar/toolbar-main-button/toolbar-main-button.component.html +11 -0
- package/src/lib/matcha-toolbar/toolbar-main-button/toolbar-main-button.component.scss +0 -0
- package/src/lib/matcha-toolbar/toolbar-main-button/toolbar-main-button.component.ts +15 -0
- package/src/lib/matcha-toolbar/toolbar.argtypes.ts +27 -0
- package/src/lib/matcha-toolbar/toolbar.module.ts +36 -0
- package/src/lib/matcha-toolbar/toolbar.stories.ts +131 -0
- package/src/lib/matcha-tooltip/tooltip.argtypes.ts +58 -0
- package/src/lib/matcha-tooltip/tooltip.directive.ts +158 -0
- package/src/lib/matcha-tooltip/tooltip.module.ts +11 -0
- package/src/lib/matcha-tooltip/tooltip.stories.ts +259 -0
- package/src/lib/postcss.config.js +6 -0
- package/src/public-api.ts +180 -0
- package/tsconfig.lib.json +18 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/fesm2022/matcha-components.mjs +0 -6637
- package/fesm2022/matcha-components.mjs.map +0 -1
- package/index.d.ts +0 -1738
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Prism.languages.ocaml={comment:/\(\*[\s\S]*?\*\)/,string:[{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},{pattern:/(['`])(?:\\(?:\d+|x[\da-f]+|.)|(?!\1)[^\\\r\n])\1/i,greedy:!0}],number:/\b(?:0x[\da-f][\da-f_]+|(?:0[bo])?\d[\d_]*\.?[\d_]*(?:e[+-]?[\d_]+)?)/i,type:{pattern:/\B['`]\w*/,alias:"variable"},directive:{pattern:/\B#\w+/,alias:"function"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|object|of|open|prefix|private|rec|then|sig|struct|to|try|type|val|value|virtual|where|while|with)\b/,boolean:/\b(?:false|true)\b/,operator:/:=|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lxor|lsl|lsr|mod|nor|or)\b/,punctuation:/[(){}\[\]|_.,:;]/};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
(function (Prism) {
|
|
2
|
+
/* OpenCL kernel language */
|
|
3
|
+
Prism.languages.opencl = Prism.languages.extend('c', {
|
|
4
|
+
// Extracted from the official specs (2.0) and http://streamcomputing.eu/downloads/?opencl.lang (opencl-keywords, opencl-types) and http://sourceforge.net/tracker/?func=detail&aid=2957794&group_id=95717&atid=612384 (Words2, partly Words3)
|
|
5
|
+
'keyword': /\b(?:__attribute__|(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|auto|break|case|cl_(?:image_format|mem_fence_flags)|clk_event_t|complex|const|continue|default|do|(?:float|double)(?:16(?:x(?:1|16|2|4|8))?|1x(?:1|16|2|4|8)|2(?:x(?:1|16|2|4|8))?|3|4(?:x(?:1|16|2|4|8))?|8(?:x(?:1|16|2|4|8))?)?|else|enum|event_t|extern|for|goto|(?:u?(?:char|short|int|long)|half|quad|bool)(?:2|3|4|8|16)?|if|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|imaginary|inline|intptr_t|ndrange_t|packed|pipe|ptrdiff_t|queue_t|register|reserve_id_t|restrict|return|sampler_t|signed|size_t|sizeof|static|struct|switch|typedef|uintptr_t|uniform|union|unsigned|void|volatile|while)\b/,
|
|
6
|
+
// Extracted from http://streamcomputing.eu/downloads/?opencl.lang (global-vars, opencl-dev)
|
|
7
|
+
'function-opencl-kernel': {
|
|
8
|
+
pattern: /\b(?:abs(?:_diff)?|a?(?:cos|sin)(?:h|pi)?|add_sat|aligned|all|and|any|async(?:_work_group_copy|_work_group_strided_copy)?|atan(?:2?(?:pi)?|h)?|atom_(?:add|and|cmpxchg|dec|inc|max|min|or|sub|xchg|xor)|barrier|bitselect|cbrt|ceil|clamp|clz|copies|copysign|cross|degrees|distance|dot|endian|erf|erfc|exp(?:2|10)?|expm1|fabs|fast_(?:distance|length|normalize)|fdim|floor|fma|fmax|fmin|fract|frexp|fro|from|get_(?:global_(?:id|offset|size)|group_id|image_(?:channel_data_type|channel_order|depth|dim|height|width)|local(?:_id|_size)|num_groups|work_dim)|hadd|(?:half|native)_(?:cos|divide|exp(?:2|10)?|log(?:2|10)?|powr|recip|r?sqrt|sin|tan)|hypot|ilogb|is(?:equal|finite|greater(?:equal)?|inf|less(?:equal|greater)?|nan|normal|notequal|(?:un)?ordered)|ldexp|length|lgamma|lgamma_r|log(?:b|1p|2|10)?|mad(?:24|_hi|_sat)?|max|mem(?:_fence)?|min|mix|modf|mul24|mul_hi|nan|nextafter|normalize|pow[nr]?|prefetch|radians|read_(?:image)(?:f|h|u?i)|read_mem_fence|remainder|remquo|reqd_work_group_size|rhadd|rint|rootn|rotate|round|rsqrt|select|shuffle2?|sign|signbit|sincos|smoothstep|sqrt|step|sub_sat|tan|tanh|tanpi|tgamma|to|trunc|upsample|vec_(?:step|type_hint)|v(?:load|store)(?:_half)?(?:2|3|4|8|16)?|v(?:loada_half|storea?(?:_half)?)(?:2|3|4|8|16)?(?:_(?:rte|rtn|rtp|rtz))?|wait_group_events|work_group_size_hint|write_image(?:f|h|u?i)|write_mem_fence)\b/,
|
|
9
|
+
alias: 'function'
|
|
10
|
+
},
|
|
11
|
+
// Extracted from http://streamcomputing.eu/downloads/?opencl.lang (opencl-const)
|
|
12
|
+
'constant-opencl-kernel': {
|
|
13
|
+
pattern: /\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:LOCAL|GLOBAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT)_(?:DIG|EPSILON|MANT_DIG|(?:MIN|MAX)(?:(?:_10)?_EXP)?)|FLT_RADIX|HUGE_VALF|INFINITY|(?:INT|LONG|SCHAR|SHRT|UCHAR|UINT|ULONG)_(?:MAX|MIN)|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:10|2)E?|PI[24]?|SQRT(?:1_2|2))|NAN)\b/,
|
|
14
|
+
alias: 'constant'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
var attributes = {
|
|
19
|
+
// Extracted from http://streamcomputing.eu/downloads/?opencl_host.lang (opencl-types and opencl-host)
|
|
20
|
+
'type-opencl-host': {
|
|
21
|
+
pattern: /\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|short|int|long)|float|double)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,
|
|
22
|
+
alias: 'keyword'
|
|
23
|
+
},
|
|
24
|
+
'boolean-opencl-host': {
|
|
25
|
+
pattern: /\bCL_(?:TRUE|FALSE)\b/,
|
|
26
|
+
alias: 'boolean'
|
|
27
|
+
},
|
|
28
|
+
// Extracted from cl.h (2.0) and http://streamcomputing.eu/downloads/?opencl_host.lang (opencl-const)
|
|
29
|
+
'constant-opencl-host': {
|
|
30
|
+
pattern: /\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:16|24|8|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,
|
|
31
|
+
alias: 'constant'
|
|
32
|
+
},
|
|
33
|
+
// Extracted from cl.h (2.0) and http://streamcomputing.eu/downloads/?opencl_host.lang (opencl-host)
|
|
34
|
+
'function-opencl-host': {
|
|
35
|
+
pattern: /\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|Kernel|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,
|
|
36
|
+
alias: 'function'
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/* OpenCL host API */
|
|
41
|
+
Prism.languages.insertBefore('c', 'keyword', attributes);
|
|
42
|
+
// Extracted from doxygen class list http://github.khronos.org/OpenCL-CLHPP/annotated.html
|
|
43
|
+
attributes['type-opencl-host-c++'] = {
|
|
44
|
+
pattern: /\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|Sampler|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|UserEvent)\b/,
|
|
45
|
+
alias: 'keyword'
|
|
46
|
+
};
|
|
47
|
+
// C++ includes everything from the OpenCL C host API plus the classes defined in cl2.h
|
|
48
|
+
Prism.languages.insertBefore('cpp', 'keyword', attributes);
|
|
49
|
+
}(Prism));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(E){E.languages.opencl=E.languages.extend("c",{keyword:/\b(?:__attribute__|(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|auto|break|case|cl_(?:image_format|mem_fence_flags)|clk_event_t|complex|const|continue|default|do|(?:float|double)(?:16(?:x(?:1|16|2|4|8))?|1x(?:1|16|2|4|8)|2(?:x(?:1|16|2|4|8))?|3|4(?:x(?:1|16|2|4|8))?|8(?:x(?:1|16|2|4|8))?)?|else|enum|event_t|extern|for|goto|(?:u?(?:char|short|int|long)|half|quad|bool)(?:2|3|4|8|16)?|if|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|imaginary|inline|intptr_t|ndrange_t|packed|pipe|ptrdiff_t|queue_t|register|reserve_id_t|restrict|return|sampler_t|signed|size_t|sizeof|static|struct|switch|typedef|uintptr_t|uniform|union|unsigned|void|volatile|while)\b/,"function-opencl-kernel":{pattern:/\b(?:abs(?:_diff)?|a?(?:cos|sin)(?:h|pi)?|add_sat|aligned|all|and|any|async(?:_work_group_copy|_work_group_strided_copy)?|atan(?:2?(?:pi)?|h)?|atom_(?:add|and|cmpxchg|dec|inc|max|min|or|sub|xchg|xor)|barrier|bitselect|cbrt|ceil|clamp|clz|copies|copysign|cross|degrees|distance|dot|endian|erf|erfc|exp(?:2|10)?|expm1|fabs|fast_(?:distance|length|normalize)|fdim|floor|fma|fmax|fmin|fract|frexp|fro|from|get_(?:global_(?:id|offset|size)|group_id|image_(?:channel_data_type|channel_order|depth|dim|height|width)|local(?:_id|_size)|num_groups|work_dim)|hadd|(?:half|native)_(?:cos|divide|exp(?:2|10)?|log(?:2|10)?|powr|recip|r?sqrt|sin|tan)|hypot|ilogb|is(?:equal|finite|greater(?:equal)?|inf|less(?:equal|greater)?|nan|normal|notequal|(?:un)?ordered)|ldexp|length|lgamma|lgamma_r|log(?:b|1p|2|10)?|mad(?:24|_hi|_sat)?|max|mem(?:_fence)?|min|mix|modf|mul24|mul_hi|nan|nextafter|normalize|pow[nr]?|prefetch|radians|read_(?:image)(?:f|h|u?i)|read_mem_fence|remainder|remquo|reqd_work_group_size|rhadd|rint|rootn|rotate|round|rsqrt|select|shuffle2?|sign|signbit|sincos|smoothstep|sqrt|step|sub_sat|tan|tanh|tanpi|tgamma|to|trunc|upsample|vec_(?:step|type_hint)|v(?:load|store)(?:_half)?(?:2|3|4|8|16)?|v(?:loada_half|storea?(?:_half)?)(?:2|3|4|8|16)?(?:_(?:rte|rtn|rtp|rtz))?|wait_group_events|work_group_size_hint|write_image(?:f|h|u?i)|write_mem_fence)\b/,alias:"function"},"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:LOCAL|GLOBAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT)_(?:DIG|EPSILON|MANT_DIG|(?:MIN|MAX)(?:(?:_10)?_EXP)?)|FLT_RADIX|HUGE_VALF|INFINITY|(?:INT|LONG|SCHAR|SHRT|UCHAR|UINT|ULONG)_(?:MAX|MIN)|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:10|2)E?|PI[24]?|SQRT(?:1_2|2))|NAN)\b/,alias:"constant"}});var _={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|short|int|long)|float|double)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:TRUE|FALSE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:16|24|8|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|Kernel|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};E.languages.insertBefore("c","keyword",_),_["type-opencl-host-c++"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|Sampler|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|UserEvent)\b/,alias:"keyword"},E.languages.insertBefore("cpp","keyword",_)}(Prism);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Prism.languages.oz = {
|
|
2
|
+
'comment': /\/\*[\s\S]*?\*\/|%.*/,
|
|
3
|
+
'string': {
|
|
4
|
+
pattern: /"(?:[^"\\]|\\[\s\S])*"/,
|
|
5
|
+
greedy: true
|
|
6
|
+
},
|
|
7
|
+
'atom': {
|
|
8
|
+
pattern: /'(?:[^'\\]|\\[\s\S])*'/,
|
|
9
|
+
greedy: true,
|
|
10
|
+
alias: 'builtin'
|
|
11
|
+
},
|
|
12
|
+
'keyword': /[$_]|\[\]|\b(?:at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,
|
|
13
|
+
'function': [
|
|
14
|
+
/[a-z][A-Za-z\d]*(?=\()/,
|
|
15
|
+
{
|
|
16
|
+
pattern: /(\{)[A-Z][A-Za-z\d]*/,
|
|
17
|
+
lookbehind: true
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
'number': /\b(?:0[bx][\da-f]+|\d+\.?\d*(?:e~?\d+)?\b)|&(?:[^\\]|\\(?:\d{3}|.))/i,
|
|
21
|
+
'variable': /\b[A-Z][A-Za-z\d]*|`(?:[^`\\]|\\.)+`/,
|
|
22
|
+
'attr-name': /\w+(?=:)/,
|
|
23
|
+
'operator': /:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,
|
|
24
|
+
'punctuation': /[\[\](){}.:;?]/
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Prism.languages.oz={comment:/\/\*[\s\S]*?\*\/|%.*/,string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/[$_]|\[\]|\b(?:at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+\.?\d*(?:e~?\d+)?\b)|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/\b[A-Z][A-Za-z\d]*|`(?:[^`\\]|\\.)+`/,"attr-name":/\w+(?=:)/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Prism.languages.parigp = {
|
|
2
|
+
'comment': /\/\*[\s\S]*?\*\/|\\\\.*/,
|
|
3
|
+
'string': {
|
|
4
|
+
pattern: /"(?:[^"\\\r\n]|\\.)*"/,
|
|
5
|
+
greedy: true
|
|
6
|
+
},
|
|
7
|
+
// PARI/GP does not care about white spaces at all
|
|
8
|
+
// so let's process the keywords to build an appropriate regexp
|
|
9
|
+
// (e.g. "b *r *e *a *k", etc.)
|
|
10
|
+
'keyword': (function () {
|
|
11
|
+
var keywords = [
|
|
12
|
+
'breakpoint', 'break', 'dbg_down', 'dbg_err', 'dbg_up', 'dbg_x',
|
|
13
|
+
'forcomposite', 'fordiv', 'forell', 'forpart', 'forprime',
|
|
14
|
+
'forstep', 'forsubgroup', 'forvec', 'for', 'iferr', 'if',
|
|
15
|
+
'local', 'my', 'next', 'return', 'until', 'while'
|
|
16
|
+
];
|
|
17
|
+
keywords = keywords.map(function (keyword) {
|
|
18
|
+
return keyword.split('').join(' *');
|
|
19
|
+
}).join('|');
|
|
20
|
+
return RegExp('\\b(?:' + keywords + ')\\b');
|
|
21
|
+
}()),
|
|
22
|
+
'function': /\w[\w ]*?(?= *\()/,
|
|
23
|
+
'number': {
|
|
24
|
+
// The lookbehind and the negative lookahead prevent from breaking the .. operator
|
|
25
|
+
pattern: /((?:\. *\. *)?)(?:\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *[+-]? *\d(?: *\d)*)?/i,
|
|
26
|
+
lookbehind: true
|
|
27
|
+
},
|
|
28
|
+
'operator': /\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?:(?: *<)?(?: *=)?| *>)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,
|
|
29
|
+
'punctuation': /[\[\]{}().,:;|]/
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Prism.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var r=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return r=r.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+r+")\\b")}(),function:/\w[\w ]*?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *[+-]? *\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?:(?: *<)?(?: *=)?| *>)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
(function (Prism) {
|
|
2
|
+
|
|
3
|
+
var parser = Prism.languages.parser = Prism.languages.extend('markup', {
|
|
4
|
+
'keyword': {
|
|
5
|
+
pattern: /(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,
|
|
6
|
+
lookbehind: true
|
|
7
|
+
},
|
|
8
|
+
'variable': {
|
|
9
|
+
pattern: /(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,
|
|
10
|
+
lookbehind: true,
|
|
11
|
+
inside: {
|
|
12
|
+
'punctuation': /\.|:+/
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
'function': {
|
|
16
|
+
pattern: /(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,
|
|
17
|
+
lookbehind: true,
|
|
18
|
+
inside: {
|
|
19
|
+
'keyword': {
|
|
20
|
+
pattern: /(^@)(?:GET_|SET_)/,
|
|
21
|
+
lookbehind: true
|
|
22
|
+
},
|
|
23
|
+
'punctuation': /\.|:+/
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
'escape': {
|
|
27
|
+
pattern: /\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,
|
|
28
|
+
alias: 'builtin'
|
|
29
|
+
},
|
|
30
|
+
'punctuation': /[\[\](){};]/
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
parser = Prism.languages.insertBefore('parser', 'keyword', {
|
|
34
|
+
'parser-comment': {
|
|
35
|
+
pattern: /(\s)#.*/,
|
|
36
|
+
lookbehind: true,
|
|
37
|
+
alias: 'comment'
|
|
38
|
+
},
|
|
39
|
+
'expression': {
|
|
40
|
+
// Allow for 3 levels of depth
|
|
41
|
+
pattern: /(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,
|
|
42
|
+
greedy: true,
|
|
43
|
+
lookbehind: true,
|
|
44
|
+
inside: {
|
|
45
|
+
'string': {
|
|
46
|
+
pattern: /(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,
|
|
47
|
+
lookbehind: true
|
|
48
|
+
},
|
|
49
|
+
'keyword': parser.keyword,
|
|
50
|
+
'variable': parser.variable,
|
|
51
|
+
'function': parser.function,
|
|
52
|
+
'boolean': /\b(?:true|false)\b/,
|
|
53
|
+
'number': /\b(?:0x[a-f\d]+|\d+\.?\d*(?:e[+-]?\d+)?)\b/i,
|
|
54
|
+
'escape': parser.escape,
|
|
55
|
+
'operator': /[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,
|
|
56
|
+
'punctuation': parser.punctuation
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
parser = Prism.languages.insertBefore('inside', 'punctuation', {
|
|
62
|
+
'expression': parser.expression,
|
|
63
|
+
'keyword': parser.keyword,
|
|
64
|
+
'variable': parser.variable,
|
|
65
|
+
'function': parser.function,
|
|
66
|
+
'escape': parser.escape,
|
|
67
|
+
'parser-punctuation': {
|
|
68
|
+
pattern: parser.punctuation,
|
|
69
|
+
alias: 'punctuation'
|
|
70
|
+
}
|
|
71
|
+
}, parser['tag'].inside['attr-value']);
|
|
72
|
+
|
|
73
|
+
}(Prism));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){var n=e.languages.parser=e.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=e.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:true|false)\b/,number:/\b(?:0x[a-f\d]+|\d+\.?\d*(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),n=e.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(Prism);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Based on Free Pascal
|
|
2
|
+
|
|
3
|
+
/* TODO
|
|
4
|
+
Support inline asm ?
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
Prism.languages.pascal = {
|
|
8
|
+
'comment': [
|
|
9
|
+
/\(\*[\s\S]+?\*\)/,
|
|
10
|
+
/\{[\s\S]+?\}/,
|
|
11
|
+
/\/\/.*/
|
|
12
|
+
],
|
|
13
|
+
'string': {
|
|
14
|
+
pattern: /(?:'(?:''|[^'\r\n])*'|#[&$%]?[a-f\d]+)+|\^[a-z]/i,
|
|
15
|
+
greedy: true
|
|
16
|
+
},
|
|
17
|
+
'keyword': [
|
|
18
|
+
{
|
|
19
|
+
// Turbo Pascal
|
|
20
|
+
pattern: /(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,
|
|
21
|
+
lookbehind: true
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
// Free Pascal
|
|
25
|
+
pattern: /(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,
|
|
26
|
+
lookbehind: true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
// Object Pascal
|
|
30
|
+
pattern: /(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,
|
|
31
|
+
lookbehind: true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
// Modifiers
|
|
35
|
+
pattern: /(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,
|
|
36
|
+
lookbehind: true
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
'number': [
|
|
40
|
+
// Hexadecimal, octal and binary
|
|
41
|
+
/(?:[&%]\d+|\$[a-f\d]+)/i,
|
|
42
|
+
// Decimal
|
|
43
|
+
/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i
|
|
44
|
+
],
|
|
45
|
+
'operator': [
|
|
46
|
+
/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/i,
|
|
47
|
+
{
|
|
48
|
+
pattern: /(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,
|
|
49
|
+
lookbehind: true
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
'punctuation': /\(\.|\.\)|[()\[\]:;,.]/
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
Prism.languages.objectpascal = Prism.languages.pascal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Prism.languages.pascal={comment:[/\(\*[\s\S]+?\*\)/,/\{[\s\S]+?\}/,/\/\/.*/],string:{pattern:/(?:'(?:''|[^'\r\n])*'|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/i,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},Prism.languages.objectpascal=Prism.languages.pascal;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Prism.languages.insertBefore('php', 'variable', {
|
|
2
|
+
'this': /\$this\b/,
|
|
3
|
+
'global': /\$(?:_(?:SERVER|GET|POST|FILES|REQUEST|SESSION|ENV|COOKIE)|GLOBALS|HTTP_RAW_POST_DATA|argc|argv|php_errormsg|http_response_header)\b/,
|
|
4
|
+
'scope': {
|
|
5
|
+
pattern: /\b[\w\\]+::/,
|
|
6
|
+
inside: {
|
|
7
|
+
keyword: /static|self|parent/,
|
|
8
|
+
punctuation: /::|\\/
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Prism.languages.insertBefore("php","variable",{this:/\$this\b/,global:/\$(?:_(?:SERVER|GET|POST|FILES|REQUEST|SESSION|ENV|COOKIE)|GLOBALS|HTTP_RAW_POST_DATA|argc|argv|php_errormsg|http_response_header)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/static|self|parent/,punctuation:/::|\\/}}});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
(function (Prism) {
|
|
2
|
+
|
|
3
|
+
var typeExpression = /(?:[a-zA-Z]\w*|[|\\[\]])+/.source;
|
|
4
|
+
|
|
5
|
+
Prism.languages.phpdoc = Prism.languages.extend('javadoclike', {
|
|
6
|
+
'parameter': {
|
|
7
|
+
pattern: RegExp('(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:' + typeExpression + '\\s+)?)\\$\\w+'),
|
|
8
|
+
lookbehind: true
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
Prism.languages.insertBefore('phpdoc', 'keyword', {
|
|
13
|
+
'class-name': [
|
|
14
|
+
{
|
|
15
|
+
pattern: RegExp('(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)' + typeExpression),
|
|
16
|
+
lookbehind: true,
|
|
17
|
+
inside: {
|
|
18
|
+
'keyword': /\b(?:callback|resource|boolean|integer|double|object|string|array|false|float|mixed|bool|null|self|true|void|int)\b/,
|
|
19
|
+
'punctuation': /[|\\[\]()]/
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
Prism.languages.javadoclike.addSupport('php', Prism.languages.phpdoc);
|
|
26
|
+
|
|
27
|
+
}(Prism));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(a){var e="(?:[a-zA-Z]\\w*|[|\\\\[\\]])+";a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+e+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+e),lookbehind:!0,inside:{keyword:/\b(?:callback|resource|boolean|integer|double|object|string|array|false|float|mixed|bool|null|self|true|void|int)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(Prism);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function (Prism) {
|
|
2
|
+
|
|
3
|
+
var plsql = Prism.languages.plsql = Prism.languages.extend('sql', {
|
|
4
|
+
'comment': [
|
|
5
|
+
/\/\*[\s\S]*?\*\//,
|
|
6
|
+
/--.*/
|
|
7
|
+
]
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
var keyword = plsql['keyword'];
|
|
11
|
+
if (!Array.isArray(keyword)) {
|
|
12
|
+
keyword = plsql['keyword'] = [keyword];
|
|
13
|
+
}
|
|
14
|
+
keyword.unshift(
|
|
15
|
+
/\b(?:ACCESS|AGENT|AGGREGATE|ARRAY|ARROW|AT|ATTRIBUTE|AUDIT|AUTHID|BFILE_BASE|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BYTE|CALLING|CHAR_BASE|CHARSET(?:FORM|ID)|CLOB_BASE|COLAUTH|COLLECT|CLUSTERS?|COMPILED|COMPRESS|CONSTANT|CONSTRUCTOR|CONTEXT|CRASH|CUSTOMDATUM|DANGLING|DATE_BASE|DEFINE|DETERMINISTIC|DURATION|ELEMENT|EMPTY|EXCEPTIONS?|EXCLUSIVE|EXTERNAL|FINAL|FORALL|FORM|FOUND|GENERAL|HEAP|HIDDEN|IDENTIFIED|IMMEDIATE|INCLUDING|INCREMENT|INDICATOR|INDEXES|INDICES|INFINITE|INITIAL|ISOPEN|INSTANTIABLE|INTERFACE|INVALIDATE|JAVA|LARGE|LEADING|LENGTH|LIBRARY|LIKE[24C]|LIMITED|LONG|LOOP|MAP|MAXEXTENTS|MAXLEN|MEMBER|MINUS|MLSLABEL|MULTISET|NAME|NAN|NATIVE|NEW|NOAUDIT|NOCOMPRESS|NOCOPY|NOTFOUND|NOWAIT|NUMBER(?:_BASE)?|OBJECT|OCI(?:COLL|DATE|DATETIME|DURATION|INTERVAL|LOBLOCATOR|NUMBER|RAW|REF|REFCURSOR|ROWID|STRING|TYPE)|OFFLINE|ONLINE|ONLY|OPAQUE|OPERATOR|ORACLE|ORADATA|ORGANIZATION|ORL(?:ANY|VARY)|OTHERS|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETERS?|PASCAL|PCTFREE|PIPE(?:LINED)?|PRAGMA|PRIOR|PRIVATE|RAISE|RANGE|RAW|RECORD|REF|REFERENCE|REM|REMAINDER|RESULT|RESOURCE|RETURNING|REVERSE|ROW(?:ID|NUM|TYPE)|SAMPLE|SB[124]|SEGMENT|SELF|SEPARATE|SEQUENCE|SHORT|SIZE(?:_T)?|SPARSE|SQL(?:CODE|DATA|NAME|STATE)|STANDARD|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUCCESSFUL|SYNONYM|SYSDATE|TABAUTH|TDO|THE|TIMEZONE_(?:ABBR|HOUR|MINUTE|REGION)|TRAILING|TRANSAC(?:TIONAL)?|TRUSTED|UB[124]|UID|UNDER|UNTRUSTED|VALIDATE|VALIST|VARCHAR2|VARIABLE|VARIANCE|VARRAY|VIEWS|VOID|WHENEVER|WRAPPED|ZONE)\b/i
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
var operator = plsql['operator'];
|
|
19
|
+
if (!Array.isArray(operator)) {
|
|
20
|
+
operator = plsql['operator'] = [operator];
|
|
21
|
+
}
|
|
22
|
+
operator.unshift(
|
|
23
|
+
/:=/
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
}(Prism));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(E){var A=E.languages.plsql=E.languages.extend("sql",{comment:[/\/\*[\s\S]*?\*\//,/--.*/]}),T=A.keyword;Array.isArray(T)||(T=A.keyword=[T]),T.unshift(/\b(?:ACCESS|AGENT|AGGREGATE|ARRAY|ARROW|AT|ATTRIBUTE|AUDIT|AUTHID|BFILE_BASE|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BYTE|CALLING|CHAR_BASE|CHARSET(?:FORM|ID)|CLOB_BASE|COLAUTH|COLLECT|CLUSTERS?|COMPILED|COMPRESS|CONSTANT|CONSTRUCTOR|CONTEXT|CRASH|CUSTOMDATUM|DANGLING|DATE_BASE|DEFINE|DETERMINISTIC|DURATION|ELEMENT|EMPTY|EXCEPTIONS?|EXCLUSIVE|EXTERNAL|FINAL|FORALL|FORM|FOUND|GENERAL|HEAP|HIDDEN|IDENTIFIED|IMMEDIATE|INCLUDING|INCREMENT|INDICATOR|INDEXES|INDICES|INFINITE|INITIAL|ISOPEN|INSTANTIABLE|INTERFACE|INVALIDATE|JAVA|LARGE|LEADING|LENGTH|LIBRARY|LIKE[24C]|LIMITED|LONG|LOOP|MAP|MAXEXTENTS|MAXLEN|MEMBER|MINUS|MLSLABEL|MULTISET|NAME|NAN|NATIVE|NEW|NOAUDIT|NOCOMPRESS|NOCOPY|NOTFOUND|NOWAIT|NUMBER(?:_BASE)?|OBJECT|OCI(?:COLL|DATE|DATETIME|DURATION|INTERVAL|LOBLOCATOR|NUMBER|RAW|REF|REFCURSOR|ROWID|STRING|TYPE)|OFFLINE|ONLINE|ONLY|OPAQUE|OPERATOR|ORACLE|ORADATA|ORGANIZATION|ORL(?:ANY|VARY)|OTHERS|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETERS?|PASCAL|PCTFREE|PIPE(?:LINED)?|PRAGMA|PRIOR|PRIVATE|RAISE|RANGE|RAW|RECORD|REF|REFERENCE|REM|REMAINDER|RESULT|RESOURCE|RETURNING|REVERSE|ROW(?:ID|NUM|TYPE)|SAMPLE|SB[124]|SEGMENT|SELF|SEPARATE|SEQUENCE|SHORT|SIZE(?:_T)?|SPARSE|SQL(?:CODE|DATA|NAME|STATE)|STANDARD|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUCCESSFUL|SYNONYM|SYSDATE|TABAUTH|TDO|THE|TIMEZONE_(?:ABBR|HOUR|MINUTE|REGION)|TRAILING|TRANSAC(?:TIONAL)?|TRUSTED|UB[124]|UID|UNDER|UNTRUSTED|VALIDATE|VALIST|VARCHAR2|VARIABLE|VARIANCE|VARRAY|VIEWS|VOID|WHENEVER|WRAPPED|ZONE)\b/i);var R=A.operator;Array.isArray(R)||(R=A.operator=[R]),R.unshift(/:=/)}(Prism);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
(function (Prism) {
|
|
2
|
+
|
|
3
|
+
var powershell = Prism.languages.powershell = {
|
|
4
|
+
'comment': [
|
|
5
|
+
{
|
|
6
|
+
pattern: /(^|[^`])<#[\s\S]*?#>/,
|
|
7
|
+
lookbehind: true
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
pattern: /(^|[^`])#.*/,
|
|
11
|
+
lookbehind: true
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
'string': [
|
|
15
|
+
{
|
|
16
|
+
pattern: /"(?:`[\s\S]|[^`"])*"/,
|
|
17
|
+
greedy: true,
|
|
18
|
+
inside: {
|
|
19
|
+
'function': {
|
|
20
|
+
// Allow for one level of nesting
|
|
21
|
+
pattern: /(^|[^`])\$\((?:\$\(.*?\)|(?!\$\()[^\r\n)])*\)/,
|
|
22
|
+
lookbehind: true,
|
|
23
|
+
// Populated at end of file
|
|
24
|
+
inside: {}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
pattern: /'(?:[^']|'')*'/,
|
|
30
|
+
greedy: true
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
// Matches name spaces as well as casts, attribute decorators. Force starting with letter to avoid matching array indices
|
|
34
|
+
// Supports two levels of nested brackets (e.g. `[OutputType([System.Collections.Generic.List[int]])]`)
|
|
35
|
+
'namespace': /\[[a-z](?:\[(?:\[[^\]]*]|[^\[\]])*]|[^\[\]])*]/i,
|
|
36
|
+
'boolean': /\$(?:true|false)\b/i,
|
|
37
|
+
'variable': /\$\w+\b/i,
|
|
38
|
+
// Cmdlets and aliases. Aliases should come last, otherwise "write" gets preferred over "write-host" for example
|
|
39
|
+
// Get-Command | ?{ $_.ModuleName -match "Microsoft.PowerShell.(Util|Core|Management)" }
|
|
40
|
+
// Get-Alias | ?{ $_.ReferencedCommand.Module.Name -match "Microsoft.PowerShell.(Util|Core|Management)" }
|
|
41
|
+
'function': [
|
|
42
|
+
/\b(?:Add-(?:Computer|Content|History|Member|PSSnapin|Type)|Checkpoint-Computer|Clear-(?:Content|EventLog|History|Item|ItemProperty|Variable)|Compare-Object|Complete-Transaction|Connect-PSSession|ConvertFrom-(?:Csv|Json|StringData)|Convert-Path|ConvertTo-(?:Csv|Html|Json|Xml)|Copy-(?:Item|ItemProperty)|Debug-Process|Disable-(?:ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)|Disconnect-PSSession|Enable-(?:ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)|Enter-PSSession|Exit-PSSession|Export-(?:Alias|Clixml|Console|Csv|FormatData|ModuleMember|PSSession)|ForEach-Object|Format-(?:Custom|List|Table|Wide)|Get-(?:Alias|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Culture|Date|Event|EventLog|EventSubscriber|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|WmiObject)|Group-Object|Import-(?:Alias|Clixml|Csv|LocalizedData|Module|PSSession)|Invoke-(?:Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)|Join-Path|Limit-EventLog|Measure-(?:Command|Object)|Move-(?:Item|ItemProperty)|New-(?:Alias|Event|EventLog|Item|ItemProperty|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy)|Out-(?:Default|File|GridView|Host|Null|Printer|String)|Pop-Location|Push-Location|Read-Host|Receive-(?:Job|PSSession)|Register-(?:EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)|Remove-(?:Computer|Event|EventLog|Item|ItemProperty|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)|Rename-(?:Computer|Item|ItemProperty)|Reset-ComputerMachinePassword|Resolve-Path|Restart-(?:Computer|Service)|Restore-Computer|Resume-(?:Job|Service)|Save-Help|Select-(?:Object|String|Xml)|Send-MailMessage|Set-(?:Alias|Content|Date|Item|ItemProperty|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)|Show-(?:Command|ControlPanelItem|EventLog)|Sort-Object|Split-Path|Start-(?:Job|Process|Service|Sleep|Transaction)|Stop-(?:Computer|Job|Process|Service)|Suspend-(?:Job|Service)|Tee-Object|Test-(?:ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)|Trace-Command|Unblock-File|Undo-Transaction|Unregister-(?:Event|PSSessionConfiguration)|Update-(?:FormatData|Help|List|TypeData)|Use-Transaction|Wait-(?:Event|Job|Process)|Where-Object|Write-(?:Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning))\b/i,
|
|
43
|
+
/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i
|
|
44
|
+
],
|
|
45
|
+
// per http://technet.microsoft.com/en-us/library/hh847744.aspx
|
|
46
|
+
'keyword': /\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,
|
|
47
|
+
'operator': {
|
|
48
|
+
pattern: /(\W?)(?:!|-(eq|ne|gt|ge|lt|le|sh[lr]|not|b?(?:and|x?or)|(?:Not)?(?:Like|Match|Contains|In)|Replace|Join|is(?:Not)?|as)\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,
|
|
49
|
+
lookbehind: true
|
|
50
|
+
},
|
|
51
|
+
'punctuation': /[|{}[\];(),.]/
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// Variable interpolation inside strings, and nested expressions
|
|
55
|
+
var stringInside = powershell.string[0].inside;
|
|
56
|
+
stringInside.boolean = powershell.boolean;
|
|
57
|
+
stringInside.variable = powershell.variable;
|
|
58
|
+
stringInside.function.inside = powershell;
|
|
59
|
+
|
|
60
|
+
}(Prism));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){var t=Prism.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:{function:{pattern:/(^|[^`])\$\((?:\$\(.*?\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:{}}}},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*]|[^\[\]])*]|[^\[\]])*]/i,boolean:/\$(?:true|false)\b/i,variable:/\$\w+\b/i,function:[/\b(?:Add-(?:Computer|Content|History|Member|PSSnapin|Type)|Checkpoint-Computer|Clear-(?:Content|EventLog|History|Item|ItemProperty|Variable)|Compare-Object|Complete-Transaction|Connect-PSSession|ConvertFrom-(?:Csv|Json|StringData)|Convert-Path|ConvertTo-(?:Csv|Html|Json|Xml)|Copy-(?:Item|ItemProperty)|Debug-Process|Disable-(?:ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)|Disconnect-PSSession|Enable-(?:ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)|Enter-PSSession|Exit-PSSession|Export-(?:Alias|Clixml|Console|Csv|FormatData|ModuleMember|PSSession)|ForEach-Object|Format-(?:Custom|List|Table|Wide)|Get-(?:Alias|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Culture|Date|Event|EventLog|EventSubscriber|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|WmiObject)|Group-Object|Import-(?:Alias|Clixml|Csv|LocalizedData|Module|PSSession)|Invoke-(?:Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)|Join-Path|Limit-EventLog|Measure-(?:Command|Object)|Move-(?:Item|ItemProperty)|New-(?:Alias|Event|EventLog|Item|ItemProperty|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy)|Out-(?:Default|File|GridView|Host|Null|Printer|String)|Pop-Location|Push-Location|Read-Host|Receive-(?:Job|PSSession)|Register-(?:EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)|Remove-(?:Computer|Event|EventLog|Item|ItemProperty|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)|Rename-(?:Computer|Item|ItemProperty)|Reset-ComputerMachinePassword|Resolve-Path|Restart-(?:Computer|Service)|Restore-Computer|Resume-(?:Job|Service)|Save-Help|Select-(?:Object|String|Xml)|Send-MailMessage|Set-(?:Alias|Content|Date|Item|ItemProperty|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)|Show-(?:Command|ControlPanelItem|EventLog)|Sort-Object|Split-Path|Start-(?:Job|Process|Service|Sleep|Transaction)|Stop-(?:Computer|Job|Process|Service)|Suspend-(?:Job|Service)|Tee-Object|Test-(?:ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)|Trace-Command|Unblock-File|Undo-Transaction|Unregister-(?:Event|PSSessionConfiguration)|Update-(?:FormatData|Help|List|TypeData)|Use-Transaction|Wait-(?:Event|Job|Process)|Where-Object|Write-(?:Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning))\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(\W?)(?:!|-(eq|ne|gt|ge|lt|le|sh[lr]|not|b?(?:and|x?or)|(?:Not)?(?:Like|Match|Contains|In)|Replace|Join|is(?:Not)?|as)\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/},o=t.string[0].inside;o.boolean=t.boolean,o.variable=t.variable,o.function.inside=t}();
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Prism.languages.processing = Prism.languages.extend('clike', {
|
|
2
|
+
'keyword': /\b(?:break|catch|case|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,
|
|
3
|
+
'operator': /<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/
|
|
4
|
+
});
|
|
5
|
+
Prism.languages.insertBefore('processing', 'number', {
|
|
6
|
+
// Special case: XML is a type
|
|
7
|
+
'constant': /\b(?!XML\b)[A-Z][A-Z\d_]+\b/,
|
|
8
|
+
'type': {
|
|
9
|
+
pattern: /\b(?:boolean|byte|char|color|double|float|int|XML|[A-Z]\w*)\b/,
|
|
10
|
+
alias: 'variable'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// Spaces are allowed between function name and parenthesis
|
|
15
|
+
Prism.languages.processing['function'].pattern = /\w+(?=\s*\()/;
|
|
16
|
+
|
|
17
|
+
// Class-names is not styled by default
|
|
18
|
+
Prism.languages.processing['class-name'].alias = 'variable';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Prism.languages.processing=Prism.languages.extend("clike",{keyword:/\b(?:break|catch|case|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),Prism.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|XML|[A-Z]\w*)\b/,alias:"variable"}}),Prism.languages.processing.function.pattern=/\w+(?=\s*\()/,Prism.languages.processing["class-name"].alias="variable";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Prism.languages.prolog = {
|
|
2
|
+
// Syntax depends on the implementation
|
|
3
|
+
'comment': [
|
|
4
|
+
/%.+/,
|
|
5
|
+
/\/\*[\s\S]*?\*\//
|
|
6
|
+
],
|
|
7
|
+
// Depending on the implementation, strings may allow escaped newlines and quote-escape
|
|
8
|
+
'string': {
|
|
9
|
+
pattern: /(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
10
|
+
greedy: true
|
|
11
|
+
},
|
|
12
|
+
'builtin': /\b(?:fx|fy|xf[xy]?|yfx?)\b/,
|
|
13
|
+
'variable': /\b[A-Z_]\w*/,
|
|
14
|
+
// FIXME: Should we list all null-ary predicates (not followed by a parenthesis) like halt, trace, etc.?
|
|
15
|
+
'function': /\b[a-z]\w*(?:(?=\()|\/\d+)/,
|
|
16
|
+
'number': /\b\d+\.?\d*/,
|
|
17
|
+
// Custom operators are allowed
|
|
18
|
+
'operator': /[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,
|
|
19
|
+
'punctuation': /[(){}\[\],]/
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Prism.languages.prolog={comment:[/%.+/,/\/\*[\s\S]*?\*\//],string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,variable:/\b[A-Z_]\w*/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+\.?\d*/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Prism.languages.properties = {
|
|
2
|
+
'comment': /^[ \t]*[#!].*$/m,
|
|
3
|
+
'attr-value': {
|
|
4
|
+
pattern: /(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+?(?: *[=:] *| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,
|
|
5
|
+
lookbehind: true
|
|
6
|
+
},
|
|
7
|
+
'attr-name': /^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+?(?= *[=:] *| )/m,
|
|
8
|
+
'punctuation': /[=:]/
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Prism.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+?(?: *[=:] *| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+?(?= *[=:] *| )/m,punctuation:/[=:]/};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Prism.languages.protobuf = Prism.languages.extend('clike', {
|
|
2
|
+
keyword: /\b(?:package|import|message|enum)\b/,
|
|
3
|
+
builtin: /\b(?:required|repeated|optional|reserved)\b/,
|
|
4
|
+
primitive: {
|
|
5
|
+
pattern: /\b(?:double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes)\b/,
|
|
6
|
+
alias: 'symbol'
|
|
7
|
+
}
|
|
8
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Prism.languages.protobuf=Prism.languages.extend("clike",{keyword:/\b(?:package|import|message|enum)\b/,builtin:/\b(?:required|repeated|optional|reserved)\b/,primitive:{pattern:/\b(?:double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes)\b/,alias:"symbol"}});
|