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,490 @@
|
|
|
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
|
+
},
|
|
11
|
+
brackets: [
|
|
12
|
+
["{", "}"],
|
|
13
|
+
["[", "]"],
|
|
14
|
+
["(", ")"]
|
|
15
|
+
],
|
|
16
|
+
surroundingPairs: [
|
|
17
|
+
{ open: "{", close: "}" },
|
|
18
|
+
{ open: "[", close: "]" },
|
|
19
|
+
{ open: "(", close: ")" },
|
|
20
|
+
{ open: "'", close: "'" },
|
|
21
|
+
{ open: '"', close: '"' }
|
|
22
|
+
],
|
|
23
|
+
autoClosingPairs: [
|
|
24
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
25
|
+
{ open: '"', close: '"', notIn: ["comment"] },
|
|
26
|
+
{ open: '"""', close: '"""' },
|
|
27
|
+
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
|
28
|
+
{ open: "(", close: ")" },
|
|
29
|
+
{ open: "{", close: "}" },
|
|
30
|
+
{ open: "[", close: "]" },
|
|
31
|
+
{ open: "<<", close: ">>" }
|
|
32
|
+
],
|
|
33
|
+
indentationRules: {
|
|
34
|
+
increaseIndentPattern: /^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,
|
|
35
|
+
decreaseIndentPattern: /^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var language = {
|
|
39
|
+
defaultToken: "source",
|
|
40
|
+
tokenPostfix: ".elixir",
|
|
41
|
+
brackets: [
|
|
42
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
43
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
44
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
45
|
+
{ open: "<<", close: ">>", token: "delimiter.angle.special" }
|
|
46
|
+
],
|
|
47
|
+
declarationKeywords: [
|
|
48
|
+
"def",
|
|
49
|
+
"defp",
|
|
50
|
+
"defn",
|
|
51
|
+
"defnp",
|
|
52
|
+
"defguard",
|
|
53
|
+
"defguardp",
|
|
54
|
+
"defmacro",
|
|
55
|
+
"defmacrop",
|
|
56
|
+
"defdelegate",
|
|
57
|
+
"defcallback",
|
|
58
|
+
"defmacrocallback",
|
|
59
|
+
"defmodule",
|
|
60
|
+
"defprotocol",
|
|
61
|
+
"defexception",
|
|
62
|
+
"defimpl",
|
|
63
|
+
"defstruct"
|
|
64
|
+
],
|
|
65
|
+
operatorKeywords: ["and", "in", "not", "or", "when"],
|
|
66
|
+
namespaceKeywords: ["alias", "import", "require", "use"],
|
|
67
|
+
otherKeywords: [
|
|
68
|
+
"after",
|
|
69
|
+
"case",
|
|
70
|
+
"catch",
|
|
71
|
+
"cond",
|
|
72
|
+
"do",
|
|
73
|
+
"else",
|
|
74
|
+
"end",
|
|
75
|
+
"fn",
|
|
76
|
+
"for",
|
|
77
|
+
"if",
|
|
78
|
+
"quote",
|
|
79
|
+
"raise",
|
|
80
|
+
"receive",
|
|
81
|
+
"rescue",
|
|
82
|
+
"super",
|
|
83
|
+
"throw",
|
|
84
|
+
"try",
|
|
85
|
+
"unless",
|
|
86
|
+
"unquote_splicing",
|
|
87
|
+
"unquote",
|
|
88
|
+
"with"
|
|
89
|
+
],
|
|
90
|
+
constants: ["true", "false", "nil"],
|
|
91
|
+
nameBuiltin: ["__MODULE__", "__DIR__", "__ENV__", "__CALLER__", "__STACKTRACE__"],
|
|
92
|
+
operator: /-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,
|
|
93
|
+
variableName: /[a-z_][a-zA-Z0-9_]*[?!]?/,
|
|
94
|
+
atomName: /[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,
|
|
95
|
+
specialAtomName: /\.\.\.|<<>>|%\{\}|%|\{\}/,
|
|
96
|
+
aliasPart: /[A-Z][a-zA-Z0-9_]*/,
|
|
97
|
+
moduleName: /@aliasPart(?:\.@aliasPart)*/,
|
|
98
|
+
sigilSymmetricDelimiter: /"""|'''|"|'|\/|\|/,
|
|
99
|
+
sigilStartDelimiter: /@sigilSymmetricDelimiter|<|\{|\[|\(/,
|
|
100
|
+
sigilEndDelimiter: /@sigilSymmetricDelimiter|>|\}|\]|\)/,
|
|
101
|
+
sigilModifiers: /[a-zA-Z0-9]*/,
|
|
102
|
+
decimal: /\d(?:_?\d)*/,
|
|
103
|
+
hex: /[0-9a-fA-F](_?[0-9a-fA-F])*/,
|
|
104
|
+
octal: /[0-7](_?[0-7])*/,
|
|
105
|
+
binary: /[01](_?[01])*/,
|
|
106
|
+
escape: /\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,
|
|
107
|
+
tokenizer: {
|
|
108
|
+
root: [
|
|
109
|
+
{ include: "@whitespace" },
|
|
110
|
+
{ include: "@comments" },
|
|
111
|
+
{ include: "@keywordsShorthand" },
|
|
112
|
+
{ include: "@numbers" },
|
|
113
|
+
{ include: "@identifiers" },
|
|
114
|
+
{ include: "@strings" },
|
|
115
|
+
{ include: "@atoms" },
|
|
116
|
+
{ include: "@sigils" },
|
|
117
|
+
{ include: "@attributes" },
|
|
118
|
+
{ include: "@symbols" }
|
|
119
|
+
],
|
|
120
|
+
whitespace: [[/\s+/, "white"]],
|
|
121
|
+
comments: [[/(#)(.*)/, ["comment.punctuation", "comment"]]],
|
|
122
|
+
keywordsShorthand: [
|
|
123
|
+
[/(@atomName)(:)(\s+)/, ["constant", "constant.punctuation", "white"]],
|
|
124
|
+
[
|
|
125
|
+
/"(?=([^"]|#\{.*?\}|\\")*":)/,
|
|
126
|
+
{ token: "constant.delimiter", next: "@doubleQuotedStringKeyword" }
|
|
127
|
+
],
|
|
128
|
+
[
|
|
129
|
+
/'(?=([^']|#\{.*?\}|\\')*':)/,
|
|
130
|
+
{ token: "constant.delimiter", next: "@singleQuotedStringKeyword" }
|
|
131
|
+
]
|
|
132
|
+
],
|
|
133
|
+
doubleQuotedStringKeyword: [
|
|
134
|
+
[/":/, { token: "constant.delimiter", next: "@pop" }],
|
|
135
|
+
{ include: "@stringConstantContentInterpol" }
|
|
136
|
+
],
|
|
137
|
+
singleQuotedStringKeyword: [
|
|
138
|
+
[/':/, { token: "constant.delimiter", next: "@pop" }],
|
|
139
|
+
{ include: "@stringConstantContentInterpol" }
|
|
140
|
+
],
|
|
141
|
+
numbers: [
|
|
142
|
+
[/0b@binary/, "number.binary"],
|
|
143
|
+
[/0o@octal/, "number.octal"],
|
|
144
|
+
[/0x@hex/, "number.hex"],
|
|
145
|
+
[/@decimal\.@decimal([eE]-?@decimal)?/, "number.float"],
|
|
146
|
+
[/@decimal/, "number"]
|
|
147
|
+
],
|
|
148
|
+
identifiers: [
|
|
149
|
+
[
|
|
150
|
+
/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,
|
|
151
|
+
[
|
|
152
|
+
"keyword.declaration",
|
|
153
|
+
"white",
|
|
154
|
+
{
|
|
155
|
+
cases: {
|
|
156
|
+
unquote: "keyword",
|
|
157
|
+
"@default": "function"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
],
|
|
162
|
+
[
|
|
163
|
+
/(@variableName)(?=\s*\.?\s*\()/,
|
|
164
|
+
{
|
|
165
|
+
cases: {
|
|
166
|
+
"@declarationKeywords": "keyword.declaration",
|
|
167
|
+
"@namespaceKeywords": "keyword",
|
|
168
|
+
"@otherKeywords": "keyword",
|
|
169
|
+
"@default": "function.call"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
[
|
|
174
|
+
/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,
|
|
175
|
+
["type.identifier", "white", "operator", "white", "function.call"]
|
|
176
|
+
],
|
|
177
|
+
[
|
|
178
|
+
/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,
|
|
179
|
+
["constant.punctuation", "constant", "white", "operator", "white", "function.call"]
|
|
180
|
+
],
|
|
181
|
+
[
|
|
182
|
+
/(\|>)(\s*)(@variableName)/,
|
|
183
|
+
[
|
|
184
|
+
"operator",
|
|
185
|
+
"white",
|
|
186
|
+
{
|
|
187
|
+
cases: {
|
|
188
|
+
"@otherKeywords": "keyword",
|
|
189
|
+
"@default": "function.call"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
],
|
|
194
|
+
[
|
|
195
|
+
/(&)(\s*)(@variableName)/,
|
|
196
|
+
["operator", "white", "function.call"]
|
|
197
|
+
],
|
|
198
|
+
[
|
|
199
|
+
/@variableName/,
|
|
200
|
+
{
|
|
201
|
+
cases: {
|
|
202
|
+
"@declarationKeywords": "keyword.declaration",
|
|
203
|
+
"@operatorKeywords": "keyword.operator",
|
|
204
|
+
"@namespaceKeywords": "keyword",
|
|
205
|
+
"@otherKeywords": "keyword",
|
|
206
|
+
"@constants": "constant.language",
|
|
207
|
+
"@nameBuiltin": "variable.language",
|
|
208
|
+
"_.*": "comment.unused",
|
|
209
|
+
"@default": "identifier"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
[/@moduleName/, "type.identifier"]
|
|
214
|
+
],
|
|
215
|
+
strings: [
|
|
216
|
+
[/"""/, { token: "string.delimiter", next: "@doubleQuotedHeredoc" }],
|
|
217
|
+
[/'''/, { token: "string.delimiter", next: "@singleQuotedHeredoc" }],
|
|
218
|
+
[/"/, { token: "string.delimiter", next: "@doubleQuotedString" }],
|
|
219
|
+
[/'/, { token: "string.delimiter", next: "@singleQuotedString" }]
|
|
220
|
+
],
|
|
221
|
+
doubleQuotedHeredoc: [
|
|
222
|
+
[/"""/, { token: "string.delimiter", next: "@pop" }],
|
|
223
|
+
{ include: "@stringContentInterpol" }
|
|
224
|
+
],
|
|
225
|
+
singleQuotedHeredoc: [
|
|
226
|
+
[/'''/, { token: "string.delimiter", next: "@pop" }],
|
|
227
|
+
{ include: "@stringContentInterpol" }
|
|
228
|
+
],
|
|
229
|
+
doubleQuotedString: [
|
|
230
|
+
[/"/, { token: "string.delimiter", next: "@pop" }],
|
|
231
|
+
{ include: "@stringContentInterpol" }
|
|
232
|
+
],
|
|
233
|
+
singleQuotedString: [
|
|
234
|
+
[/'/, { token: "string.delimiter", next: "@pop" }],
|
|
235
|
+
{ include: "@stringContentInterpol" }
|
|
236
|
+
],
|
|
237
|
+
atoms: [
|
|
238
|
+
[/(:)(@atomName)/, ["constant.punctuation", "constant"]],
|
|
239
|
+
[/:"/, { token: "constant.delimiter", next: "@doubleQuotedStringAtom" }],
|
|
240
|
+
[/:'/, { token: "constant.delimiter", next: "@singleQuotedStringAtom" }]
|
|
241
|
+
],
|
|
242
|
+
doubleQuotedStringAtom: [
|
|
243
|
+
[/"/, { token: "constant.delimiter", next: "@pop" }],
|
|
244
|
+
{ include: "@stringConstantContentInterpol" }
|
|
245
|
+
],
|
|
246
|
+
singleQuotedStringAtom: [
|
|
247
|
+
[/'/, { token: "constant.delimiter", next: "@pop" }],
|
|
248
|
+
{ include: "@stringConstantContentInterpol" }
|
|
249
|
+
],
|
|
250
|
+
sigils: [
|
|
251
|
+
[/~[a-z]@sigilStartDelimiter/, { token: "@rematch", next: "@sigil.interpol" }],
|
|
252
|
+
[/~[A-Z]@sigilStartDelimiter/, { token: "@rematch", next: "@sigil.noInterpol" }]
|
|
253
|
+
],
|
|
254
|
+
sigil: [
|
|
255
|
+
[/~([a-zA-Z])\{/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.{.}" }],
|
|
256
|
+
[/~([a-zA-Z])\[/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.[.]" }],
|
|
257
|
+
[/~([a-zA-Z])\(/, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.(.)" }],
|
|
258
|
+
[/~([a-zA-Z])\</, { token: "@rematch", switchTo: "@sigilStart.$S2.$1.<.>" }],
|
|
259
|
+
[
|
|
260
|
+
/~([a-zA-Z])(@sigilSymmetricDelimiter)/,
|
|
261
|
+
{ token: "@rematch", switchTo: "@sigilStart.$S2.$1.$2.$2" }
|
|
262
|
+
]
|
|
263
|
+
],
|
|
264
|
+
"sigilStart.interpol.s": [
|
|
265
|
+
[
|
|
266
|
+
/~s@sigilStartDelimiter/,
|
|
267
|
+
{
|
|
268
|
+
token: "string.delimiter",
|
|
269
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
],
|
|
273
|
+
"sigilContinue.interpol.s": [
|
|
274
|
+
[
|
|
275
|
+
/(@sigilEndDelimiter)@sigilModifiers/,
|
|
276
|
+
{
|
|
277
|
+
cases: {
|
|
278
|
+
"$1==$S5": { token: "string.delimiter", next: "@pop" },
|
|
279
|
+
"@default": "string"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
{ include: "@stringContentInterpol" }
|
|
284
|
+
],
|
|
285
|
+
"sigilStart.noInterpol.S": [
|
|
286
|
+
[
|
|
287
|
+
/~S@sigilStartDelimiter/,
|
|
288
|
+
{
|
|
289
|
+
token: "string.delimiter",
|
|
290
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
291
|
+
}
|
|
292
|
+
]
|
|
293
|
+
],
|
|
294
|
+
"sigilContinue.noInterpol.S": [
|
|
295
|
+
[/(^|[^\\])\\@sigilEndDelimiter/, "string"],
|
|
296
|
+
[
|
|
297
|
+
/(@sigilEndDelimiter)@sigilModifiers/,
|
|
298
|
+
{
|
|
299
|
+
cases: {
|
|
300
|
+
"$1==$S5": { token: "string.delimiter", next: "@pop" },
|
|
301
|
+
"@default": "string"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
{ include: "@stringContent" }
|
|
306
|
+
],
|
|
307
|
+
"sigilStart.interpol.r": [
|
|
308
|
+
[
|
|
309
|
+
/~r@sigilStartDelimiter/,
|
|
310
|
+
{
|
|
311
|
+
token: "regexp.delimiter",
|
|
312
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
],
|
|
316
|
+
"sigilContinue.interpol.r": [
|
|
317
|
+
[
|
|
318
|
+
/(@sigilEndDelimiter)@sigilModifiers/,
|
|
319
|
+
{
|
|
320
|
+
cases: {
|
|
321
|
+
"$1==$S5": { token: "regexp.delimiter", next: "@pop" },
|
|
322
|
+
"@default": "regexp"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
{ include: "@regexpContentInterpol" }
|
|
327
|
+
],
|
|
328
|
+
"sigilStart.noInterpol.R": [
|
|
329
|
+
[
|
|
330
|
+
/~R@sigilStartDelimiter/,
|
|
331
|
+
{
|
|
332
|
+
token: "regexp.delimiter",
|
|
333
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
],
|
|
337
|
+
"sigilContinue.noInterpol.R": [
|
|
338
|
+
[/(^|[^\\])\\@sigilEndDelimiter/, "regexp"],
|
|
339
|
+
[
|
|
340
|
+
/(@sigilEndDelimiter)@sigilModifiers/,
|
|
341
|
+
{
|
|
342
|
+
cases: {
|
|
343
|
+
"$1==$S5": { token: "regexp.delimiter", next: "@pop" },
|
|
344
|
+
"@default": "regexp"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
{ include: "@regexpContent" }
|
|
349
|
+
],
|
|
350
|
+
"sigilStart.interpol": [
|
|
351
|
+
[
|
|
352
|
+
/~([a-zA-Z])@sigilStartDelimiter/,
|
|
353
|
+
{
|
|
354
|
+
token: "sigil.delimiter",
|
|
355
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
356
|
+
}
|
|
357
|
+
]
|
|
358
|
+
],
|
|
359
|
+
"sigilContinue.interpol": [
|
|
360
|
+
[
|
|
361
|
+
/(@sigilEndDelimiter)@sigilModifiers/,
|
|
362
|
+
{
|
|
363
|
+
cases: {
|
|
364
|
+
"$1==$S5": { token: "sigil.delimiter", next: "@pop" },
|
|
365
|
+
"@default": "sigil"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
{ include: "@sigilContentInterpol" }
|
|
370
|
+
],
|
|
371
|
+
"sigilStart.noInterpol": [
|
|
372
|
+
[
|
|
373
|
+
/~([a-zA-Z])@sigilStartDelimiter/,
|
|
374
|
+
{
|
|
375
|
+
token: "sigil.delimiter",
|
|
376
|
+
switchTo: "@sigilContinue.$S2.$S3.$S4.$S5"
|
|
377
|
+
}
|
|
378
|
+
]
|
|
379
|
+
],
|
|
380
|
+
"sigilContinue.noInterpol": [
|
|
381
|
+
[/(^|[^\\])\\@sigilEndDelimiter/, "sigil"],
|
|
382
|
+
[
|
|
383
|
+
/(@sigilEndDelimiter)@sigilModifiers/,
|
|
384
|
+
{
|
|
385
|
+
cases: {
|
|
386
|
+
"$1==$S5": { token: "sigil.delimiter", next: "@pop" },
|
|
387
|
+
"@default": "sigil"
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
],
|
|
391
|
+
{ include: "@sigilContent" }
|
|
392
|
+
],
|
|
393
|
+
attributes: [
|
|
394
|
+
[
|
|
395
|
+
/\@(module|type)?doc (~[sS])?"""/,
|
|
396
|
+
{
|
|
397
|
+
token: "comment.block.documentation",
|
|
398
|
+
next: "@doubleQuotedHeredocDocstring"
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
[
|
|
402
|
+
/\@(module|type)?doc (~[sS])?'''/,
|
|
403
|
+
{
|
|
404
|
+
token: "comment.block.documentation",
|
|
405
|
+
next: "@singleQuotedHeredocDocstring"
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
[
|
|
409
|
+
/\@(module|type)?doc (~[sS])?"/,
|
|
410
|
+
{
|
|
411
|
+
token: "comment.block.documentation",
|
|
412
|
+
next: "@doubleQuotedStringDocstring"
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
[
|
|
416
|
+
/\@(module|type)?doc (~[sS])?'/,
|
|
417
|
+
{
|
|
418
|
+
token: "comment.block.documentation",
|
|
419
|
+
next: "@singleQuotedStringDocstring"
|
|
420
|
+
}
|
|
421
|
+
],
|
|
422
|
+
[/\@(module|type)?doc false/, "comment.block.documentation"],
|
|
423
|
+
[/\@(@variableName)/, "variable"]
|
|
424
|
+
],
|
|
425
|
+
doubleQuotedHeredocDocstring: [
|
|
426
|
+
[/"""/, { token: "comment.block.documentation", next: "@pop" }],
|
|
427
|
+
{ include: "@docstringContent" }
|
|
428
|
+
],
|
|
429
|
+
singleQuotedHeredocDocstring: [
|
|
430
|
+
[/'''/, { token: "comment.block.documentation", next: "@pop" }],
|
|
431
|
+
{ include: "@docstringContent" }
|
|
432
|
+
],
|
|
433
|
+
doubleQuotedStringDocstring: [
|
|
434
|
+
[/"/, { token: "comment.block.documentation", next: "@pop" }],
|
|
435
|
+
{ include: "@docstringContent" }
|
|
436
|
+
],
|
|
437
|
+
singleQuotedStringDocstring: [
|
|
438
|
+
[/'/, { token: "comment.block.documentation", next: "@pop" }],
|
|
439
|
+
{ include: "@docstringContent" }
|
|
440
|
+
],
|
|
441
|
+
symbols: [
|
|
442
|
+
[/\?(\\.|[^\\\s])/, "number.constant"],
|
|
443
|
+
[/&\d+/, "operator"],
|
|
444
|
+
[/<<<|>>>/, "operator"],
|
|
445
|
+
[/[()\[\]\{\}]|<<|>>/, "@brackets"],
|
|
446
|
+
[/\.\.\./, "identifier"],
|
|
447
|
+
[/=>/, "punctuation"],
|
|
448
|
+
[/@operator/, "operator"],
|
|
449
|
+
[/[:;,.%]/, "punctuation"]
|
|
450
|
+
],
|
|
451
|
+
stringContentInterpol: [
|
|
452
|
+
{ include: "@interpolation" },
|
|
453
|
+
{ include: "@escapeChar" },
|
|
454
|
+
{ include: "@stringContent" }
|
|
455
|
+
],
|
|
456
|
+
stringContent: [[/./, "string"]],
|
|
457
|
+
stringConstantContentInterpol: [
|
|
458
|
+
{ include: "@interpolation" },
|
|
459
|
+
{ include: "@escapeChar" },
|
|
460
|
+
{ include: "@stringConstantContent" }
|
|
461
|
+
],
|
|
462
|
+
stringConstantContent: [[/./, "constant"]],
|
|
463
|
+
regexpContentInterpol: [
|
|
464
|
+
{ include: "@interpolation" },
|
|
465
|
+
{ include: "@escapeChar" },
|
|
466
|
+
{ include: "@regexpContent" }
|
|
467
|
+
],
|
|
468
|
+
regexpContent: [
|
|
469
|
+
[/(\s)(#)(\s.*)$/, ["white", "comment.punctuation", "comment"]],
|
|
470
|
+
[/./, "regexp"]
|
|
471
|
+
],
|
|
472
|
+
sigilContentInterpol: [
|
|
473
|
+
{ include: "@interpolation" },
|
|
474
|
+
{ include: "@escapeChar" },
|
|
475
|
+
{ include: "@sigilContent" }
|
|
476
|
+
],
|
|
477
|
+
sigilContent: [[/./, "sigil"]],
|
|
478
|
+
docstringContent: [[/./, "comment.block.documentation"]],
|
|
479
|
+
escapeChar: [[/@escape/, "constant.character.escape"]],
|
|
480
|
+
interpolation: [[/#{/, { token: "delimiter.bracket.embed", next: "@interpolationContinue" }]],
|
|
481
|
+
interpolationContinue: [
|
|
482
|
+
[/}/, { token: "delimiter.bracket.embed", next: "@pop" }],
|
|
483
|
+
{ include: "@root" }
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
export {
|
|
488
|
+
conf,
|
|
489
|
+
language
|
|
490
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
lineComment: "//"
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{", "}"],
|
|
14
|
+
["[", "]"],
|
|
15
|
+
["(", ")"]
|
|
16
|
+
],
|
|
17
|
+
autoClosingPairs: [
|
|
18
|
+
{ open: "{", close: "}", notIn: ["string"] },
|
|
19
|
+
{ open: "[", close: "]", notIn: ["string"] },
|
|
20
|
+
{ open: "(", close: ")", notIn: ["string"] },
|
|
21
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
|
22
|
+
{ open: "'", close: "'", notIn: ["string"] }
|
|
23
|
+
],
|
|
24
|
+
surroundingPairs: [
|
|
25
|
+
{ open: "{", close: "}" },
|
|
26
|
+
{ open: "[", close: "]" },
|
|
27
|
+
{ open: "(", close: ")" },
|
|
28
|
+
{ open: '"', close: '"' },
|
|
29
|
+
{ open: "'", close: "'" },
|
|
30
|
+
{ open: "<", close: ">" }
|
|
31
|
+
]
|
|
32
|
+
};
|
|
33
|
+
var language = {
|
|
34
|
+
defaultToken: "",
|
|
35
|
+
tokenPostfix: ".flow",
|
|
36
|
+
keywords: [
|
|
37
|
+
"import",
|
|
38
|
+
"require",
|
|
39
|
+
"export",
|
|
40
|
+
"forbid",
|
|
41
|
+
"native",
|
|
42
|
+
"if",
|
|
43
|
+
"else",
|
|
44
|
+
"cast",
|
|
45
|
+
"unsafe",
|
|
46
|
+
"switch",
|
|
47
|
+
"default"
|
|
48
|
+
],
|
|
49
|
+
types: [
|
|
50
|
+
"io",
|
|
51
|
+
"mutable",
|
|
52
|
+
"bool",
|
|
53
|
+
"int",
|
|
54
|
+
"double",
|
|
55
|
+
"string",
|
|
56
|
+
"flow",
|
|
57
|
+
"void",
|
|
58
|
+
"ref",
|
|
59
|
+
"true",
|
|
60
|
+
"false",
|
|
61
|
+
"with"
|
|
62
|
+
],
|
|
63
|
+
operators: [
|
|
64
|
+
"=",
|
|
65
|
+
">",
|
|
66
|
+
"<",
|
|
67
|
+
"<=",
|
|
68
|
+
">=",
|
|
69
|
+
"==",
|
|
70
|
+
"!",
|
|
71
|
+
"!=",
|
|
72
|
+
":=",
|
|
73
|
+
"::=",
|
|
74
|
+
"&&",
|
|
75
|
+
"||",
|
|
76
|
+
"+",
|
|
77
|
+
"-",
|
|
78
|
+
"*",
|
|
79
|
+
"/",
|
|
80
|
+
"@",
|
|
81
|
+
"&",
|
|
82
|
+
"%",
|
|
83
|
+
":",
|
|
84
|
+
"->",
|
|
85
|
+
"\\",
|
|
86
|
+
"$",
|
|
87
|
+
"??",
|
|
88
|
+
"^"
|
|
89
|
+
],
|
|
90
|
+
symbols: /[@$=><!~?:&|+\-*\\\/\^%]+/,
|
|
91
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
92
|
+
tokenizer: {
|
|
93
|
+
root: [
|
|
94
|
+
[
|
|
95
|
+
/[a-zA-Z_]\w*/,
|
|
96
|
+
{
|
|
97
|
+
cases: {
|
|
98
|
+
"@keywords": "keyword",
|
|
99
|
+
"@types": "type",
|
|
100
|
+
"@default": "identifier"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
{ include: "@whitespace" },
|
|
105
|
+
[/[{}()\[\]]/, "delimiter"],
|
|
106
|
+
[/[<>](?!@symbols)/, "delimiter"],
|
|
107
|
+
[
|
|
108
|
+
/@symbols/,
|
|
109
|
+
{
|
|
110
|
+
cases: {
|
|
111
|
+
"@operators": "delimiter",
|
|
112
|
+
"@default": ""
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/, "number"],
|
|
117
|
+
[/[;,.]/, "delimiter"],
|
|
118
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
119
|
+
[/"/, "string", "@string"]
|
|
120
|
+
],
|
|
121
|
+
whitespace: [
|
|
122
|
+
[/[ \t\r\n]+/, ""],
|
|
123
|
+
[/\/\*/, "comment", "@comment"],
|
|
124
|
+
[/\/\/.*$/, "comment"]
|
|
125
|
+
],
|
|
126
|
+
comment: [
|
|
127
|
+
[/[^\/*]+/, "comment"],
|
|
128
|
+
[/\*\//, "comment", "@pop"],
|
|
129
|
+
[/[\/*]/, "comment"]
|
|
130
|
+
],
|
|
131
|
+
string: [
|
|
132
|
+
[/[^\\"]+/, "string"],
|
|
133
|
+
[/@escapes/, "string.escape"],
|
|
134
|
+
[/\\./, "string.escape.invalid"],
|
|
135
|
+
[/"/, "string", "@pop"]
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
export {
|
|
140
|
+
conf,
|
|
141
|
+
language
|
|
142
|
+
};
|