diff options
author | Brad King <brad.king@kitware.com> | 2012-01-23 18:59:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-01-23 18:59:27 (GMT) |
commit | 7da35e655047e595b46628c9d5c569b8d71b51c0 (patch) | |
tree | c9369b2182ca10743c57801456493d177507711e /Docs | |
parent | b2838626ddb451fbbffe0de5990d309696b28dfc (diff) | |
download | CMake-7da35e655047e595b46628c9d5c569b8d71b51c0.zip CMake-7da35e655047e595b46628c9d5c569b8d71b51c0.tar.gz CMake-7da35e655047e595b46628c9d5c569b8d71b51c0.tar.bz2 |
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 <brlcad@mac.com>
Diffstat (limited to 'Docs')
-rw-r--r-- | Docs/cmake-mode.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Docs/cmake-mode.el b/Docs/cmake-mode.el index 2f51f83..4418bfa 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) |