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

feature: support for PHP 7.4 (typehint, return types) #2566

Merged
merged 11 commits into from Oct 13, 2020

Commits on Oct 12, 2020

  1. feature: support for PHP 7.4 (typehint, return types)

    fix: `Foo::bar` Foo matched as class name
    fix: `new self` self matched as keyword instead of class name
    fix: `use function` is matched as package
    TomPavelec committed Oct 12, 2020
    Copy the full SHA
    3e078d2 View commit details
    Browse the repository at this point in the history
  2. fix: !0 changed to true

    feature: class name / namespace (package) can not begin with number
    feature: added binary and underscore number format
    feature: added operators `::`, `->`, `=>`, `<=>`, `...`, and some assignment operators
    fix: moved `.` from punctuation to operators (concatenation operator)
    feature: for `type` added subtypes `type-casting`, `type-hint`, `return-type`
    feature: added backtick string quoted string (shell exec)
    feature: for keywords `parent`, `self` and `static` added subtype `static-context` when a static prop/const/method accessed on them
    feature: for class name added subtype `class-name-fully-qualified` when class name is fully qualified
    feature: for class name added subtype `static-context` when a static prop/const/method accessed on it
    TomPavelec committed Oct 12, 2020
    Copy the full SHA
    cd9d38b View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    a18e8a2 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    a0b8ce7 View commit details
    Browse the repository at this point in the history
  5. fix: simple mistakes in patterns

    fix: use single quotes for token names
    TomPavelec committed Oct 12, 2020
    Copy the full SHA
    39b2eaf View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    5fe7b7e View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    49a0b3d View commit details
    Browse the repository at this point in the history
  8. fix: tests

    fix: removed A-Z in case insensitive patterns
    removed: alias shell-comment
    fix: types handled as keywords
    TomPavelec committed Oct 12, 2020
    Copy the full SHA
    253dfad View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    9a61d81 View commit details
    Browse the repository at this point in the history
  10. rebase

    TomPavelec committed Oct 12, 2020
    Copy the full SHA
    39bbd69 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2020

  1. fix: test

    feat: unite comment patterns
    TomPavelec committed Oct 13, 2020
    Copy the full SHA
    2f0b21e View commit details
    Browse the repository at this point in the history