Skip to content

Commit da7bf2a

Browse files
committed
Add comment to php-cautious-indent-region
1 parent 4b9c37d commit da7bf2a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

php-mode.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,12 +820,17 @@ example `html-mode'. Known such libraries are:\n\t"
820820
nil))))
821821

822822
(defun php-cautious-indent-region (start end &optional quiet)
823+
"Carefully indent region `START' `END' in contexts other than HTML templates.
824+
825+
If the optional argument `QUIET' is non-nil then no syntactic errors are
826+
reported, even if `c-report-syntactic-errors' is non-nil."
823827
(if (or (not php-mode-warn-if-mumamo-off)
824828
php-warned-bad-indent
825829
(php-check-html-for-indentation))
826830
(funcall 'c-indent-region start end quiet)))
827831

828832
(defun php-cautious-indent-line ()
833+
"Carefully indent lines in contexts other than HTML templates."
829834
(if (or (not php-mode-warn-if-mumamo-off)
830835
php-warned-bad-indent
831836
(php-check-html-for-indentation))

0 commit comments

Comments
 (0)