easy-email-pro-theme 0.2.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/lib/VariablesEditorContent-08997e30.mjs +147384 -0
- package/lib/abap-e7729493.mjs +1315 -0
- package/lib/apex-ea0b1b44.mjs +320 -0
- package/lib/assets/json.worker-2db083a8.js +16634 -0
- package/lib/azcli-92ca1f6b.mjs +75 -0
- package/lib/bat-a8aff72a.mjs +96 -0
- package/lib/bicep-a4d73496.mjs +116 -0
- package/lib/cameligo-93a61573.mjs +169 -0
- package/lib/clojure-a4292303.mjs +755 -0
- package/lib/coffee-c79fd580.mjs +229 -0
- package/lib/cpp-4bbc4355.mjs +391 -0
- package/lib/csharp-8ee8b919.mjs +321 -0
- package/lib/csp-7ff23ab5.mjs +58 -0
- package/lib/css-675efd06.mjs +185 -0
- package/lib/cssMode-e5b02650.mjs +2031 -0
- package/lib/cypher-ff6c93d1.mjs +263 -0
- package/lib/dart-b81ee8da.mjs +271 -0
- package/lib/dockerfile-4d34b657.mjs +133 -0
- package/lib/ecl-829c6c9f.mjs +455 -0
- package/lib/elixir-d20ab92c.mjs +490 -0
- package/lib/flow9-d363677c.mjs +142 -0
- package/lib/freemarker2-07352200.mjs +675 -0
- package/lib/fsharp-e5e10937.mjs +211 -0
- package/lib/go-49d8dd1b.mjs +209 -0
- package/lib/graphql-397d36cc.mjs +142 -0
- package/lib/handlebars-eb587af4.mjs +403 -0
- package/lib/hcl-2bc5a11b.mjs +178 -0
- package/lib/html-805b20b1.mjs +293 -0
- package/lib/html2canvas.esm-858519c4.mjs +7837 -0
- package/lib/htmlMode-a339a06a.mjs +2047 -0
- package/lib/index.js +40838 -0
- package/lib/ini-777fd0a6.mjs +69 -0
- package/lib/java-88c2ae93.mjs +222 -0
- package/lib/javascript-b5849f55.mjs +78 -0
- package/lib/jsonMode-1b509c19.mjs +2607 -0
- package/lib/julia-7e1d65a2.mjs +497 -0
- package/lib/kotlin-da15198d.mjs +246 -0
- package/lib/less-0057666d.mjs +168 -0
- package/lib/lexon-4f74b04c.mjs +152 -0
- package/lib/liquid-d5c8a287.mjs +250 -0
- package/lib/lua-da0a0c60.mjs +158 -0
- package/lib/m3-14d67e1c.mjs +211 -0
- package/lib/markdown-37ba20b1.mjs +203 -0
- package/lib/mips-d0b2c227.mjs +195 -0
- package/lib/monacoeditorwork/css.worker.bundle.js +46736 -0
- package/lib/monacoeditorwork/editor.worker.bundle.js +9954 -0
- package/lib/monacoeditorwork/html.worker.bundle.js +25985 -0
- package/lib/monacoeditorwork/json.worker.bundle.js +17214 -0
- package/lib/monacoeditorwork/ts.worker.bundle.js +172133 -0
- package/lib/msdax-29068c66.mjs +378 -0
- package/lib/mysql-7833c854.mjs +877 -0
- package/lib/objective-c-91c200d7.mjs +189 -0
- package/lib/pascal-eb8fa4fd.mjs +246 -0
- package/lib/pascaligo-855a8af1.mjs +159 -0
- package/lib/perl-6aab1ca2.mjs +600 -0
- package/lib/pgsql-f2266c91.mjs +848 -0
- package/lib/php-9806c791.mjs +472 -0
- package/lib/pla-c1d8ec04.mjs +132 -0
- package/lib/postiats-04d6db22.mjs +545 -0
- package/lib/powerquery-ec4dd65a.mjs +891 -0
- package/lib/powershell-cc02a40e.mjs +234 -0
- package/lib/protobuf-83b8e701.mjs +423 -0
- package/lib/pug-06fecd70.mjs +394 -0
- package/lib/python-7da9e073.mjs +270 -0
- package/lib/qsharp-232171da.mjs +283 -0
- package/lib/r-c048a1d4.mjs +246 -0
- package/lib/razor-c88b46b3.mjs +524 -0
- package/lib/redis-4399e06c.mjs +299 -0
- package/lib/redshift-ba36da77.mjs +807 -0
- package/lib/restructuredtext-cac6fcb7.mjs +163 -0
- package/lib/ruby-dca5ee98.mjs +445 -0
- package/lib/rust-c0b8769e.mjs +338 -0
- package/lib/sb-2b0bce6c.mjs +111 -0
- package/lib/scala-58e9dfc7.mjs +354 -0
- package/lib/scheme-fdc48747.mjs +115 -0
- package/lib/scss-defea6f2.mjs +243 -0
- package/lib/shell-8e11dc85.mjs +225 -0
- package/lib/solidity-8d74b890.mjs +1352 -0
- package/lib/sophia-b97eb718.mjs +191 -0
- package/lib/sparql-68163824.mjs +194 -0
- package/lib/sql-59977475.mjs +819 -0
- package/lib/st-febe75da.mjs +415 -0
- package/lib/style.css +6503 -0
- package/lib/swift-b95bae51.mjs +316 -0
- package/lib/systemverilog-4461e8b3.mjs +557 -0
- package/lib/tcl-8f97c15f.mjs +233 -0
- package/lib/tsMode-934544e6.mjs +1216 -0
- package/lib/twig-a68d494c.mjs +324 -0
- package/lib/typescript-049ec7b9.mjs +339 -0
- package/lib/typings/assets/font/iconfont.d.ts +0 -0
- package/lib/typings/components/BlockSideBar/BlockItem/index.d.ts +9 -0
- package/lib/typings/components/BlockSideBar/BlockList/index.d.ts +5 -0
- package/lib/typings/components/BlockSideBar/BlocksPanel/index.d.ts +2 -0
- package/lib/typings/components/BlockSideBar/LayoutItem/index.d.ts +6 -0
- package/lib/typings/components/BlockSideBar/index.d.ts +5 -0
- package/lib/typings/components/ColumnLayout/LayoutItemList.d.ts +6 -0
- package/lib/typings/components/ColumnLayout/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationDrawer/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/Button/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/Column/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/Divider/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/Hero/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/Image/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/Navbar/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/Page/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/Section/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/Social/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/Spacer/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/Text/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/Wrapper/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/Elements/index.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/BackgroundColor.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/BackgroundImage.d.ts +8 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/BackgroundPosition.d.ts +8 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/Border.d.ts +11 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/BorderRadius.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/ButtonCategory.d.ts +10 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/Buttons.d.ts +18 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/Columns.d.ts +8 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/Direction.d.ts +9 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/DisplayOptions/Condition.d.ts +9 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/DisplayOptions/Iteration.d.ts +9 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/DisplayOptions/index.d.ts +3 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/DividerLine.d.ts +10 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/FontFamily.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/FontSize.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/FontWeight.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/GlobalLink.d.ts +2 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/Heading.d.ts +7 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/Height.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/ImageUrl.d.ts +6 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/ImageWidth.d.ts +7 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/LetterSpacing.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/LineHeight.d.ts +7 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/Link.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/Padding.d.ts +10 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/PixelAndPercentField.d.ts +11 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/PixelField.d.ts +3 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/StackOnMobile.d.ts +7 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/TextAlign.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/TextAndHeadingList.d.ts +6 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/TextAndHeadingStyle.d.ts +8 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/Typography.d.ts +17 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/VerticalAlign.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/WebFonts.d.ts +2 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/Width.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributeField/index.d.ts +103 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributePanel.d.ts +2 -0
- package/lib/typings/components/ConfigurationPanel/components/AttributesPanelWrapper/index.d.ts +8 -0
- package/lib/typings/components/ConfigurationPanel/components/CollapseWrapper/index.d.ts +7 -0
- package/lib/typings/components/ConfigurationPanel/components/ResponsiveTabs/ResponsiveField.d.ts +5 -0
- package/lib/typings/components/ConfigurationPanel/components/ResponsiveTabs/index.d.ts +11 -0
- package/lib/typings/components/ConfigurationPanel/components/SourceCodePanel/index.d.ts +2 -0
- package/lib/typings/components/ConfigurationPanel/components/UniversalElementPanel/index.d.ts +2 -0
- package/lib/typings/components/ConfigurationPanel/index.d.ts +8 -0
- package/lib/typings/components/Controller/index.d.ts +3 -0
- package/lib/typings/components/EditorTabs/components/PreviewEmail/components/DesktopEmailPreview/index.d.ts +5 -0
- package/lib/typings/components/EditorTabs/components/PreviewEmail/components/MobilePreview/index.d.ts +5 -0
- package/lib/typings/components/EditorTabs/components/PreviewEmail/index.d.ts +8 -0
- package/lib/typings/components/EditorTabs/components/PreviewEmailDrawer/index.d.ts +4 -0
- package/lib/typings/components/EditorTabs/components/TabHeader/index.d.ts +5 -0
- package/lib/typings/components/EditorTabs/index.d.ts +4 -0
- package/lib/typings/components/Form/ButtonField.d.ts +13 -0
- package/lib/typings/components/Form/ButtonGroupField.d.ts +15 -0
- package/lib/typings/components/Form/ColorPicker/ColorPickerContent.d.ts +7 -0
- package/lib/typings/components/Form/ColorPicker/index.d.ts +14 -0
- package/lib/typings/components/Form/EditPanelListField.d.ts +17 -0
- package/lib/typings/components/Form/EditPanelTabsField.d.ts +13 -0
- package/lib/typings/components/Form/ImageUploaderField/index.d.ts +20 -0
- package/lib/typings/components/Form/RichTextField/index.d.ts +10 -0
- package/lib/typings/components/Form/Select.d.ts +11 -0
- package/lib/typings/components/Form/SwitchField/index.d.ts +5 -0
- package/lib/typings/components/Form/SyncChildrenField.d.ts +11 -0
- package/lib/typings/components/Form/VariablesEditor/VariablesEditorContent.d.ts +7 -0
- package/lib/typings/components/Form/VariablesEditor/index.d.ts +2 -0
- package/lib/typings/components/Form/WatchField.d.ts +11 -0
- package/lib/typings/components/Form/adapter/JsonAdapter.d.ts +4 -0
- package/lib/typings/components/Form/adapter/color.adapter.d.ts +4 -0
- package/lib/typings/components/Form/adapter/fontStyle.adapter.d.ts +4 -0
- package/lib/typings/components/Form/adapter/fontWeight.adapter.d.ts +4 -0
- package/lib/typings/components/Form/adapter/index.d.ts +8 -0
- package/lib/typings/components/Form/adapter/italic.adapter.d.ts +4 -0
- package/lib/typings/components/Form/adapter/pixel.adapter.d.ts +4 -0
- package/lib/typings/components/Form/adapter/pixelNumber.adapter.d.ts +4 -0
- package/lib/typings/components/Form/adapter/slider.adapter.d.ts +4 -0
- package/lib/typings/components/Form/enhancer.d.ts +12 -0
- package/lib/typings/components/Form/index.d.ts +26 -0
- package/lib/typings/components/FullHeightOverlayScrollbars/index.d.ts +9 -0
- package/lib/typings/components/FullScreenLoading/index.d.ts +7 -0
- package/lib/typings/components/Hotkeys/index.d.ts +2 -0
- package/lib/typings/components/HoveringToolbar/RichTextBar.d.ts +6 -0
- package/lib/typings/components/HoveringToolbar/componens/BgColor.d.ts +2 -0
- package/lib/typings/components/HoveringToolbar/componens/FontColor.d.ts +2 -0
- package/lib/typings/components/HoveringToolbar/componens/FontFamily.d.ts +2 -0
- package/lib/typings/components/HoveringToolbar/componens/FontSize.d.ts +2 -0
- package/lib/typings/components/HoveringToolbar/componens/FormatButton.d.ts +9 -0
- package/lib/typings/components/HoveringToolbar/componens/MergeTag.d.ts +8 -0
- package/lib/typings/components/HoveringToolbar/componens/TextAlign.d.ts +2 -0
- package/lib/typings/components/HoveringToolbar/componens/TextLink.d.ts +2 -0
- package/lib/typings/components/HoveringToolbar/componens/TurnInto.d.ts +2 -0
- package/lib/typings/components/HoveringToolbar/constants.d.ts +0 -0
- package/lib/typings/components/HoveringToolbar/index.d.ts +3 -0
- package/lib/typings/components/HoveringToolbar/utils/getLinkNode.d.ts +3 -0
- package/lib/typings/components/IconFont/index.d.ts +10 -0
- package/lib/typings/components/MergeTagComponent/index.d.ts +7 -0
- package/lib/typings/components/MergetagPopover/index.d.ts +2 -0
- package/lib/typings/components/Providers/ControllerProvider.d.ts +4 -0
- package/lib/typings/components/Providers/DraggingProvider.d.ts +20 -0
- package/lib/typings/components/Providers/FormProvider.d.ts +4 -0
- package/lib/typings/components/Providers/UniversalElementProvider.d.ts +10 -0
- package/lib/typings/components/Providers/index.d.ts +6 -0
- package/lib/typings/components/UniversalElementEditorDrawer/index.d.ts +5 -0
- package/lib/typings/components/UnsplashImages/index.d.ts +206 -0
- package/lib/typings/components/index.d.ts +69 -0
- package/lib/typings/hooks/index.d.ts +6 -0
- package/lib/typings/hooks/useDragging.d.ts +15 -0
- package/lib/typings/hooks/useEditorForm.d.ts +12 -0
- package/lib/typings/hooks/useElementDefault.d.ts +9 -0
- package/lib/typings/hooks/useElementInteract.d.ts +6 -0
- package/lib/typings/hooks/useFontFamily.d.ts +7 -0
- package/lib/typings/hooks/useUniversalContent.d.ts +1 -0
- package/lib/typings/index.d.ts +5 -0
- package/lib/typings/store/ColorState.d.ts +9 -0
- package/lib/typings/store/EditorState.d.ts +12 -0
- package/lib/typings/store/Minimalist.d.ts +35 -0
- package/lib/typings/store/index.d.ts +49 -0
- package/lib/typings/themes/Minimalist/components/AutoSelectElement.d.ts +2 -0
- package/lib/typings/themes/Minimalist/components/BlockMenusOverlay/index.d.ts +2 -0
- package/lib/typings/themes/Minimalist/components/BlockResizer/index.d.ts +12 -0
- package/lib/typings/themes/Minimalist/components/ColumnLayoutOverlay/index.d.ts +2 -0
- package/lib/typings/themes/Minimalist/components/ElementHover/index.d.ts +2 -0
- package/lib/typings/themes/Minimalist/components/ElementPlaceholder/index.d.ts +2 -0
- package/lib/typings/themes/Minimalist/components/ElementSelected/index.d.ts +2 -0
- package/lib/typings/themes/Minimalist/components/ElementTools/index.d.ts +8 -0
- package/lib/typings/themes/Minimalist/components/ImageAction/MoreActionsMenusOverlay/index.d.ts +10 -0
- package/lib/typings/themes/Minimalist/components/ImageAction/MoreIcon/index.d.ts +5 -0
- package/lib/typings/themes/Minimalist/components/ImageAction/index.d.ts +7 -0
- package/lib/typings/themes/Minimalist/index.d.ts +10 -0
- package/lib/typings/themes/Minimalist/withTheme.d.ts +4 -0
- package/lib/typings/themes/Retro/components/AutoDeselectElement.d.ts +2 -0
- package/lib/typings/themes/Retro/components/ElementInteract/AddIcon/index.d.ts +2 -0
- package/lib/typings/themes/Retro/components/ElementInteract/DragIcon/index.d.ts +4 -0
- package/lib/typings/themes/Retro/components/ElementInteract/ElementHover/index.d.ts +2 -0
- package/lib/typings/themes/Retro/components/ElementInteract/ElementPlaceholder/index.d.ts +2 -0
- package/lib/typings/themes/Retro/components/ElementInteract/ElementSelected/index.d.ts +2 -0
- package/lib/typings/themes/Retro/components/ElementInteract/ElementTools/index.d.ts +8 -0
- package/lib/typings/themes/Retro/components/ElementInteract/index.d.ts +3 -0
- package/lib/typings/themes/Retro/index.d.ts +10 -0
- package/lib/typings/themes/Retro/withTheme.d.ts +2 -0
- package/lib/typings/themes/index.d.ts +2 -0
- package/lib/typings/typings/custom-types.d.ts +96 -0
- package/lib/typings/typings/index.d.ts +1 -0
- package/lib/typings/utils/Uploader.d.ts +35 -0
- package/lib/typings/utils/environment.d.ts +1 -0
- package/lib/typings/utils/generateLogic.d.ts +3 -0
- package/lib/typings/utils/getElementPageLayout.d.ts +16 -0
- package/lib/typings/utils/getFallbackValue.d.ts +7 -0
- package/lib/typings/utils/hideCursor.d.ts +2 -0
- package/lib/typings/utils/hotkeys.d.ts +18 -0
- package/lib/typings/utils/index.d.ts +2 -0
- package/lib/typings/utils/isValidHttpUrl.d.ts +1 -0
- package/lib/typings/utils/mjmlToJson/HtmlNodeAdapter.d.ts +2 -0
- package/lib/typings/utils/mjmlToJson/basicElementToStandardElement.d.ts +2 -0
- package/lib/typings/utils/mjmlToJson/formatPadding.d.ts +1 -0
- package/lib/typings/utils/mjmlToJson/index.d.ts +2 -0
- package/lib/typings/utils/onDrag.d.ts +10 -0
- package/lib/typings/utils/previewLoadImage.d.ts +1 -0
- package/lib/vb-dfbee74a.mjs +365 -0
- package/lib/xml-c6d1e274.mjs +106 -0
- package/lib/yaml-3c88ef61.mjs +195 -0
- package/package.json +44 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { m as monaco_editor_core_star } from "./VariablesEditorContent-08997e30.mjs";
|
|
2
|
+
import "react";
|
|
3
|
+
import "easy-email-pro-core";
|
|
4
|
+
/*!-----------------------------------------------------------------------------
|
|
5
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6
|
+
* Version: 0.36.1(6c56744c3419458f0dd48864520b759d1a3a1ca8)
|
|
7
|
+
* Released under the MIT license
|
|
8
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
9
|
+
*-----------------------------------------------------------------------------*/
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from))
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
23
|
+
var monaco_editor_core_exports = {};
|
|
24
|
+
__reExport(monaco_editor_core_exports, monaco_editor_core_star);
|
|
25
|
+
var EMPTY_ELEMENTS = [
|
|
26
|
+
"area",
|
|
27
|
+
"base",
|
|
28
|
+
"br",
|
|
29
|
+
"col",
|
|
30
|
+
"embed",
|
|
31
|
+
"hr",
|
|
32
|
+
"img",
|
|
33
|
+
"input",
|
|
34
|
+
"keygen",
|
|
35
|
+
"link",
|
|
36
|
+
"menuitem",
|
|
37
|
+
"meta",
|
|
38
|
+
"param",
|
|
39
|
+
"source",
|
|
40
|
+
"track",
|
|
41
|
+
"wbr"
|
|
42
|
+
];
|
|
43
|
+
var conf = {
|
|
44
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
45
|
+
brackets: [
|
|
46
|
+
["<!--", "-->"],
|
|
47
|
+
["<", ">"],
|
|
48
|
+
["{{", "}}"],
|
|
49
|
+
["{%", "%}"],
|
|
50
|
+
["{", "}"],
|
|
51
|
+
["(", ")"]
|
|
52
|
+
],
|
|
53
|
+
autoClosingPairs: [
|
|
54
|
+
{ open: "{", close: "}" },
|
|
55
|
+
{ open: "%", close: "%" },
|
|
56
|
+
{ open: "[", close: "]" },
|
|
57
|
+
{ open: "(", close: ")" },
|
|
58
|
+
{ open: '"', close: '"' },
|
|
59
|
+
{ open: "'", close: "'" }
|
|
60
|
+
],
|
|
61
|
+
surroundingPairs: [
|
|
62
|
+
{ open: "<", close: ">" },
|
|
63
|
+
{ open: '"', close: '"' },
|
|
64
|
+
{ open: "'", close: "'" }
|
|
65
|
+
],
|
|
66
|
+
onEnterRules: [
|
|
67
|
+
{
|
|
68
|
+
beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
|
69
|
+
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
|
70
|
+
action: {
|
|
71
|
+
indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
beforeText: new RegExp(`<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
|
76
|
+
action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
};
|
|
80
|
+
var language = {
|
|
81
|
+
defaultToken: "",
|
|
82
|
+
tokenPostfix: "",
|
|
83
|
+
builtinTags: [
|
|
84
|
+
"if",
|
|
85
|
+
"else",
|
|
86
|
+
"elseif",
|
|
87
|
+
"endif",
|
|
88
|
+
"render",
|
|
89
|
+
"assign",
|
|
90
|
+
"capture",
|
|
91
|
+
"endcapture",
|
|
92
|
+
"case",
|
|
93
|
+
"endcase",
|
|
94
|
+
"comment",
|
|
95
|
+
"endcomment",
|
|
96
|
+
"cycle",
|
|
97
|
+
"decrement",
|
|
98
|
+
"for",
|
|
99
|
+
"endfor",
|
|
100
|
+
"include",
|
|
101
|
+
"increment",
|
|
102
|
+
"layout",
|
|
103
|
+
"raw",
|
|
104
|
+
"endraw",
|
|
105
|
+
"render",
|
|
106
|
+
"tablerow",
|
|
107
|
+
"endtablerow",
|
|
108
|
+
"unless",
|
|
109
|
+
"endunless"
|
|
110
|
+
],
|
|
111
|
+
builtinFilters: [
|
|
112
|
+
"abs",
|
|
113
|
+
"append",
|
|
114
|
+
"at_least",
|
|
115
|
+
"at_most",
|
|
116
|
+
"capitalize",
|
|
117
|
+
"ceil",
|
|
118
|
+
"compact",
|
|
119
|
+
"date",
|
|
120
|
+
"default",
|
|
121
|
+
"divided_by",
|
|
122
|
+
"downcase",
|
|
123
|
+
"escape",
|
|
124
|
+
"escape_once",
|
|
125
|
+
"first",
|
|
126
|
+
"floor",
|
|
127
|
+
"join",
|
|
128
|
+
"json",
|
|
129
|
+
"last",
|
|
130
|
+
"lstrip",
|
|
131
|
+
"map",
|
|
132
|
+
"minus",
|
|
133
|
+
"modulo",
|
|
134
|
+
"newline_to_br",
|
|
135
|
+
"plus",
|
|
136
|
+
"prepend",
|
|
137
|
+
"remove",
|
|
138
|
+
"remove_first",
|
|
139
|
+
"replace",
|
|
140
|
+
"replace_first",
|
|
141
|
+
"reverse",
|
|
142
|
+
"round",
|
|
143
|
+
"rstrip",
|
|
144
|
+
"size",
|
|
145
|
+
"slice",
|
|
146
|
+
"sort",
|
|
147
|
+
"sort_natural",
|
|
148
|
+
"split",
|
|
149
|
+
"strip",
|
|
150
|
+
"strip_html",
|
|
151
|
+
"strip_newlines",
|
|
152
|
+
"times",
|
|
153
|
+
"truncate",
|
|
154
|
+
"truncatewords",
|
|
155
|
+
"uniq",
|
|
156
|
+
"upcase",
|
|
157
|
+
"url_decode",
|
|
158
|
+
"url_encode",
|
|
159
|
+
"where"
|
|
160
|
+
],
|
|
161
|
+
constants: ["true", "false"],
|
|
162
|
+
operators: ["==", "!=", ">", "<", ">=", "<="],
|
|
163
|
+
symbol: /[=><!]+/,
|
|
164
|
+
identifier: /[a-zA-Z_][\w]*/,
|
|
165
|
+
tokenizer: {
|
|
166
|
+
root: [
|
|
167
|
+
[/\{\%\s*comment\s*\%\}/, "comment.start.liquid", "@comment"],
|
|
168
|
+
[/\{\{/, { token: "@rematch", switchTo: "@liquidState.root" }],
|
|
169
|
+
[/\{\%/, { token: "@rematch", switchTo: "@liquidState.root" }],
|
|
170
|
+
[/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
171
|
+
[/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
172
|
+
[/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
173
|
+
[/</, "delimiter.html"],
|
|
174
|
+
[/\{/, "delimiter.html"],
|
|
175
|
+
[/[^<{]+/]
|
|
176
|
+
],
|
|
177
|
+
comment: [
|
|
178
|
+
[/\{\%\s*endcomment\s*\%\}/, "comment.end.liquid", "@pop"],
|
|
179
|
+
[/./, "comment.content.liquid"]
|
|
180
|
+
],
|
|
181
|
+
otherTag: [
|
|
182
|
+
[
|
|
183
|
+
/\{\{/,
|
|
184
|
+
{
|
|
185
|
+
token: "@rematch",
|
|
186
|
+
switchTo: "@liquidState.otherTag"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
[
|
|
190
|
+
/\{\%/,
|
|
191
|
+
{
|
|
192
|
+
token: "@rematch",
|
|
193
|
+
switchTo: "@liquidState.otherTag"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
[/\/?>/, "delimiter.html", "@pop"],
|
|
197
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
198
|
+
[/'([^']*)'/, "attribute.value"],
|
|
199
|
+
[/[\w\-]+/, "attribute.name"],
|
|
200
|
+
[/=/, "delimiter"],
|
|
201
|
+
[/[ \t\r\n]+/]
|
|
202
|
+
],
|
|
203
|
+
liquidState: [
|
|
204
|
+
[/\{\{/, "delimiter.output.liquid"],
|
|
205
|
+
[/\}\}/, { token: "delimiter.output.liquid", switchTo: "@$S2.$S3" }],
|
|
206
|
+
[/\{\%/, "delimiter.tag.liquid"],
|
|
207
|
+
[/raw\s*\%\}/, "delimiter.tag.liquid", "@liquidRaw"],
|
|
208
|
+
[/\%\}/, { token: "delimiter.tag.liquid", switchTo: "@$S2.$S3" }],
|
|
209
|
+
{ include: "liquidRoot" }
|
|
210
|
+
],
|
|
211
|
+
liquidRaw: [
|
|
212
|
+
[/^(?!\{\%\s*endraw\s*\%\}).+/],
|
|
213
|
+
[/\{\%/, "delimiter.tag.liquid"],
|
|
214
|
+
[/@identifier/],
|
|
215
|
+
[/\%\}/, { token: "delimiter.tag.liquid", next: "@root" }]
|
|
216
|
+
],
|
|
217
|
+
liquidRoot: [
|
|
218
|
+
[/\d+(\.\d+)?/, "number.liquid"],
|
|
219
|
+
[/"[^"]*"/, "string.liquid"],
|
|
220
|
+
[/'[^']*'/, "string.liquid"],
|
|
221
|
+
[/\s+/],
|
|
222
|
+
[
|
|
223
|
+
/@symbol/,
|
|
224
|
+
{
|
|
225
|
+
cases: {
|
|
226
|
+
"@operators": "operator.liquid",
|
|
227
|
+
"@default": ""
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
[/\./],
|
|
232
|
+
[
|
|
233
|
+
/@identifier/,
|
|
234
|
+
{
|
|
235
|
+
cases: {
|
|
236
|
+
"@constants": "keyword.liquid",
|
|
237
|
+
"@builtinFilters": "predefined.liquid",
|
|
238
|
+
"@builtinTags": "predefined.liquid",
|
|
239
|
+
"@default": "variable.liquid"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
[/[^}|%]/, "variable.liquid"]
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
export {
|
|
248
|
+
conf,
|
|
249
|
+
language
|
|
250
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.36.1(6c56744c3419458f0dd48864520b759d1a3a1ca8)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var conf = {
|
|
8
|
+
comments: {
|
|
9
|
+
lineComment: "--",
|
|
10
|
+
blockComment: ["--[[", "]]"]
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{", "}"],
|
|
14
|
+
["[", "]"],
|
|
15
|
+
["(", ")"]
|
|
16
|
+
],
|
|
17
|
+
autoClosingPairs: [
|
|
18
|
+
{ open: "{", close: "}" },
|
|
19
|
+
{ open: "[", close: "]" },
|
|
20
|
+
{ open: "(", close: ")" },
|
|
21
|
+
{ open: '"', close: '"' },
|
|
22
|
+
{ open: "'", close: "'" }
|
|
23
|
+
],
|
|
24
|
+
surroundingPairs: [
|
|
25
|
+
{ open: "{", close: "}" },
|
|
26
|
+
{ open: "[", close: "]" },
|
|
27
|
+
{ open: "(", close: ")" },
|
|
28
|
+
{ open: '"', close: '"' },
|
|
29
|
+
{ open: "'", close: "'" }
|
|
30
|
+
]
|
|
31
|
+
};
|
|
32
|
+
var language = {
|
|
33
|
+
defaultToken: "",
|
|
34
|
+
tokenPostfix: ".lua",
|
|
35
|
+
keywords: [
|
|
36
|
+
"and",
|
|
37
|
+
"break",
|
|
38
|
+
"do",
|
|
39
|
+
"else",
|
|
40
|
+
"elseif",
|
|
41
|
+
"end",
|
|
42
|
+
"false",
|
|
43
|
+
"for",
|
|
44
|
+
"function",
|
|
45
|
+
"goto",
|
|
46
|
+
"if",
|
|
47
|
+
"in",
|
|
48
|
+
"local",
|
|
49
|
+
"nil",
|
|
50
|
+
"not",
|
|
51
|
+
"or",
|
|
52
|
+
"repeat",
|
|
53
|
+
"return",
|
|
54
|
+
"then",
|
|
55
|
+
"true",
|
|
56
|
+
"until",
|
|
57
|
+
"while"
|
|
58
|
+
],
|
|
59
|
+
brackets: [
|
|
60
|
+
{ token: "delimiter.bracket", open: "{", close: "}" },
|
|
61
|
+
{ token: "delimiter.array", open: "[", close: "]" },
|
|
62
|
+
{ token: "delimiter.parenthesis", open: "(", close: ")" }
|
|
63
|
+
],
|
|
64
|
+
operators: [
|
|
65
|
+
"+",
|
|
66
|
+
"-",
|
|
67
|
+
"*",
|
|
68
|
+
"/",
|
|
69
|
+
"%",
|
|
70
|
+
"^",
|
|
71
|
+
"#",
|
|
72
|
+
"==",
|
|
73
|
+
"~=",
|
|
74
|
+
"<=",
|
|
75
|
+
">=",
|
|
76
|
+
"<",
|
|
77
|
+
">",
|
|
78
|
+
"=",
|
|
79
|
+
";",
|
|
80
|
+
":",
|
|
81
|
+
",",
|
|
82
|
+
".",
|
|
83
|
+
"..",
|
|
84
|
+
"..."
|
|
85
|
+
],
|
|
86
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
87
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
88
|
+
tokenizer: {
|
|
89
|
+
root: [
|
|
90
|
+
[
|
|
91
|
+
/[a-zA-Z_]\w*/,
|
|
92
|
+
{
|
|
93
|
+
cases: {
|
|
94
|
+
"@keywords": { token: "keyword.$0" },
|
|
95
|
+
"@default": "identifier"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
{ include: "@whitespace" },
|
|
100
|
+
[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["delimiter", "", "key", "", "delimiter"]],
|
|
101
|
+
[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["@brackets", "", "key", "", "delimiter"]],
|
|
102
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
103
|
+
[
|
|
104
|
+
/@symbols/,
|
|
105
|
+
{
|
|
106
|
+
cases: {
|
|
107
|
+
"@operators": "delimiter",
|
|
108
|
+
"@default": ""
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
113
|
+
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
|
114
|
+
[/\d+?/, "number"],
|
|
115
|
+
[/[;,.]/, "delimiter"],
|
|
116
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
117
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
118
|
+
[/"/, "string", '@string."'],
|
|
119
|
+
[/'/, "string", "@string.'"]
|
|
120
|
+
],
|
|
121
|
+
whitespace: [
|
|
122
|
+
[/[ \t\r\n]+/, ""],
|
|
123
|
+
[/--\[([=]*)\[/, "comment", "@comment.$1"],
|
|
124
|
+
[/--.*$/, "comment"]
|
|
125
|
+
],
|
|
126
|
+
comment: [
|
|
127
|
+
[/[^\]]+/, "comment"],
|
|
128
|
+
[
|
|
129
|
+
/\]([=]*)\]/,
|
|
130
|
+
{
|
|
131
|
+
cases: {
|
|
132
|
+
"$1==$S2": { token: "comment", next: "@pop" },
|
|
133
|
+
"@default": "comment"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
[/./, "comment"]
|
|
138
|
+
],
|
|
139
|
+
string: [
|
|
140
|
+
[/[^\\"']+/, "string"],
|
|
141
|
+
[/@escapes/, "string.escape"],
|
|
142
|
+
[/\\./, "string.escape.invalid"],
|
|
143
|
+
[
|
|
144
|
+
/["']/,
|
|
145
|
+
{
|
|
146
|
+
cases: {
|
|
147
|
+
"$#==$S2": { token: "string", next: "@pop" },
|
|
148
|
+
"@default": "string"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
export {
|
|
156
|
+
conf,
|
|
157
|
+
language
|
|
158
|
+
};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.36.1(6c56744c3419458f0dd48864520b759d1a3a1ca8)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var conf = {
|
|
8
|
+
comments: {
|
|
9
|
+
blockComment: ["(*", "*)"]
|
|
10
|
+
},
|
|
11
|
+
brackets: [
|
|
12
|
+
["{", "}"],
|
|
13
|
+
["[", "]"],
|
|
14
|
+
["(", ")"]
|
|
15
|
+
],
|
|
16
|
+
autoClosingPairs: [
|
|
17
|
+
{ open: "[", close: "]" },
|
|
18
|
+
{ open: "{", close: "}" },
|
|
19
|
+
{ open: "(", close: ")" },
|
|
20
|
+
{ open: "(*", close: "*)" },
|
|
21
|
+
{ open: "<*", close: "*>" },
|
|
22
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
23
|
+
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
|
24
|
+
]
|
|
25
|
+
};
|
|
26
|
+
var language = {
|
|
27
|
+
defaultToken: "",
|
|
28
|
+
tokenPostfix: ".m3",
|
|
29
|
+
brackets: [
|
|
30
|
+
{ token: "delimiter.curly", open: "{", close: "}" },
|
|
31
|
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
|
32
|
+
{ token: "delimiter.square", open: "[", close: "]" }
|
|
33
|
+
],
|
|
34
|
+
keywords: [
|
|
35
|
+
"AND",
|
|
36
|
+
"ANY",
|
|
37
|
+
"ARRAY",
|
|
38
|
+
"AS",
|
|
39
|
+
"BEGIN",
|
|
40
|
+
"BITS",
|
|
41
|
+
"BRANDED",
|
|
42
|
+
"BY",
|
|
43
|
+
"CASE",
|
|
44
|
+
"CONST",
|
|
45
|
+
"DIV",
|
|
46
|
+
"DO",
|
|
47
|
+
"ELSE",
|
|
48
|
+
"ELSIF",
|
|
49
|
+
"END",
|
|
50
|
+
"EVAL",
|
|
51
|
+
"EXCEPT",
|
|
52
|
+
"EXCEPTION",
|
|
53
|
+
"EXIT",
|
|
54
|
+
"EXPORTS",
|
|
55
|
+
"FINALLY",
|
|
56
|
+
"FOR",
|
|
57
|
+
"FROM",
|
|
58
|
+
"GENERIC",
|
|
59
|
+
"IF",
|
|
60
|
+
"IMPORT",
|
|
61
|
+
"IN",
|
|
62
|
+
"INTERFACE",
|
|
63
|
+
"LOCK",
|
|
64
|
+
"LOOP",
|
|
65
|
+
"METHODS",
|
|
66
|
+
"MOD",
|
|
67
|
+
"MODULE",
|
|
68
|
+
"NOT",
|
|
69
|
+
"OBJECT",
|
|
70
|
+
"OF",
|
|
71
|
+
"OR",
|
|
72
|
+
"OVERRIDES",
|
|
73
|
+
"PROCEDURE",
|
|
74
|
+
"RAISE",
|
|
75
|
+
"RAISES",
|
|
76
|
+
"READONLY",
|
|
77
|
+
"RECORD",
|
|
78
|
+
"REF",
|
|
79
|
+
"REPEAT",
|
|
80
|
+
"RETURN",
|
|
81
|
+
"REVEAL",
|
|
82
|
+
"SET",
|
|
83
|
+
"THEN",
|
|
84
|
+
"TO",
|
|
85
|
+
"TRY",
|
|
86
|
+
"TYPE",
|
|
87
|
+
"TYPECASE",
|
|
88
|
+
"UNSAFE",
|
|
89
|
+
"UNTIL",
|
|
90
|
+
"UNTRACED",
|
|
91
|
+
"VALUE",
|
|
92
|
+
"VAR",
|
|
93
|
+
"WHILE",
|
|
94
|
+
"WITH"
|
|
95
|
+
],
|
|
96
|
+
reservedConstNames: [
|
|
97
|
+
"ABS",
|
|
98
|
+
"ADR",
|
|
99
|
+
"ADRSIZE",
|
|
100
|
+
"BITSIZE",
|
|
101
|
+
"BYTESIZE",
|
|
102
|
+
"CEILING",
|
|
103
|
+
"DEC",
|
|
104
|
+
"DISPOSE",
|
|
105
|
+
"FALSE",
|
|
106
|
+
"FIRST",
|
|
107
|
+
"FLOAT",
|
|
108
|
+
"FLOOR",
|
|
109
|
+
"INC",
|
|
110
|
+
"ISTYPE",
|
|
111
|
+
"LAST",
|
|
112
|
+
"LOOPHOLE",
|
|
113
|
+
"MAX",
|
|
114
|
+
"MIN",
|
|
115
|
+
"NARROW",
|
|
116
|
+
"NEW",
|
|
117
|
+
"NIL",
|
|
118
|
+
"NUMBER",
|
|
119
|
+
"ORD",
|
|
120
|
+
"ROUND",
|
|
121
|
+
"SUBARRAY",
|
|
122
|
+
"TRUE",
|
|
123
|
+
"TRUNC",
|
|
124
|
+
"TYPECODE",
|
|
125
|
+
"VAL"
|
|
126
|
+
],
|
|
127
|
+
reservedTypeNames: [
|
|
128
|
+
"ADDRESS",
|
|
129
|
+
"ANY",
|
|
130
|
+
"BOOLEAN",
|
|
131
|
+
"CARDINAL",
|
|
132
|
+
"CHAR",
|
|
133
|
+
"EXTENDED",
|
|
134
|
+
"INTEGER",
|
|
135
|
+
"LONGCARD",
|
|
136
|
+
"LONGINT",
|
|
137
|
+
"LONGREAL",
|
|
138
|
+
"MUTEX",
|
|
139
|
+
"NULL",
|
|
140
|
+
"REAL",
|
|
141
|
+
"REFANY",
|
|
142
|
+
"ROOT",
|
|
143
|
+
"TEXT"
|
|
144
|
+
],
|
|
145
|
+
operators: ["+", "-", "*", "/", "&", "^", "."],
|
|
146
|
+
relations: ["=", "#", "<", "<=", ">", ">=", "<:", ":"],
|
|
147
|
+
delimiters: ["|", "..", "=>", ",", ";", ":="],
|
|
148
|
+
symbols: /[>=<#.,:;+\-*/&^]+/,
|
|
149
|
+
escapes: /\\(?:[\\fnrt"']|[0-7]{3})/,
|
|
150
|
+
tokenizer: {
|
|
151
|
+
root: [
|
|
152
|
+
[/_\w*/, "invalid"],
|
|
153
|
+
[
|
|
154
|
+
/[a-zA-Z][a-zA-Z0-9_]*/,
|
|
155
|
+
{
|
|
156
|
+
cases: {
|
|
157
|
+
"@keywords": { token: "keyword.$0" },
|
|
158
|
+
"@reservedConstNames": { token: "constant.reserved.$0" },
|
|
159
|
+
"@reservedTypeNames": { token: "type.reserved.$0" },
|
|
160
|
+
"@default": "identifier"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
{ include: "@whitespace" },
|
|
165
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
166
|
+
[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/, "number.float"],
|
|
167
|
+
[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/, "number"],
|
|
168
|
+
[
|
|
169
|
+
/@symbols/,
|
|
170
|
+
{
|
|
171
|
+
cases: {
|
|
172
|
+
"@operators": "operators",
|
|
173
|
+
"@relations": "operators",
|
|
174
|
+
"@delimiters": "delimiter",
|
|
175
|
+
"@default": "invalid"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
[/'[^\\']'/, "string.char"],
|
|
180
|
+
[/(')(@escapes)(')/, ["string.char", "string.escape", "string.char"]],
|
|
181
|
+
[/'/, "invalid"],
|
|
182
|
+
[/"([^"\\]|\\.)*$/, "invalid"],
|
|
183
|
+
[/"/, "string.text", "@text"]
|
|
184
|
+
],
|
|
185
|
+
text: [
|
|
186
|
+
[/[^\\"]+/, "string.text"],
|
|
187
|
+
[/@escapes/, "string.escape"],
|
|
188
|
+
[/\\./, "invalid"],
|
|
189
|
+
[/"/, "string.text", "@pop"]
|
|
190
|
+
],
|
|
191
|
+
comment: [
|
|
192
|
+
[/\(\*/, "comment", "@push"],
|
|
193
|
+
[/\*\)/, "comment", "@pop"],
|
|
194
|
+
[/./, "comment"]
|
|
195
|
+
],
|
|
196
|
+
pragma: [
|
|
197
|
+
[/<\*/, "keyword.pragma", "@push"],
|
|
198
|
+
[/\*>/, "keyword.pragma", "@pop"],
|
|
199
|
+
[/./, "keyword.pragma"]
|
|
200
|
+
],
|
|
201
|
+
whitespace: [
|
|
202
|
+
[/[ \t\r\n]+/, "white"],
|
|
203
|
+
[/\(\*/, "comment", "@comment"],
|
|
204
|
+
[/<\*/, "keyword.pragma", "@pragma"]
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
export {
|
|
209
|
+
conf,
|
|
210
|
+
language
|
|
211
|
+
};
|