@nuraly/runtime 0.1.7 → 0.1.8
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/README.md +83 -765
- package/components/ui/components/Event/EventValue/EventValue.ts +13 -8
- package/components/ui/components/ToastContainer/ToastContainer.ts +1 -1
- package/components/ui/components/advanced/AIChat/AIChat.ts +1 -2
- package/components/ui/components/advanced/Collapse/Collapse.ts +5 -2
- package/components/ui/components/advanced/Collections/Collections.ts +2 -2
- package/components/ui/components/advanced/MicroApp/MicroApp.ts +3 -11
- package/components/ui/components/advanced/RefComponent/RefComponent.ts +2 -2
- package/components/ui/components/advanced/RichText/RichText.ts +5 -4
- package/components/ui/components/advanced/RichText/RichTextEditor.ts +0 -167
- package/components/ui/components/base/BaseElement/base-change-detection.ts +1 -5
- package/components/ui/components/base/BaseElement.ts +229 -610
- package/components/ui/components/base/FormRegisterable.ts +83 -0
- package/components/ui/components/base/controllers/DragDropController.ts +175 -0
- package/components/ui/components/base/controllers/ErrorController.ts +180 -0
- package/components/ui/components/base/controllers/EventController.ts +112 -0
- package/components/ui/components/base/controllers/InputHandlerController.ts +298 -0
- package/components/ui/components/base/controllers/SelectionController.ts +323 -0
- package/components/ui/components/base/controllers/StyleHandlerController.ts +286 -0
- package/components/ui/components/base/controllers/index.ts +11 -0
- package/components/ui/components/base/mixins/EditorModeMixin.ts +185 -0
- package/components/ui/components/base/mixins/index.ts +6 -0
- package/components/ui/components/base/types/base-element.types.ts +138 -0
- package/components/ui/components/base/types/index.ts +21 -0
- package/components/ui/components/base/utils/event-debouncer.ts +209 -0
- package/components/ui/components/base/utils/index.ts +11 -0
- package/components/ui/components/base/utils/style-cache.ts +94 -0
- package/components/ui/components/display/BoxModel/BoxModel.ts +177 -116
- package/components/ui/components/display/Code/Code.ts +40 -26
- package/components/ui/components/display/Divider/Divider.ts +2 -2
- package/components/ui/components/display/Icon/Icon.ts +2 -3
- package/components/ui/components/display/Image/Image.ts +72 -46
- package/components/ui/components/display/Tag/Tag.ts +2 -3
- package/components/ui/components/display/Video/Video.ts +91 -31
- package/components/ui/components/inputs/Button/Button.ts +2 -2
- package/components/ui/components/inputs/Checkbox/Checkbox.ts +14 -40
- package/components/ui/components/inputs/ColorPicker/colorpicker.ts +3 -4
- package/components/ui/components/inputs/DatePicker/DatePicker.ts +47 -25
- package/components/ui/components/inputs/Dropdown/Dropdown.ts +2 -2
- package/components/ui/components/inputs/Form/Form.style.ts +26 -0
- package/components/ui/components/inputs/Form/Form.ts +352 -0
- package/components/ui/components/inputs/IconPicker/IconPicker.ts +22 -18
- package/components/ui/components/inputs/InsertDropdown/InsertDropdown.ts +0 -20
- package/components/ui/components/inputs/NumberInput/NumberInput.ts +0 -4
- package/components/ui/components/inputs/RadioButton/Radio-button.ts +11 -13
- package/components/ui/components/inputs/Select/Select.ts +38 -24
- package/components/ui/components/inputs/TextInput/TextInput.ts +15 -9
- package/components/ui/components/inputs/Textarea/Textarea.ts +30 -30
- package/components/ui/components/inputs/UsersDropdown/UsersDropdown.ts +1 -1
- package/components/ui/components/layout/Card/Card.ts +112 -10
- package/components/ui/components/layout/Containers/Container.style.ts +18 -0
- package/components/ui/components/layout/Containers/Container.ts +11 -5
- package/components/ui/components/layout/Grid/Col.style.ts +27 -0
- package/components/ui/components/layout/Grid/Col.ts +209 -0
- package/components/ui/components/layout/Grid/Row.style.ts +73 -0
- package/components/ui/components/layout/Grid/Row.ts +166 -0
- package/components/ui/components/layout/Grid/index.ts +7 -0
- package/components/ui/components/layout/Panel/Panel.ts +2 -2
- package/components/ui/components/layout/Tabs/Tabs.ts +0 -1
- package/components/ui/components/navigation/EmbedURL/EmbedURL.ts +62 -26
- package/components/ui/components/navigation/Link/Link.ts +27 -16
- package/components/ui/components/navigation/Menu/Menu.ts +26 -48
- package/components/ui/components/runtime/MicroApp/MicroApp.ts +7 -147
- package/components/ui/components/runtime/MicroApp/MicroAppDataLoader.ts +6 -2
- package/components/ui/components/studio/FunctionsPanel/FunctionsPanel.ts +472 -0
- package/components/ui/components/studio/FunctionsPanel/index.ts +1 -0
- package/components/ui/components/utility/AccessRoles/AccessRoles.style.ts +242 -0
- package/components/ui/components/utility/AccessRoles/AccessRoles.ts +476 -0
- package/components/ui/components/utility/Border/Border.ts +0 -14
- package/components/ui/components/utility/BorderManager/BorderManager.style.ts +237 -0
- package/components/ui/components/utility/BorderManager/BorderManager.ts +503 -0
- package/components/ui/components/utility/BoxShadow/BoxShadow.ts +0 -16
- package/components/ui/components/utility/Document/Document.ts +54 -25
- package/components/ui/components/utility/Export-Import/Export-Import.ts +8 -7
- package/components/ui/components/utility/Handlers/Handlers.ts +14 -17
- package/components/ui/components/utility/ValidationRules/ValidationRules.ts +440 -0
- package/components/ui/components/wrappers/GenerikWrapper/DragWrapper/DragWrapper.ts +1 -0
- package/components/ui/components/wrappers/GenerikWrapper/GenerikWrapper.ts +1 -24
- package/components/ui/nuraly-ui/src/components/badge/badge.style.ts +4 -3
- package/components/ui/nuraly-ui/src/components/datepicker/datepicker.component.ts +2 -0
- package/components/ui/nuraly-ui/src/components/radio-group/radio-group.component.ts +12 -6
- package/components/ui/nuraly-ui/src/components/radio-group/radio-group.style.ts +23 -0
- package/dist/{index-B4yIOSMd.js → BaseElement-BNBn_IJk.js} +2920 -267
- package/dist/{CodeEditor-YsOapSut.js → CodeEditor-Bf4L2rO_.js} +84127 -76319
- package/dist/{CodeEditor-BiNku87K.js → CodeEditor-Cpph-xRc.js} +7 -7
- package/dist/{abap-B2diVmjb.js → abap-D0Neqhq6.js} +91 -1
- package/dist/{apex-3NuJ-nsI.js → apex-B5LhxkeG.js} +18 -1
- package/dist/assets/editor.worker-DcwbJ0PV.js +12 -0
- package/dist/assets/html.worker-BTMxskjR.js +461 -0
- package/dist/assets/json.worker-D3vTGdf_.js +49 -0
- package/dist/assets/ts.worker-BsM1BXac.js +51334 -0
- package/dist/{azcli-XGXuUsMB.js → azcli-BrBH0QTU.js} +1 -1
- package/dist/{bat-B8Vhm634.js → bat-BfzAov64.js} +12 -1
- package/dist/{bicep-Cc8X5S_k.js → bicep-C3bCSWel.js} +1 -1
- package/dist/{cameligo-Bo3wBh9T.js → cameligo-sFL5plcd.js} +13 -1
- package/dist/{clojure-CPoQlpIK.js → clojure-CfeExRz0.js} +14 -1
- package/dist/{coffee-BxvTGz39.js → coffee-Xws5K0WL.js} +11 -1
- package/dist/{cpp-5RpEV7vC.js → cpp-CqOUEpxN.js} +28 -23
- package/dist/{csharp-slXXP3fo.js → csharp-DVLiBOZb.js} +13 -1
- package/dist/{csp-B98p6-gH.js → csp-DVFp9bw5.js} +3 -1
- package/dist/{css-BDsDSAin.js → css-DwARn2R6.js} +8 -1
- package/dist/cssMode-DMsdy1N0.js +1577 -0
- package/dist/{cypher-Dc4IMouD.js → cypher-uY0Mffat.js} +8 -1
- package/dist/{dart-LhvE3yD2.js → dart-D27H-mX_.js} +18 -1
- package/dist/{dockerfile-CwzplJeZ.js → dockerfile-CmV85WZK.js} +5 -1
- package/dist/{ecl-DxW3FiJi.js → ecl--fKn7yzB.js} +9 -1
- package/dist/{elixir-BI40g7TU.js → elixir-DUhH17ON.js} +87 -1
- package/dist/{flow9-tR2v0bGz.js → flow9-B3Dx2LLe.js} +8 -1
- package/dist/{freemarker2-Bfqhwyij.js → freemarker2-D51H9HYi.js} +359 -7
- package/dist/{fsharp-BLAma0OT.js → fsharp-SyqBfUAR.js} +14 -1
- package/dist/{go-nYcD3y4Z.js → go-BbMR2tdT.js} +17 -1
- package/dist/{graphql-Dp1cHWmP.js → graphql-DDJE6tIl.js} +17 -1
- package/dist/{handlebars-DCgKNBmn.js → handlebars-CF6gdAX4.js} +38 -4
- package/dist/{hcl-6NT8Kbna.js → hcl-YBvpaUqf.js} +13 -1
- package/dist/{html-C6wR7sMB.js → html-c2n_zkM3.js} +37 -4
- package/dist/htmlMode-9IJTuZUh.js +1587 -0
- package/dist/{ini-BZCOLrEc.js → ini-Ct73dBtM.js} +10 -1
- package/dist/{java-DAMcfJbX.js → java-C_jlkwoG.js} +18 -1
- package/dist/{javascript-D1L5MTmg.js → javascript-DhEEBMxD.js} +3 -2
- package/dist/jsonMode-CB6k-4rp.js +2002 -0
- package/dist/{julia-CQ46G71H.js → julia-D8WE5U1e.js} +22 -1
- package/dist/{kotlin-CEjVo_6E.js → kotlin-Zy9aq5yB.js} +15 -1
- package/dist/{less-DreV99nP.js → less-sZ0iHtE8.js} +1 -1
- package/dist/{lexon-DBVJhqLb.js → lexon-CsdNL29A.js} +13 -1
- package/dist/{liquid-D_pDYIs1.js → liquid-CwtPiwnW.js} +12 -4
- package/dist/{lua-Dcc_j6L-.js → lua-C2YJo0zw.js} +12 -1
- package/dist/{m3-B9SlZL4n.js → m3-CPLP40SG.js} +7 -1
- package/dist/{markdown-CuGw9_MP.js → markdown-B1mf5e0R.js} +34 -1
- package/dist/{mdx-CKsJ3cF4.js → mdx-LewPRYF8.js} +2 -2
- package/dist/{micro-app-entry-xdTX5-ut.js → micro-app-entry-C3RDIukG.js} +8082 -9628
- package/dist/micro-app.bundle.js +3 -3
- package/dist/micro-app.js +3585 -6759
- package/dist/{mips-BUWqP-OH.js → mips-DA33BZX1.js} +11 -1
- package/dist/{msdax-DtkouYCg.js → msdax-CCYFIQsP.js} +5 -1
- package/dist/{mysql-IkAsWSmF.js → mysql-hjmIjL-D.js} +11 -3
- package/dist/{objective-c-B2-ronfg.js → objective-c-RRCpEmqC.js} +2 -1
- package/dist/{pascal-Bsnz2eJA.js → pascal-CeV8XfxB.js} +13 -1
- package/dist/{pascaligo-D_sMUn0Q.js → pascaligo-IEEGVJAJ.js} +13 -1
- package/dist/{perl-BPzHt9SS.js → perl-B5-QbHq_.js} +34 -1
- package/dist/{pgsql-DlTJB0PD.js → pgsql-s6kqEJmi.js} +14 -4
- package/dist/{php-Dmq5OjwK.js → php-CWWqzOo8.js} +36 -1
- package/dist/{pla-HJcccrBy.js → pla-FSvb_YP_.js} +13 -1
- package/dist/{postiats-OQn6DKv-.js → postiats-DQdscQXO.js} +370 -1
- package/dist/{powerquery-DKaMYC8w.js → powerquery-CtA5JA1I.js} +7 -1
- package/dist/{powershell-DWeJHik1.js → powershell-DglEq96N.js} +13 -1
- package/dist/{protobuf-CBn_IseU.js → protobuf-BSepub3e.js} +5 -1
- package/dist/{pug-BoRpCINl.js → pug-B1847F4G.js} +16 -1
- package/dist/{python-zPpZYwLF.js → python-h5Z2g-yl.js} +59 -11
- package/dist/{qsharp-4rGyVZOw.js → qsharp-D4i0Nqg9.js} +28 -3
- package/dist/{r-DsgLhBOb.js → r-cdRigKxa.js} +5 -1
- package/dist/{razor-B_fCUeGX.js → razor-D5ep1Doy.js} +48 -4
- package/dist/{redis-B2fdL4Bg.js → redis-D9MFxvE8.js} +16 -6
- package/dist/{redshift-DoaeyCkH.js → redshift-CmCnsvL-.js} +13 -4
- package/dist/{restructuredtext-D-6OFBY9.js → restructuredtext-CWy8J51t.js} +19 -1
- package/dist/{ruby-D1DD6baV.js → ruby-WP-c36m5.js} +76 -3
- package/dist/runtime.js +34 -45
- package/dist/{rust-DssUV39M.js → rust-Q9FLdYpu.js} +13 -1
- package/dist/{sb-Dmb6tAdv.js → sb-C54-JBGT.js} +12 -1
- package/dist/{scala-Co3ETaym.js → scala-CzbFImc5.js} +24 -1
- package/dist/{scheme-CMrqXTty.js → scheme-BhfDmYN3.js} +1 -1
- package/dist/{scss-DkGudv8Q.js → scss-CEmiBXpS.js} +25 -1
- package/dist/{shell-BHN2BI4L.js → shell-Bmc1VhG0.js} +4 -1
- package/dist/{solidity-b-R-raGB.js → solidity-C9Q2I8Hh.js} +23 -1
- package/dist/{sophia-Y4GjyxNB.js → sophia-jWa1UyKz.js} +16 -1
- package/dist/{sparql-CDAPZb88.js → sparql-CM7jctbc.js} +15 -1
- package/dist/{sql-DkkpPiUq.js → sql-WzihTkbg.js} +42 -1
- package/dist/{st-CSPV91Ej.js → st-6y7_3aup.js} +8 -1
- package/dist/style.css +1 -1
- package/dist/{swift-DdSC5O48.js → swift-k-0zxG_D.js} +4 -1
- package/dist/{systemverilog-CI03XpAv.js → systemverilog-Pnr5_rIP.js} +29 -3
- package/dist/{tcl-B8DayMSI.js → tcl-fNPXval8.js} +7 -1
- package/dist/tsMode-B_6LiBE1.js +976 -0
- package/dist/{twig-B1AUPVB_.js → twig-L2MkztkV.js} +76 -1
- package/dist/{typescript-DrlYcCUn.js → typescript-BBG0jH4p.js} +23 -2
- package/dist/typespec-Cqqo-3Pt.js +123 -0
- package/dist/{vb-BIC7ccdG.js → vb-B5YC2xN9.js} +15 -1
- package/dist/{wgsl-C9yjop46.js → wgsl-D9BRtftY.js} +26 -1
- package/dist/{xml-BzP9D0eZ.js → xml-DgLB7rE6.js} +8 -2
- package/dist/{yaml-CT7GOvXu.js → yaml-DiI4HpSv.js} +30 -2
- package/handlers/compiler.ts +196 -16
- package/handlers/context-setup.ts +10 -5
- package/handlers/handler-api-factory.ts +358 -0
- package/handlers/handler-api.ts +379 -0
- package/handlers/handler-executor.ts +25 -5
- package/handlers/handler-scope.ts +398 -0
- package/handlers/index.ts +34 -2
- package/handlers/runtime-api/component-properties.ts +0 -8
- package/handlers/runtime-api/index.ts +1 -1
- package/handlers/runtime-api/toast.ts +1 -1
- package/index.ts +14 -115
- package/micro-app/README.md +10 -10
- package/micro-app/state/MicroAppRuntimeContext.ts +1 -28
- package/micro-app-entry.ts +0 -5
- package/package.json +19 -1
- package/redux/actions/application/index.ts +0 -1
- package/redux/actions/component/addComponentAction.ts +15 -4
- package/redux/actions/component/moveDraggedComponent.ts +1 -2
- package/redux/actions/component/update-component-name.ts +1 -1
- package/redux/actions/component/updateComponentAttributes.ts +7 -2
- package/redux/handlers/functions/build-function-handler.ts +11 -3
- package/redux/handlers/functions/deploy-function-handler.ts +11 -3
- package/redux/handlers/functions/invoke-function-handler.ts +11 -3
- package/redux/handlers/functions/load-functions-handler.ts +2 -1
- package/redux/handlers/functions/update-function-handler.ts +2 -1
- package/redux/store/component/component.interface.ts +8 -2
- package/redux/store/component/store.ts +1 -4
- package/state/runtime-context.ts +1 -23
- package/utils/RuntimeContextHelpers.ts +221 -90
- package/utils/change-detection.ts +125 -1
- package/utils/clipboard-utils.ts +18 -8
- package/utils/component-registry.ts +118 -0
- package/utils/index.ts +14 -1
- package/utils/naming-generator.ts +3 -1
- package/utils/randomness.ts +3 -1
- package/utils/register-components.ts +21 -29
- package/utils/render-util.ts +27 -48
- package/utils/toast.ts +97 -0
- package/vite.config.ts +29 -12
- package/components/ui/components/Event/EventAttribute/EventAttribute.style.ts +0 -11
- package/components/ui/components/Event/EventAttribute/EventAttribute.ts +0 -28
- package/components/ui/components/base/BaseElement/calculateStyles.ts +0 -31
- package/components/ui/components/base/BaseElement/drag-events.helpers.ts +0 -71
- package/components/ui/components/base/BaseElement/execute-event.helpers.ts +0 -45
- package/components/ui/components/base/BaseElement/interactions.helpers.ts +0 -14
- package/components/ui/components/wrappers/ComponentTitle/ComponentTitle.ts +0 -95
- package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.style.ts +0 -102
- package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.ts +0 -258
- package/components/ui/components/wrappers/PreviewWrapper.ts +0 -28
- package/components/ui/components/wrappers/RectangleSelection/RectangleSelection.ts +0 -154
- package/components/ui/nuraly-ui/packages/common/dist/constants/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/constants/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/constants.d.ts +0 -17
- package/components/ui/nuraly-ui/packages/common/dist/constants.js +0 -7
- package/components/ui/nuraly-ui/packages/common/dist/controllers/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/controllers/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/controllers.d.ts +0 -21
- package/components/ui/nuraly-ui/packages/common/dist/controllers.js +0 -22
- package/components/ui/nuraly-ui/packages/common/dist/index.d.ts +0 -25
- package/components/ui/nuraly-ui/packages/common/dist/index.js +0 -27
- package/components/ui/nuraly-ui/packages/common/dist/mixins/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/mixins/index.js +0 -3
- package/components/ui/nuraly-ui/packages/common/dist/mixins.d.ts +0 -26
- package/components/ui/nuraly-ui/packages/common/dist/mixins.js +0 -29
- package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.d.ts +0 -42
- package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.js +0 -38
- package/components/ui/nuraly-ui/packages/common/dist/shared/constants.d.ts +0 -1
- package/components/ui/nuraly-ui/packages/common/dist/shared/constants.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.d.ts +0 -77
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.js +0 -341
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.d.ts +0 -37
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.d.ts +0 -4
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.js +0 -4
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.d.ts +0 -48
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.js +0 -133
- package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.d.ts +0 -37
- package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.js +0 -141
- package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.d.ts +0 -64
- package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.js +0 -95
- package/components/ui/nuraly-ui/packages/common/dist/shared/index.d.ts +0 -13
- package/components/ui/nuraly-ui/packages/common/dist/shared/index.js +0 -17
- package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.d.ts +0 -78
- package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.js +0 -194
- package/components/ui/nuraly-ui/packages/common/dist/shared/themes.d.ts +0 -44
- package/components/ui/nuraly-ui/packages/common/dist/shared/themes.js +0 -85
- package/components/ui/nuraly-ui/packages/common/dist/shared/utils.d.ts +0 -60
- package/components/ui/nuraly-ui/packages/common/dist/shared/utils.js +0 -85
- package/components/ui/nuraly-ui/packages/common/dist/shared/validation.types.d.ts +0 -108
- package/components/ui/nuraly-ui/packages/common/dist/shared/validation.types.js +0 -17
- package/components/ui/nuraly-ui/packages/common/dist/themes/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/themes/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/themes.d.ts +0 -22
- package/components/ui/nuraly-ui/packages/common/dist/themes.js +0 -23
- package/components/ui/nuraly-ui/packages/common/dist/utils/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/utils/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/utils.d.ts +0 -21
- package/components/ui/nuraly-ui/packages/common/dist/utils.js +0 -22
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/LICENSE +0 -15
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/README.md +0 -294
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy-sync.js +0 -171
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy.js +0 -175
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/index.js +0 -7
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/empty/index.js +0 -39
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/file.js +0 -66
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/link.js +0 -64
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/fs/index.js +0 -146
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/index.js +0 -16
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/index.js +0 -16
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json.js +0 -12
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/index.js +0 -7
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move-sync.js +0 -55
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move.js +0 -59
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/output-file/index.js +0 -31
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/remove/index.js +0 -17
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/async.js +0 -29
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/stat.js +0 -159
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/utimes.js +0 -36
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/LICENSE +0 -15
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/README.md +0 -294
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy-sync.js +0 -171
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy.js +0 -175
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/index.js +0 -7
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/empty/index.js +0 -39
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/file.js +0 -66
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/link.js +0 -64
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/fs/index.js +0 -146
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/index.js +0 -16
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/index.js +0 -16
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json.js +0 -12
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/index.js +0 -7
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move-sync.js +0 -55
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move.js +0 -59
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/output-file/index.js +0 -31
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/remove/index.js +0 -17
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/async.js +0 -29
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/stat.js +0 -159
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/utimes.js +0 -36
- package/dist/SmartAttributeHandler-C4EliaG0.js +0 -153
- package/dist/SmartAttributeHandler-u-ZHGueR.js +0 -193
- package/dist/assets/editor.worker-C_S4Avdt.js +0 -11
- package/dist/assets/html.worker-DfuQASUV.js +0 -458
- package/dist/assets/json.worker-Cucz4wxY.js +0 -42
- package/dist/assets/ts.worker-Dme6S0YK.js +0 -37021
- package/dist/cssMode-CqMQ6Xsa.js +0 -1443
- package/dist/htmlMode-KglxyZXm.js +0 -1453
- package/dist/jsonMode-B3rqxD-b.js +0 -1863
- package/dist/tsMode-DEiq8fQ0.js +0 -800
- package/redux/actions/application/loadApplicationPermissionAction.ts +0 -10
- package/utils/styleUtil.ts +0 -7
package/dist/runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $components, u as updateComponentHandler, r as removeComponentToCurrentPageAction, a as $
|
|
2
|
-
export {
|
|
1
|
+
import { $ as $components, u as updateComponentHandler, r as removeComponentToCurrentPageAction, a as $hoveredComponent, b as $hoveredComponentId, c as $showShareApplicationModal, d as $permissionsState, e as $applicationPermission, f as $currentApplication, g as updateApplicationActionHandler, h as $showCreateApplicationModal, F as FRONT_API_URLS, i as $editorState, j as $environment, k as addPageHandler, l as $currentPageId, m as $currentPageViewPort, n as $resizing, o as $showBorder, p as $pageSize, q as $pages, s as $pageZoom } from './BaseElement-BNBn_IJk.js';
|
|
2
|
+
export { w as $applicationComponents, a1 as $applicationPages, Y as $applications, L as $componentById, G as $componentRuntimeValueByKey, D as $componentRuntimeValuesById, A as $componentWithChildren, H as $componentsByUUIDs, a3 as $context, _ as $contextMenuEvent, y as $currentComponentId, Z as $currentPage, a6 as $debug, z as $draggingComponentInfo, a0 as $microAppCurrentPage, a7 as $providers, B as $runtimeStyles, I as $runtimeStylescomponentStyleByID, C as $runtimeValues, x as $selectedComponent, a5 as $toasts, ae as BaseElement, ae as BaseElementBlock, af as BaseElementCore, ab as ComponentRegistry, bl as EMPTY_STRING, t as Editor, E as ExecuteInstance, b7 as FORBIDDEN_FUNCTIONS, b5 as FORBIDDEN_GLOBALS, b6 as FORBIDDEN_PROPERTIES, bc as GenerateName, aT as LOG_LEVELS, aP as Logger, bk as NO_EVENT_LISTENER, aZ as RuntimeContextHelpers, v as RuntimeHelpers, R as RuntimeInstance, b8 as VALIDATION_ERROR_MESSAGES, a4 as ViewMode, ag as addComponentAction, aC as addComponentHandler, ah as addComponentToCurrentPageAction, az as addGeneratedComponents, ar as addPageToApplicationAction, aL as addPermission, as as addTempApplication, aA as addlogDebug, S as clearAllRuntimeValues, bf as clearAllToasts, T as clearComponentRuntimeStyleAttributes, Q as clearComponentRuntimeValue, P as clearComponentRuntimeValues, aw as closeCreateApplicationModalAction, aa as compileHandlerFunction, aV as copyCpmponentToClipboard, aJ as createApplicationAction, aK as deleteApplicationAction, ai as deleteComponentAction, aD as deleteComponentActionHandler, ao as deletePageAction, aG as deletePageHandler, aS as enableBenchmarking, aR as enableLogging, aU as eventDispatcher, a8 as executeHandler, X as extractAllChildrenIds, W as extractChildresIds, V as fillApplicationComponents, U as fillComponentChildren, b9 as formatValidationErrors, aY as generateNuralyClipboardStructure, J as getAllChildrenRecursive, a9 as getContextFromComponent, K as getDirectChildren, b4 as getErrorMessage, ba as getNestedAttribute, bb as hasOnlyEmptyObjects, be as hideToast, aM as invokeFunctionHandler, b2 as isAllowedGlobal, b3 as isForbiddenFunction, b0 as isForbiddenGlobal, b1 as isForbiddenProperty, aN as loadFunctionsHandler, aI as loadOrRefreshApplications, aj as moveDraggedComponent, ax as openEditorTab, aW as pasteComponentFromClipboard, a2 as refreshPageStoreVar, aH as refreshPagesActionHandler, ac as registerComponent, ad as registerComponents, aO as renderComponent, aB as resetComponentDebug, at as setApplication, M as setComponentRuntimeValue, N as setComponentRuntimeValues, ap as setContextMenuEvent, ak as setCurrentComponentIdAction, ay as setCurrentEditorTab, al as setDraggingComponentInfo, aQ as setLogLevel, au as setPermissionMessage, O as setcomponentRuntimeStyleAttribute, bh as showError, bj as showInfo, bg as showSuccess, bd as showToast, bi as showWarning, aX as traitCompoentFromSchema, av as updateApplication, an as updateComponentAttributes, am as updateComponentName, aq as updatePageAction, aF as updatePageHandler, aE as validateAndEmitErrors, a$ as validateComponentHandlers, a_ as validateHandlerCode } from './BaseElement-BNBn_IJk.js';
|
|
3
3
|
import { v4 } from 'uuid';
|
|
4
4
|
import 'acorn';
|
|
5
5
|
import 'acorn-walk';
|
|
@@ -79,6 +79,10 @@ function moveDraggedComponentInside(dropInComponentId, draggedComponentId) {
|
|
|
79
79
|
function moveDraggedComponentIntoCurrentPageRoot(draggedComponentId) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
function setHoveredComponentAction(component) {
|
|
83
|
+
$hoveredComponent.set(component);
|
|
84
|
+
}
|
|
85
|
+
|
|
82
86
|
function setHoveredComponentIdAction(componentId) {
|
|
83
87
|
$hoveredComponentId.set(componentId);
|
|
84
88
|
}
|
|
@@ -89,36 +93,6 @@ function closeShareApplicationModalAction() {
|
|
|
89
93
|
$showShareApplicationModal.set(false);
|
|
90
94
|
}
|
|
91
95
|
|
|
92
|
-
async function fetchApplicationPermission(id, resourceId) {
|
|
93
|
-
try {
|
|
94
|
-
const response = await fetch(APIS_URL.getApplicationPermission(id, resourceId));
|
|
95
|
-
if (!response.ok) {
|
|
96
|
-
throw new Error(`Failed to fetch permission: ${response.statusText}`);
|
|
97
|
-
}
|
|
98
|
-
const data = await response.json();
|
|
99
|
-
return {
|
|
100
|
-
status: "OK",
|
|
101
|
-
data
|
|
102
|
-
};
|
|
103
|
-
} catch (error) {
|
|
104
|
-
return {
|
|
105
|
-
status: "ERROR",
|
|
106
|
-
error
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function setApplicationPermissionAction(permission) {
|
|
112
|
-
$applicationPermission.set(permission);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
async function loadApplicationPermissionAction(id, resource_id) {
|
|
116
|
-
const permission = await fetchApplicationPermission(id, resource_id);
|
|
117
|
-
if (permission.data) {
|
|
118
|
-
setApplicationPermissionAction(permission.data);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
96
|
function resetPermissionMessage() {
|
|
123
97
|
$permissionsState.set({
|
|
124
98
|
...$permissionsState.get(),
|
|
@@ -126,6 +100,10 @@ function resetPermissionMessage() {
|
|
|
126
100
|
});
|
|
127
101
|
}
|
|
128
102
|
|
|
103
|
+
function setApplicationPermissionAction(permission) {
|
|
104
|
+
$applicationPermission.set(permission);
|
|
105
|
+
}
|
|
106
|
+
|
|
129
107
|
function setDefaultApplicationPageIfNotSet(uuid) {
|
|
130
108
|
if (!$currentApplication.get().default_page_uuid) {
|
|
131
109
|
$currentApplication.set({
|
|
@@ -144,22 +122,34 @@ function showShareApplicationModalAction() {
|
|
|
144
122
|
$showShareApplicationModal.set(true);
|
|
145
123
|
}
|
|
146
124
|
|
|
147
|
-
const buildFunctionHandler = (functionId) => {
|
|
148
|
-
|
|
125
|
+
const buildFunctionHandler = async (functionId) => {
|
|
126
|
+
const response = await fetch(`${FRONT_API_URLS.FUNCTIONS}/build/${functionId}`, {
|
|
149
127
|
method: "POST",
|
|
150
128
|
headers: {
|
|
151
129
|
"Content-Type": "application/json"
|
|
152
|
-
}
|
|
130
|
+
},
|
|
131
|
+
credentials: "include"
|
|
153
132
|
});
|
|
133
|
+
if (!response.ok) {
|
|
134
|
+
const errorText = await response.text();
|
|
135
|
+
throw new Error(errorText || `Build failed with status ${response.status}`);
|
|
136
|
+
}
|
|
137
|
+
return response;
|
|
154
138
|
};
|
|
155
139
|
|
|
156
|
-
const deployFunctionHandler = (functionId) => {
|
|
157
|
-
|
|
140
|
+
const deployFunctionHandler = async (functionId) => {
|
|
141
|
+
const response = await fetch(`${FRONT_API_URLS.FUNCTIONS}/deploy/${functionId}`, {
|
|
158
142
|
method: "POST",
|
|
159
143
|
headers: {
|
|
160
144
|
"Content-Type": "application/json"
|
|
161
|
-
}
|
|
145
|
+
},
|
|
146
|
+
credentials: "include"
|
|
162
147
|
});
|
|
148
|
+
if (!response.ok) {
|
|
149
|
+
const errorText = await response.text();
|
|
150
|
+
throw new Error(errorText || `Deploy failed with status ${response.status}`);
|
|
151
|
+
}
|
|
152
|
+
return response;
|
|
163
153
|
};
|
|
164
154
|
|
|
165
155
|
const updateFunctionHandler = (functionElement) => {
|
|
@@ -168,6 +158,7 @@ const updateFunctionHandler = (functionElement) => {
|
|
|
168
158
|
headers: {
|
|
169
159
|
"Content-Type": "application/json"
|
|
170
160
|
},
|
|
161
|
+
credentials: "include",
|
|
171
162
|
body: JSON.stringify({
|
|
172
163
|
...functionElement
|
|
173
164
|
})
|
|
@@ -199,6 +190,10 @@ function setCurrentPageViewPort(viewPort) {
|
|
|
199
190
|
$currentPageViewPort.set(viewPort);
|
|
200
191
|
}
|
|
201
192
|
|
|
193
|
+
function setResizing(isResizing) {
|
|
194
|
+
$resizing.set(isResizing);
|
|
195
|
+
}
|
|
196
|
+
|
|
202
197
|
function setShowBorder(showBorder) {
|
|
203
198
|
$showBorder.set(showBorder);
|
|
204
199
|
}
|
|
@@ -276,12 +271,6 @@ function processHeaders(astroHeaders) {
|
|
|
276
271
|
return headers;
|
|
277
272
|
}
|
|
278
273
|
|
|
279
|
-
function getStyleFronmAttribute(attributes) {
|
|
280
|
-
Object.keys(attributes).map((attribute) => {
|
|
281
|
-
return;
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
|
|
285
274
|
function debounce(fn, delay, options = {}) {
|
|
286
275
|
const { leading = false, trailing = true, maxWait } = options;
|
|
287
276
|
let timeoutId = null;
|
|
@@ -398,4 +387,4 @@ function debounce(fn, delay, options = {}) {
|
|
|
398
387
|
return debounced;
|
|
399
388
|
}
|
|
400
389
|
|
|
401
|
-
export { $components, $currentApplication, $currentPageId, $currentPageViewPort, $editorState, $environment, $hoveredComponentId, $pageSize, $pageZoom, $pages, $showBorder, FRONT_API_URLS, LocalStorage, addComponentAsChildOf, addPageAction, addPageHandler, buildFunctionHandler, clipboardComponent$1 as clipboardComponent, closeEditorTab, closeShareApplicationModalAction, copyComponentAction, debounce, deployFunctionHandler,
|
|
390
|
+
export { $components, $currentApplication, $currentPageId, $currentPageViewPort, $editorState, $environment, $hoveredComponent, $hoveredComponentId, $pageSize, $pageZoom, $pages, $resizing, $showBorder, FRONT_API_URLS, LocalStorage, addComponentAsChildOf, addPageAction, addPageHandler, buildFunctionHandler, clipboardComponent$1 as clipboardComponent, closeEditorTab, closeShareApplicationModalAction, copyComponentAction, debounce, deployFunctionHandler, moveDraggedComponentInside, moveDraggedComponentIntoCurrentPageRoot, processHeaders, refreshComponentActionHandler, removeComponentToCurrentPageAction, resetPermissionMessage, setApplicationPermissionAction, setCurrentPageAction, setCurrentPageViewPort, setDefaultApplicationPageIfNotSet, setEnvirementMode, setEnvironmentMode, setHoveredComponentAction, setHoveredComponentIdAction, setResizing, setShowBorder, showCreateApplicationModalAction, showShareApplicationModalAction, updateApplicationActionHandler, updateComponentHandler, updateFunctionHandler, updatePageInfo, updatePageStyleAttributes, updatePageZoom };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -259,6 +259,7 @@ var e = {
|
|
|
259
259
|
floatSuffixes: /f(32|64)/,
|
|
260
260
|
tokenizer: {
|
|
261
261
|
root: [
|
|
262
|
+
// Raw string literals
|
|
262
263
|
[/r(#*)"/, { token: "string.quote", bracket: "@open", next: "@stringraw.$1" }],
|
|
263
264
|
[
|
|
264
265
|
/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,
|
|
@@ -273,11 +274,16 @@ var e = {
|
|
|
273
274
|
}
|
|
274
275
|
}
|
|
275
276
|
],
|
|
277
|
+
// Designator
|
|
276
278
|
[/\$/, "identifier"],
|
|
279
|
+
// Lifetime annotations
|
|
277
280
|
[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/, "identifier"],
|
|
281
|
+
// Byte literal
|
|
278
282
|
[/'(\S|@escapes)'/, "string.byteliteral"],
|
|
283
|
+
// Strings
|
|
279
284
|
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
|
280
285
|
{ include: "@numbers" },
|
|
286
|
+
// Whitespace + comments
|
|
281
287
|
{ include: "@whitespace" },
|
|
282
288
|
[
|
|
283
289
|
/@delimiters/,
|
|
@@ -322,11 +328,17 @@ var e = {
|
|
|
322
328
|
[/["#]/, { token: "string" }]
|
|
323
329
|
],
|
|
324
330
|
numbers: [
|
|
331
|
+
//Octal
|
|
325
332
|
[/(0o[0-7_]+)(@intSuffixes)?/, { token: "number" }],
|
|
333
|
+
//Binary
|
|
326
334
|
[/(0b[0-1_]+)(@intSuffixes)?/, { token: "number" }],
|
|
335
|
+
//Exponent
|
|
327
336
|
[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/, { token: "number" }],
|
|
337
|
+
//Float
|
|
328
338
|
[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/, { token: "number" }],
|
|
339
|
+
//Hexadecimal
|
|
329
340
|
[/(0x[\da-fA-F]+)_?(@intSuffixes)?/, { token: "number" }],
|
|
341
|
+
//Integer
|
|
330
342
|
[/[\d][\d_]*(@intSuffixes?)?/, { token: "number" }]
|
|
331
343
|
]
|
|
332
344
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -28,6 +28,7 @@ var e = {
|
|
|
28
28
|
brackets: [
|
|
29
29
|
{ token: "delimiter.array", open: "[", close: "]" },
|
|
30
30
|
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
|
31
|
+
// Special bracket statement pairs
|
|
31
32
|
{ token: "keyword.tag-if", open: "If", close: "EndIf" },
|
|
32
33
|
{ token: "keyword.tag-while", open: "While", close: "EndWhile" },
|
|
33
34
|
{ token: "keyword.tag-for", open: "For", close: "EndFor" },
|
|
@@ -51,13 +52,18 @@ var e = {
|
|
|
51
52
|
],
|
|
52
53
|
tagwords: ["If", "Sub", "While", "For"],
|
|
53
54
|
operators: [">", "<", "<>", "<=", ">=", "And", "Or", "+", "-", "*", "/", "="],
|
|
55
|
+
// we include these common regular expressions
|
|
54
56
|
identifier: /[a-zA-Z_][\w]*/,
|
|
55
57
|
symbols: /[=><:+\-*\/%\.,]+/,
|
|
56
58
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
59
|
+
// The main tokenizer for our languages
|
|
57
60
|
tokenizer: {
|
|
58
61
|
root: [
|
|
62
|
+
// whitespace
|
|
59
63
|
{ include: "@whitespace" },
|
|
64
|
+
// classes
|
|
60
65
|
[/(@identifier)(?=[.])/, "type"],
|
|
66
|
+
// identifiers, tagwords, and keywords
|
|
61
67
|
[
|
|
62
68
|
/@identifier/,
|
|
63
69
|
{
|
|
@@ -68,6 +74,7 @@ var e = {
|
|
|
68
74
|
}
|
|
69
75
|
}
|
|
70
76
|
],
|
|
77
|
+
// methods, properties, and events
|
|
71
78
|
[
|
|
72
79
|
/([.])(@identifier)/,
|
|
73
80
|
{
|
|
@@ -77,8 +84,10 @@ var e = {
|
|
|
77
84
|
}
|
|
78
85
|
}
|
|
79
86
|
],
|
|
87
|
+
// numbers
|
|
80
88
|
[/\d*\.\d+/, "number.float"],
|
|
81
89
|
[/\d+/, "number"],
|
|
90
|
+
// delimiters and operators
|
|
82
91
|
[/[()\[\]]/, "@brackets"],
|
|
83
92
|
[
|
|
84
93
|
/@symbols/,
|
|
@@ -89,7 +98,9 @@ var e = {
|
|
|
89
98
|
}
|
|
90
99
|
}
|
|
91
100
|
],
|
|
101
|
+
// strings
|
|
92
102
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
103
|
+
// non-teminated string
|
|
93
104
|
[/"/, "string", "@string"]
|
|
94
105
|
],
|
|
95
106
|
whitespace: [
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
7
7
|
var e = {
|
|
8
|
+
/*
|
|
9
|
+
* `...` is allowed as an identifier.
|
|
10
|
+
* $ is allowed in identifiers.
|
|
11
|
+
* unary_<op> is allowed as an identifier.
|
|
12
|
+
* <name>_= is allowed as an identifier.
|
|
13
|
+
*/
|
|
8
14
|
wordPattern: /(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,
|
|
9
15
|
comments: {
|
|
10
16
|
lineComment: "//",
|
|
@@ -37,6 +43,7 @@ var e = {
|
|
|
37
43
|
}
|
|
38
44
|
}, t = {
|
|
39
45
|
tokenPostfix: ".scala",
|
|
46
|
+
// We can't easily add everything from Dotty, but we can at least add some of its keywords
|
|
40
47
|
keywords: [
|
|
41
48
|
"asInstanceOf",
|
|
42
49
|
"catch",
|
|
@@ -69,10 +76,12 @@ var e = {
|
|
|
69
76
|
"while",
|
|
70
77
|
"with",
|
|
71
78
|
"yield",
|
|
79
|
+
// Dotty-specific:
|
|
72
80
|
"given",
|
|
73
81
|
"enum",
|
|
74
82
|
"then"
|
|
75
83
|
],
|
|
84
|
+
// Dotty-specific:
|
|
76
85
|
softKeywords: ["as", "export", "extension", "end", "derives", "on"],
|
|
77
86
|
constants: ["true", "false", "null", "this", "super"],
|
|
78
87
|
modifiers: [
|
|
@@ -85,16 +94,21 @@ var e = {
|
|
|
85
94
|
"protected",
|
|
86
95
|
"sealed"
|
|
87
96
|
],
|
|
97
|
+
// Dotty-specific:
|
|
88
98
|
softModifiers: ["inline", "opaque", "open", "transparent", "using"],
|
|
89
99
|
name: /(?:[a-z_$][\w$]*|`[^`]+`)/,
|
|
90
100
|
type: /(?:[A-Z][\w$]*)/,
|
|
101
|
+
// we include these common regular expressions
|
|
91
102
|
symbols: /[=><!~?:&|+\-*\/^\\%@#]+/,
|
|
92
103
|
digits: /\d+(_+\d+)*/,
|
|
93
104
|
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
|
105
|
+
// C# style strings
|
|
94
106
|
escapes: /\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
95
107
|
fstring_conv: /[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,
|
|
108
|
+
// The main tokenizer for our languages
|
|
96
109
|
tokenizer: {
|
|
97
110
|
root: [
|
|
111
|
+
// strings
|
|
98
112
|
[/\braw"""/, { token: "string.quote", bracket: "@open", next: "@rawstringt" }],
|
|
99
113
|
[/\braw"/, { token: "string.quote", bracket: "@open", next: "@rawstring" }],
|
|
100
114
|
[/\bs"""/, { token: "string.quote", bracket: "@open", next: "@sstringt" }],
|
|
@@ -103,6 +117,7 @@ var e = {
|
|
|
103
117
|
[/\bf"/, { token: "string.quote", bracket: "@open", next: "@fstring" }],
|
|
104
118
|
[/"""/, { token: "string.quote", bracket: "@open", next: "@stringt" }],
|
|
105
119
|
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
|
120
|
+
// numbers
|
|
106
121
|
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
|
|
107
122
|
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
|
|
108
123
|
[/0[xX](@hexdigits)[Ll]?/, "number.hex", "@allowMethod"],
|
|
@@ -110,6 +125,7 @@ var e = {
|
|
|
110
125
|
[/(@digits)[lL]?/, "number", "@allowMethod"],
|
|
111
126
|
[/\b_\*/, "key"],
|
|
112
127
|
[/\b(_)\b/, "keyword", "@allowMethod"],
|
|
128
|
+
// identifiers and keywords
|
|
113
129
|
[/\bimport\b/, "keyword", "@import"],
|
|
114
130
|
[/\b(case)([ \t]+)(class)\b/, ["keyword.modifier", "white", "keyword"]],
|
|
115
131
|
[/\bcase\b/, "keyword", "@case"],
|
|
@@ -141,8 +157,11 @@ var e = {
|
|
|
141
157
|
}
|
|
142
158
|
],
|
|
143
159
|
[/@type/, "type", "@allowMethod"],
|
|
160
|
+
// whitespace
|
|
144
161
|
{ include: "@whitespace" },
|
|
162
|
+
// @ annotations.
|
|
145
163
|
[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/, "annotation"],
|
|
164
|
+
// delimiters and operators
|
|
146
165
|
[/[{(]/, "@brackets"],
|
|
147
166
|
[/[})]/, "@brackets", "@allowMethod"],
|
|
148
167
|
[/\[/, "operator.square"],
|
|
@@ -150,8 +169,11 @@ var e = {
|
|
|
150
169
|
[/]/, "operator.square"],
|
|
151
170
|
[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/, "keyword"],
|
|
152
171
|
[/@symbols/, "operator"],
|
|
172
|
+
// delimiter: after number because of .\d floats
|
|
153
173
|
[/[;,\.]/, "delimiter"],
|
|
174
|
+
// symbols
|
|
154
175
|
[/'[a-zA-Z$][\w$]*(?!')/, "attribute.name"],
|
|
176
|
+
// characters
|
|
155
177
|
[/'[^\\']'/, "string", "@allowMethod"],
|
|
156
178
|
[/(')(@escapes)(')/, ["string", "string.escape", { token: "string", next: "@allowMethod" }]],
|
|
157
179
|
[/'/, "string.invalid"]
|
|
@@ -188,6 +210,7 @@ var e = {
|
|
|
188
210
|
comment: [
|
|
189
211
|
[/[^\/*]+/, "comment"],
|
|
190
212
|
[/\/\*/, "comment", "@push"],
|
|
213
|
+
// nested comment
|
|
191
214
|
[/\*\//, "comment", "@pop"],
|
|
192
215
|
[/[\/*]/, "comment"]
|
|
193
216
|
],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -40,6 +40,7 @@ var e = {
|
|
|
40
40
|
tokenPostfix: ".scss",
|
|
41
41
|
ws: `[
|
|
42
42
|
\r\f]*`,
|
|
43
|
+
// whitespaces (referenced in several rules)
|
|
43
44
|
identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
|
|
44
45
|
brackets: [
|
|
45
46
|
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
@@ -54,33 +55,44 @@ var e = {
|
|
|
54
55
|
{ include: "@import" },
|
|
55
56
|
{ include: "@variabledeclaration" },
|
|
56
57
|
{ include: "@warndebug" },
|
|
58
|
+
// sass: log statements
|
|
57
59
|
["[@](include)", { token: "keyword", next: "@includedeclaration" }],
|
|
60
|
+
// sass: include statement
|
|
58
61
|
[
|
|
59
62
|
"[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",
|
|
60
63
|
{ token: "keyword", next: "@keyframedeclaration" }
|
|
61
64
|
],
|
|
62
65
|
["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
|
|
66
|
+
// sass: placeholder for includes
|
|
63
67
|
["[@](charset|namespace)", { token: "keyword", next: "@declarationbody" }],
|
|
64
68
|
["[@](function)", { token: "keyword", next: "@functiondeclaration" }],
|
|
65
69
|
["[@](mixin)", { token: "keyword", next: "@mixindeclaration" }],
|
|
66
70
|
["url(\\-prefix)?\\(", { token: "meta", next: "@urldeclaration" }],
|
|
67
71
|
{ include: "@controlstatement" },
|
|
72
|
+
// sass control statements
|
|
68
73
|
{ include: "@selectorname" },
|
|
69
74
|
["[&\\*]", "tag"],
|
|
75
|
+
// selector symbols
|
|
70
76
|
["[>\\+,]", "delimiter"],
|
|
77
|
+
// selector operators
|
|
71
78
|
["\\[", { token: "delimiter.bracket", next: "@selectorattribute" }],
|
|
72
79
|
["{", { token: "delimiter.curly", next: "@selectorbody" }]
|
|
73
80
|
],
|
|
74
81
|
selectorbody: [
|
|
75
82
|
["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"],
|
|
83
|
+
// rule definition: to distinguish from a nested selector check for whitespace, number or a semicolon
|
|
76
84
|
{ include: "@selector" },
|
|
85
|
+
// sass: nested selectors
|
|
77
86
|
["[@](extend)", { token: "keyword", next: "@extendbody" }],
|
|
87
|
+
// sass: extend other selectors
|
|
78
88
|
["[@](return)", { token: "keyword", next: "@declarationbody" }],
|
|
79
89
|
["}", { token: "delimiter.curly", next: "@pop" }]
|
|
80
90
|
],
|
|
81
91
|
selectorname: [
|
|
82
92
|
["#{", { token: "meta", next: "@variableinterpolation" }],
|
|
93
|
+
// sass: interpolation
|
|
83
94
|
["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]
|
|
95
|
+
// selector (.foo, div, ...)
|
|
84
96
|
],
|
|
85
97
|
selectorattribute: [{ include: "@term" }, ["]", { token: "delimiter.bracket", next: "@pop" }]],
|
|
86
98
|
term: [
|
|
@@ -102,7 +114,9 @@ var e = {
|
|
|
102
114
|
["!important", "literal"],
|
|
103
115
|
[";", "delimiter", "@pop"],
|
|
104
116
|
["{", { token: "delimiter.curly", switchTo: "@nestedproperty" }],
|
|
117
|
+
// sass: nested properties
|
|
105
118
|
["(?=})", { token: "", next: "@pop" }]
|
|
119
|
+
// missing semicolon
|
|
106
120
|
],
|
|
107
121
|
nestedproperty: [
|
|
108
122
|
["[*_]?@identifier@ws:", "attribute.name", "@rulevalue"],
|
|
@@ -112,6 +126,7 @@ var e = {
|
|
|
112
126
|
warndebug: [["[@](warn|debug)", { token: "keyword", next: "@declarationbody" }]],
|
|
113
127
|
import: [["[@](import)", { token: "keyword", next: "@declarationbody" }]],
|
|
114
128
|
variabledeclaration: [
|
|
129
|
+
// sass variables
|
|
115
130
|
["\\$@identifier@ws:", "variable.decl", "@declarationbody"]
|
|
116
131
|
],
|
|
117
132
|
urldeclaration: [
|
|
@@ -128,17 +143,22 @@ var e = {
|
|
|
128
143
|
{ include: "@term" },
|
|
129
144
|
[";", "delimiter", "@pop"],
|
|
130
145
|
["(?=})", { token: "", next: "@pop" }]
|
|
146
|
+
// missing semicolon
|
|
131
147
|
],
|
|
132
148
|
extendbody: [
|
|
133
149
|
{ include: "@selectorname" },
|
|
134
150
|
["!optional", "literal"],
|
|
135
151
|
[";", "delimiter", "@pop"],
|
|
136
152
|
["(?=})", { token: "", next: "@pop" }]
|
|
153
|
+
// missing semicolon
|
|
137
154
|
],
|
|
138
155
|
variablereference: [
|
|
156
|
+
// sass variable reference
|
|
139
157
|
["\\$@identifier", "variable.ref"],
|
|
140
158
|
["\\.\\.\\.", "operator"],
|
|
159
|
+
// var args in reference
|
|
141
160
|
["#{", { token: "meta", next: "@variableinterpolation" }]
|
|
161
|
+
// sass var resolve
|
|
142
162
|
],
|
|
143
163
|
variableinterpolation: [
|
|
144
164
|
{ include: "@variablereference" },
|
|
@@ -169,13 +189,16 @@ var e = {
|
|
|
169
189
|
["{", { token: "delimiter.curly", switchTo: "@functionbody" }]
|
|
170
190
|
],
|
|
171
191
|
mixindeclaration: [
|
|
192
|
+
// mixin with parameters
|
|
172
193
|
["@identifier@ws\\(", { token: "meta", next: "@parameterdeclaration" }],
|
|
194
|
+
// mixin without parameters
|
|
173
195
|
["@identifier", "meta"],
|
|
174
196
|
["{", { token: "delimiter.curly", switchTo: "@selectorbody" }]
|
|
175
197
|
],
|
|
176
198
|
parameterdeclaration: [
|
|
177
199
|
["\\$@identifier@ws:", "variable.decl"],
|
|
178
200
|
["\\.\\.\\.", "operator"],
|
|
201
|
+
// var args in declaration
|
|
179
202
|
[",", "delimiter"],
|
|
180
203
|
{ include: "@term" },
|
|
181
204
|
["\\)", { token: "meta", next: "@pop" }]
|
|
@@ -185,6 +208,7 @@ var e = {
|
|
|
185
208
|
["@identifier", "meta"],
|
|
186
209
|
[";", "delimiter", "@pop"],
|
|
187
210
|
["(?=})", { token: "", next: "@pop" }],
|
|
211
|
+
// missing semicolon
|
|
188
212
|
["{", { token: "delimiter.curly", switchTo: "@selectorbody" }]
|
|
189
213
|
],
|
|
190
214
|
keyframedeclaration: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -129,7 +129,9 @@ var e = {
|
|
|
129
129
|
],
|
|
130
130
|
startingWithDash: /\-+\w+/,
|
|
131
131
|
identifiersWithDashes: /[a-zA-Z]\w+(?:@startingWithDash)+/,
|
|
132
|
+
// we include these common regular expressions
|
|
132
133
|
symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
|
|
134
|
+
// The main tokenizer for our languages
|
|
133
135
|
tokenizer: {
|
|
134
136
|
root: [
|
|
135
137
|
[/@identifiersWithDashes/, ""],
|
|
@@ -163,6 +165,7 @@ var e = {
|
|
|
163
165
|
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
|
164
166
|
[/\d+/, "number"]
|
|
165
167
|
],
|
|
168
|
+
// Recognize strings, including those broken across lines
|
|
166
169
|
strings: [
|
|
167
170
|
[/'/, "string", "@stringBody"],
|
|
168
171
|
[/"/, "string", "@dblStringBody"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -31,6 +31,7 @@ var x = {
|
|
|
31
31
|
{ token: "delimiter.angle", open: "<", close: ">" }
|
|
32
32
|
],
|
|
33
33
|
keywords: [
|
|
34
|
+
// Main keywords
|
|
34
35
|
"pragma",
|
|
35
36
|
"solidity",
|
|
36
37
|
"contract",
|
|
@@ -40,14 +41,17 @@ var x = {
|
|
|
40
41
|
"function",
|
|
41
42
|
"modifier",
|
|
42
43
|
"constructor",
|
|
44
|
+
//Built-in types
|
|
43
45
|
"address",
|
|
44
46
|
"string",
|
|
45
47
|
"bool",
|
|
48
|
+
//Other types
|
|
46
49
|
"Int",
|
|
47
50
|
"Uint",
|
|
48
51
|
"Byte",
|
|
49
52
|
"Fixed",
|
|
50
53
|
"Ufixed",
|
|
54
|
+
//All int
|
|
51
55
|
"int",
|
|
52
56
|
"int8",
|
|
53
57
|
"int16",
|
|
@@ -81,6 +85,7 @@ var x = {
|
|
|
81
85
|
"int240",
|
|
82
86
|
"int248",
|
|
83
87
|
"int256",
|
|
88
|
+
//All uint
|
|
84
89
|
"uint",
|
|
85
90
|
"uint8",
|
|
86
91
|
"uint16",
|
|
@@ -114,6 +119,7 @@ var x = {
|
|
|
114
119
|
"uint240",
|
|
115
120
|
"uint248",
|
|
116
121
|
"uint256",
|
|
122
|
+
//All Byte
|
|
117
123
|
"byte",
|
|
118
124
|
"bytes",
|
|
119
125
|
"bytes1",
|
|
@@ -148,6 +154,7 @@ var x = {
|
|
|
148
154
|
"bytes30",
|
|
149
155
|
"bytes31",
|
|
150
156
|
"bytes32",
|
|
157
|
+
//All fixed
|
|
151
158
|
"fixed",
|
|
152
159
|
"fixed0x8",
|
|
153
160
|
"fixed0x16",
|
|
@@ -677,6 +684,7 @@ var x = {
|
|
|
677
684
|
"fixed240x8",
|
|
678
685
|
"fixed240x16",
|
|
679
686
|
"fixed248x8",
|
|
687
|
+
//All ufixed
|
|
680
688
|
"ufixed",
|
|
681
689
|
"ufixed0x8",
|
|
682
690
|
"ufixed0x16",
|
|
@@ -1277,12 +1285,15 @@ var x = {
|
|
|
1277
1285
|
">>=",
|
|
1278
1286
|
">>>="
|
|
1279
1287
|
],
|
|
1288
|
+
// we include these common regular expressions
|
|
1280
1289
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
1281
1290
|
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
1282
1291
|
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
|
|
1283
1292
|
floatsuffix: /[fFlL]?/,
|
|
1293
|
+
// The main tokenizer for our languages
|
|
1284
1294
|
tokenizer: {
|
|
1285
1295
|
root: [
|
|
1296
|
+
// identifiers and keywords
|
|
1286
1297
|
[
|
|
1287
1298
|
/[a-zA-Z_]\w*/,
|
|
1288
1299
|
{
|
|
@@ -1292,10 +1303,15 @@ var x = {
|
|
|
1292
1303
|
}
|
|
1293
1304
|
}
|
|
1294
1305
|
],
|
|
1306
|
+
// whitespace
|
|
1295
1307
|
{ include: "@whitespace" },
|
|
1308
|
+
// [[ attributes ]].
|
|
1296
1309
|
[/\[\[.*\]\]/, "annotation"],
|
|
1310
|
+
// Preprocessor directive
|
|
1297
1311
|
[/^\s*#\w+/, "keyword"],
|
|
1312
|
+
//DataTypes
|
|
1298
1313
|
[/int\d*/, "keyword"],
|
|
1314
|
+
// delimiters and operators
|
|
1299
1315
|
[/[{}()\[\]]/, "@brackets"],
|
|
1300
1316
|
[/[<>](?!@symbols)/, "@brackets"],
|
|
1301
1317
|
[
|
|
@@ -1307,6 +1323,7 @@ var x = {
|
|
|
1307
1323
|
}
|
|
1308
1324
|
}
|
|
1309
1325
|
],
|
|
1326
|
+
// numbers
|
|
1310
1327
|
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
1311
1328
|
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
1312
1329
|
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"],
|
|
@@ -1314,9 +1331,13 @@ var x = {
|
|
|
1314
1331
|
[/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"],
|
|
1315
1332
|
[/\d[\d']*\d(@integersuffix)/, "number"],
|
|
1316
1333
|
[/\d(@integersuffix)/, "number"],
|
|
1334
|
+
// delimiter: after number because of .\d floats
|
|
1317
1335
|
[/[;,.]/, "delimiter"],
|
|
1336
|
+
// strings
|
|
1318
1337
|
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
1338
|
+
// non-teminated string
|
|
1319
1339
|
[/"/, "string", "@string"],
|
|
1340
|
+
// characters
|
|
1320
1341
|
[/'[^\\']'/, "string"],
|
|
1321
1342
|
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
|
1322
1343
|
[/'/, "string.invalid"]
|
|
@@ -1332,6 +1353,7 @@ var x = {
|
|
|
1332
1353
|
[/\*\//, "comment", "@pop"],
|
|
1333
1354
|
[/[\/*]/, "comment"]
|
|
1334
1355
|
],
|
|
1356
|
+
//Identical copy of comment above, except for the addition of .doc
|
|
1335
1357
|
doccomment: [
|
|
1336
1358
|
[/[^\/*]+/, "comment.doc"],
|
|
1337
1359
|
[/\*\//, "comment.doc", "@pop"],
|