mirror of https://github.com/helix-editor/helix
Highlight Dart 3 `sealed` and `base` keywords (#7974)
parent
546c8ca344
commit
75c5a33028
|
@ -200,6 +200,7 @@
|
||||||
"async"
|
"async"
|
||||||
"async*"
|
"async*"
|
||||||
"await"
|
"await"
|
||||||
|
"base"
|
||||||
"class"
|
"class"
|
||||||
"covariant"
|
"covariant"
|
||||||
"deferred"
|
"deferred"
|
||||||
|
@ -219,6 +220,7 @@
|
||||||
"operator"
|
"operator"
|
||||||
"part"
|
"part"
|
||||||
"required"
|
"required"
|
||||||
|
"sealed"
|
||||||
"set"
|
"set"
|
||||||
"show"
|
"show"
|
||||||
"static"
|
"static"
|
||||||
|
@ -230,7 +232,7 @@
|
||||||
|
|
||||||
; when used as an identifier:
|
; when used as an identifier:
|
||||||
((identifier) @variable.builtin
|
((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) @error
|
(ERROR) @error
|
||||||
|
|
Loading…
Reference in New Issue