Added more highlight groups to C# file

This commit is contained in:
Steve Vermeulen 2020-07-19 12:52:50 -07:00 committed by Thomas Vigouroux
parent 4d71e1455c
commit 870825e0e8

View file

@ -2,6 +2,12 @@
(method_declaration (method_declaration
name: (identifier) @method) name: (identifier) @method)
((identifier) @field
(#match? @field "^_"))
((identifier) @field
(#match? @field "^m_"))
(parameter_list (parameter_list
(parameter (parameter
name: (identifier) @parameter)) name: (identifier) @parameter))
@ -36,6 +42,9 @@
(qualified_name (qualified_name
(identifier) @type)) (identifier) @type))
(property_declaration
name: (identifier) @property)
(interface_declaration (interface_declaration
name: (identifier) @type) name: (identifier) @type)
(class_declaration (class_declaration
@ -43,13 +52,21 @@
(enum_declaration (enum_declaration
name: (identifier) @type) name: (identifier) @type)
(constructor_declaration (constructor_declaration
name: (identifier) @type) name: (identifier) @constructor)
(variable_declaration (variable_declaration
(identifier) @type) (identifier) @type)
(object_creation_expression (object_creation_expression
(identifier) @type) (identifier) @type)
(variable_declaration
(generic_name
(identifier) @type))
(object_creation_expression
(generic_name
(identifier) @type))
(attribute (attribute
name: (identifier) @attribute) name: (identifier) @attribute)
@ -66,6 +83,7 @@
"do" "do"
"continue" "continue"
"break" "break"
"in"
"goto" "goto"
"foreach" "foreach"
] @repeat ] @repeat
@ -77,6 +95,45 @@
"finally" "finally"
] @exception ] @exception
[
"+"
"?"
":"
"++"
"-"
"--"
"&"
"&&"
"|"
"||"
"!"
"!="
"=="
"*"
"/"
"%"
"<"
"<="
">"
">="
"="
"-="
"+="
"*="
"/="
"%="
"^"
"^="
"&="
"|="
"~"
">>"
"<<"
"<<="
">>="
"=>"
] @operator
[ [
";" ";"
"." "."
@ -91,10 +148,20 @@
"}" "}"
"(" "("
")" ")"
"<"
">"
] @punctuation.bracket ] @punctuation.bracket
[
(this_expression)
(base_expression)
] @variable.builtin
[ [
"using" "using"
] @include
[
"lock" "lock"
"params" "params"
"ref" "ref"