Skip to content

Releases: 2072/PHP-Indenting-for-VIm

1.75

04 Sep 11:46
Compare
Choose a tag to compare

1.75:

  • Fix #87: The indent optimization was causing wrong indentation of lines
    preceded by a line ending with '}' when preceded by non white characters.
  • Fix long standing non-reported regex escaping issue in cleaning end of line
    comments function. This should help fixing some other unreported issues when
    parts of codes are commented out at ends of lines...

1.74:

  • Fix #86: Add support for match expression.

1.73:

  • Fix #77 where multi line strings and true/false keywords at beginning of a
    line would cause indentation failures.

1.72:

  • Fix vim/vim#5722 where it was reported that the option PHP_BracesAtCodeLevel
    had not been working for the last 6 years.

1.71:

  • Fix #75 where the indent script would hang on some multi-line quoted strings.

v1.70

21 Jul 13:21
Compare
Choose a tag to compare
  • Fix vim/vim#4562 where Vim would freeze on multiline-string declarations ending with a comma.
  • Fix #69: Indenting was incorrect for closures with single-line use statements.
  • Always indent ^\s*[)\]] according to their opening counterpart.
  • Implement feature request #71: added option PHP_IndentFunctionCallParameters and PHP_IndentFunctionDeclarationParameters to be set to the number of additional indents you want for your function parameters.
  • Fix #60 where multiline-string declarations endings with nothing else before would break indentation.
  • Fix unreported issue where a comment ending with a ('), (") or (`) would stop indentation after this line.
  • Fix #68: end(if|for|foreach|while|switch) identifiers were treated as HereDoc ending indentifiers and set at column 0.
  • Several enhancements to arrow matching (->)
  • Fix #67: chained calls indentation was aligning on the first matching '->' instead of the last one.

v1.66

18 May 12:15
Compare
Choose a tag to compare

Changes since 1.62:

  • Fix chained multi-line '->' indentation (issue #54 and #59)
  • Add a new PHP_noArrowMatching option to disable '->' indentation matching on multi-line chained calls (issue #59).
  • Add support for return type declaration on multi-line function declarations (issue #64)
  • Fix array indentation when PHP_vintage_case_default_indent is set (issue #58)
  • Always ignore case when using syntax highlighting names (issue #52)
  • Functions declared as returning references were not indented properly (issue #62).
  • Fix to multi-line function declaration argument indentation (issue #63)

v1.62

27 Mar 08:51
Compare
Choose a tag to compare

Changes since 1.60:

  • Multi-line indenting could get wrong whenever started on a commented line. (issue #44)
  • Prevent multi-line strings declaration from breaking indentation. (issue #47)
  • Fix some multi-line block declaration interferences (issue #49)
  • Fix Grouped 'use' declaration (issue #48)
  • Fix array index issue with function call (issue #54)
  • Add anonymous class declaration support (issue #55)

1.60

07 Feb 18:23
Compare
Choose a tag to compare

Changes since 1.57:

  • Check shiftwidth() instead of 'shiftwidth' (will use the 'tabstop' value if 'shiftwidth' is 0)
  • Add support for optional spaces before and double quotes around (Here|Now)Document identifiers (issue #40)
  • Multi-line indenting could get wrong whenever started on a commented line. (issue #44)

1.57

03 Dec 11:24
Compare
Choose a tag to compare

Changes since 1.49:

  • Enhance closure support in array definition
  • Correctly indent line starting by a /**/ comment
  • Don't indent last line of multiline string declarations.
  • Add support for 'phpDocComment' syntax identifier.
  • Add support for label: (used with goto)
  • Add 0] to indentkeys
  • Fix an edge case in conditional block declarations when the ')' of the
    condition is put on the same line as the following '{' (complement to issue #4)
  • Fix issue #34 where indentation could get wrong with arrays defined using the
    short [] declaration.
  • Allow the PHP_autoformatcomment option (default on) to work for any filetype
    containing 'php'.