Make (after keyword) indent-rules more flexible.
commitc2ea5810769dd4c24a3b628068868d88326f10ad
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 7 Jun 2010 02:10:19 +0000 (6 22:10 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 7 Jun 2010 02:10:19 +0000 (6 22:10 -0400)
treecf0505834ec85b70139f6b019f41eba9e5e3fb19
parent27dd3c11582fc8a0446fe4d1e26d6f5754322fae
Make (after keyword) indent-rules more flexible.
* lisp/emacs-lisp/smie.el (smie-indent-offset-after)
(smie-indent-forward-token, smie-indent-backward-token): New functions.
(smie-indent-after-keyword): Use them.
(smie-indent-fixindent): Only applies to the indentation of the BOL.
(smie-indent-keyword): Tweak the black magic.
(smie-indent-comment-continue): Strip comment-continue before use.
(smie-indent-functions): Indent comments before keywords.
lisp/ChangeLog
lisp/emacs-lisp/smie.el