mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(scala): add some missing highlights
This commit is contained in:
parent
9916da1bfd
commit
c911f19d91
1 changed files with 14 additions and 1 deletions
|
|
@ -120,6 +120,9 @@
|
|||
(binding
|
||||
name: (identifier) @variable.parameter)
|
||||
|
||||
(lambda_expression
|
||||
parameters: (identifier) @variable.parameter)
|
||||
|
||||
; expressions
|
||||
(field_expression
|
||||
field: (identifier) @variable.member)
|
||||
|
|
@ -177,7 +180,6 @@
|
|||
; `macro` not implemented yet
|
||||
"object"
|
||||
"override"
|
||||
"package"
|
||||
"val"
|
||||
"var"
|
||||
"with"
|
||||
|
|
@ -211,6 +213,8 @@
|
|||
|
||||
(wildcard) @variable.parameter
|
||||
|
||||
(namespace_wildcard) @punctuation.special
|
||||
|
||||
(annotation) @attribute
|
||||
|
||||
; special keywords
|
||||
|
|
@ -235,6 +239,7 @@
|
|||
[
|
||||
"."
|
||||
","
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
|
|
@ -248,6 +253,9 @@
|
|||
|
||||
[
|
||||
"=>"
|
||||
"?=>"
|
||||
"="
|
||||
"!"
|
||||
"<-"
|
||||
"@"
|
||||
] @operator
|
||||
|
|
@ -255,6 +263,7 @@
|
|||
[
|
||||
"import"
|
||||
"export"
|
||||
"package"
|
||||
] @keyword.import
|
||||
|
||||
[
|
||||
|
|
@ -278,6 +287,10 @@
|
|||
(case_clause
|
||||
"case" @keyword.conditional))
|
||||
|
||||
(case_block
|
||||
(case_clause
|
||||
"=>" @punctuation.delimiter))
|
||||
|
||||
(operator_identifier) @operator
|
||||
|
||||
((identifier) @type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue