; * doc/lispref/modes.texi (SMIE Indentation Example): Fix previous commit

This commit is contained in:
Simen Heggestøyl 2021-01-05 12:17:13 +01:00 committed by Simen Heggestøyl
parent 03080b5545
commit 33d0c603c6

View file

@ -4164,8 +4164,8 @@ Here is an example of an indentation function:
(`(:elem . basic) sample-indent-basic)
(`(,_ . ",") (smie-rule-separator kind))
(`(:after . ":=") sample-indent-basic)
(`(:before . ,(or `"begin" `"(" `"@{")))
(if (smie-rule-hanging-p) (smie-rule-parent))
(`(:before . ,(or `"begin" `"(" `"@{"))
(if (smie-rule-hanging-p) (smie-rule-parent)))
(`(:before . "if")
(and (not (smie-rule-bolp)) (smie-rule-prev-p "else")
(smie-rule-parent)))))