forked from sublimehq/Packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PHP] Fix "fn" function call (sublimehq#2202)
Fix: $var = fn($x) // ^^ meta.function.arrow-function.php - meta.function-call => $x * 2; // ^^ punctuation.definition.arrow-function $var = fn($x) // ^^ meta.function-call - meta.function.arrow-function.php ; - Before PHP 7.4, "fn" can be used as a function name. - Since PHP 7.4, "fn" is a reserved word. Previously, we assumed that "fn" is always a reserved word because of ST's parsing engine's limitation.
- Loading branch information
Showing
2 changed files
with
32 additions
and
10 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