Function: octave-indent-comment
octave-indent-comment is a byte-compiled function defined in
octave.el.gz.
Signature
(octave-indent-comment)
Documentation
A function for smie-indent-functions (which see).
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/octave.el.gz
(defun octave-indent-comment ()
"A function for `smie-indent-functions' (which see)."
(save-excursion
(back-to-indentation)
(cond
((octave-in-string-or-comment-p) nil)
((looking-at-p "\\(\\s<\\)\\1\\{2,\\}")
0)
;; Exclude %{, %} and %!.
((and (looking-at-p "\\s<\\(?:[^{}!]\\|$\\)")
(not (looking-at-p "\\(\\s<\\)\\1")))
(comment-choose-indent)))))