all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob b40d47b3e5da00254c8fe81551ee1e61daa1b81f 1171 bytes (raw)
name: test/indent/js.js 	 # note: path name is non-authoritative(*)

  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
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
 
var a = 1;
b = 2;

let c = 1,
    d = 2;

var e = 100500,
    + 1;

function test ()
{
  return /[/]/.test ('/')     // (bug#19397)
}

var f = bar('/protocols/')
baz();

var h = 100500
1;

const i = 1,
      j = 2;

var k = 1,
    l = [
      1, 2,
      3, 4
    ],
    m = 5;

var n = function() {
  return 7;
},
    o = 8;

foo(bar, function() {
  return 2;
});

switch (b) {
case "a":
  2;
default:
  3;
}

var p = {
  case: 'zzzz',
  default: 'donkey',
  tee: 'ornery'
};

var evens = [e for each (e in range(0, 21))
               if (ed % 2 == 0)];

var funs = [
  function() {
    for (;;) {
    }
  },
  function(){},
];

!b
  !=b
  !==b

a++
b +=
  c

baz(`http://foo.bar/${tee}`)
  .qux();

`multiline string
       contents
  are kept
        unchanged!`

class A {
  * x() {
    return 1
      * a(2);
  }

  *[Symbol.iterator]() {
    yield "Foo";
    yield "Bar";
  }
}

if (true)
  1
else
  2

Foobar
  .find()
  .catch((err) => {
    return 2;
  })
  .then((num) => {
    console.log(num);
  });

var z = [
  ...iterableObj,
  4,
  5
]

var arr = [
  -1, 2,
  -3, 4 +
    -5
];

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

debug log:

solving b40d47b3e5da00254c8fe81551ee1e61daa1b81f ...
found b40d47b3e5da00254c8fe81551ee1e61daa1b81f in https://git.savannah.gnu.org/cgit/emacs.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.