mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
Added more highlight groups to C# file
This commit is contained in:
parent
4d71e1455c
commit
870825e0e8
1 changed files with 69 additions and 2 deletions
|
|
@ -2,6 +2,12 @@
|
|||
(method_declaration
|
||||
name: (identifier) @method)
|
||||
|
||||
((identifier) @field
|
||||
(#match? @field "^_"))
|
||||
|
||||
((identifier) @field
|
||||
(#match? @field "^m_"))
|
||||
|
||||
(parameter_list
|
||||
(parameter
|
||||
name: (identifier) @parameter))
|
||||
|
|
@ -36,6 +42,9 @@
|
|||
(qualified_name
|
||||
(identifier) @type))
|
||||
|
||||
(property_declaration
|
||||
name: (identifier) @property)
|
||||
|
||||
(interface_declaration
|
||||
name: (identifier) @type)
|
||||
(class_declaration
|
||||
|
|
@ -43,13 +52,21 @@
|
|||
(enum_declaration
|
||||
name: (identifier) @type)
|
||||
(constructor_declaration
|
||||
name: (identifier) @type)
|
||||
name: (identifier) @constructor)
|
||||
|
||||
(variable_declaration
|
||||
(identifier) @type)
|
||||
|
||||
(object_creation_expression
|
||||
(identifier) @type)
|
||||
|
||||
(variable_declaration
|
||||
(generic_name
|
||||
(identifier) @type))
|
||||
(object_creation_expression
|
||||
(generic_name
|
||||
(identifier) @type))
|
||||
|
||||
|
||||
(attribute
|
||||
name: (identifier) @attribute)
|
||||
|
||||
|
|
@ -66,6 +83,7 @@
|
|||
"do"
|
||||
"continue"
|
||||
"break"
|
||||
"in"
|
||||
"goto"
|
||||
"foreach"
|
||||
] @repeat
|
||||
|
|
@ -77,6 +95,45 @@
|
|||
"finally"
|
||||
] @exception
|
||||
|
||||
[
|
||||
"+"
|
||||
"?"
|
||||
":"
|
||||
"++"
|
||||
"-"
|
||||
"--"
|
||||
"&"
|
||||
"&&"
|
||||
"|"
|
||||
"||"
|
||||
"!"
|
||||
"!="
|
||||
"=="
|
||||
"*"
|
||||
"/"
|
||||
"%"
|
||||
"<"
|
||||
"<="
|
||||
">"
|
||||
">="
|
||||
"="
|
||||
"-="
|
||||
"+="
|
||||
"*="
|
||||
"/="
|
||||
"%="
|
||||
"^"
|
||||
"^="
|
||||
"&="
|
||||
"|="
|
||||
"~"
|
||||
">>"
|
||||
"<<"
|
||||
"<<="
|
||||
">>="
|
||||
"=>"
|
||||
] @operator
|
||||
|
||||
[
|
||||
";"
|
||||
"."
|
||||
|
|
@ -91,10 +148,20 @@
|
|||
"}"
|
||||
"("
|
||||
")"
|
||||
"<"
|
||||
">"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
(this_expression)
|
||||
(base_expression)
|
||||
] @variable.builtin
|
||||
|
||||
[
|
||||
"using"
|
||||
] @include
|
||||
|
||||
[
|
||||
"lock"
|
||||
"params"
|
||||
"ref"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue