Skip to content

Commit

Permalink
Merge branch 'master' into fixed_function_highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWhiting authored Apr 7, 2024
2 parents efd75cf + adf31d8 commit ceedf12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
(enum_declaration
name: (identifier) @type)
(enum_constant
name: (identifier) @type)
name: (identifier) @method)
(type_identifier) @type

((scoped_identifier
Expand All @@ -112,6 +112,13 @@

(type_identifier) @type

; Enums
; -------------------
(enum_declaration
name: (identifier) @type)
(enum_constant
name: (identifier) @identifier.constant)

; Variables
; --------------------
; var keyword
Expand Down
1 change: 1 addition & 0 deletions test/highlight/types.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
enum Material {
// ^ type
DENIM,
// <- identifier.constant
CANVAS
}

Expand Down

0 comments on commit ceedf12

Please sign in to comment.