Skip to content

Commit

Permalink
enh(php) add PHP 8.1 keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
wkania authored and joshgoebel committed Dec 16, 2021
1 parent 4284811 commit bc5a10f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -13,6 +13,7 @@ These changes should be for the better and should not be super noticeable but if

Grammars:

- enh(php) add PHP 8.1 keywords [Wojciech Kania][]
- enh(php) support First-class Callable Syntax (#3427) [Wojciech Kania][]
- enh(php) support class constructor call (#3427) [Wojciech Kania][]
- enh(php) support function invoke (#3427) [Wojciech Kania][]
Expand Down
5 changes: 5 additions & 0 deletions src/languages/php.js
Expand Up @@ -151,11 +151,13 @@ export default function(hljs) {
"match|0",
"mixed",
"new",
"never",
"object",
"or",
"private",
"protected",
"public",
"readonly",
"real",
"return",
"string",
Expand Down Expand Up @@ -245,14 +247,17 @@ export default function(hljs) {
// Reserved interfaces:
// <https://www.php.net/manual/en/reserved.interfaces.php>
"ArrayAccess",
"BackedEnum",
"Closure",
"Fiber",
"Generator",
"Iterator",
"IteratorAggregate",
"Serializable",
"Stringable",
"Throwable",
"Traversable",
"UnitEnum",
"WeakReference",
"WeakMap",
// Reserved classes:
Expand Down

0 comments on commit bc5a10f

Please sign in to comment.