Stefan pushed to branch master at Stefan / Typer
Commits: 53de7a6a by Stefan Monnier at 2017-02-24T20:04:28-05:00 * emacs/typer-mode.el (typer-smie-rules): Improve indentation of "type".
- - - - -
1 changed file:
- emacs/typer-mode.el
Changes:
===================================== emacs/typer-mode.el ===================================== --- a/emacs/typer-mode.el +++ b/emacs/typer-mode.el @@ -168,7 +168,7 @@ ;; FIXME: Improve indent after "lambda α ≡> lambda (xs : List α) ->" ;; along the lines of what's done in Tuareg. (pcase (cons kind token) - (`(:before . "|") (smie-rule-parent)) + (`(:before . "|") (smie-rule-parent (if (smie-rule-parent-p "type") 2))) (`(:before . "(") (if (smie-rule-hanging-p) (smie-rule-parent))) (`(:before . ,(or "case" "lambda")) (and (not (smie-rule-bolp))
View it on GitLab: https://gitlab.com/monnier/typer/commit/53de7a6af5272b05510ba5cb4b4bcb396fd2...