diff options
author | Jan D <jan.h.d@swipnet.se> | 2015-04-03 12:32:13 +0200 |
---|---|---|
committer | Jan D <jan.h.d@swipnet.se> | 2015-04-03 12:32:13 +0200 |
commit | 75c8741afba2321add3ad52c5143b4fdb1d63e18 (patch) | |
tree | 3a125791aba92eb58bee81163a93c3246f275a54 /test/indent/js-indent-init-dynamic.js | |
parent | 734900695acbe17bc7c52c85133918b8949fd2d3 (diff) | |
parent | 0b914bada39e4577cd9e9209a15c44cc1f83294d (diff) | |
download | emacs-75c8741afba2321add3ad52c5143b4fdb1d63e18.tar.gz emacs-75c8741afba2321add3ad52c5143b4fdb1d63e18.tar.bz2 emacs-75c8741afba2321add3ad52c5143b4fdb1d63e18.zip |
Merge branch 'master' into cairo
Diffstat (limited to 'test/indent/js-indent-init-dynamic.js')
-rw-r--r-- | test/indent/js-indent-init-dynamic.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/indent/js-indent-init-dynamic.js b/test/indent/js-indent-init-dynamic.js new file mode 100644 index 00000000000..536a976e86e --- /dev/null +++ b/test/indent/js-indent-init-dynamic.js @@ -0,0 +1,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; |