mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
BUG: Fixed identification of ( and ) tokens to avoid finding them in string literals.
This commit is contained in:
parent
bfe234da93
commit
ece9ae97e2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user