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 dgkf committed Jan 30, 2024
1 parent 39f1989 commit b982d66
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 b982d66

Please sign in to comment.