mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
Update CSharp highlights.
This commit is contained in:
parent
293e2d8bf4
commit
0259291e4a
1 changed files with 28 additions and 2 deletions
|
|
@ -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))
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue