From 23a16ab605bb5a38ed4dd6ad5ffd893bd2172250 Mon Sep 17 00:00:00 2001 From: Steve Vermeulen Date: Sun, 19 Jul 2020 14:31:07 -0700 Subject: Added some more fixes to c# highlighting --- queries/c_sharp/highlights.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/queries/c_sharp/highlights.scm b/queries/c_sharp/highlights.scm index 893c7dad..af37e549 100644 --- a/queries/c_sharp/highlights.scm +++ b/queries/c_sharp/highlights.scm @@ -2,6 +2,9 @@ (method_declaration name: (identifier) @method) +(method_declaration + type: (identifier) @type) + ; This would be nice but fails in some cases ; https://github.com/nvim-treesitter/nvim-treesitter/pull/203 ; (invocation_expression @@ -21,6 +24,10 @@ (parameter name: (identifier) @parameter)) +(parameter_list + (parameter + type: (identifier) @type)) + (integer_literal) @number (real_literal) @float @@ -50,6 +57,9 @@ (property_declaration name: (identifier) @property) +(catch_declaration + type: (identifier) @type) + (interface_declaration name: (identifier) @type) (class_declaration @@ -201,5 +211,7 @@ "interface" "namespace" "struct" + "get" + "set" ] @keyword -- cgit v1.2.3