From a725a0d37843c5e26df7dea361dca6e282554762 Mon Sep 17 00:00:00 2001 From: arslee07 Date: Thu, 17 Aug 2023 16:48:52 +0900 Subject: [PATCH 1/2] dart: highlight `sealed` keyword --- runtime/queries/dart/highlights.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/queries/dart/highlights.scm b/runtime/queries/dart/highlights.scm index 9f667d6be992..a7d047f0a61d 100644 --- a/runtime/queries/dart/highlights.scm +++ b/runtime/queries/dart/highlights.scm @@ -219,6 +219,7 @@ "operator" "part" "required" + "sealed" "set" "show" "static" @@ -230,7 +231,7 @@ ; when used as an identifier: ((identifier) @variable.builtin - (#match? @variable.builtin "^(abstract|as|covariant|deferred|dynamic|export|external|factory|Function|get|implements|import|interface|library|operator|mixin|part|set|static|typedef)$")) + (#match? @variable.builtin "^(abstract|as|covariant|deferred|dynamic|export|external|factory|Function|get|implements|import|interface|library|operator|mixin|part|sealed|set|static|typedef)$")) ; Error (ERROR) @error From e0964487aa8fa66c2c486ddf20308ccabf71b7ec Mon Sep 17 00:00:00 2001 From: arslee07 Date: Thu, 17 Aug 2023 16:55:09 +0900 Subject: [PATCH 2/2] dart: highlight `base` keyword --- runtime/queries/dart/highlights.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/queries/dart/highlights.scm b/runtime/queries/dart/highlights.scm index a7d047f0a61d..dab58496223b 100644 --- a/runtime/queries/dart/highlights.scm +++ b/runtime/queries/dart/highlights.scm @@ -200,6 +200,7 @@ "async" "async*" "await" + "base" "class" "covariant" "deferred" @@ -231,7 +232,7 @@ ; when used as an identifier: ((identifier) @variable.builtin - (#match? @variable.builtin "^(abstract|as|covariant|deferred|dynamic|export|external|factory|Function|get|implements|import|interface|library|operator|mixin|part|sealed|set|static|typedef)$")) + (#match? @variable.builtin "^(abstract|as|base|covariant|deferred|dynamic|export|external|factory|Function|get|implements|import|interface|library|operator|mixin|part|sealed|set|static|typedef)$")) ; Error (ERROR) @error