From 93f1b61bf235e7f76d33efc65fefaffc224be185 Mon Sep 17 00:00:00 2001 From: sockmaster27 <61235930+sockmaster27@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:04:19 +0200 Subject: [PATCH 1/3] feat: add `unsafe` keyword --- syntaxes/flix.tmLanguage.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syntaxes/flix.tmLanguage.json b/syntaxes/flix.tmLanguage.json index ee002777..1dc0b102 100644 --- a/syntaxes/flix.tmLanguage.json +++ b/syntaxes/flix.tmLanguage.json @@ -107,6 +107,10 @@ "name": "keyword.control.par.flix", "match": "\\b(par)\\b" }, + { + "name": "keyword.control.unsafe.flix", + "match": "\\b(unsafe)\\b" + }, { "name": "keyword.control.ast.flix", "match": "\\b(branch|jumpto)\\b" From 80b8ba1481176555028057e74673450c61c5d922 Mon Sep 17 00:00:00 2001 From: sockmaster27 <61235930+sockmaster27@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:04:47 +0200 Subject: [PATCH 2/3] feat: add `new` keyword --- syntaxes/flix.tmLanguage.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syntaxes/flix.tmLanguage.json b/syntaxes/flix.tmLanguage.json index 1dc0b102..2a9801d8 100644 --- a/syntaxes/flix.tmLanguage.json +++ b/syntaxes/flix.tmLanguage.json @@ -123,6 +123,10 @@ "name": "keyword.operator.fix.flix", "match": "\\bfix\\b" }, + { + "name": "keyword.operator.new.flix", + "match": "\\b(new)\\b" + }, { "name": "keyword.declaration.flix", "match": "\\b(eff|def|law|enum|case|type|alias|trait|instance|with|without|opaque|mod)\\b" From 4f3814d993f54dd90235699eddd4a35c13e11344 Mon Sep 17 00:00:00 2001 From: sockmaster27 <61235930+sockmaster27@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:05:06 +0200 Subject: [PATCH 3/3] feat: add `struct` keyword --- syntaxes/flix.tmLanguage.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntaxes/flix.tmLanguage.json b/syntaxes/flix.tmLanguage.json index 2a9801d8..9f4e46dc 100644 --- a/syntaxes/flix.tmLanguage.json +++ b/syntaxes/flix.tmLanguage.json @@ -129,7 +129,7 @@ }, { "name": "keyword.declaration.flix", - "match": "\\b(eff|def|law|enum|case|type|alias|trait|instance|with|without|opaque|mod)\\b" + "match": "\\b(eff|def|law|enum|case|type|alias|trait|instance|with|without|opaque|mod|struct)\\b" }, { "name": "keyword.expression.cast.flix",