 				(throw 'skip 1))))
 			 ))))
 		  (end-of-line)
+      (if kill-existing-comment
+          (verilog-kill-existing-comment))
+      (delete-horizontal-space)
 		  (insert (concat " // " string ))))
 
 	       (;- this is end{function,generate,task,module,primitive,table,generate}

     ;; parentheses and then continue to the end of the first
     ;; non-escaped EOL
     (concat "\\<`\\w+\\>\\s-*("
	     "\\(.*\\(?:\n.*\\)*?\\)" ;; definition: to end of line, the maybe more lines (excludes any trailing \n)
	     "\\(?:\n\\s-*\n\\|\\'\\)") ;; blank line or EOF

     "\\)"
     )))


;;; Code:

;; This variable will always hold the version number of the mode
(defconst verilog-mode-version "2015-02-26-31d304d-vpo"
  "Version of this Verilog mode.")
(defconst verilog-mode-release-emacs nil
  "If non-nil, this version of Verilog mode was released with Emacs itself.")
