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 Vulpesx committed Jun 7, 2024
1 parent de3c746 commit 4c97338
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 4c97338

Please sign in to comment.