fix continued expression indentation when cperl-indent-parens-as-block in effect #20

Merged
merged 1 commit into from Mar 4, 2014

Conversation

Projects
None yet
2 participants
Contributor

dev97 commented Mar 1, 2014

When cperl-indent-parens-as-block is in effect, expressions are indented incorrectly:

if ($var1 == 1 &&
      $var2 == 2 &&
      $var3 == 3) {
  ...
}

this patch fixes the indentation:

if ($var1 == 1 &&
    $var2 == 2 &&
    $var3 == 3) {
  ...
}

I'm working with this patch applied over one month and I didn't notice negative side effects.
Please test it and apply to upstream.

@dev97 dev97 fix continued expression indentation when cperl-indent-parens-as-bloc…
…k in effect

When cperl-indent-parens-as-block is in effect, expressions are indented
incorectly:

if ($var1 == 1 &&
      $var2 == 2 &&
      $var3 == 3) {
  ...
}

this patch fixes the indentation:

if ($var1 == 1 &&
    $var2 == 2 &&
    $var3 == 3) {
  ...
}
f91da31

@renormalist renormalist added a commit that referenced this pull request Mar 4, 2014

@renormalist renormalist Merge pull request #20 from dev97/master
fix continued expression indentation when cperl-indent-parens-as-block in effect
b0ff883

@renormalist renormalist merged commit b0ff883 into jrockway:master Mar 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment