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 dgkf committed Jan 30, 2024
1 parent 5c731f4 commit 27cf3c4
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 27cf3c4

Please sign in to comment.