mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
chore(c_sharp): highlight tweaks
This commit is contained in:
parent
a938e98cb4
commit
ae7ceaadad
1 changed files with 19 additions and 0 deletions
|
|
@ -4,6 +4,9 @@
|
|||
(#eq? @keyword "value")
|
||||
(#has-ancestor? @keyword accessor_declaration))
|
||||
|
||||
((identifier) @variable.builtin
|
||||
(#eq? @variable.builtin "_"))
|
||||
|
||||
(method_declaration
|
||||
name: (identifier) @function.method)
|
||||
|
||||
|
|
@ -21,6 +24,9 @@
|
|||
|
||||
(interpolation) @none
|
||||
|
||||
(member_access_expression
|
||||
name: (identifier) @variable.member)
|
||||
|
||||
(invocation_expression
|
||||
(member_access_expression
|
||||
name: (identifier) @function.method.call))
|
||||
|
|
@ -41,6 +47,14 @@
|
|||
(qualified_name
|
||||
(identifier) @type)
|
||||
|
||||
(namespace_declaration
|
||||
name:
|
||||
[
|
||||
(qualified_name
|
||||
(identifier) @module)
|
||||
(identifier) @module
|
||||
])
|
||||
|
||||
(invocation_expression
|
||||
(identifier) @function.method.call)
|
||||
|
||||
|
|
@ -57,6 +71,10 @@
|
|||
(parameter
|
||||
name: (identifier) @variable.parameter))
|
||||
|
||||
(implicit_parameter_list
|
||||
(parameter
|
||||
name: (identifier) @variable.parameter))
|
||||
|
||||
(parameter_list
|
||||
(parameter
|
||||
type: (identifier) @type))
|
||||
|
|
@ -349,6 +367,7 @@
|
|||
[
|
||||
(this_expression)
|
||||
(base_expression)
|
||||
"this"
|
||||
] @variable.builtin
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue