mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
name: (identifier) @method)
|
||||
|
||||
(invocation_expression
|
||||
(member_access_expression
|
||||
name: (identifier) @method))
|
||||
|
||||
(invocation_expression
|
||||
(identifier) @method)
|
||||
|
||||
((identifier) @field
|
||||
(#match? @field "^_"))
|
||||
|
||||
|
|
@ -74,6 +81,7 @@
|
|||
"if"
|
||||
"else"
|
||||
"switch"
|
||||
"break"
|
||||
"case"
|
||||
] @conditional
|
||||
|
||||
|
|
@ -82,7 +90,6 @@
|
|||
"for"
|
||||
"do"
|
||||
"continue"
|
||||
"break"
|
||||
"in"
|
||||
"goto"
|
||||
"foreach"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue