From d4c6c564c9342f514b491c87eba6d99f53f09142 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Tue, 16 Jun 2026 17:16:11 +0200 Subject: [PATCH] Updated impl and type/namespace syntax --- syntaxes/mist.tmLanguage.json | 85 ++++++++++++++++++++++++++--------- 1 file changed, 63 insertions(+), 22 deletions(-) diff --git a/syntaxes/mist.tmLanguage.json b/syntaxes/mist.tmLanguage.json index 86ad5b6..d0ed0ad 100644 --- a/syntaxes/mist.tmLanguage.json +++ b/syntaxes/mist.tmLanguage.json @@ -33,9 +33,6 @@ { "include": "#types" }, - { - "include": "#namespaces" - }, { "include": "#imports" }, @@ -45,6 +42,9 @@ { "include": "#struct_literals" }, + { + "include": "#impl" + }, { "include": "#method_calls" }, @@ -234,7 +234,7 @@ "keywords": { "patterns": [ { - "match": "\\b(if|else|while|for|return|break|continue|match|loop)\\b", + "match": "\\b(if|else|while|for|return|break|continue|match|loop|in)\\b", "name": "keyword.control.mist" }, { @@ -323,34 +323,34 @@ "types": { "patterns": [ { - "match": "(?>=|<<|>>|\\.\\.=|\\.\\.|<=|>=|==|!=|&&|\\|\\||[+\\-*/%<>&|^=!]|\\+\\+|--)", + "match": "(?:\\+=|-=|\\*=|\\/=|%=|&=|\\|=|\\^=|<<=|>>=|<<|>>|\\.\\.=|\\.\\.|<=|>=|==|!=|&&|\\|\\||[+\\-*/%<>&|^=!]|\\+\\+|--|:)", "name": "keyword.operator.mist" } ]