aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDmitry Gutov2015-04-03 06:37:12 +0300
committerDmitry Gutov2015-04-03 06:37:31 +0300
commitf2fbd4b71236ca5559b93eb2baf1a7671442eef9 (patch)
treec8707f80b57ae3f76510046dc3874f6bb08c0101 /test
parent839decd9ecbfa4ec4183ac69037f5aa882bdc47c (diff)
downloademacs-f2fbd4b71236ca5559b93eb2baf1a7671442eef9.tar.gz
emacs-f2fbd4b71236ca5559b93eb2baf1a7671442eef9.zip
js-mode: Don't indent inside a multiline string literal
* lisp/progmodes/js.el (js-indent-line): Do nothing when bol is inside a string (https://github.com/mooz/js2-mode/issues/227).
Diffstat (limited to 'test')
-rw-r--r--test/indent/js.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/indent/js.js b/test/indent/js.js
index ad7cb56a277..2120233259a 100644
--- a/test/indent/js.js
+++ b/test/indent/js.js
@@ -64,6 +64,11 @@ b +=
64baz(`http://foo.bar/${tee}`) 64baz(`http://foo.bar/${tee}`)
65 .qux(); 65 .qux();
66 66
67`multiline string
68 contents
69 are kept
70 unchanged!`
71
67// Local Variables: 72// Local Variables:
68// indent-tabs-mode: nil 73// indent-tabs-mode: nil
69// js-indent-level: 2 74// js-indent-level: 2