php: Add more keywords (#17243)

This list should now be complete according to the official list at
https://www.php.net/manual/en/reserved.keywords.php
This commit is contained in:
Patka 2024-09-02 20:30:02 +02:00 committed by GitHub
parent 6b8bdcfe72
commit 7844b9f38e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,8 +75,10 @@
; Keywords
"abstract" @keyword
"and" @keyword
"as" @keyword
"break" @keyword
"callable" @keyword
"case" @keyword
"catch" @keyword
"class" @keyword
@ -91,6 +93,7 @@
"elseif" @keyword
"enum" @keyword
"enddeclare" @keyword
"endfor" @keyword
"endforeach" @keyword
"endif" @keyword
"endswitch" @keyword
@ -99,22 +102,28 @@
"final" @keyword
"readonly" @keyword
"finally" @keyword
"for" @keyword
"foreach" @keyword
"fn" @keyword
"function" @keyword
"global" @keyword
"goto" @keyword
"if" @keyword
"implements" @keyword
"include_once" @keyword
"include" @keyword
"instanceof" @keyword
"insteadof" @keyword
"interface" @keyword
"match" @keyword
"namespace" @keyword
"new" @keyword
"or" @keyword
"print" @keyword
"private" @keyword
"protected" @keyword
"public" @keyword
"readonly" @keyword
"require_once" @keyword
"require" @keyword
"return" @keyword
@ -124,6 +133,8 @@
"trait" @keyword
"try" @keyword
"use" @keyword
"var" @keyword
"while" @keyword
"xor" @keyword
"yield" @keyword
"yield from" @keyword