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,472 @@
|
|
|
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: "}", notIn: ["string"] },
|
|
20
|
+
{ open: "[", close: "]", notIn: ["string"] },
|
|
21
|
+
{ open: "(", close: ")", notIn: ["string"] },
|
|
22
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
|
23
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
|
24
|
+
],
|
|
25
|
+
folding: {
|
|
26
|
+
markers: {
|
|
27
|
+
start: new RegExp("^\\s*(#|//)region\\b"),
|
|
28
|
+
end: new RegExp("^\\s*(#|//)endregion\\b")
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
var language = {
|
|
33
|
+
defaultToken: "",
|
|
34
|
+
tokenPostfix: "",
|
|
35
|
+
tokenizer: {
|
|
36
|
+
root: [
|
|
37
|
+
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.root" }],
|
|
38
|
+
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
|
39
|
+
[/<!--/, "comment.html", "@comment"],
|
|
40
|
+
[/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
41
|
+
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
|
42
|
+
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
|
43
|
+
[/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
44
|
+
[/(<\/)(\w+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
45
|
+
[/</, "delimiter.html"],
|
|
46
|
+
[/[^<]+/]
|
|
47
|
+
],
|
|
48
|
+
doctype: [
|
|
49
|
+
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.comment" }],
|
|
50
|
+
[/[^>]+/, "metatag.content.html"],
|
|
51
|
+
[/>/, "metatag.html", "@pop"]
|
|
52
|
+
],
|
|
53
|
+
comment: [
|
|
54
|
+
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.comment" }],
|
|
55
|
+
[/-->/, "comment.html", "@pop"],
|
|
56
|
+
[/[^-]+/, "comment.content.html"],
|
|
57
|
+
[/./, "comment.content.html"]
|
|
58
|
+
],
|
|
59
|
+
otherTag: [
|
|
60
|
+
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.otherTag" }],
|
|
61
|
+
[/\/?>/, "delimiter.html", "@pop"],
|
|
62
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
63
|
+
[/'([^']*)'/, "attribute.value"],
|
|
64
|
+
[/[\w\-]+/, "attribute.name"],
|
|
65
|
+
[/=/, "delimiter"],
|
|
66
|
+
[/[ \t\r\n]+/]
|
|
67
|
+
],
|
|
68
|
+
script: [
|
|
69
|
+
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.script" }],
|
|
70
|
+
[/type/, "attribute.name", "@scriptAfterType"],
|
|
71
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
72
|
+
[/'([^']*)'/, "attribute.value"],
|
|
73
|
+
[/[\w\-]+/, "attribute.name"],
|
|
74
|
+
[/=/, "delimiter"],
|
|
75
|
+
[
|
|
76
|
+
/>/,
|
|
77
|
+
{
|
|
78
|
+
token: "delimiter.html",
|
|
79
|
+
next: "@scriptEmbedded.text/javascript",
|
|
80
|
+
nextEmbedded: "text/javascript"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
[/[ \t\r\n]+/],
|
|
84
|
+
[
|
|
85
|
+
/(<\/)(script\s*)(>)/,
|
|
86
|
+
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
87
|
+
]
|
|
88
|
+
],
|
|
89
|
+
scriptAfterType: [
|
|
90
|
+
[
|
|
91
|
+
/<\?((php)|=)?/,
|
|
92
|
+
{
|
|
93
|
+
token: "@rematch",
|
|
94
|
+
switchTo: "@phpInSimpleState.scriptAfterType"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
|
98
|
+
[
|
|
99
|
+
/>/,
|
|
100
|
+
{
|
|
101
|
+
token: "delimiter.html",
|
|
102
|
+
next: "@scriptEmbedded.text/javascript",
|
|
103
|
+
nextEmbedded: "text/javascript"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
[/[ \t\r\n]+/],
|
|
107
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
108
|
+
],
|
|
109
|
+
scriptAfterTypeEquals: [
|
|
110
|
+
[
|
|
111
|
+
/<\?((php)|=)?/,
|
|
112
|
+
{
|
|
113
|
+
token: "@rematch",
|
|
114
|
+
switchTo: "@phpInSimpleState.scriptAfterTypeEquals"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
/"([^"]*)"/,
|
|
119
|
+
{
|
|
120
|
+
token: "attribute.value",
|
|
121
|
+
switchTo: "@scriptWithCustomType.$1"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
[
|
|
125
|
+
/'([^']*)'/,
|
|
126
|
+
{
|
|
127
|
+
token: "attribute.value",
|
|
128
|
+
switchTo: "@scriptWithCustomType.$1"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
[
|
|
132
|
+
/>/,
|
|
133
|
+
{
|
|
134
|
+
token: "delimiter.html",
|
|
135
|
+
next: "@scriptEmbedded.text/javascript",
|
|
136
|
+
nextEmbedded: "text/javascript"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
[/[ \t\r\n]+/],
|
|
140
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
141
|
+
],
|
|
142
|
+
scriptWithCustomType: [
|
|
143
|
+
[
|
|
144
|
+
/<\?((php)|=)?/,
|
|
145
|
+
{
|
|
146
|
+
token: "@rematch",
|
|
147
|
+
switchTo: "@phpInSimpleState.scriptWithCustomType.$S2"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
[
|
|
151
|
+
/>/,
|
|
152
|
+
{
|
|
153
|
+
token: "delimiter.html",
|
|
154
|
+
next: "@scriptEmbedded.$S2",
|
|
155
|
+
nextEmbedded: "$S2"
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
159
|
+
[/'([^']*)'/, "attribute.value"],
|
|
160
|
+
[/[\w\-]+/, "attribute.name"],
|
|
161
|
+
[/=/, "delimiter"],
|
|
162
|
+
[/[ \t\r\n]+/],
|
|
163
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
164
|
+
],
|
|
165
|
+
scriptEmbedded: [
|
|
166
|
+
[
|
|
167
|
+
/<\?((php)|=)?/,
|
|
168
|
+
{
|
|
169
|
+
token: "@rematch",
|
|
170
|
+
switchTo: "@phpInEmbeddedState.scriptEmbedded.$S2",
|
|
171
|
+
nextEmbedded: "@pop"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
|
175
|
+
],
|
|
176
|
+
style: [
|
|
177
|
+
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.style" }],
|
|
178
|
+
[/type/, "attribute.name", "@styleAfterType"],
|
|
179
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
180
|
+
[/'([^']*)'/, "attribute.value"],
|
|
181
|
+
[/[\w\-]+/, "attribute.name"],
|
|
182
|
+
[/=/, "delimiter"],
|
|
183
|
+
[
|
|
184
|
+
/>/,
|
|
185
|
+
{
|
|
186
|
+
token: "delimiter.html",
|
|
187
|
+
next: "@styleEmbedded.text/css",
|
|
188
|
+
nextEmbedded: "text/css"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
[/[ \t\r\n]+/],
|
|
192
|
+
[
|
|
193
|
+
/(<\/)(style\s*)(>)/,
|
|
194
|
+
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
195
|
+
]
|
|
196
|
+
],
|
|
197
|
+
styleAfterType: [
|
|
198
|
+
[
|
|
199
|
+
/<\?((php)|=)?/,
|
|
200
|
+
{
|
|
201
|
+
token: "@rematch",
|
|
202
|
+
switchTo: "@phpInSimpleState.styleAfterType"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
|
206
|
+
[
|
|
207
|
+
/>/,
|
|
208
|
+
{
|
|
209
|
+
token: "delimiter.html",
|
|
210
|
+
next: "@styleEmbedded.text/css",
|
|
211
|
+
nextEmbedded: "text/css"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
[/[ \t\r\n]+/],
|
|
215
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
216
|
+
],
|
|
217
|
+
styleAfterTypeEquals: [
|
|
218
|
+
[
|
|
219
|
+
/<\?((php)|=)?/,
|
|
220
|
+
{
|
|
221
|
+
token: "@rematch",
|
|
222
|
+
switchTo: "@phpInSimpleState.styleAfterTypeEquals"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
[
|
|
226
|
+
/"([^"]*)"/,
|
|
227
|
+
{
|
|
228
|
+
token: "attribute.value",
|
|
229
|
+
switchTo: "@styleWithCustomType.$1"
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
[
|
|
233
|
+
/'([^']*)'/,
|
|
234
|
+
{
|
|
235
|
+
token: "attribute.value",
|
|
236
|
+
switchTo: "@styleWithCustomType.$1"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
[
|
|
240
|
+
/>/,
|
|
241
|
+
{
|
|
242
|
+
token: "delimiter.html",
|
|
243
|
+
next: "@styleEmbedded.text/css",
|
|
244
|
+
nextEmbedded: "text/css"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
[/[ \t\r\n]+/],
|
|
248
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
249
|
+
],
|
|
250
|
+
styleWithCustomType: [
|
|
251
|
+
[
|
|
252
|
+
/<\?((php)|=)?/,
|
|
253
|
+
{
|
|
254
|
+
token: "@rematch",
|
|
255
|
+
switchTo: "@phpInSimpleState.styleWithCustomType.$S2"
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
[
|
|
259
|
+
/>/,
|
|
260
|
+
{
|
|
261
|
+
token: "delimiter.html",
|
|
262
|
+
next: "@styleEmbedded.$S2",
|
|
263
|
+
nextEmbedded: "$S2"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
267
|
+
[/'([^']*)'/, "attribute.value"],
|
|
268
|
+
[/[\w\-]+/, "attribute.name"],
|
|
269
|
+
[/=/, "delimiter"],
|
|
270
|
+
[/[ \t\r\n]+/],
|
|
271
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
272
|
+
],
|
|
273
|
+
styleEmbedded: [
|
|
274
|
+
[
|
|
275
|
+
/<\?((php)|=)?/,
|
|
276
|
+
{
|
|
277
|
+
token: "@rematch",
|
|
278
|
+
switchTo: "@phpInEmbeddedState.styleEmbedded.$S2",
|
|
279
|
+
nextEmbedded: "@pop"
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
|
283
|
+
],
|
|
284
|
+
phpInSimpleState: [
|
|
285
|
+
[/<\?((php)|=)?/, "metatag.php"],
|
|
286
|
+
[/\?>/, { token: "metatag.php", switchTo: "@$S2.$S3" }],
|
|
287
|
+
{ include: "phpRoot" }
|
|
288
|
+
],
|
|
289
|
+
phpInEmbeddedState: [
|
|
290
|
+
[/<\?((php)|=)?/, "metatag.php"],
|
|
291
|
+
[
|
|
292
|
+
/\?>/,
|
|
293
|
+
{
|
|
294
|
+
token: "metatag.php",
|
|
295
|
+
switchTo: "@$S2.$S3",
|
|
296
|
+
nextEmbedded: "$S3"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
{ include: "phpRoot" }
|
|
300
|
+
],
|
|
301
|
+
phpRoot: [
|
|
302
|
+
[
|
|
303
|
+
/[a-zA-Z_]\w*/,
|
|
304
|
+
{
|
|
305
|
+
cases: {
|
|
306
|
+
"@phpKeywords": { token: "keyword.php" },
|
|
307
|
+
"@phpCompileTimeConstants": { token: "constant.php" },
|
|
308
|
+
"@default": "identifier.php"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
[
|
|
313
|
+
/[$a-zA-Z_]\w*/,
|
|
314
|
+
{
|
|
315
|
+
cases: {
|
|
316
|
+
"@phpPreDefinedVariables": {
|
|
317
|
+
token: "variable.predefined.php"
|
|
318
|
+
},
|
|
319
|
+
"@default": "variable.php"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
[/[{}]/, "delimiter.bracket.php"],
|
|
324
|
+
[/[\[\]]/, "delimiter.array.php"],
|
|
325
|
+
[/[()]/, "delimiter.parenthesis.php"],
|
|
326
|
+
[/[ \t\r\n]+/],
|
|
327
|
+
[/(#|\/\/)$/, "comment.php"],
|
|
328
|
+
[/(#|\/\/)/, "comment.php", "@phpLineComment"],
|
|
329
|
+
[/\/\*/, "comment.php", "@phpComment"],
|
|
330
|
+
[/"/, "string.php", "@phpDoubleQuoteString"],
|
|
331
|
+
[/'/, "string.php", "@phpSingleQuoteString"],
|
|
332
|
+
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/, "delimiter.php"],
|
|
333
|
+
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float.php"],
|
|
334
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.php"],
|
|
335
|
+
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.php"],
|
|
336
|
+
[/0[0-7']*[0-7]/, "number.octal.php"],
|
|
337
|
+
[/0[bB][0-1']*[0-1]/, "number.binary.php"],
|
|
338
|
+
[/\d[\d']*/, "number.php"],
|
|
339
|
+
[/\d/, "number.php"]
|
|
340
|
+
],
|
|
341
|
+
phpComment: [
|
|
342
|
+
[/\*\//, "comment.php", "@pop"],
|
|
343
|
+
[/[^*]+/, "comment.php"],
|
|
344
|
+
[/./, "comment.php"]
|
|
345
|
+
],
|
|
346
|
+
phpLineComment: [
|
|
347
|
+
[/\?>/, { token: "@rematch", next: "@pop" }],
|
|
348
|
+
[/.$/, "comment.php", "@pop"],
|
|
349
|
+
[/[^?]+$/, "comment.php", "@pop"],
|
|
350
|
+
[/[^?]+/, "comment.php"],
|
|
351
|
+
[/./, "comment.php"]
|
|
352
|
+
],
|
|
353
|
+
phpDoubleQuoteString: [
|
|
354
|
+
[/[^\\"]+/, "string.php"],
|
|
355
|
+
[/@escapes/, "string.escape.php"],
|
|
356
|
+
[/\\./, "string.escape.invalid.php"],
|
|
357
|
+
[/"/, "string.php", "@pop"]
|
|
358
|
+
],
|
|
359
|
+
phpSingleQuoteString: [
|
|
360
|
+
[/[^\\']+/, "string.php"],
|
|
361
|
+
[/@escapes/, "string.escape.php"],
|
|
362
|
+
[/\\./, "string.escape.invalid.php"],
|
|
363
|
+
[/'/, "string.php", "@pop"]
|
|
364
|
+
]
|
|
365
|
+
},
|
|
366
|
+
phpKeywords: [
|
|
367
|
+
"abstract",
|
|
368
|
+
"and",
|
|
369
|
+
"array",
|
|
370
|
+
"as",
|
|
371
|
+
"break",
|
|
372
|
+
"callable",
|
|
373
|
+
"case",
|
|
374
|
+
"catch",
|
|
375
|
+
"cfunction",
|
|
376
|
+
"class",
|
|
377
|
+
"clone",
|
|
378
|
+
"const",
|
|
379
|
+
"continue",
|
|
380
|
+
"declare",
|
|
381
|
+
"default",
|
|
382
|
+
"do",
|
|
383
|
+
"else",
|
|
384
|
+
"elseif",
|
|
385
|
+
"enddeclare",
|
|
386
|
+
"endfor",
|
|
387
|
+
"endforeach",
|
|
388
|
+
"endif",
|
|
389
|
+
"endswitch",
|
|
390
|
+
"endwhile",
|
|
391
|
+
"extends",
|
|
392
|
+
"false",
|
|
393
|
+
"final",
|
|
394
|
+
"for",
|
|
395
|
+
"foreach",
|
|
396
|
+
"function",
|
|
397
|
+
"global",
|
|
398
|
+
"goto",
|
|
399
|
+
"if",
|
|
400
|
+
"implements",
|
|
401
|
+
"interface",
|
|
402
|
+
"instanceof",
|
|
403
|
+
"insteadof",
|
|
404
|
+
"namespace",
|
|
405
|
+
"new",
|
|
406
|
+
"null",
|
|
407
|
+
"object",
|
|
408
|
+
"old_function",
|
|
409
|
+
"or",
|
|
410
|
+
"private",
|
|
411
|
+
"protected",
|
|
412
|
+
"public",
|
|
413
|
+
"resource",
|
|
414
|
+
"static",
|
|
415
|
+
"switch",
|
|
416
|
+
"throw",
|
|
417
|
+
"trait",
|
|
418
|
+
"try",
|
|
419
|
+
"true",
|
|
420
|
+
"use",
|
|
421
|
+
"var",
|
|
422
|
+
"while",
|
|
423
|
+
"xor",
|
|
424
|
+
"die",
|
|
425
|
+
"echo",
|
|
426
|
+
"empty",
|
|
427
|
+
"exit",
|
|
428
|
+
"eval",
|
|
429
|
+
"include",
|
|
430
|
+
"include_once",
|
|
431
|
+
"isset",
|
|
432
|
+
"list",
|
|
433
|
+
"require",
|
|
434
|
+
"require_once",
|
|
435
|
+
"return",
|
|
436
|
+
"print",
|
|
437
|
+
"unset",
|
|
438
|
+
"yield",
|
|
439
|
+
"__construct"
|
|
440
|
+
],
|
|
441
|
+
phpCompileTimeConstants: [
|
|
442
|
+
"__CLASS__",
|
|
443
|
+
"__DIR__",
|
|
444
|
+
"__FILE__",
|
|
445
|
+
"__LINE__",
|
|
446
|
+
"__NAMESPACE__",
|
|
447
|
+
"__METHOD__",
|
|
448
|
+
"__FUNCTION__",
|
|
449
|
+
"__TRAIT__"
|
|
450
|
+
],
|
|
451
|
+
phpPreDefinedVariables: [
|
|
452
|
+
"$GLOBALS",
|
|
453
|
+
"$_SERVER",
|
|
454
|
+
"$_GET",
|
|
455
|
+
"$_POST",
|
|
456
|
+
"$_FILES",
|
|
457
|
+
"$_REQUEST",
|
|
458
|
+
"$_SESSION",
|
|
459
|
+
"$_ENV",
|
|
460
|
+
"$_COOKIE",
|
|
461
|
+
"$php_errormsg",
|
|
462
|
+
"$HTTP_RAW_POST_DATA",
|
|
463
|
+
"$http_response_header",
|
|
464
|
+
"$argc",
|
|
465
|
+
"$argv"
|
|
466
|
+
],
|
|
467
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
|
|
468
|
+
};
|
|
469
|
+
export {
|
|
470
|
+
conf,
|
|
471
|
+
language
|
|
472
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
autoClosingPairs: [
|
|
17
|
+
{ open: "[", close: "]" },
|
|
18
|
+
{ open: "<", close: ">" },
|
|
19
|
+
{ open: "(", close: ")" }
|
|
20
|
+
],
|
|
21
|
+
surroundingPairs: [
|
|
22
|
+
{ open: "[", close: "]" },
|
|
23
|
+
{ open: "<", close: ">" },
|
|
24
|
+
{ open: "(", close: ")" }
|
|
25
|
+
]
|
|
26
|
+
};
|
|
27
|
+
var language = {
|
|
28
|
+
defaultToken: "",
|
|
29
|
+
tokenPostfix: ".pla",
|
|
30
|
+
brackets: [
|
|
31
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
32
|
+
{ open: "<", close: ">", token: "delimiter.angle" },
|
|
33
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
34
|
+
],
|
|
35
|
+
keywords: [
|
|
36
|
+
".i",
|
|
37
|
+
".o",
|
|
38
|
+
".mv",
|
|
39
|
+
".ilb",
|
|
40
|
+
".ob",
|
|
41
|
+
".label",
|
|
42
|
+
".type",
|
|
43
|
+
".phase",
|
|
44
|
+
".pair",
|
|
45
|
+
".symbolic",
|
|
46
|
+
".symbolic-output",
|
|
47
|
+
".kiss",
|
|
48
|
+
".p",
|
|
49
|
+
".e",
|
|
50
|
+
".end"
|
|
51
|
+
],
|
|
52
|
+
comment: /#.*$/,
|
|
53
|
+
identifier: /[a-zA-Z]+[a-zA-Z0-9_\-]*/,
|
|
54
|
+
plaContent: /[01\-~\|]+/,
|
|
55
|
+
tokenizer: {
|
|
56
|
+
root: [
|
|
57
|
+
{ include: "@whitespace" },
|
|
58
|
+
[/@comment/, "comment"],
|
|
59
|
+
[
|
|
60
|
+
/\.([a-zA-Z_\-]+)/,
|
|
61
|
+
{
|
|
62
|
+
cases: {
|
|
63
|
+
"@eos": { token: "keyword.$1" },
|
|
64
|
+
"@keywords": {
|
|
65
|
+
cases: {
|
|
66
|
+
".type": { token: "keyword.$1", next: "@type" },
|
|
67
|
+
"@default": { token: "keyword.$1", next: "@keywordArg" }
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"@default": { token: "keyword.$1" }
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
[/@identifier/, "identifier"],
|
|
75
|
+
[/@plaContent/, "string"]
|
|
76
|
+
],
|
|
77
|
+
whitespace: [[/[ \t\r\n]+/, ""]],
|
|
78
|
+
type: [{ include: "@whitespace" }, [/\w+/, { token: "type", next: "@pop" }]],
|
|
79
|
+
keywordArg: [
|
|
80
|
+
[
|
|
81
|
+
/[ \t\r\n]+/,
|
|
82
|
+
{
|
|
83
|
+
cases: {
|
|
84
|
+
"@eos": { token: "", next: "@pop" },
|
|
85
|
+
"@default": ""
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
[/@comment/, "comment", "@pop"],
|
|
90
|
+
[
|
|
91
|
+
/[<>()\[\]]/,
|
|
92
|
+
{
|
|
93
|
+
cases: {
|
|
94
|
+
"@eos": { token: "@brackets", next: "@pop" },
|
|
95
|
+
"@default": "@brackets"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
[
|
|
100
|
+
/\-?\d+/,
|
|
101
|
+
{
|
|
102
|
+
cases: {
|
|
103
|
+
"@eos": { token: "number", next: "@pop" },
|
|
104
|
+
"@default": "number"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
[
|
|
109
|
+
/@identifier/,
|
|
110
|
+
{
|
|
111
|
+
cases: {
|
|
112
|
+
"@eos": { token: "identifier", next: "@pop" },
|
|
113
|
+
"@default": "identifier"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
/[;=]/,
|
|
119
|
+
{
|
|
120
|
+
cases: {
|
|
121
|
+
"@eos": { token: "delimiter", next: "@pop" },
|
|
122
|
+
"@default": "delimiter"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
export {
|
|
130
|
+
conf,
|
|
131
|
+
language
|
|
132
|
+
};
|