mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -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
|
(binding
|
||||||
name: (identifier) @variable.parameter)
|
name: (identifier) @variable.parameter)
|
||||||
|
|
||||||
|
(lambda_expression
|
||||||
|
parameters: (identifier) @variable.parameter)
|
||||||
|
|
||||||
; expressions
|
; expressions
|
||||||
(field_expression
|
(field_expression
|
||||||
field: (identifier) @variable.member)
|
field: (identifier) @variable.member)
|
||||||
|
|
@ -177,7 +180,6 @@
|
||||||
; `macro` not implemented yet
|
; `macro` not implemented yet
|
||||||
"object"
|
"object"
|
||||||
"override"
|
"override"
|
||||||
"package"
|
|
||||||
"val"
|
"val"
|
||||||
"var"
|
"var"
|
||||||
"with"
|
"with"
|
||||||
|
|
@ -211,6 +213,8 @@
|
||||||
|
|
||||||
(wildcard) @variable.parameter
|
(wildcard) @variable.parameter
|
||||||
|
|
||||||
|
(namespace_wildcard) @punctuation.special
|
||||||
|
|
||||||
(annotation) @attribute
|
(annotation) @attribute
|
||||||
|
|
||||||
; special keywords
|
; special keywords
|
||||||
|
|
@ -235,6 +239,7 @@
|
||||||
[
|
[
|
||||||
"."
|
"."
|
||||||
","
|
","
|
||||||
|
":"
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -248,6 +253,9 @@
|
||||||
|
|
||||||
[
|
[
|
||||||
"=>"
|
"=>"
|
||||||
|
"?=>"
|
||||||
|
"="
|
||||||
|
"!"
|
||||||
"<-"
|
"<-"
|
||||||
"@"
|
"@"
|
||||||
] @operator
|
] @operator
|
||||||
|
|
@ -255,6 +263,7 @@
|
||||||
[
|
[
|
||||||
"import"
|
"import"
|
||||||
"export"
|
"export"
|
||||||
|
"package"
|
||||||
] @keyword.import
|
] @keyword.import
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -278,6 +287,10 @@
|
||||||
(case_clause
|
(case_clause
|
||||||
"case" @keyword.conditional))
|
"case" @keyword.conditional))
|
||||||
|
|
||||||
|
(case_block
|
||||||
|
(case_clause
|
||||||
|
"=>" @punctuation.delimiter))
|
||||||
|
|
||||||
(operator_identifier) @operator
|
(operator_identifier) @operator
|
||||||
|
|
||||||
((identifier) @type
|
((identifier) @type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue