tamzinblake / js3-mode

A chimeric fork of js2-mode and js-mode
GNU General Public License v3.0
180 stars 13 forks source link

incorrect '+' behaviour #10

Closed tamzinblake closed 13 years ago

tamzinblake commented 13 years ago
function test() {
  var x
  x.report("test1"
  + "test2")
}

function test2() {
  var x
  x.report(
    "test1"
          + "test2"
  )
}

expected:

function test() {
  var x
  x.report("test1"
            + "test2")
}

(can't format properly on github - the " should be on same indents)

or:

function test2() {
  var x
  x.report(
    "test1"
 + "test2"
  )
}

currently none of that styles is supported by indent-region.

tamzinblake commented 13 years ago

closed by commit 66451ad

see alternate_styles.js

The part of this issue that was not corrected has been resubmitted as issue #11

tamzinblake commented 13 years ago

originally submitted by @pigmej here

tamzinblake commented 13 years ago

See the wiki at https://github.com/thomblake/js3-mode/wiki/AlternateStyles