mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(c_sharp): highlight namespaces
This commit is contained in:
parent
96c3512549
commit
e52de2ca80
1 changed files with 9 additions and 4 deletions
|
|
@ -12,9 +12,16 @@
|
|||
(member_access_expression
|
||||
name: (identifier) @method))
|
||||
|
||||
(member_access_expression
|
||||
(identifier) @type (#match? @type "^[A-Z].*[a-z]")
|
||||
(namespace_declaration
|
||||
name: [(qualified_name) (identifier)] @namespace)
|
||||
|
||||
((member_access_expression
|
||||
(identifier) @type
|
||||
(_) .)
|
||||
(#match? @type "^[A-Z].*[a-z]"))
|
||||
|
||||
(qualified_name
|
||||
(identifier) @type)
|
||||
|
||||
(invocation_expression
|
||||
(identifier) @method)
|
||||
|
|
@ -58,8 +65,6 @@
|
|||
(using_directive
|
||||
(identifier) @type)
|
||||
|
||||
(qualified_name
|
||||
(identifier) @type)
|
||||
(property_declaration
|
||||
name: (identifier) @property)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue