Skip to content

Commit

Permalink
highlight(scala): highlight abstract methods in traits and classes (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaju authored and mtoohey31 committed Jun 2, 2024
1 parent e046a58 commit 045150e
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions runtime/queries/scala/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,21 @@

(class_definition
body: (template_body
(function_definition
name: (identifier) @function.method)))
(object_definition
body: (template_body
(function_definition
name: (identifier) @function.method)))
[
(function_definition
name: (identifier) @function.method)
(function_declaration
name: (identifier) @function.method)
]))
(trait_definition
body: (template_body
[
(function_definition
name: (identifier) @function.method)
(function_declaration
name: (identifier) @function.method)
]))
(object_definition
body: (template_body
(function_definition
name: (identifier) @function.method)))
Expand Down

0 comments on commit 045150e

Please sign in to comment.