Permalink
Switch branches/tags
Nothing to show
Commits on Mar 27, 2018
  1. Match return types in function declarations

    infininight committed Mar 27, 2018
    Before these were passed back to the basic grammar, now match the valid items specifically.
  2. Allow default values in type-hinted function parameters

    infininight committed Mar 27, 2018
    Merges the various previous rules into a single rule allowing the same items in all cases. Some scoping has been updated to be in line with conventions.
    
    Fixes #75 and #81.
  3. Allow matching class-names at end of a string

    infininight committed Mar 27, 2018
    This allows using the match inside of a capture.
  4. Split up long regex matches

    infininight committed Mar 27, 2018
    This was tripping up the language grammar grammar causing the rest of the file to be mis-highlighted.
Commits on Jul 16, 2017
  1. Fix typo in the comment

    stof authored and infininight committed Apr 12, 2017
  2. Update grammar, completions, etc. to PHP 7.1.7

    infininight committed Jul 16, 2017
    This also fixes some escaping issues with the last generation pass mentioned in #78.
  3. Escape strings before passing through regex generator

    infininight committed Jul 16, 2017
    This is needed due to `\` being used in some PHP identifiers.
Commits on Apr 1, 2017
Commits on Feb 24, 2017
Commits on Jul 3, 2016
  1. Allow <?php ?> snippet to work in any document

    infininight committed Jul 3, 2016
    This works anywhere in a PHP document and only at the very start of any other document. Along with the recent firstLineMatch changes in TextMate this means using the snippet on the first line of an untitled document will automatically set the document language to PHP.
    
    Due to this change the ⌃> shortcut has been removed.
Commits on Jun 30, 2016
  1. Reduce specificity of injection scope

    infininight committed Jun 30, 2016
    This allows the PHP grammar to be included in languages that do not match the `text.html.php` scope.
Commits on Feb 12, 2016
  1. Use TM_DIRECTORY as default search directory

    infininight committed Feb 12, 2016
    This is needed as the active file's directory is no longer the default working directory when running commands. Fixes #69.
Commits on Oct 19, 2015
Commits on Oct 18, 2015
  1. Update generate scripts

    infininight committed Oct 18, 2015
    - Point to ruby 1.8 installed via Homebrew
    - Switch to git repository for phd
    - Update included library paths
Commits on Aug 10, 2015
  1. Allow Run and Help to run outside PHP tags

    infininight committed Aug 10, 2015
    Since we now give a specific root scope to PHP files we can allow these to be scoped to the entire file rather than being limited to inside PHP tags.
Commits on May 30, 2015
Commits on May 9, 2015
  1. Move over folding rules from HTML bundle

    infininight committed May 9, 2015
    Limiting the PHP folding rules to the PHP scope limits unexpected foldings in HTML grammar reuse.
Commits on Feb 12, 2015
Commits on Feb 5, 2015
  1. Further work on escapes in single-quoted regular expressions

    sorbits committed Feb 5, 2015
    The previous simplification would accept \\' as an escape sequence, although a string containing that, would not be identified as a regex, so I also updated the rule to identify regular expressions, so that this rule also use the more correct escaping rules.
  2. Grammar: Correct improper '\' escaping

    infininight committed Feb 5, 2015
    Due to an omission in the grammar generator. #ignore
Commits on Feb 4, 2015
  1. Improve/simplify escaping rules for single-quoted regexps

    sorbits committed Feb 4, 2015
    The rules have been generalized so that anything can be escaped (in the regex) where previously we only supported escaping known special characters. I think the former is better, since there shouldn’t be an issue with over escaping things in a regex, whereas not matching all escape sequences can easily lead to incorrect parsing.
    
    The previous version of this grammar missed some edge-cases and accepted double-backslash in front of an apostrophe (as a way to escape the quote).
    
    Closes #59.
Commits on Jan 29, 2015
  1. Grammar: Add __debugInfo magic method

    jjeising authored and infininight committed Jan 22, 2015
    This magic method is available since PHP 5.6.
    
    More info for this method available here:
    http://php.net/manual/en/language.oop5.magic.php#object.debuginfo
Commits on Jan 22, 2015
  1. Grammar: Account for dual escaping

    infininight committed Jan 22, 2015
    Due to the string being passed through two layers of escaping we need to treat `]` escaping inside character classes as a special case.
Commits on Jan 21, 2015
Commits on Aug 24, 2014
  1. Add support for php-cs-fixer (⌃⇧H)

    sorbits committed Aug 24, 2014
    It is possible to set custom options via TM_PHP_CS_FIXER_OPTIONS (e.g. -vvv).
    
    Installing ‘php-cs-fixer’ via homebrew requires setting ‘phar.readonly = Off’ in /usr/local/etc/php/«version»/php.ini. It also depends on homebrew’s php, which requires running ‘xcode-select --install’ (see issue Homebrew/homebrew-php#1212).
    
    Closes #25.
Commits on Jun 18, 2014
  1. Point to ruby 1.8 shim

    infininight committed Jun 18, 2014
    Using a shim allows us to catch when 1.8 of ruby is not present and provide other options.
    
    #ignore