Skip to content

Commit

Permalink
Fix typo and respond to code review
Browse files Browse the repository at this point in the history
This prevents the code from crashing and makes it simpler.
  • Loading branch information
DemiMarie authored Feb 28, 2025
1 parent f5906fa commit 10bfb61
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tuareg.el
Original file line number Diff line number Diff line change
Expand Up @@ -2210,13 +2210,11 @@ Return values can be
(and (not (smie-rule-bolp))
(cond ((smie-rule-prev-p "d=")
(smie-rule-parent tuareg-default-indent))
((or (smie-rule-prev-p "begin") (smi-rule-prev-p "("))
((smie-rule-prev-p "begin" "(")
(smie-rule-parent)))))
((equal token "then") (smie-rule-parent))
((equal token "if") (if (and (not (smie-rule-bolp))
(or (smie-rule-prev-p "else")
(smie-rule-prev-p "(")
(smie-rule-prev-p "begin")))
(smie-rule-prev-p "else" "(" "begin"))
(smie-rule-parent)))
((and (equal token "with") (smie-rule-parent-p "{"))
(smie-rule-parent))
Expand Down

0 comments on commit 10bfb61

Please sign in to comment.