aboutsummaryrefslogtreecommitdiffstats
path: root/queries/c_sharp
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2022-10-22 12:25:51 +0300
committerObserverOfTime <chronobserver@disroot.org>2022-11-26 13:17:51 +0200
commit68c647f13bb18d5aa9850bcf4500106412983e56 (patch)
tree94bba58a4fd1cfaf293c91c62a2d6c1afc0569f5 /queries/c_sharp
parenthighlights(vala): fix captures (diff)
downloadnvim-treesitter-68c647f13bb18d5aa9850bcf4500106412983e56.tar
nvim-treesitter-68c647f13bb18d5aa9850bcf4500106412983e56.tar.gz
nvim-treesitter-68c647f13bb18d5aa9850bcf4500106412983e56.tar.bz2
nvim-treesitter-68c647f13bb18d5aa9850bcf4500106412983e56.tar.lz
nvim-treesitter-68c647f13bb18d5aa9850bcf4500106412983e56.tar.xz
nvim-treesitter-68c647f13bb18d5aa9850bcf4500106412983e56.tar.zst
nvim-treesitter-68c647f13bb18d5aa9850bcf4500106412983e56.zip
highlights(c_sharp): use more specific groups
Diffstat (limited to 'queries/c_sharp')
-rw-r--r--queries/c_sharp/highlights.scm38
1 files changed, 23 insertions, 15 deletions
diff --git a/queries/c_sharp/highlights.scm b/queries/c_sharp/highlights.scm
index ca327c596..3c9b7756f 100644
--- a/queries/c_sharp/highlights.scm
+++ b/queries/c_sharp/highlights.scm
@@ -79,6 +79,9 @@
(using_directive
(identifier) @type)
+(using_directive
+ (name_equals (identifier) @type.definition))
+
(property_declaration
name: (identifier) @property)
@@ -304,6 +307,7 @@
[
"using"
+ "as"
] @include
(alias_qualified_name
@@ -316,7 +320,6 @@
"nameof"
"sizeof"
"is"
- "as"
"and"
"or"
"not"
@@ -331,23 +334,9 @@
"params"
"operator"
"default"
- "abstract"
- "const"
- "extern"
"implicit"
"explicit"
- "internal"
"override"
- "private"
- "protected"
- "public"
- "internal"
- "partial"
- "readonly"
- "sealed"
- "static"
- "virtual"
- "volatile"
"async"
"await"
"class"
@@ -369,6 +358,25 @@
"fixed"
] @keyword
+[
+ "const"
+ "extern"
+ "readonly"
+ "static"
+ "volatile"
+] @storageclass
+
+[
+ "abstract"
+ "private"
+ "protected"
+ "internal"
+ "public"
+ "partial"
+ "sealed"
+ "virtual"
+] @type.qualifier
+
(parameter_modifier) @operator
(query_expression