mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-10 09:43:26 -08:00
* lisp/progmodes/prolog.el: Avoid indenting too much, after ":-"
(prolog-smie-rules): Try and avoid indenting too far after ":-".
This commit is contained in:
parent
af45926d66
commit
d72d97fcbe
1 changed files with 10 additions and 1 deletions
|
|
@ -988,7 +988,16 @@ This is really kludgy, and unneeded (i.e. obsolete) in Emacs>=24."
|
|||
(smie-indent-backward-token) ;Skip !
|
||||
(equal ":-" (car (smie-indent-backward-token))))
|
||||
(smie-rule-parent prolog-indent-width)))
|
||||
(`(:after . ,(or `":-" `"-->")) prolog-indent-width)))
|
||||
(`(:after . ":-")
|
||||
(if (bolp)
|
||||
(save-excursion
|
||||
(smie-indent-forward-token)
|
||||
(skip-chars-forward " \t")
|
||||
(if (eolp)
|
||||
prolog-indent-width
|
||||
(min prolog-indent-width (current-column))))
|
||||
prolog-indent-width))
|
||||
(`(:after . "-->") prolog-indent-width)))
|
||||
|
||||
|
||||
;;-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue