Skip to content

Commit

Permalink
Highlight Dart 3 sealed and base keywords (helix-editor#7974)
Browse files Browse the repository at this point in the history
  • Loading branch information
arslee07 authored and mtoohey31 committed Jun 2, 2024
1 parent 47778a4 commit 96fbf66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtime/queries/dart/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
"async"
"async*"
"await"
"base"
"class"
"covariant"
"deferred"
Expand All @@ -219,6 +220,7 @@
"operator"
"part"
"required"
"sealed"
"set"
"show"
"static"
Expand All @@ -230,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|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
Expand Down

0 comments on commit 96fbf66

Please sign in to comment.