mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -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
|
(member_access_expression
|
||||||
name: (identifier) @method))
|
name: (identifier) @method))
|
||||||
|
|
||||||
(member_access_expression
|
(namespace_declaration
|
||||||
(identifier) @type (#match? @type "^[A-Z].*[a-z]")
|
name: [(qualified_name) (identifier)] @namespace)
|
||||||
|
|
||||||
|
((member_access_expression
|
||||||
|
(identifier) @type
|
||||||
(_) .)
|
(_) .)
|
||||||
|
(#match? @type "^[A-Z].*[a-z]"))
|
||||||
|
|
||||||
|
(qualified_name
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
(invocation_expression
|
(invocation_expression
|
||||||
(identifier) @method)
|
(identifier) @method)
|
||||||
|
|
@ -58,8 +65,6 @@
|
||||||
(using_directive
|
(using_directive
|
||||||
(identifier) @type)
|
(identifier) @type)
|
||||||
|
|
||||||
(qualified_name
|
|
||||||
(identifier) @type)
|
|
||||||
(property_declaration
|
(property_declaration
|
||||||
name: (identifier) @property)
|
name: (identifier) @property)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue