repo.or.cz
/
emacs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
A better fix for bug#21303
[emacs.git]
/
test
/
indent
/
js.js
blob
2120233259ae72b590c9db4d7fbec069bb941d7b
1
var a = 1;
2
b = 2;
3
4
let c = 1,
5
d = 2;
6
7
var e = 100500,
8
+ 1;
9
10
function test ()
11
{
12
return /[/]/.test ('/') // (bug#19397)
13
}
14
15
var f = bar('/protocols/')
16
baz();
17
18
var h = 100500
19
1;
20
21
const i = 1,
22
j = 2;
23
24
var k = 1,
25
l = [
26
1, 2,
27
3, 4
28
],
29
m = 5;
30
31
var n = function() {
32
return 7;
33
},
34
o = 8;
35
36
foo(bar, function() {
37
return 2;
38
});
39
40
switch (b) {
41
case "a":
42
2;
43
default:
44
3;
45
}
46
47
var p = {
48
case: 'zzzz',
49
default: 'donkey',
50
tee: 'ornery'
51
};
52
53
var evens = [e for each (e in range(0, 21))
54
if (ed % 2 == 0)];
55
56
!b
57
!=b
58
!==b
59
60
a++
61
b +=
62
c
63
64
baz(`http://foo.bar/${tee}`)
65
.qux();
66
67
`multiline string
68
contents
69
are kept
70
unchanged!`
71
72
// Local Variables:
73
// indent-tabs-mode: nil
74
// js-indent-level: 2
75
// End: