summaryrefslogtreecommitdiff
path: root/test/manual/indent/js-indent-init-dynamic.js
blob: 536a976e86e8ed8c6caafd8a28597eb2853bc8df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var foo = function() {
  return 7;
};

var foo = function() {
      return 7;
    },
    bar = 8;

var foo = function() {
      return 7;
    },
    bar = function() {
      return 8;
    };

// Local Variables:
// indent-tabs-mode: nil
// js-indent-level: 2
// js-indent-first-init: dynamic
// End:

// The following test intentionally produces a scan error and should
// be placed below all other tests to prevent awkward indentation.
// (It still thinks it's within the body of a function.)

var foo = function() {
  return 7;
  ,
  bar = 8;