]> code.delx.au - gnu-emacs/blob - test/indent/js-indent-init-dynamic.js
* test/automated/viper-tests.el (viper-test-undo-kmacro):
[gnu-emacs] / test / indent / js-indent-init-dynamic.js
1 var foo = function() {
2 return 7;
3 };
4
5 var foo = function() {
6 return 7;
7 },
8 bar = 8;
9
10 var foo = function() {
11 return 7;
12 },
13 bar = function() {
14 return 8;
15 };
16
17 // Local Variables:
18 // indent-tabs-mode: nil
19 // js-indent-level: 2
20 // js-indent-first-init: dynamic
21 // End:
22
23 // The following test intentionally produces a scan error and should
24 // be placed below all other tests to prevent awkward indentation.
25 // (It still thinks it's within the body of a function.)
26
27 var foo = function() {
28 return 7;
29 ,
30 bar = 8;