aboutsummaryrefslogtreecommitdiffstats
path: root/queries/c_sharp
diff options
context:
space:
mode:
authorSteve Vermeulen <sfvermeulen@gmail.com>2020-07-19 14:31:07 -0700
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-07-20 23:19:18 +0200
commit23a16ab605bb5a38ed4dd6ad5ffd893bd2172250 (patch)
tree9b43d5f8642854172c376d3acc336cc8241bd39d /queries/c_sharp
parentFew more minor fixes to c# highlighting to cover other cases of types being used (diff)
downloadnvim-treesitter-23a16ab605bb5a38ed4dd6ad5ffd893bd2172250.tar
nvim-treesitter-23a16ab605bb5a38ed4dd6ad5ffd893bd2172250.tar.gz
nvim-treesitter-23a16ab605bb5a38ed4dd6ad5ffd893bd2172250.tar.bz2
nvim-treesitter-23a16ab605bb5a38ed4dd6ad5ffd893bd2172250.tar.lz
nvim-treesitter-23a16ab605bb5a38ed4dd6ad5ffd893bd2172250.tar.xz
nvim-treesitter-23a16ab605bb5a38ed4dd6ad5ffd893bd2172250.tar.zst
nvim-treesitter-23a16ab605bb5a38ed4dd6ad5ffd893bd2172250.zip
Added some more fixes to c# highlighting
Diffstat (limited to 'queries/c_sharp')
-rw-r--r--queries/c_sharp/highlights.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/queries/c_sharp/highlights.scm b/queries/c_sharp/highlights.scm
index 893c7dad5..af37e5498 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