highlights(scala): use more specific groups

This commit is contained in:
ObserverOfTime 2022-10-30 11:56:53 +02:00
parent 08bd9d0e08
commit abd7f85040

View file

@ -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