Skip to content
Snippets Groups Projects
Commit ece9ae97 authored by Brad King's avatar Brad King
Browse files

BUG: Fixed identification of ( and ) tokens to avoid finding them in string literals.

parent bfe234da
No related branches found
No related tags found
No related merge requests found
......@@ -107,10 +107,10 @@
; Search forward counting tokens that adjust indentation.
(while (re-search-forward cmake-regex-token point-start t)
(setq token (match-string 0))
(if (string-match cmake-regex-paren-left token)
(if (string-match (concat "^" cmake-regex-paren-left "$") token)
(setq cur-indent (+ cur-indent cmake-tab-width))
)
(if (string-match cmake-regex-paren-right token)
(if (string-match (concat "^" cmake-regex-paren-right "$") token)
(setq cur-indent (- cur-indent cmake-tab-width))
)
(if (string-match cmake-regex-block-open token)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment