diff options
| author | Ingo Lohmar | 2017-07-01 13:09:20 +0200 |
|---|---|---|
| committer | Ingo Lohmar | 2017-07-03 20:06:27 +0200 |
| commit | 9ac7dccc51ee834b06cdabf6a5746eb375f984f0 (patch) | |
| tree | e828d23bc109d4576169f782dba1982c840f822c /test | |
| parent | caf92449802ea2250d6ac30a01797b0554d71dc3 (diff) | |
| download | emacs-9ac7dccc51ee834b06cdabf6a5746eb375f984f0.tar.gz emacs-9ac7dccc51ee834b06cdabf6a5746eb375f984f0.zip | |
Offer non-aligned indentation in lists in js-mode (Bug#27503)
* lisp/progmodes/js.el (js--proper-indentation):
New customization option 'js-indent-align-list-continuation'.
Affects argument lists as well as arrays and object properties.
* test/manual/indent/js-indent-align-list-continuation-nil.js:
Test the change.
Diffstat (limited to 'test')
| -rw-r--r-- | test/manual/indent/js-indent-align-list-continuation-nil.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/manual/indent/js-indent-align-list-continuation-nil.js b/test/manual/indent/js-indent-align-list-continuation-nil.js new file mode 100644 index 00000000000..383b2539a26 --- /dev/null +++ b/test/manual/indent/js-indent-align-list-continuation-nil.js | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | const funcAssignment = function (arg1, | ||
| 2 | arg2, | ||
| 3 | arg3) { | ||
| 4 | return { test: this, | ||
| 5 | which: "would", | ||
| 6 | align: "as well with the default setting" | ||
| 7 | }; | ||
| 8 | } | ||
| 9 | |||
| 10 | function funcDeclaration(arg1, | ||
| 11 | arg2 | ||
| 12 | ) { | ||
| 13 | return [arg1, | ||
| 14 | arg2]; | ||
| 15 | } | ||
| 16 | |||
| 17 | // Local Variables: | ||
| 18 | // indent-tabs-mode: nil | ||
| 19 | // js-indent-align-list-continuation: nil | ||
| 20 | // End: | ||