Skip to content

Commit

Permalink
Highlight deinit the same as init.
Browse files Browse the repository at this point in the history
@Ironham notes that it seems jarring to see an init and then deinit method declared in succession where only one gets a special highlighting.
  • Loading branch information
patrickt authored and alex-pinkus committed Mar 8, 2024
1 parent eebf8bc commit eeba445
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

(function_declaration (simple_identifier) @method)
(function_declaration ["init" @constructor])
(function_declaration ["deinit" @constructor])
(throws) @keyword
"async" @keyword
"await" @keyword
Expand Down

0 comments on commit eeba445

Please sign in to comment.