File tree 2 files changed +15
-2
lines changed
tests/php-ts-mode-resources
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 100
100
" elseif" " enddeclare" " endforeach" " endif" " endswitch"
101
101
" endwhile" " enum" " extends" " final" " finally" " for" " foreach"
102
102
" fn" " function" " global" " if" " implements" " include_once"
103
- " include" " insteadof" " interface" " match" " namespace" " new"
103
+ " include" " instanceof " " insteadof" " interface" " match" " namespace" " new"
104
104
" private" " protected" " public" " readonly" " require_once" " require"
105
105
" return" " static" " switch" " throw" " trait" " try" " use"
106
106
" while" " yield" )
@@ -172,7 +172,10 @@ see https://www.php.net/manual/language.constants.predefined.php")
172
172
@php-constant
173
173
[(integer)
174
174
(float )]
175
- @font-lock-number-face)
175
+ @font-lock-number-face
176
+ (binary_expression
177
+ operator: " instanceof"
178
+ right: [(name) (qualified_name)] @php-class))
176
179
177
180
:language 'php
178
181
:feature 'definition
Original file line number Diff line number Diff line change @@ -212,3 +212,13 @@ class Test {}
212
212
=-=
213
213
php-class
214
214
=-=-=
215
+
216
+ Name: Instanceof class
217
+ No-After-Newline: t
218
+
219
+ =-=
220
+ <?php
221
+ $a instanceof |B;
222
+ =-=
223
+ php-class
224
+ =-=-=
You can’t perform that action at this time.
0 commit comments