C# highlighting - Fixed to highlight method calls, and changed break to be conditional instead of a repeat

This commit is contained in:
Steve Vermeulen 2020-07-19 13:32:32 -07:00 committed by Thomas Vigouroux
parent 870825e0e8
commit e6300a045a

View file

@ -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"