mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30: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")
|
(#eq? @keyword "value")
|
||||||
(#has-ancestor? @keyword accessor_declaration))
|
(#has-ancestor? @keyword accessor_declaration))
|
||||||
|
|
||||||
|
((identifier) @variable.builtin
|
||||||
|
(#eq? @variable.builtin "_"))
|
||||||
|
|
||||||
(method_declaration
|
(method_declaration
|
||||||
name: (identifier) @function.method)
|
name: (identifier) @function.method)
|
||||||
|
|
||||||
|
|
@ -21,6 +24,9 @@
|
||||||
|
|
||||||
(interpolation) @none
|
(interpolation) @none
|
||||||
|
|
||||||
|
(member_access_expression
|
||||||
|
name: (identifier) @variable.member)
|
||||||
|
|
||||||
(invocation_expression
|
(invocation_expression
|
||||||
(member_access_expression
|
(member_access_expression
|
||||||
name: (identifier) @function.method.call))
|
name: (identifier) @function.method.call))
|
||||||
|
|
@ -41,6 +47,14 @@
|
||||||
(qualified_name
|
(qualified_name
|
||||||
(identifier) @type)
|
(identifier) @type)
|
||||||
|
|
||||||
|
(namespace_declaration
|
||||||
|
name:
|
||||||
|
[
|
||||||
|
(qualified_name
|
||||||
|
(identifier) @module)
|
||||||
|
(identifier) @module
|
||||||
|
])
|
||||||
|
|
||||||
(invocation_expression
|
(invocation_expression
|
||||||
(identifier) @function.method.call)
|
(identifier) @function.method.call)
|
||||||
|
|
||||||
|
|
@ -57,6 +71,10 @@
|
||||||
(parameter
|
(parameter
|
||||||
name: (identifier) @variable.parameter))
|
name: (identifier) @variable.parameter))
|
||||||
|
|
||||||
|
(implicit_parameter_list
|
||||||
|
(parameter
|
||||||
|
name: (identifier) @variable.parameter))
|
||||||
|
|
||||||
(parameter_list
|
(parameter_list
|
||||||
(parameter
|
(parameter
|
||||||
type: (identifier) @type))
|
type: (identifier) @type))
|
||||||
|
|
@ -349,6 +367,7 @@
|
||||||
[
|
[
|
||||||
(this_expression)
|
(this_expression)
|
||||||
(base_expression)
|
(base_expression)
|
||||||
|
"this"
|
||||||
] @variable.builtin
|
] @variable.builtin
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue