Skip to content

Commit 4f6a5f9

Browse files
authored
Add syntax highlighting for nullsafe member calls (#90)
Adds missing syntax highlighting for nullsafe method calls (`?->`). Complements the existing `nullsafe_member_access_expression` rule with `nullsafe_member_call_expression` for complete PHP 8.0 nullsafe operator support.
1 parent efda170 commit 4f6a5f9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

languages/php/highlights.scm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
(member_call_expression
2626
name: (name) @function.method)
2727

28+
(nullsafe_member_call_expression
29+
name: (name) @function.method)
30+
2831
(function_definition
2932
name: (name) @function)
3033

0 commit comments

Comments
 (0)