Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions languages/csharp/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@
(attribute
name: (identifier) @attribute)

; Property access (x.Prop)
(member_access_expression
name: (identifier) @property)

; Null-conditional property access (x?.Prop)
(conditional_access_expression
(member_binding_expression
name: (identifier) @property))

; Parameters
(parameter
name: (identifier) @variable.parameter)
Expand All @@ -253,3 +262,9 @@
(invocation_expression
(member_access_expression
name: (identifier) @function))

; Null-conditional method calls (x?.Method(...))
(invocation_expression
function: (conditional_access_expression
(member_binding_expression
name: (identifier) @function)))