Minor tweaks for anal cases of indentation.

This commit is contained in:
Brad King 2003-06-19 14:30:41 -04:00
parent 70c65ea016
commit f5c2801931
1 changed files with 6 additions and 5 deletions

View File

@ -12,13 +12,14 @@
(defvar cmake-tab-width 2)
; Regular expressions used by line indentation function.
(defconst cmake-regex-quoted "\"\\([^\n\"\\\\]\\|\\\\.\\)*\"")
(defconst cmake-regex-arguments (concat "\\(" cmake-regex-quoted
"\\|" "[^\n()#\\\\]"
"\\|" "\\\\."
"\\)*"))
(defconst cmake-regex-comment "#.*")
(defconst cmake-regex-identifier "[A-Za-z][A-Za-z0-9_]*")
(defconst cmake-regex-quoted "\"\\([^\n\"\\\\]\\|\\\\.\\)*\"")
(defconst cmake-regex-arguments (concat "\\(" cmake-regex-quoted
"\\|" "[^\n()#\"\\\\]"
"\\|" "\\\\."
"\\|" "\\$(" cmake-regex-identifier ")"
"\\)*"))
(defconst cmake-indent-comment-line (concat "^[ \t]*" cmake-regex-comment))
(defconst cmake-indent-blank-regex "^[ \t]*$")
(defconst cmake-indent-open-regex (concat "^[ \t]*" cmake-regex-identifier