Wither Self
Luke Gorrie
luke@REDACTED
Thu Sep 11 17:46:56 CEST 2003
Peter-Henry Mander <erlang@REDACTED> writes:
> The next debate may be over good comment writing practice... anyone
> got a comment stripper for Erlang? (-:
Sure,
(defun strip-erlang-comments ()
"Remove all comments from an erlang-mode buffer."
(interactive)
(save-excursion
(goto-char (point-min))
(while (re-search-forward "\\s *\\s<.*\\s>" nil t)
(delete-region (match-beginning 0) (match-end 0)))))
:-)
More information about the erlang-questions
mailing list