-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(php) Add additional keywords, built-in classes, and '<?=' syntax (#…
…2372) * Added More Keywords + `__TRAIT__` + `bool`, `callable`, `float`, `from`, `int`, `iterable`, `object`, `string`, `void` <https://www.php.net/manual/en/language.types.intro.php> <https://www.php.net/manual/en/migration71.new-features.php> + `fn` <https://wiki.php.net/rfc/arrow_functions_v2> + `true`, `false` and `null` are now literals. * `<?=` Tag is Enabled By Default Since PHP 5.4 * enh(zephir) add `fn` keyword for => functions * chore(zephir) boost score by using likely/unlikely * Added Built-In Keywords - This moves `exception`, `parent`, `self` and `static` keyword to built-in. - Added `class`, `extends`, `implements`, `interface` and `use` back to the keyword list. - Added aliases such as `boolean` and `integer` (alias of `bool` and `int`) to the keywords. - Highlight keywords within function arguments (based on `csharp.js` language). * fix auto-detect conflict with Java * Exclude Parenthesis from `.hljs-params` Co-authored-by: Josh Goebel <me@joshgoebel.com>
- Loading branch information
1 parent
c71c71b
commit 71a32c3
Showing
5 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters