From 6e23f81bcefcfb3cc435f84815e29dad9218b02b Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Sun, 18 Feb 2024 18:50:25 +0100 Subject: [PATCH] Fix coloring of Types with '-' in their name. (#245) Types like `X-Of` weren't highlighted as type. --- vscode/syntaxes/toit.tmLanguage.json | 4 ++-- vscode/syntaxes/toit.tmLanguage.yaml | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/vscode/syntaxes/toit.tmLanguage.json b/vscode/syntaxes/toit.tmLanguage.json index 8abe7b1..50bc786 100644 --- a/vscode/syntaxes/toit.tmLanguage.json +++ b/vscode/syntaxes/toit.tmLanguage.json @@ -741,11 +741,11 @@ "patterns": [ { "name": "entity.name.type.toit", - "match": "\\b(? a type: 'class A'. # - single capitalized character followed by a number -> also a type: `class C1`. # - capitalized identifier with at least on lower-case character: a type. - - name: entity.name.type.toit - match: \b(?