Function: vhdl-lineup-comment
vhdl-lineup-comment is a byte-compiled function defined in
vhdl-mode.el.gz.
Signature
(vhdl-lineup-comment LANGELEM)
Documentation
Support old behavior for comment indentation.
We look at vhdl-comment-only-line-offset to decide how to
indent comment only-lines.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-lineup-comment (_langelem)
"Support old behavior for comment indentation.
We look at `vhdl-comment-only-line-offset' to decide how to
indent comment only-lines."
(save-excursion
(back-to-indentation)
;; at or to the right of comment-column
(if (>= (current-column) comment-column)
(vhdl-comment-indent)
;; otherwise, indent as specified by vhdl-comment-only-line-offset
(if (not (bolp))
;; inside multi-line comment
(if (looking-at "\\*")
1
;; otherwise
(or (car-safe vhdl-comment-only-line-offset)
vhdl-comment-only-line-offset))
(or (cdr-safe vhdl-comment-only-line-offset)
(car-safe vhdl-comment-only-line-offset)
-1000 ;jam it against the left side
)))))