I am using highlight-regexp
with a regexp pattern that includes the elisp comment characters ;;
. How can I extend the pattern so that it adequately handle the general comment character for each language?
(highlight-regexp
"^;;\s+\\(\\[.+\\]\\).*$" 'kmface 1))
I have found comment-start
but do not know how to use it in the regexp
"^;;\s+\\(\\[.+\\]\\).*$"
Have started with format
to try getting two comment characters next to each other to construct a regexp
.
(let ((fm (format "%s%s" comment-start comment-start)))
(message "fm: %s" fm))