From e6300a045a91fd6be2992b60d568f6a28588772b Mon Sep 17 00:00:00 2001 From: Steve Vermeulen Date: Sun, 19 Jul 2020 13:32:32 -0700 Subject: C# highlighting - Fixed to highlight method calls, and changed break to be conditional instead of a repeat --- queries/c_sharp/highlights.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'queries/c_sharp') diff --git a/queries/c_sharp/highlights.scm b/queries/c_sharp/highlights.scm index 8d9ae585e..37ebe75bc 100644 --- a/queries/c_sharp/highlights.scm +++ b/queries/c_sharp/highlights.scm @@ -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" -- cgit v1.2.3-70-g09d2