mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -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)
|
name: (identifier) @type)
|
||||||
|
|
||||||
(type_definition
|
(type_definition
|
||||||
name: (type_identifier) @type)
|
name: (type_identifier) @type.definition)
|
||||||
|
|
||||||
; method definition
|
; method definition
|
||||||
|
|
||||||
|
|
@ -121,22 +121,15 @@
|
||||||
;; keywords
|
;; keywords
|
||||||
|
|
||||||
[
|
[
|
||||||
"abstract"
|
|
||||||
"case"
|
"case"
|
||||||
"class"
|
"class"
|
||||||
"extends"
|
"extends"
|
||||||
"final"
|
|
||||||
"finally"
|
"finally"
|
||||||
;; `forSome` existential types not implemented yet
|
;; `forSome` existential types not implemented yet
|
||||||
"implicit"
|
|
||||||
"lazy"
|
|
||||||
;; `macro` not implemented yet
|
;; `macro` not implemented yet
|
||||||
"object"
|
"object"
|
||||||
"override"
|
"override"
|
||||||
"package"
|
"package"
|
||||||
"private"
|
|
||||||
"protected"
|
|
||||||
"sealed"
|
|
||||||
"trait"
|
"trait"
|
||||||
"type"
|
"type"
|
||||||
"val"
|
"val"
|
||||||
|
|
@ -144,8 +137,21 @@
|
||||||
"with"
|
"with"
|
||||||
] @keyword
|
] @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
|
;; special keywords
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue