Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Context Sensitive Lexer #75

Open
promatik opened this issue Dec 10, 2020 · 0 comments
Open

Support for Context Sensitive Lexer #75

promatik opened this issue Dec 10, 2020 · 0 comments

Comments

@promatik
Copy link

With a function like;

public function else($value)
{
    return $this->fallbackLogic($value);
}

phpfmt is braking the code to;

function else{
    ($value) {
        return $this->fallbackLogic($value);
    }

Since PHP 7.0 the Context Sensitive Lexer allows to use reserved words for function names for instance.

RFC here: https://wiki.php.net/rfc/context_sensitive_lexer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant