mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(c-setup-paragraph-variables): Ensure paragraph-\(start\|separate\) match
blank lines. For AWK Mode.
This commit is contained in:
parent
ac4e7a307f
commit
49be4f8800
1 changed files with 11 additions and 4 deletions
|
|
@ -510,14 +510,21 @@ variables."
|
|||
(assoc 'other c-comment-prefix-regexp)))
|
||||
c-comment-prefix-regexp))
|
||||
|
||||
(let ((comment-line-prefix
|
||||
(concat "[ \t]*\\(" c-current-comment-prefix "\\)[ \t]*")))
|
||||
(let* ((empty-is-prefix (string-match c-current-comment-prefix ""))
|
||||
(nonws-comment-line-prefix
|
||||
(concat "\\(" c-current-comment-prefix "\\)[ \t]*"))
|
||||
(comment-line-prefix (concat "[ \t]*" nonws-comment-line-prefix))
|
||||
(blank-or-comment-line-prefix
|
||||
(concat "[ \t]*"
|
||||
(if empty-is-prefix "" "\\(")
|
||||
nonws-comment-line-prefix
|
||||
(if empty-is-prefix "" "\\)?"))))
|
||||
|
||||
(setq paragraph-start (concat comment-line-prefix
|
||||
(setq paragraph-start (concat blank-or-comment-line-prefix
|
||||
c-paragraph-start
|
||||
"\\|"
|
||||
page-delimiter)
|
||||
paragraph-separate (concat comment-line-prefix
|
||||
paragraph-separate (concat blank-or-comment-line-prefix
|
||||
c-paragraph-separate
|
||||
"\\|"
|
||||
page-delimiter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue