From 7da35e655047e595b46628c9d5c569b8d71b51c0 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 23 Jan 2012 13:59:27 -0500 Subject: [PATCH] cmake-mode.el: Indent after multiline argument (#12908) After a multiline argument ending in a non-empty line e.g. if(TEST) set(VAR " ...") unset(VAR) endif() we previously failed to indent following lines like the "unset". Use cmake-line-starts-inside-string to keep walking back through multiline arguments until we find an indented line. Suggested-by: Christopher Sean Morrison --- Docs/cmake-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/Docs/cmake-mode.el b/Docs/cmake-mode.el index 2f51f830d..4418bfa3c 100644 --- a/Docs/cmake-mode.el +++ b/Docs/cmake-mode.el @@ -99,6 +99,7 @@ set the path with these commands: (setq region (buffer-substring-no-properties (point) point-start)) (while (and (not (bobp)) (or (looking-at cmake-regex-blank) + (cmake-line-starts-inside-string) (not (and (string-match cmake-regex-indented region) (= (length region) (match-end 0)))))) (forward-line -1)