mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
Update CSharp highlights.
This commit is contained in:
parent
995e7216a5
commit
0e4c2c5801
1 changed files with 28 additions and 2 deletions
|
|
@ -1,5 +1,9 @@
|
||||||
(identifier) @variable
|
(identifier) @variable
|
||||||
|
|
||||||
|
((identifier) @keyword @_p
|
||||||
|
(#eq? @_p "value")
|
||||||
|
(#has-ancestor? @_p accessor_declaration))
|
||||||
|
|
||||||
(method_declaration
|
(method_declaration
|
||||||
name: (identifier) @method)
|
name: (identifier) @method)
|
||||||
|
|
||||||
|
|
@ -91,6 +95,8 @@
|
||||||
name: (identifier) @type)
|
name: (identifier) @type)
|
||||||
(class_declaration
|
(class_declaration
|
||||||
name: (identifier) @type)
|
name: (identifier) @type)
|
||||||
|
(record_declaration
|
||||||
|
name: (identifier) @type)
|
||||||
(enum_declaration
|
(enum_declaration
|
||||||
name: (identifier) @type)
|
name: (identifier) @type)
|
||||||
(constructor_declaration
|
(constructor_declaration
|
||||||
|
|
@ -299,16 +305,24 @@ type: (generic_name
|
||||||
"using"
|
"using"
|
||||||
] @include
|
] @include
|
||||||
|
|
||||||
|
(alias_qualified_name
|
||||||
|
(identifier "global") @include)
|
||||||
|
|
||||||
[
|
[
|
||||||
"with"
|
"with"
|
||||||
"new"
|
"new"
|
||||||
"typeof"
|
"typeof"
|
||||||
"nameof"
|
"nameof"
|
||||||
"sizeof"
|
"sizeof"
|
||||||
"ref"
|
|
||||||
"is"
|
"is"
|
||||||
"as"
|
"as"
|
||||||
|
"and"
|
||||||
|
"or"
|
||||||
|
"not"
|
||||||
|
"stackalloc"
|
||||||
|
"in"
|
||||||
"out"
|
"out"
|
||||||
|
"ref"
|
||||||
] @keyword.operator
|
] @keyword.operator
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -319,11 +333,14 @@ type: (generic_name
|
||||||
"abstract"
|
"abstract"
|
||||||
"const"
|
"const"
|
||||||
"extern"
|
"extern"
|
||||||
|
"implicit"
|
||||||
|
"explicit"
|
||||||
"internal"
|
"internal"
|
||||||
"override"
|
"override"
|
||||||
"private"
|
"private"
|
||||||
"protected"
|
"protected"
|
||||||
"public"
|
"public"
|
||||||
|
"internal"
|
||||||
"partial"
|
"partial"
|
||||||
"readonly"
|
"readonly"
|
||||||
"sealed"
|
"sealed"
|
||||||
|
|
@ -340,8 +357,15 @@ type: (generic_name
|
||||||
"struct"
|
"struct"
|
||||||
"get"
|
"get"
|
||||||
"set"
|
"set"
|
||||||
|
"init"
|
||||||
"where"
|
"where"
|
||||||
"in"
|
"record"
|
||||||
|
"event"
|
||||||
|
"add"
|
||||||
|
"remove"
|
||||||
|
"checked"
|
||||||
|
"unchecked"
|
||||||
|
"fixed"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
(parameter_modifier "this" @keyword)
|
(parameter_modifier "this" @keyword)
|
||||||
|
|
@ -355,6 +379,8 @@ type: (generic_name
|
||||||
"by"
|
"by"
|
||||||
"ascending"
|
"ascending"
|
||||||
"descending"
|
"descending"
|
||||||
|
"equals"
|
||||||
|
"let"
|
||||||
] @keyword))
|
] @keyword))
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue