You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by po...@apache.org on 2023/10/11 17:24:54 UTC

[incubator-kie-tools-temporary-rnd-do-not-use] 13/32: kie-issues#589: Monaco-editor doesn't apply colorisation in DMN Editor (#1986)

This is an automated email from the ASF dual-hosted git repository.

porcelli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools-temporary-rnd-do-not-use.git

commit cb1635e2c80c18e27507d9d4b4dfc41b5c9102bf
Author: Daniel José dos Santos <da...@users.noreply.github.com>
AuthorDate: Wed Sep 27 20:34:34 2023 -0300

    kie-issues#589: Monaco-editor doesn't apply colorisation in DMN Editor (#1986)
---
 packages/feel-input-component/src/FeelConfigs.ts | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/packages/feel-input-component/src/FeelConfigs.ts b/packages/feel-input-component/src/FeelConfigs.ts
index 75fe310858..2b3479a18e 100644
--- a/packages/feel-input-component/src/FeelConfigs.ts
+++ b/packages/feel-input-component/src/FeelConfigs.ts
@@ -52,11 +52,11 @@ export const feelTokensConfig = (): Monaco.languages.IMonarchLanguage => {
     functions: Array.from(ReservedWords.FeelFunctions),
     tokenizer: {
       root: [
-        [/(?:true|false)/, "feel-boolean"],
-        [/[0-9]+/, "feel-numeric"],
-        [/(?:"(?:.*?)")/, "feel-string"],
-        [/([a-z{1}][a-z_\s]*[a-z$])(?=\()/, { cases: { "@functions": "feel-function" } }],
-        [/[\w$]*[a-z_$][\w$]*/, { cases: { "@keywords": "feel-keyword" } }],
+        [/(?:true|false)/, Element[Element.FeelBoolean]],
+        [/[0-9]+/, Element[Element.FeelNumeric]],
+        [/(?:"(?:.*?)")/, Element[Element.FeelString]],
+        [/([a-z{1}][a-z_\s]*[a-z$])(?=\()/, { cases: { "@functions": Element[Element.FeelFunction] } }],
+        [/[\w$]*[a-z_$][\w$]*/, { cases: { "@keywords": Element[Element.FeelKeyword] } }],
       ],
     },
   };


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org