mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(scala): use more specific groups
This commit is contained in:
parent
08bd9d0e08
commit
abd7f85040
1 changed files with 16 additions and 10 deletions
|
|
@ -32,7 +32,7 @@
|
|||
name: (identifier) @type)
|
||||
|
||||
(type_definition
|
||||
name: (type_identifier) @type)
|
||||
name: (type_identifier) @type.definition)
|
||||
|
||||
; method definition
|
||||
|
||||
|
|
@ -121,22 +121,15 @@
|
|||
;; keywords
|
||||
|
||||
[
|
||||
"abstract"
|
||||
"case"
|
||||
"class"
|
||||
"extends"
|
||||
"final"
|
||||
"finally"
|
||||
;; `forSome` existential types not implemented yet
|
||||
"implicit"
|
||||
"lazy"
|
||||
;; `macro` not implemented yet
|
||||
"object"
|
||||
"override"
|
||||
"package"
|
||||
"private"
|
||||
"protected"
|
||||
"sealed"
|
||||
"trait"
|
||||
"type"
|
||||
"val"
|
||||
|
|
@ -144,8 +137,21 @@
|
|||
"with"
|
||||
] @keyword
|
||||
|
||||
(null_literal) @keyword
|
||||
(wildcard) @keyword
|
||||
[
|
||||
"abstract"
|
||||
"final"
|
||||
"implicit"
|
||||
"lazy"
|
||||
"private"
|
||||
"protected"
|
||||
"sealed"
|
||||
] @type.qualifier
|
||||
|
||||
(null_literal) @constant.builtin
|
||||
|
||||
(wildcard) @parameter
|
||||
|
||||
(annotation) @attribute
|
||||
|
||||
;; special keywords
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue