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,263 @@
|
|
|
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
|
+
{ open: "`", close: "`" }
|
|
24
|
+
],
|
|
25
|
+
surroundingPairs: [
|
|
26
|
+
{ open: "{", close: "}" },
|
|
27
|
+
{ open: "[", close: "]" },
|
|
28
|
+
{ open: "(", close: ")" },
|
|
29
|
+
{ open: '"', close: '"' },
|
|
30
|
+
{ open: "'", close: "'" },
|
|
31
|
+
{ open: "`", close: "`" }
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
var language = {
|
|
35
|
+
defaultToken: "",
|
|
36
|
+
tokenPostfix: `.cypher`,
|
|
37
|
+
ignoreCase: true,
|
|
38
|
+
brackets: [
|
|
39
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
40
|
+
{ open: "[", close: "]", token: "delimiter.bracket" },
|
|
41
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
42
|
+
],
|
|
43
|
+
keywords: [
|
|
44
|
+
"ALL",
|
|
45
|
+
"AND",
|
|
46
|
+
"AS",
|
|
47
|
+
"ASC",
|
|
48
|
+
"ASCENDING",
|
|
49
|
+
"BY",
|
|
50
|
+
"CALL",
|
|
51
|
+
"CASE",
|
|
52
|
+
"CONTAINS",
|
|
53
|
+
"CREATE",
|
|
54
|
+
"DELETE",
|
|
55
|
+
"DESC",
|
|
56
|
+
"DESCENDING",
|
|
57
|
+
"DETACH",
|
|
58
|
+
"DISTINCT",
|
|
59
|
+
"ELSE",
|
|
60
|
+
"END",
|
|
61
|
+
"ENDS",
|
|
62
|
+
"EXISTS",
|
|
63
|
+
"IN",
|
|
64
|
+
"IS",
|
|
65
|
+
"LIMIT",
|
|
66
|
+
"MANDATORY",
|
|
67
|
+
"MATCH",
|
|
68
|
+
"MERGE",
|
|
69
|
+
"NOT",
|
|
70
|
+
"ON",
|
|
71
|
+
"ON",
|
|
72
|
+
"OPTIONAL",
|
|
73
|
+
"OR",
|
|
74
|
+
"ORDER",
|
|
75
|
+
"REMOVE",
|
|
76
|
+
"RETURN",
|
|
77
|
+
"SET",
|
|
78
|
+
"SKIP",
|
|
79
|
+
"STARTS",
|
|
80
|
+
"THEN",
|
|
81
|
+
"UNION",
|
|
82
|
+
"UNWIND",
|
|
83
|
+
"WHEN",
|
|
84
|
+
"WHERE",
|
|
85
|
+
"WITH",
|
|
86
|
+
"XOR",
|
|
87
|
+
"YIELD"
|
|
88
|
+
],
|
|
89
|
+
builtinLiterals: ["true", "TRUE", "false", "FALSE", "null", "NULL"],
|
|
90
|
+
builtinFunctions: [
|
|
91
|
+
"abs",
|
|
92
|
+
"acos",
|
|
93
|
+
"asin",
|
|
94
|
+
"atan",
|
|
95
|
+
"atan2",
|
|
96
|
+
"avg",
|
|
97
|
+
"ceil",
|
|
98
|
+
"coalesce",
|
|
99
|
+
"collect",
|
|
100
|
+
"cos",
|
|
101
|
+
"cot",
|
|
102
|
+
"count",
|
|
103
|
+
"degrees",
|
|
104
|
+
"e",
|
|
105
|
+
"endNode",
|
|
106
|
+
"exists",
|
|
107
|
+
"exp",
|
|
108
|
+
"floor",
|
|
109
|
+
"head",
|
|
110
|
+
"id",
|
|
111
|
+
"keys",
|
|
112
|
+
"labels",
|
|
113
|
+
"last",
|
|
114
|
+
"left",
|
|
115
|
+
"length",
|
|
116
|
+
"log",
|
|
117
|
+
"log10",
|
|
118
|
+
"lTrim",
|
|
119
|
+
"max",
|
|
120
|
+
"min",
|
|
121
|
+
"nodes",
|
|
122
|
+
"percentileCont",
|
|
123
|
+
"percentileDisc",
|
|
124
|
+
"pi",
|
|
125
|
+
"properties",
|
|
126
|
+
"radians",
|
|
127
|
+
"rand",
|
|
128
|
+
"range",
|
|
129
|
+
"relationships",
|
|
130
|
+
"replace",
|
|
131
|
+
"reverse",
|
|
132
|
+
"right",
|
|
133
|
+
"round",
|
|
134
|
+
"rTrim",
|
|
135
|
+
"sign",
|
|
136
|
+
"sin",
|
|
137
|
+
"size",
|
|
138
|
+
"split",
|
|
139
|
+
"sqrt",
|
|
140
|
+
"startNode",
|
|
141
|
+
"stDev",
|
|
142
|
+
"stDevP",
|
|
143
|
+
"substring",
|
|
144
|
+
"sum",
|
|
145
|
+
"tail",
|
|
146
|
+
"tan",
|
|
147
|
+
"timestamp",
|
|
148
|
+
"toBoolean",
|
|
149
|
+
"toFloat",
|
|
150
|
+
"toInteger",
|
|
151
|
+
"toLower",
|
|
152
|
+
"toString",
|
|
153
|
+
"toUpper",
|
|
154
|
+
"trim",
|
|
155
|
+
"type"
|
|
156
|
+
],
|
|
157
|
+
operators: [
|
|
158
|
+
"+",
|
|
159
|
+
"-",
|
|
160
|
+
"*",
|
|
161
|
+
"/",
|
|
162
|
+
"%",
|
|
163
|
+
"^",
|
|
164
|
+
"=",
|
|
165
|
+
"<>",
|
|
166
|
+
"<",
|
|
167
|
+
">",
|
|
168
|
+
"<=",
|
|
169
|
+
">=",
|
|
170
|
+
"->",
|
|
171
|
+
"<-",
|
|
172
|
+
"-->",
|
|
173
|
+
"<--"
|
|
174
|
+
],
|
|
175
|
+
escapes: /\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
176
|
+
digits: /\d+/,
|
|
177
|
+
octaldigits: /[0-7]+/,
|
|
178
|
+
hexdigits: /[0-9a-fA-F]+/,
|
|
179
|
+
tokenizer: {
|
|
180
|
+
root: [[/[{}[\]()]/, "@brackets"], { include: "common" }],
|
|
181
|
+
common: [
|
|
182
|
+
{ include: "@whitespace" },
|
|
183
|
+
{ include: "@numbers" },
|
|
184
|
+
{ include: "@strings" },
|
|
185
|
+
[/:[a-zA-Z_][\w]*/, "type.identifier"],
|
|
186
|
+
[
|
|
187
|
+
/[a-zA-Z_][\w]*(?=\()/,
|
|
188
|
+
{
|
|
189
|
+
cases: {
|
|
190
|
+
"@builtinFunctions": "predefined.function"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
[
|
|
195
|
+
/[a-zA-Z_$][\w$]*/,
|
|
196
|
+
{
|
|
197
|
+
cases: {
|
|
198
|
+
"@keywords": "keyword",
|
|
199
|
+
"@builtinLiterals": "predefined.literal",
|
|
200
|
+
"@default": "identifier"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
[/`/, "identifier.escape", "@identifierBacktick"],
|
|
205
|
+
[/[;,.:|]/, "delimiter"],
|
|
206
|
+
[
|
|
207
|
+
/[<>=%+\-*/^]+/,
|
|
208
|
+
{
|
|
209
|
+
cases: {
|
|
210
|
+
"@operators": "delimiter",
|
|
211
|
+
"@default": ""
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
],
|
|
216
|
+
numbers: [
|
|
217
|
+
[/-?(@digits)[eE](-?(@digits))?/, "number.float"],
|
|
218
|
+
[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/, "number.float"],
|
|
219
|
+
[/-?0x(@hexdigits)/, "number.hex"],
|
|
220
|
+
[/-?0(@octaldigits)/, "number.octal"],
|
|
221
|
+
[/-?(@digits)/, "number"]
|
|
222
|
+
],
|
|
223
|
+
strings: [
|
|
224
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
225
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
226
|
+
[/"/, "string", "@stringDouble"],
|
|
227
|
+
[/'/, "string", "@stringSingle"]
|
|
228
|
+
],
|
|
229
|
+
whitespace: [
|
|
230
|
+
[/[ \t\r\n]+/, "white"],
|
|
231
|
+
[/\/\*/, "comment", "@comment"],
|
|
232
|
+
[/\/\/.*$/, "comment"]
|
|
233
|
+
],
|
|
234
|
+
comment: [
|
|
235
|
+
[/\/\/.*/, "comment"],
|
|
236
|
+
[/[^/*]+/, "comment"],
|
|
237
|
+
[/\*\//, "comment", "@pop"],
|
|
238
|
+
[/[/*]/, "comment"]
|
|
239
|
+
],
|
|
240
|
+
stringDouble: [
|
|
241
|
+
[/[^\\"]+/, "string"],
|
|
242
|
+
[/@escapes/, "string"],
|
|
243
|
+
[/\\./, "string.invalid"],
|
|
244
|
+
[/"/, "string", "@pop"]
|
|
245
|
+
],
|
|
246
|
+
stringSingle: [
|
|
247
|
+
[/[^\\']+/, "string"],
|
|
248
|
+
[/@escapes/, "string"],
|
|
249
|
+
[/\\./, "string.invalid"],
|
|
250
|
+
[/'/, "string", "@pop"]
|
|
251
|
+
],
|
|
252
|
+
identifierBacktick: [
|
|
253
|
+
[/[^\\`]+/, "identifier.escape"],
|
|
254
|
+
[/@escapes/, "identifier.escape"],
|
|
255
|
+
[/\\./, "identifier.escape.invalid"],
|
|
256
|
+
[/`/, "identifier.escape", "@pop"]
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
export {
|
|
261
|
+
conf,
|
|
262
|
+
language
|
|
263
|
+
};
|
|
@@ -0,0 +1,271 @@
|
|
|
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: "'", notIn: ["string", "comment"] },
|
|
22
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
|
23
|
+
{ open: "`", close: "`", notIn: ["string", "comment"] },
|
|
24
|
+
{ open: "/**", close: " */", notIn: ["string"] }
|
|
25
|
+
],
|
|
26
|
+
surroundingPairs: [
|
|
27
|
+
{ open: "{", close: "}" },
|
|
28
|
+
{ open: "[", close: "]" },
|
|
29
|
+
{ open: "(", close: ")" },
|
|
30
|
+
{ open: "<", close: ">" },
|
|
31
|
+
{ open: "'", close: "'" },
|
|
32
|
+
{ open: "(", close: ")" },
|
|
33
|
+
{ open: '"', close: '"' },
|
|
34
|
+
{ open: "`", close: "`" }
|
|
35
|
+
],
|
|
36
|
+
folding: {
|
|
37
|
+
markers: {
|
|
38
|
+
start: /^\s*\s*#?region\b/,
|
|
39
|
+
end: /^\s*\s*#?endregion\b/
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
var language = {
|
|
44
|
+
defaultToken: "invalid",
|
|
45
|
+
tokenPostfix: ".dart",
|
|
46
|
+
keywords: [
|
|
47
|
+
"abstract",
|
|
48
|
+
"dynamic",
|
|
49
|
+
"implements",
|
|
50
|
+
"show",
|
|
51
|
+
"as",
|
|
52
|
+
"else",
|
|
53
|
+
"import",
|
|
54
|
+
"static",
|
|
55
|
+
"assert",
|
|
56
|
+
"enum",
|
|
57
|
+
"in",
|
|
58
|
+
"super",
|
|
59
|
+
"async",
|
|
60
|
+
"export",
|
|
61
|
+
"interface",
|
|
62
|
+
"switch",
|
|
63
|
+
"await",
|
|
64
|
+
"extends",
|
|
65
|
+
"is",
|
|
66
|
+
"sync",
|
|
67
|
+
"break",
|
|
68
|
+
"external",
|
|
69
|
+
"library",
|
|
70
|
+
"this",
|
|
71
|
+
"case",
|
|
72
|
+
"factory",
|
|
73
|
+
"mixin",
|
|
74
|
+
"throw",
|
|
75
|
+
"catch",
|
|
76
|
+
"false",
|
|
77
|
+
"new",
|
|
78
|
+
"true",
|
|
79
|
+
"class",
|
|
80
|
+
"final",
|
|
81
|
+
"null",
|
|
82
|
+
"try",
|
|
83
|
+
"const",
|
|
84
|
+
"finally",
|
|
85
|
+
"on",
|
|
86
|
+
"typedef",
|
|
87
|
+
"continue",
|
|
88
|
+
"for",
|
|
89
|
+
"operator",
|
|
90
|
+
"var",
|
|
91
|
+
"covariant",
|
|
92
|
+
"Function",
|
|
93
|
+
"part",
|
|
94
|
+
"void",
|
|
95
|
+
"default",
|
|
96
|
+
"get",
|
|
97
|
+
"rethrow",
|
|
98
|
+
"while",
|
|
99
|
+
"deferred",
|
|
100
|
+
"hide",
|
|
101
|
+
"return",
|
|
102
|
+
"with",
|
|
103
|
+
"do",
|
|
104
|
+
"if",
|
|
105
|
+
"set",
|
|
106
|
+
"yield"
|
|
107
|
+
],
|
|
108
|
+
typeKeywords: ["int", "double", "String", "bool"],
|
|
109
|
+
operators: [
|
|
110
|
+
"+",
|
|
111
|
+
"-",
|
|
112
|
+
"*",
|
|
113
|
+
"/",
|
|
114
|
+
"~/",
|
|
115
|
+
"%",
|
|
116
|
+
"++",
|
|
117
|
+
"--",
|
|
118
|
+
"==",
|
|
119
|
+
"!=",
|
|
120
|
+
">",
|
|
121
|
+
"<",
|
|
122
|
+
">=",
|
|
123
|
+
"<=",
|
|
124
|
+
"=",
|
|
125
|
+
"-=",
|
|
126
|
+
"/=",
|
|
127
|
+
"%=",
|
|
128
|
+
">>=",
|
|
129
|
+
"^=",
|
|
130
|
+
"+=",
|
|
131
|
+
"*=",
|
|
132
|
+
"~/=",
|
|
133
|
+
"<<=",
|
|
134
|
+
"&=",
|
|
135
|
+
"!=",
|
|
136
|
+
"||",
|
|
137
|
+
"&&",
|
|
138
|
+
"&",
|
|
139
|
+
"|",
|
|
140
|
+
"^",
|
|
141
|
+
"~",
|
|
142
|
+
"<<",
|
|
143
|
+
">>",
|
|
144
|
+
"!",
|
|
145
|
+
">>>",
|
|
146
|
+
"??",
|
|
147
|
+
"?",
|
|
148
|
+
":",
|
|
149
|
+
"|="
|
|
150
|
+
],
|
|
151
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
152
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
153
|
+
digits: /\d+(_+\d+)*/,
|
|
154
|
+
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
|
155
|
+
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
|
156
|
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
|
157
|
+
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
|
158
|
+
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
|
159
|
+
tokenizer: {
|
|
160
|
+
root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
|
|
161
|
+
common: [
|
|
162
|
+
[
|
|
163
|
+
/[a-z_$][\w$]*/,
|
|
164
|
+
{
|
|
165
|
+
cases: {
|
|
166
|
+
"@typeKeywords": "type.identifier",
|
|
167
|
+
"@keywords": "keyword",
|
|
168
|
+
"@default": "identifier"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
[/[A-Z_$][\w\$]*/, "type.identifier"],
|
|
173
|
+
{ include: "@whitespace" },
|
|
174
|
+
[
|
|
175
|
+
/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
|
176
|
+
{ token: "regexp", bracket: "@open", next: "@regexp" }
|
|
177
|
+
],
|
|
178
|
+
[/@[a-zA-Z]+/, "annotation"],
|
|
179
|
+
[/[()\[\]]/, "@brackets"],
|
|
180
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
181
|
+
[/!(?=([^=]|$))/, "delimiter"],
|
|
182
|
+
[
|
|
183
|
+
/@symbols/,
|
|
184
|
+
{
|
|
185
|
+
cases: {
|
|
186
|
+
"@operators": "delimiter",
|
|
187
|
+
"@default": ""
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
[/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
|
|
192
|
+
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
|
|
193
|
+
[/0[xX](@hexdigits)n?/, "number.hex"],
|
|
194
|
+
[/0[oO]?(@octaldigits)n?/, "number.octal"],
|
|
195
|
+
[/0[bB](@binarydigits)n?/, "number.binary"],
|
|
196
|
+
[/(@digits)n?/, "number"],
|
|
197
|
+
[/[;,.]/, "delimiter"],
|
|
198
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
199
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
200
|
+
[/"/, "string", "@string_double"],
|
|
201
|
+
[/'/, "string", "@string_single"]
|
|
202
|
+
],
|
|
203
|
+
whitespace: [
|
|
204
|
+
[/[ \t\r\n]+/, ""],
|
|
205
|
+
[/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
|
|
206
|
+
[/\/\*/, "comment", "@comment"],
|
|
207
|
+
[/\/\/\/.*$/, "comment.doc"],
|
|
208
|
+
[/\/\/.*$/, "comment"]
|
|
209
|
+
],
|
|
210
|
+
comment: [
|
|
211
|
+
[/[^\/*]+/, "comment"],
|
|
212
|
+
[/\*\//, "comment", "@pop"],
|
|
213
|
+
[/[\/*]/, "comment"]
|
|
214
|
+
],
|
|
215
|
+
jsdoc: [
|
|
216
|
+
[/[^\/*]+/, "comment.doc"],
|
|
217
|
+
[/\*\//, "comment.doc", "@pop"],
|
|
218
|
+
[/[\/*]/, "comment.doc"]
|
|
219
|
+
],
|
|
220
|
+
regexp: [
|
|
221
|
+
[
|
|
222
|
+
/(\{)(\d+(?:,\d*)?)(\})/,
|
|
223
|
+
["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
|
|
224
|
+
],
|
|
225
|
+
[
|
|
226
|
+
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
|
227
|
+
["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
|
|
228
|
+
],
|
|
229
|
+
[/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
|
|
230
|
+
[/[()]/, "regexp.escape.control"],
|
|
231
|
+
[/@regexpctl/, "regexp.escape.control"],
|
|
232
|
+
[/[^\\\/]/, "regexp"],
|
|
233
|
+
[/@regexpesc/, "regexp.escape"],
|
|
234
|
+
[/\\\./, "regexp.invalid"],
|
|
235
|
+
[/(\/)([gimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
|
|
236
|
+
],
|
|
237
|
+
regexrange: [
|
|
238
|
+
[/-/, "regexp.escape.control"],
|
|
239
|
+
[/\^/, "regexp.invalid"],
|
|
240
|
+
[/@regexpesc/, "regexp.escape"],
|
|
241
|
+
[/[^\]]/, "regexp"],
|
|
242
|
+
[
|
|
243
|
+
/\]/,
|
|
244
|
+
{
|
|
245
|
+
token: "regexp.escape.control",
|
|
246
|
+
next: "@pop",
|
|
247
|
+
bracket: "@close"
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
],
|
|
251
|
+
string_double: [
|
|
252
|
+
[/[^\\"\$]+/, "string"],
|
|
253
|
+
[/[^\\"]+/, "string"],
|
|
254
|
+
[/@escapes/, "string.escape"],
|
|
255
|
+
[/\\./, "string.escape.invalid"],
|
|
256
|
+
[/"/, "string", "@pop"],
|
|
257
|
+
[/\$\w+/, "identifier"]
|
|
258
|
+
],
|
|
259
|
+
string_single: [
|
|
260
|
+
[/[^\\'\$]+/, "string"],
|
|
261
|
+
[/@escapes/, "string.escape"],
|
|
262
|
+
[/\\./, "string.escape.invalid"],
|
|
263
|
+
[/'/, "string", "@pop"],
|
|
264
|
+
[/\$\w+/, "identifier"]
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
export {
|
|
269
|
+
conf,
|
|
270
|
+
language
|
|
271
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
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
|
+
brackets: [
|
|
9
|
+
["{", "}"],
|
|
10
|
+
["[", "]"],
|
|
11
|
+
["(", ")"]
|
|
12
|
+
],
|
|
13
|
+
autoClosingPairs: [
|
|
14
|
+
{ open: "{", close: "}" },
|
|
15
|
+
{ open: "[", close: "]" },
|
|
16
|
+
{ open: "(", close: ")" },
|
|
17
|
+
{ open: '"', close: '"' },
|
|
18
|
+
{ open: "'", close: "'" }
|
|
19
|
+
],
|
|
20
|
+
surroundingPairs: [
|
|
21
|
+
{ open: "{", close: "}" },
|
|
22
|
+
{ open: "[", close: "]" },
|
|
23
|
+
{ open: "(", close: ")" },
|
|
24
|
+
{ open: '"', close: '"' },
|
|
25
|
+
{ open: "'", close: "'" }
|
|
26
|
+
]
|
|
27
|
+
};
|
|
28
|
+
var language = {
|
|
29
|
+
defaultToken: "",
|
|
30
|
+
tokenPostfix: ".dockerfile",
|
|
31
|
+
variable: /\${?[\w]+}?/,
|
|
32
|
+
tokenizer: {
|
|
33
|
+
root: [
|
|
34
|
+
{ include: "@whitespace" },
|
|
35
|
+
{ include: "@comment" },
|
|
36
|
+
[/(ONBUILD)(\s+)/, ["keyword", ""]],
|
|
37
|
+
[/(ENV)(\s+)([\w]+)/, ["keyword", "", { token: "variable", next: "@arguments" }]],
|
|
38
|
+
[
|
|
39
|
+
/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,
|
|
40
|
+
{ token: "keyword", next: "@arguments" }
|
|
41
|
+
]
|
|
42
|
+
],
|
|
43
|
+
arguments: [
|
|
44
|
+
{ include: "@whitespace" },
|
|
45
|
+
{ include: "@strings" },
|
|
46
|
+
[
|
|
47
|
+
/(@variable)/,
|
|
48
|
+
{
|
|
49
|
+
cases: {
|
|
50
|
+
"@eos": { token: "variable", next: "@popall" },
|
|
51
|
+
"@default": "variable"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
[
|
|
56
|
+
/\\/,
|
|
57
|
+
{
|
|
58
|
+
cases: {
|
|
59
|
+
"@eos": "",
|
|
60
|
+
"@default": ""
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
/./,
|
|
66
|
+
{
|
|
67
|
+
cases: {
|
|
68
|
+
"@eos": { token: "", next: "@popall" },
|
|
69
|
+
"@default": ""
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
],
|
|
74
|
+
whitespace: [
|
|
75
|
+
[
|
|
76
|
+
/\s+/,
|
|
77
|
+
{
|
|
78
|
+
cases: {
|
|
79
|
+
"@eos": { token: "", next: "@popall" },
|
|
80
|
+
"@default": ""
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
],
|
|
85
|
+
comment: [[/(^#.*$)/, "comment", "@popall"]],
|
|
86
|
+
strings: [
|
|
87
|
+
[/\\'$/, "", "@popall"],
|
|
88
|
+
[/\\'/, ""],
|
|
89
|
+
[/'$/, "string", "@popall"],
|
|
90
|
+
[/'/, "string", "@stringBody"],
|
|
91
|
+
[/"$/, "string", "@popall"],
|
|
92
|
+
[/"/, "string", "@dblStringBody"]
|
|
93
|
+
],
|
|
94
|
+
stringBody: [
|
|
95
|
+
[
|
|
96
|
+
/[^\\\$']/,
|
|
97
|
+
{
|
|
98
|
+
cases: {
|
|
99
|
+
"@eos": { token: "string", next: "@popall" },
|
|
100
|
+
"@default": "string"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
[/\\./, "string.escape"],
|
|
105
|
+
[/'$/, "string", "@popall"],
|
|
106
|
+
[/'/, "string", "@pop"],
|
|
107
|
+
[/(@variable)/, "variable"],
|
|
108
|
+
[/\\$/, "string"],
|
|
109
|
+
[/$/, "string", "@popall"]
|
|
110
|
+
],
|
|
111
|
+
dblStringBody: [
|
|
112
|
+
[
|
|
113
|
+
/[^\\\$"]/,
|
|
114
|
+
{
|
|
115
|
+
cases: {
|
|
116
|
+
"@eos": { token: "string", next: "@popall" },
|
|
117
|
+
"@default": "string"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
[/\\./, "string.escape"],
|
|
122
|
+
[/"$/, "string", "@popall"],
|
|
123
|
+
[/"/, "string", "@pop"],
|
|
124
|
+
[/(@variable)/, "variable"],
|
|
125
|
+
[/\\$/, "string"],
|
|
126
|
+
[/$/, "string", "@popall"]
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
export {
|
|
131
|
+
conf,
|
|
132
|
+
language
|
|
133
|
+
};
|