Function: vhdl-comment-kill-inline-region

vhdl-comment-kill-inline-region is an interactive and byte-compiled function defined in vhdl-mode.el.gz.

Signature

(vhdl-comment-kill-inline-region BEG END)

Documentation

Kill inline comments in region.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-comment-kill-inline-region (beg end)
  "Kill inline comments in region."
  (interactive "r")
  (save-excursion
    (goto-char end)
    (setq end (point-marker))
    (goto-char beg)
    (beginning-of-line)
    (while (< (point) end)
      (when (looking-at "^.*[^ \t\n\r\f-]+\\(\\s-*--.*\\)$")
	(delete-region (match-beginning 1) (match-end 1)))
      (beginning-of-line 2))))