diff options
author | Tom Tromey <tom@tromey.com> | 2017-01-12 23:15:00 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-01-13 12:38:36 -0700 |
commit | 502390822f9c0068898ae41285b37568bf0e4d1c (patch) | |
tree | 08d55c4c60eeb803935779d6541db7ef171b02bd /lisp/emacs-lisp/bindat.el | |
parent | b47f97218efb8d9966e084bdfd8a86e8c47cf81d (diff) | |
download | emacs-502390822f9c0068898ae41285b37568bf0e4d1c.tar.gz emacs-502390822f9c0068898ae41285b37568bf0e4d1c.tar.bz2 emacs-502390822f9c0068898ae41285b37568bf0e4d1c.zip |
Add chained indentation to js-mode
Bug#20896
* lisp/progmodes/js.el (js-chain-indent): New variable.
(js--skip-term-backward, js--skip-terms-backward)
(js--chained-expression-p): New functions.
(js--proper-indentation): Call js--chained-expression-p.
* test/manual/indent/js-chain.js: New file.
* test/manual/indent/js.js: Add (non-)chained indentation test.
Diffstat (limited to 'lisp/emacs-lisp/bindat.el')
0 files changed, 0 insertions, 0 deletions