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

Minor tweaks for anal cases of indentation.

parent 70c65ea0
No related branches found
No related tags found
No related merge requests found
......@@ -12,13 +12,14 @@
(defvar cmake-tab-width 2)
; Regular expressions used by line indentation function.
(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()#\\\\]"
"\\|" "[^\n()#\"\\\\]"
"\\|" "\\\\."
"\\|" "\\$(" cmake-regex-identifier ")"
"\\)*"))
(defconst cmake-regex-comment "#.*")
(defconst cmake-regex-identifier "[A-Za-z][A-Za-z0-9_]*")
(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
......
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