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,234 @@
|
|
|
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
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
9
|
+
comments: {
|
|
10
|
+
lineComment: "#",
|
|
11
|
+
blockComment: ["<#", "#>"]
|
|
12
|
+
},
|
|
13
|
+
brackets: [
|
|
14
|
+
["{", "}"],
|
|
15
|
+
["[", "]"],
|
|
16
|
+
["(", ")"]
|
|
17
|
+
],
|
|
18
|
+
autoClosingPairs: [
|
|
19
|
+
{ open: "{", close: "}" },
|
|
20
|
+
{ open: "[", close: "]" },
|
|
21
|
+
{ open: "(", close: ")" },
|
|
22
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
|
23
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
|
24
|
+
],
|
|
25
|
+
surroundingPairs: [
|
|
26
|
+
{ open: "{", close: "}" },
|
|
27
|
+
{ open: "[", close: "]" },
|
|
28
|
+
{ open: "(", close: ")" },
|
|
29
|
+
{ open: '"', close: '"' },
|
|
30
|
+
{ open: "'", close: "'" }
|
|
31
|
+
],
|
|
32
|
+
folding: {
|
|
33
|
+
markers: {
|
|
34
|
+
start: new RegExp("^\\s*#region\\b"),
|
|
35
|
+
end: new RegExp("^\\s*#endregion\\b")
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
var language = {
|
|
40
|
+
defaultToken: "",
|
|
41
|
+
ignoreCase: true,
|
|
42
|
+
tokenPostfix: ".ps1",
|
|
43
|
+
brackets: [
|
|
44
|
+
{ token: "delimiter.curly", open: "{", close: "}" },
|
|
45
|
+
{ token: "delimiter.square", open: "[", close: "]" },
|
|
46
|
+
{ token: "delimiter.parenthesis", open: "(", close: ")" }
|
|
47
|
+
],
|
|
48
|
+
keywords: [
|
|
49
|
+
"begin",
|
|
50
|
+
"break",
|
|
51
|
+
"catch",
|
|
52
|
+
"class",
|
|
53
|
+
"continue",
|
|
54
|
+
"data",
|
|
55
|
+
"define",
|
|
56
|
+
"do",
|
|
57
|
+
"dynamicparam",
|
|
58
|
+
"else",
|
|
59
|
+
"elseif",
|
|
60
|
+
"end",
|
|
61
|
+
"exit",
|
|
62
|
+
"filter",
|
|
63
|
+
"finally",
|
|
64
|
+
"for",
|
|
65
|
+
"foreach",
|
|
66
|
+
"from",
|
|
67
|
+
"function",
|
|
68
|
+
"if",
|
|
69
|
+
"in",
|
|
70
|
+
"param",
|
|
71
|
+
"process",
|
|
72
|
+
"return",
|
|
73
|
+
"switch",
|
|
74
|
+
"throw",
|
|
75
|
+
"trap",
|
|
76
|
+
"try",
|
|
77
|
+
"until",
|
|
78
|
+
"using",
|
|
79
|
+
"var",
|
|
80
|
+
"while",
|
|
81
|
+
"workflow",
|
|
82
|
+
"parallel",
|
|
83
|
+
"sequence",
|
|
84
|
+
"inlinescript",
|
|
85
|
+
"configuration"
|
|
86
|
+
],
|
|
87
|
+
helpKeywords: /SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,
|
|
88
|
+
symbols: /[=><!~?&%|+\-*\/\^;\.,]+/,
|
|
89
|
+
escapes: /`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
90
|
+
tokenizer: {
|
|
91
|
+
root: [
|
|
92
|
+
[
|
|
93
|
+
/[a-zA-Z_][\w-]*/,
|
|
94
|
+
{
|
|
95
|
+
cases: {
|
|
96
|
+
"@keywords": { token: "keyword.$0" },
|
|
97
|
+
"@default": ""
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
[/[ \t\r\n]+/, ""],
|
|
102
|
+
[/^:\w*/, "metatag"],
|
|
103
|
+
[
|
|
104
|
+
/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,
|
|
105
|
+
"variable"
|
|
106
|
+
],
|
|
107
|
+
[/<#/, "comment", "@comment"],
|
|
108
|
+
[/#.*$/, "comment"],
|
|
109
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
110
|
+
[/@symbols/, "delimiter"],
|
|
111
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
112
|
+
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
|
113
|
+
[/\d+?/, "number"],
|
|
114
|
+
[/[;,.]/, "delimiter"],
|
|
115
|
+
[/\@"/, "string", '@herestring."'],
|
|
116
|
+
[/\@'/, "string", "@herestring.'"],
|
|
117
|
+
[
|
|
118
|
+
/"/,
|
|
119
|
+
{
|
|
120
|
+
cases: {
|
|
121
|
+
"@eos": "string",
|
|
122
|
+
"@default": { token: "string", next: '@string."' }
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
[
|
|
127
|
+
/'/,
|
|
128
|
+
{
|
|
129
|
+
cases: {
|
|
130
|
+
"@eos": "string",
|
|
131
|
+
"@default": { token: "string", next: "@string.'" }
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
],
|
|
136
|
+
string: [
|
|
137
|
+
[
|
|
138
|
+
/[^"'\$`]+/,
|
|
139
|
+
{
|
|
140
|
+
cases: {
|
|
141
|
+
"@eos": { token: "string", next: "@popall" },
|
|
142
|
+
"@default": "string"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
[
|
|
147
|
+
/@escapes/,
|
|
148
|
+
{
|
|
149
|
+
cases: {
|
|
150
|
+
"@eos": { token: "string.escape", next: "@popall" },
|
|
151
|
+
"@default": "string.escape"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
[
|
|
156
|
+
/`./,
|
|
157
|
+
{
|
|
158
|
+
cases: {
|
|
159
|
+
"@eos": {
|
|
160
|
+
token: "string.escape.invalid",
|
|
161
|
+
next: "@popall"
|
|
162
|
+
},
|
|
163
|
+
"@default": "string.escape.invalid"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
[
|
|
168
|
+
/\$[\w]+$/,
|
|
169
|
+
{
|
|
170
|
+
cases: {
|
|
171
|
+
'$S2=="': { token: "variable", next: "@popall" },
|
|
172
|
+
"@default": { token: "string", next: "@popall" }
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
[
|
|
177
|
+
/\$[\w]+/,
|
|
178
|
+
{
|
|
179
|
+
cases: {
|
|
180
|
+
'$S2=="': "variable",
|
|
181
|
+
"@default": "string"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
[
|
|
186
|
+
/["']/,
|
|
187
|
+
{
|
|
188
|
+
cases: {
|
|
189
|
+
"$#==$S2": { token: "string", next: "@pop" },
|
|
190
|
+
"@default": {
|
|
191
|
+
cases: {
|
|
192
|
+
"@eos": { token: "string", next: "@popall" },
|
|
193
|
+
"@default": "string"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
],
|
|
200
|
+
herestring: [
|
|
201
|
+
[
|
|
202
|
+
/^\s*(["'])@/,
|
|
203
|
+
{
|
|
204
|
+
cases: {
|
|
205
|
+
"$1==$S2": { token: "string", next: "@pop" },
|
|
206
|
+
"@default": "string"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
[/[^\$`]+/, "string"],
|
|
211
|
+
[/@escapes/, "string.escape"],
|
|
212
|
+
[/`./, "string.escape.invalid"],
|
|
213
|
+
[
|
|
214
|
+
/\$[\w]+/,
|
|
215
|
+
{
|
|
216
|
+
cases: {
|
|
217
|
+
'$S2=="': "variable",
|
|
218
|
+
"@default": "string"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
],
|
|
223
|
+
comment: [
|
|
224
|
+
[/[^#\.]+/, "comment"],
|
|
225
|
+
[/#>/, "comment", "@pop"],
|
|
226
|
+
[/(\.)(@helpKeywords)(?!\w)/, { token: "comment.keyword.$2" }],
|
|
227
|
+
[/[\.#]/, "comment"]
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
export {
|
|
232
|
+
conf,
|
|
233
|
+
language
|
|
234
|
+
};
|
|
@@ -0,0 +1,423 @@
|
|
|
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 namedLiterals = ["true", "false"];
|
|
8
|
+
var conf = {
|
|
9
|
+
comments: {
|
|
10
|
+
lineComment: "//",
|
|
11
|
+
blockComment: ["/*", "*/"]
|
|
12
|
+
},
|
|
13
|
+
brackets: [
|
|
14
|
+
["{", "}"],
|
|
15
|
+
["[", "]"],
|
|
16
|
+
["(", ")"],
|
|
17
|
+
["<", ">"]
|
|
18
|
+
],
|
|
19
|
+
surroundingPairs: [
|
|
20
|
+
{ open: "{", close: "}" },
|
|
21
|
+
{ open: "[", close: "]" },
|
|
22
|
+
{ open: "(", close: ")" },
|
|
23
|
+
{ open: "<", close: ">" },
|
|
24
|
+
{ open: '"', close: '"' },
|
|
25
|
+
{ open: "'", close: "'" }
|
|
26
|
+
],
|
|
27
|
+
autoClosingPairs: [
|
|
28
|
+
{ open: "{", close: "}" },
|
|
29
|
+
{ open: "[", close: "]" },
|
|
30
|
+
{ open: "(", close: ")" },
|
|
31
|
+
{ open: "<", close: ">" },
|
|
32
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
|
33
|
+
{ open: "'", close: "'", notIn: ["string"] }
|
|
34
|
+
],
|
|
35
|
+
autoCloseBefore: ".,=}])>' \n ",
|
|
36
|
+
indentationRules: {
|
|
37
|
+
increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
|
|
38
|
+
decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var language = {
|
|
42
|
+
defaultToken: "",
|
|
43
|
+
tokenPostfix: ".proto",
|
|
44
|
+
brackets: [
|
|
45
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
46
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
47
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
48
|
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
49
|
+
],
|
|
50
|
+
symbols: /[=><!~?:&|+\-*/^%]+/,
|
|
51
|
+
keywords: [
|
|
52
|
+
"syntax",
|
|
53
|
+
"import",
|
|
54
|
+
"weak",
|
|
55
|
+
"public",
|
|
56
|
+
"package",
|
|
57
|
+
"option",
|
|
58
|
+
"repeated",
|
|
59
|
+
"oneof",
|
|
60
|
+
"map",
|
|
61
|
+
"reserved",
|
|
62
|
+
"to",
|
|
63
|
+
"max",
|
|
64
|
+
"enum",
|
|
65
|
+
"message",
|
|
66
|
+
"service",
|
|
67
|
+
"rpc",
|
|
68
|
+
"stream",
|
|
69
|
+
"returns",
|
|
70
|
+
"package",
|
|
71
|
+
"optional",
|
|
72
|
+
"true",
|
|
73
|
+
"false"
|
|
74
|
+
],
|
|
75
|
+
builtinTypes: [
|
|
76
|
+
"double",
|
|
77
|
+
"float",
|
|
78
|
+
"int32",
|
|
79
|
+
"int64",
|
|
80
|
+
"uint32",
|
|
81
|
+
"uint64",
|
|
82
|
+
"sint32",
|
|
83
|
+
"sint64",
|
|
84
|
+
"fixed32",
|
|
85
|
+
"fixed64",
|
|
86
|
+
"sfixed32",
|
|
87
|
+
"sfixed64",
|
|
88
|
+
"bool",
|
|
89
|
+
"string",
|
|
90
|
+
"bytes"
|
|
91
|
+
],
|
|
92
|
+
operators: ["=", "+", "-"],
|
|
93
|
+
namedLiterals,
|
|
94
|
+
escapes: `\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\\${)`,
|
|
95
|
+
identifier: /[a-zA-Z]\w*/,
|
|
96
|
+
fullIdentifier: /@identifier(?:\s*\.\s*@identifier)*/,
|
|
97
|
+
optionName: /(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,
|
|
98
|
+
messageName: /@identifier/,
|
|
99
|
+
enumName: /@identifier/,
|
|
100
|
+
messageType: /\.?\s*(?:@identifier\s*\.\s*)*@messageName/,
|
|
101
|
+
enumType: /\.?\s*(?:@identifier\s*\.\s*)*@enumName/,
|
|
102
|
+
floatLit: /[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,
|
|
103
|
+
exponent: /[eE]\s*[+-]?\s*[0-9]+/,
|
|
104
|
+
boolLit: /true\b|false\b/,
|
|
105
|
+
decimalLit: /[1-9][0-9]*/,
|
|
106
|
+
octalLit: /0[0-7]*/,
|
|
107
|
+
hexLit: /0[xX][0-9a-fA-F]+/,
|
|
108
|
+
type: /double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,
|
|
109
|
+
keyType: /int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,
|
|
110
|
+
tokenizer: {
|
|
111
|
+
root: [
|
|
112
|
+
{ include: "@whitespace" },
|
|
113
|
+
[/syntax/, "keyword"],
|
|
114
|
+
[/=/, "operators"],
|
|
115
|
+
[/;/, "delimiter"],
|
|
116
|
+
[
|
|
117
|
+
/(")(proto3)(")/,
|
|
118
|
+
["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto3" }]
|
|
119
|
+
],
|
|
120
|
+
[
|
|
121
|
+
/(")(proto2)(")/,
|
|
122
|
+
["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto2" }]
|
|
123
|
+
],
|
|
124
|
+
[
|
|
125
|
+
/.*?/,
|
|
126
|
+
{ token: "", switchTo: "@topLevel.proto2" }
|
|
127
|
+
]
|
|
128
|
+
],
|
|
129
|
+
topLevel: [
|
|
130
|
+
{ include: "@whitespace" },
|
|
131
|
+
{ include: "@constant" },
|
|
132
|
+
[/=/, "operators"],
|
|
133
|
+
[/[;.]/, "delimiter"],
|
|
134
|
+
[
|
|
135
|
+
/@fullIdentifier/,
|
|
136
|
+
{
|
|
137
|
+
cases: {
|
|
138
|
+
option: { token: "keyword", next: "@option.$S2" },
|
|
139
|
+
enum: { token: "keyword", next: "@enumDecl.$S2" },
|
|
140
|
+
message: { token: "keyword", next: "@messageDecl.$S2" },
|
|
141
|
+
service: { token: "keyword", next: "@serviceDecl.$S2" },
|
|
142
|
+
extend: {
|
|
143
|
+
cases: {
|
|
144
|
+
"$S2==proto2": { token: "keyword", next: "@extendDecl.$S2" }
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"@keywords": "keyword",
|
|
148
|
+
"@default": "identifier"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
],
|
|
153
|
+
enumDecl: [
|
|
154
|
+
{ include: "@whitespace" },
|
|
155
|
+
[/@identifier/, "type.identifier"],
|
|
156
|
+
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@enumBody.$S2" }]
|
|
157
|
+
],
|
|
158
|
+
enumBody: [
|
|
159
|
+
{ include: "@whitespace" },
|
|
160
|
+
{ include: "@constant" },
|
|
161
|
+
[/=/, "operators"],
|
|
162
|
+
[/;/, "delimiter"],
|
|
163
|
+
[/option\b/, "keyword", "@option.$S2"],
|
|
164
|
+
[/@identifier/, "identifier"],
|
|
165
|
+
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
166
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
167
|
+
],
|
|
168
|
+
messageDecl: [
|
|
169
|
+
{ include: "@whitespace" },
|
|
170
|
+
[/@identifier/, "type.identifier"],
|
|
171
|
+
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }]
|
|
172
|
+
],
|
|
173
|
+
messageBody: [
|
|
174
|
+
{ include: "@whitespace" },
|
|
175
|
+
{ include: "@constant" },
|
|
176
|
+
[/=/, "operators"],
|
|
177
|
+
[/;/, "delimiter"],
|
|
178
|
+
[
|
|
179
|
+
"(map)(s*)(<)",
|
|
180
|
+
["keyword", "white", { token: "@brackets", bracket: "@open", next: "@map.$S2" }]
|
|
181
|
+
],
|
|
182
|
+
[
|
|
183
|
+
/@identifier/,
|
|
184
|
+
{
|
|
185
|
+
cases: {
|
|
186
|
+
option: { token: "keyword", next: "@option.$S2" },
|
|
187
|
+
enum: { token: "keyword", next: "@enumDecl.$S2" },
|
|
188
|
+
message: { token: "keyword", next: "@messageDecl.$S2" },
|
|
189
|
+
oneof: { token: "keyword", next: "@oneofDecl.$S2" },
|
|
190
|
+
extensions: {
|
|
191
|
+
cases: {
|
|
192
|
+
"$S2==proto2": { token: "keyword", next: "@reserved.$S2" }
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
reserved: { token: "keyword", next: "@reserved.$S2" },
|
|
196
|
+
"(?:repeated|optional)": { token: "keyword", next: "@field.$S2" },
|
|
197
|
+
required: {
|
|
198
|
+
cases: {
|
|
199
|
+
"$S2==proto2": { token: "keyword", next: "@field.$S2" }
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"$S2==proto3": { token: "@rematch", next: "@field.$S2" }
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
207
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
208
|
+
],
|
|
209
|
+
extendDecl: [
|
|
210
|
+
{ include: "@whitespace" },
|
|
211
|
+
[/@identifier/, "type.identifier"],
|
|
212
|
+
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@extendBody.$S2" }]
|
|
213
|
+
],
|
|
214
|
+
extendBody: [
|
|
215
|
+
{ include: "@whitespace" },
|
|
216
|
+
{ include: "@constant" },
|
|
217
|
+
[/;/, "delimiter"],
|
|
218
|
+
[/(?:repeated|optional|required)/, "keyword", "@field.$S2"],
|
|
219
|
+
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
220
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
221
|
+
],
|
|
222
|
+
options: [
|
|
223
|
+
{ include: "@whitespace" },
|
|
224
|
+
{ include: "@constant" },
|
|
225
|
+
[/;/, "delimiter"],
|
|
226
|
+
[/@optionName/, "annotation"],
|
|
227
|
+
[/[()]/, "annotation.brackets"],
|
|
228
|
+
[/=/, "operator"],
|
|
229
|
+
[/\]/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
230
|
+
],
|
|
231
|
+
option: [
|
|
232
|
+
{ include: "@whitespace" },
|
|
233
|
+
[/@optionName/, "annotation"],
|
|
234
|
+
[/[()]/, "annotation.brackets"],
|
|
235
|
+
[/=/, "operator", "@pop"]
|
|
236
|
+
],
|
|
237
|
+
oneofDecl: [
|
|
238
|
+
{ include: "@whitespace" },
|
|
239
|
+
[/@identifier/, "identifier"],
|
|
240
|
+
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@oneofBody.$S2" }]
|
|
241
|
+
],
|
|
242
|
+
oneofBody: [
|
|
243
|
+
{ include: "@whitespace" },
|
|
244
|
+
{ include: "@constant" },
|
|
245
|
+
[/;/, "delimiter"],
|
|
246
|
+
[/(@identifier)(\s*)(=)/, ["identifier", "white", "delimiter"]],
|
|
247
|
+
[
|
|
248
|
+
/@fullIdentifier|\./,
|
|
249
|
+
{
|
|
250
|
+
cases: {
|
|
251
|
+
"@builtinTypes": "keyword",
|
|
252
|
+
"@default": "type.identifier"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
257
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
258
|
+
],
|
|
259
|
+
reserved: [
|
|
260
|
+
{ include: "@whitespace" },
|
|
261
|
+
[/,/, "delimiter"],
|
|
262
|
+
[/;/, "delimiter", "@pop"],
|
|
263
|
+
{ include: "@constant" },
|
|
264
|
+
[/to\b|max\b/, "keyword"]
|
|
265
|
+
],
|
|
266
|
+
map: [
|
|
267
|
+
{ include: "@whitespace" },
|
|
268
|
+
[
|
|
269
|
+
/@fullIdentifier|\./,
|
|
270
|
+
{
|
|
271
|
+
cases: {
|
|
272
|
+
"@builtinTypes": "keyword",
|
|
273
|
+
"@default": "type.identifier"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
[/,/, "delimiter"],
|
|
278
|
+
[/>/, { token: "@brackets", bracket: "@close", switchTo: "identifier" }]
|
|
279
|
+
],
|
|
280
|
+
field: [
|
|
281
|
+
{ include: "@whitespace" },
|
|
282
|
+
[
|
|
283
|
+
"group",
|
|
284
|
+
{
|
|
285
|
+
cases: {
|
|
286
|
+
"$S2==proto2": { token: "keyword", switchTo: "@groupDecl.$S2" }
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
[/(@identifier)(\s*)(=)/, ["identifier", "white", { token: "delimiter", next: "@pop" }]],
|
|
291
|
+
[
|
|
292
|
+
/@fullIdentifier|\./,
|
|
293
|
+
{
|
|
294
|
+
cases: {
|
|
295
|
+
"@builtinTypes": "keyword",
|
|
296
|
+
"@default": "type.identifier"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
],
|
|
301
|
+
groupDecl: [
|
|
302
|
+
{ include: "@whitespace" },
|
|
303
|
+
[/@identifier/, "identifier"],
|
|
304
|
+
["=", "operator"],
|
|
305
|
+
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }],
|
|
306
|
+
{ include: "@constant" }
|
|
307
|
+
],
|
|
308
|
+
type: [
|
|
309
|
+
{ include: "@whitespace" },
|
|
310
|
+
[/@identifier/, "type.identifier", "@pop"],
|
|
311
|
+
[/./, "delimiter"]
|
|
312
|
+
],
|
|
313
|
+
identifier: [{ include: "@whitespace" }, [/@identifier/, "identifier", "@pop"]],
|
|
314
|
+
serviceDecl: [
|
|
315
|
+
{ include: "@whitespace" },
|
|
316
|
+
[/@identifier/, "identifier"],
|
|
317
|
+
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@serviceBody.$S2" }]
|
|
318
|
+
],
|
|
319
|
+
serviceBody: [
|
|
320
|
+
{ include: "@whitespace" },
|
|
321
|
+
{ include: "@constant" },
|
|
322
|
+
[/;/, "delimiter"],
|
|
323
|
+
[/option\b/, "keyword", "@option.$S2"],
|
|
324
|
+
[/rpc\b/, "keyword", "@rpc.$S2"],
|
|
325
|
+
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
326
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
327
|
+
],
|
|
328
|
+
rpc: [
|
|
329
|
+
{ include: "@whitespace" },
|
|
330
|
+
[/@identifier/, "identifier"],
|
|
331
|
+
[/\(/, { token: "@brackets", bracket: "@open", switchTo: "@request.$S2" }],
|
|
332
|
+
[/{/, { token: "@brackets", bracket: "@open", next: "@methodOptions.$S2" }],
|
|
333
|
+
[/;/, "delimiter", "@pop"]
|
|
334
|
+
],
|
|
335
|
+
request: [
|
|
336
|
+
{ include: "@whitespace" },
|
|
337
|
+
[
|
|
338
|
+
/@messageType/,
|
|
339
|
+
{
|
|
340
|
+
cases: {
|
|
341
|
+
stream: { token: "keyword", next: "@type.$S2" },
|
|
342
|
+
"@default": "type.identifier"
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
],
|
|
346
|
+
[/\)/, { token: "@brackets", bracket: "@close", switchTo: "@returns.$S2" }]
|
|
347
|
+
],
|
|
348
|
+
returns: [
|
|
349
|
+
{ include: "@whitespace" },
|
|
350
|
+
[/returns\b/, "keyword"],
|
|
351
|
+
[/\(/, { token: "@brackets", bracket: "@open", switchTo: "@response.$S2" }]
|
|
352
|
+
],
|
|
353
|
+
response: [
|
|
354
|
+
{ include: "@whitespace" },
|
|
355
|
+
[
|
|
356
|
+
/@messageType/,
|
|
357
|
+
{
|
|
358
|
+
cases: {
|
|
359
|
+
stream: { token: "keyword", next: "@type.$S2" },
|
|
360
|
+
"@default": "type.identifier"
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
[/\)/, { token: "@brackets", bracket: "@close", switchTo: "@rpc.$S2" }]
|
|
365
|
+
],
|
|
366
|
+
methodOptions: [
|
|
367
|
+
{ include: "@whitespace" },
|
|
368
|
+
{ include: "@constant" },
|
|
369
|
+
[/;/, "delimiter"],
|
|
370
|
+
["option", "keyword"],
|
|
371
|
+
[/@optionName/, "annotation"],
|
|
372
|
+
[/[()]/, "annotation.brackets"],
|
|
373
|
+
[/=/, "operator"],
|
|
374
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
375
|
+
],
|
|
376
|
+
comment: [
|
|
377
|
+
[/[^\/*]+/, "comment"],
|
|
378
|
+
[/\/\*/, "comment", "@push"],
|
|
379
|
+
["\\*/", "comment", "@pop"],
|
|
380
|
+
[/[\/*]/, "comment"]
|
|
381
|
+
],
|
|
382
|
+
string: [
|
|
383
|
+
[/[^\\"]+/, "string"],
|
|
384
|
+
[/@escapes/, "string.escape"],
|
|
385
|
+
[/\\./, "string.escape.invalid"],
|
|
386
|
+
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
387
|
+
],
|
|
388
|
+
stringSingle: [
|
|
389
|
+
[/[^\\']+/, "string"],
|
|
390
|
+
[/@escapes/, "string.escape"],
|
|
391
|
+
[/\\./, "string.escape.invalid"],
|
|
392
|
+
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
393
|
+
],
|
|
394
|
+
constant: [
|
|
395
|
+
["@boolLit", "keyword.constant"],
|
|
396
|
+
["@hexLit", "number.hex"],
|
|
397
|
+
["@octalLit", "number.octal"],
|
|
398
|
+
["@decimalLit", "number"],
|
|
399
|
+
["@floatLit", "number.float"],
|
|
400
|
+
[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/, "string.invalid"],
|
|
401
|
+
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
|
402
|
+
[/'/, { token: "string.quote", bracket: "@open", next: "@stringSingle" }],
|
|
403
|
+
[/{/, { token: "@brackets", bracket: "@open", next: "@prototext" }],
|
|
404
|
+
[/identifier/, "identifier"]
|
|
405
|
+
],
|
|
406
|
+
whitespace: [
|
|
407
|
+
[/[ \t\r\n]+/, "white"],
|
|
408
|
+
[/\/\*/, "comment", "@comment"],
|
|
409
|
+
[/\/\/.*$/, "comment"]
|
|
410
|
+
],
|
|
411
|
+
prototext: [
|
|
412
|
+
{ include: "@whitespace" },
|
|
413
|
+
{ include: "@constant" },
|
|
414
|
+
[/@identifier/, "identifier"],
|
|
415
|
+
[/[:;]/, "delimiter"],
|
|
416
|
+
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
417
|
+
]
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
export {
|
|
421
|
+
conf,
|
|
422
|
+
language
|
|
423
|
+
};
|