Skip to content

Commit ceedf12

Browse files
authored
Merge branch 'master' into fixed_function_highlighting
2 parents efd75cf + adf31d8 commit ceedf12

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

queries/highlights.scm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
(enum_declaration
103103
name: (identifier) @type)
104104
(enum_constant
105-
name: (identifier) @type)
105+
name: (identifier) @method)
106106
(type_identifier) @type
107107

108108
((scoped_identifier
@@ -112,6 +112,13 @@
112112

113113
(type_identifier) @type
114114

115+
; Enums
116+
; -------------------
117+
(enum_declaration
118+
name: (identifier) @type)
119+
(enum_constant
120+
name: (identifier) @identifier.constant)
121+
115122
; Variables
116123
; --------------------
117124
; var keyword

test/highlight/types.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
enum Material {
22
// ^ type
33
DENIM,
4+
// <- identifier.constant
45
CANVAS
56
}
67

0 commit comments

Comments
 (0)