We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7861a48 + 2dc3bd1 commit adf31d8Copy full SHA for adf31d8
queries/highlights.scm
@@ -92,10 +92,6 @@
92
(identifier) @method)
93
(setter_signature
94
name: (identifier) @method)
95
-(enum_declaration
96
- name: (identifier) @type)
97
-(enum_constant
98
99
(type_identifier) @type
100
(void_type) @type
101
@@ -106,6 +102,13 @@
106
102
107
103
108
104
105
+; Enums
+; -------------------
+(enum_declaration
+ name: (identifier) @type)
109
+(enum_constant
110
+ name: (identifier) @identifier.constant)
111
+
112
; Variables
113
; --------------------
114
; var keyword
test/highlight/types.dart
@@ -1,6 +1,7 @@
1
enum Material {
2
// ^ type
3
DENIM,
4
+ // <- identifier.constant
5
CANVAS
6
}
7
0 commit comments