mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 14:30:05 -04:00
C# highlighting - Fixed to highlight method calls, and changed break to be conditional instead of a repeat
This commit is contained in:
parent
870825e0e8
commit
e6300a045a
1 changed files with 8 additions and 1 deletions
|
|
@ -2,6 +2,13 @@
|
||||||
(method_declaration
|
(method_declaration
|
||||||
name: (identifier) @method)
|
name: (identifier) @method)
|
||||||
|
|
||||||
|
(invocation_expression
|
||||||
|
(member_access_expression
|
||||||
|
name: (identifier) @method))
|
||||||
|
|
||||||
|
(invocation_expression
|
||||||
|
(identifier) @method)
|
||||||
|
|
||||||
((identifier) @field
|
((identifier) @field
|
||||||
(#match? @field "^_"))
|
(#match? @field "^_"))
|
||||||
|
|
||||||
|
|
@ -74,6 +81,7 @@
|
||||||
"if"
|
"if"
|
||||||
"else"
|
"else"
|
||||||
"switch"
|
"switch"
|
||||||
|
"break"
|
||||||
"case"
|
"case"
|
||||||
] @conditional
|
] @conditional
|
||||||
|
|
||||||
|
|
@ -82,7 +90,6 @@
|
||||||
"for"
|
"for"
|
||||||
"do"
|
"do"
|
||||||
"continue"
|
"continue"
|
||||||
"break"
|
|
||||||
"in"
|
"in"
|
||||||
"goto"
|
"goto"
|
||||||
"foreach"
|
"foreach"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue