X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/611f7186fc07bd57346bdd31eee16f9c0a5d273a..27b4bbd48c1938d34f06954940d9cf78ee4ab6ee:/elisp/domtool-mode.el diff --git a/elisp/domtool-mode.el b/elisp/domtool-mode.el index 1e6959d..292acfa 100644 --- a/elisp/domtool-mode.el +++ b/elisp/domtool-mode.el @@ -100,7 +100,7 @@ (defun until-closed-helper (level) (if - (re-search-backward "\\_<\\(with\\|where\\|begin\\|end\\)\\_>" + (re-search-backward "\\_<\\(with\\|where\\|begin\\|end\\|let\\)\\_>" nil t) (cond ((string= (match-string 0) "end") @@ -121,7 +121,7 @@ (back-to-indentation) (multiple-value-bind (previous-keyword base-indent) (save-excursion - (if (re-search-backward "\\_<\\(with\\|where\\|begin\\|end\\)\\_>" + (if (re-search-backward "\\_<\\(with\\|where\\|begin\\|end\\|let\\|in\\)\\_>" nil t) (values (match-string 0) (current-indentation)) (values nil 0))) @@ -131,7 +131,7 @@ 'noindent) ((nth 4 state) (domtool-calculate-comment-indent state)) - ((looking-at "\\_<\\(with\\|end\\)\\_>") + ((looking-at "\\_<\\(with\\|end\\|in\\)\\_>") (until-closed)) ((not previous-keyword) base-indent)