aboutsummaryrefslogtreecommitdiffstats
path: root/queries/c_sharp
diff options
context:
space:
mode:
authorAleksei Abakumkin <cranberry.knight@gmail.com>2021-08-17 20:48:29 +0300
committerStephan Seitz <stephan.seitz@fau.de>2021-08-18 22:00:31 +0200
commit0259291e4a75630657d5bd35996e9bf44880c82f (patch)
tree95a0669a79f9af18ff58cdaa370777fb95ee30a2 /queries/c_sharp
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-0259291e4a75630657d5bd35996e9bf44880c82f.tar
nvim-treesitter-0259291e4a75630657d5bd35996e9bf44880c82f.tar.gz
nvim-treesitter-0259291e4a75630657d5bd35996e9bf44880c82f.tar.bz2
nvim-treesitter-0259291e4a75630657d5bd35996e9bf44880c82f.tar.lz
nvim-treesitter-0259291e4a75630657d5bd35996e9bf44880c82f.tar.xz
nvim-treesitter-0259291e4a75630657d5bd35996e9bf44880c82f.tar.zst
nvim-treesitter-0259291e4a75630657d5bd35996e9bf44880c82f.zip
Update CSharp highlights.
Diffstat (limited to 'queries/c_sharp')
-rw-r--r--queries/c_sharp/highlights.scm30
1 files changed, 28 insertions, 2 deletions
diff --git a/queries/c_sharp/highlights.scm b/queries/c_sharp/highlights.scm
index 53db54dcc..07fe08298 100644
--- a/queries/c_sharp/highlights.scm
+++ b/queries/c_sharp/highlights.scm
@@ -1,5 +1,9 @@
(identifier) @variable
+((identifier) @keyword @_p
+ (#eq? @_p "value")
+ (#has-ancestor? @_p accessor_declaration))
+
(method_declaration
name: (identifier) @method)
@@ -91,6 +95,8 @@
name: (identifier) @type)
(class_declaration
name: (identifier) @type)
+(record_declaration
+ name: (identifier) @type)
(enum_declaration
name: (identifier) @type)
(constructor_declaration
@@ -299,16 +305,24 @@ type: (generic_name
"using"
] @include
+(alias_qualified_name
+ (identifier "global") @include)
+
[
"with"
"new"
"typeof"
"nameof"
"sizeof"
- "ref"
"is"
"as"
+ "and"
+ "or"
+ "not"
+ "stackalloc"
+ "in"
"out"
+ "ref"
] @keyword.operator
[
@@ -319,11 +333,14 @@ type: (generic_name
"abstract"
"const"
"extern"
+ "implicit"
+ "explicit"
"internal"
"override"
"private"
"protected"
"public"
+ "internal"
"partial"
"readonly"
"sealed"
@@ -340,8 +357,15 @@ type: (generic_name
"struct"
"get"
"set"
+ "init"
"where"
- "in"
+ "record"
+ "event"
+ "add"
+ "remove"
+ "checked"
+ "unchecked"
+ "fixed"
] @keyword
(parameter_modifier "this" @keyword)
@@ -355,6 +379,8 @@ type: (generic_name
"by"
"ascending"
"descending"
+ "equals"
+ "let"
] @keyword))
[