mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 03:25:59 +00:00
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:
parent
6b8bdcfe72
commit
7844b9f38e
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue