Currently, only the oldskool (* *) seems to be a comment in the emacs mode.

Submitted on 12 December 2004 at 14:09

On 12 December 2004 at 16:32 Jira commented:

STR-216, martin:
I’ve searched a bit for solutions in other modes, and this seems to be the solution:

(make-local-variable ’comment-start)
(make-local-variable ’comment-end)
(make-local-variable ’comment-start-skip)

(setq comment-start “/* "
comment-end " */”
comment-start-skip “/*[
]+”)

; Setting up syntax table
(modify-syntax-entry ?* “. 23”)
(modify-syntax-entry ?/ “. 14”)

Log in to post comments